/* =========================================================================
   Optimum Authorized Retailer — design system implementation
   Tokens per design-system.md. Do not change --brand-* without re-measuring
   contrast ratios. CTA label is dark on orange: white fails AA at 3.0:1.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Primary */
  --brand-accent: #F66608;          /* pairs with --ink at 5.6:1 */
  --brand-accent-hover: #D95605;    /* pairs with --ink at 6.3:1 */
  --brand-primary: #002864;         /* pairs with white at 14.1:1 */
  --brand-primary-deep: #001C46;
  --surface: #FFFFFF;

  /* Secondary */
  --bg-alt: #F4F6F9;
  --ink: #1A1A1A;
  --border: #E2E8F0;

  /* Derived */
  --ink-muted: #48576F;             /* 7.3:1 on white */
  --brand-primary-tint: #E6ECF5;
  --positive: #1E7A4C;
  --flag: #F66608;
  --verify: #B45309;

  /* Type */
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section-y: 96px;
  --gutter: 32px;
  --container: 1200px;

  /* Radii */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  /* Elevation */
  --e1: 0 1px 2px rgba(16,26,28,.06), 0 4px 12px rgba(16,26,28,.05);
  --e2: 0 2px 4px rgba(16,26,28,.07), 0 12px 32px rgba(16,26,28,.10);
  --e3: 0 24px 64px rgba(16,26,28,.24);

  /* Motion */
  --t-micro: 150ms; --t-mid: 240ms; --t-slow: 320ms;
  --ease: cubic-bezier(.2,.7,.3,1);

  --header-h: 72px;
}

@media (max-width: 1023px) { :root { --section-y: 72px; --gutter: 24px; } }
@media (max-width: 599px)  { :root { --section-y: 56px; --gutter: 20px; --header-h: 60px; } }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 599px) { body { font-size: 16px; } }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-primary); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .5em; text-wrap: balance; }
address { font-style: normal; }
button { font: inherit; }

/* Author `display` declarations beat the UA stylesheet's [hidden] rule, so any
   component with a display value of its own (.modal, .mobile-nav) stays visible
   when the hidden attribute is set. This restores the expected behaviour. */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-primary); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding-block: var(--section-y); }
.bg-alt { background: var(--bg-alt); }

.section__h { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em;
  color: var(--brand-primary); max-width: 20ch; }
.section__h--center { margin-inline: auto; text-align: center; }
.section__sub { font-size: 19px; color: var(--ink-muted); max-width: 62ch; margin-bottom: var(--s6); }
.section__h--center + .section__sub { margin-inline: auto; text-align: center; }
.section__below { margin-top: var(--s6); text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-accent); margin: 0 0 var(--s3); }
@media (max-width: 599px) { .section__h { font-size: 28px; } .section__sub { font-size: 17px; } }

.prose { font-size: 19px; }
.prose p { max-width: 68ch; margin-bottom: 1.1em; }
.prose h2 { font-size: 28px; color: var(--brand-primary); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; text-decoration: none;
  border-radius: var(--r-md); border: 2px solid transparent; cursor: pointer;
  transition: background var(--t-micro) var(--ease), transform var(--t-micro) var(--ease),
              box-shadow var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
  white-space: nowrap;
}
.btn--lg { min-height: 56px; padding-inline: 24px; font-size: 17px; }
.btn--md { min-height: 48px; padding-inline: 20px; font-size: 16px; }
.btn--sm { min-height: 40px; padding-inline: 16px; font-size: 15px; }
.btn--block { width: 100%; }

/* Dark label on orange — 5.6:1. White would be 3.0:1 and fail AA. */
.btn--solid { background: var(--brand-accent); color: var(--ink); }
.btn--solid:hover { background: var(--brand-accent-hover); transform: translateY(-2px); box-shadow: var(--e1); }

.btn--outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn--outline:hover { background: var(--brand-primary-tint); transform: translateY(-2px); }

.btn--inverse { background: var(--surface); color: var(--brand-primary); }
.btn--inverse:hover { background: var(--brand-primary-tint); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--surface); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn:active { transform: translateY(0); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.btn-row--center { justify-content: center; }

.btn-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font-weight: 600; color: var(--brand-primary); text-decoration: underline;
}
.btn-link:hover { color: var(--brand-accent-hover); }
.icon { width: 24px; height: 24px; flex: none; pointer-events: none; }
.icon--btn { width: 20px; height: 20px; }
.icon--sm { width: 18px; height: 18px; }
.icon--inline-chev { width: 18px; height: 18px; transform: rotate(-90deg); }
.icon--tick { width: 20px; height: 20px; color: var(--positive); }
.icon--plan { width: 32px; height: 32px; color: var(--brand-primary); }

/* ---------- 5. Verify markers ---------- */
.verify {
  border-bottom: 2px dotted var(--verify);
  background: rgba(180,83,9,.07);
  padding: 0 2px; cursor: help;
}
.legal-todo {
  background: rgba(180,83,9,.08); border-left: 3px solid var(--verify);
  padding: var(--s3) var(--s4); font-size: 15px; color: var(--verify);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.note { font-size: 15px; color: var(--ink-muted); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--surface); border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-micro) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--e1); }
.site-header__inner { display: flex; align-items: center; gap: var(--s5); height: 100%; }
.logo { text-decoration: none; flex: none; }
.logo__slot { display: block; line-height: 1.1; }
.logo__mark { display: block; font-family: var(--font-head); font-weight: 700; font-size: 19px;
  color: var(--brand-primary); letter-spacing: -.01em; }
.logo__sub { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-accent); }
.logo--inverse .logo__mark { color: var(--surface); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s5); }
.site-nav a {
  display: block; padding: 8px 0; font-weight: 600; font-size: 16px;
  color: var(--brand-primary); text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--border); }
.site-nav a.is-active { border-bottom-color: var(--brand-accent); }
.site-header__cta { margin-left: var(--s5); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-left: auto;
  color: var(--brand-primary); cursor: pointer; }

@media (max-width: 1023px) {
  .site-nav, .site-header__cta { display: none; }
  .nav-toggle { display: block; }
}

.disclosure-strip { background: var(--brand-primary-tint); border-bottom: 1px solid var(--border); }
.disclosure-strip p { margin: 0; padding: 7px 0; font-size: 13px; line-height: 1.45; color: var(--brand-primary); }

/* ---------- 7. Mobile nav ---------- */
.nav-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(16,26,28,.6); }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: 320px; max-width: 88vw;
  background: var(--surface); box-shadow: var(--e3); padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s5); overflow-y: auto;
}
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__title { font-family: var(--font-head); font-weight: 700; color: var(--brand-primary); }
.nav-close { background: none; border: 0; padding: 10px; color: var(--brand-primary); cursor: pointer; }
.mobile-nav nav ul { display: flex; flex-direction: column; }
.mobile-nav nav a {
  display: block; padding: 14px 0; font-size: 18px; font-weight: 600;
  color: var(--brand-primary); text-decoration: none; border-bottom: 1px solid var(--border);
}
.mobile-nav nav a.is-active { color: var(--brand-accent-hover); }
.mobile-nav__cta { display: flex; flex-direction: column; gap: var(--s3); margin-top: auto; }

/* ---------- 8. Sticky call bar ---------- */
.sticky-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; }
.sticky-call a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; background: var(--brand-accent); color: var(--ink);
  font-weight: 600; font-size: 17px; text-decoration: none;
  box-shadow: 0 -2px 12px rgba(16,26,28,.14);
}
@media (min-width: 600px) { .sticky-call { display: none !important; } }
@media (max-width: 599px) { body.has-sticky-call { padding-bottom: 56px; } }

/* ---------- 9. Image slots ---------- */
.imgslot {
  position: relative; aspect-ratio: var(--ratio, 4/3); width: 100%;
  background: repeating-linear-gradient(45deg, var(--bg-alt) 0 12px, #EDF1F6 12px 24px);
  border: 1px dashed #C6D0DE; border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: var(--s5); text-align: center; overflow: hidden;
}
.imgslot__id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  font-weight: 600; color: var(--brand-primary); }
.imgslot__desc { font-size: 13px; line-height: 1.45; color: var(--ink-muted); max-width: 34ch; }
.imgslot--bleed { position: absolute; inset: 0; aspect-ratio: auto; height: 100%;
  border-radius: 0; border: 0; }

/* ---------- 10. Hero ---------- */
.hero { position: relative; }
.hero--split .hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center;
  min-height: 560px; padding-block: var(--s8);
}
.hero__h1 { font-size: 60px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
  color: var(--brand-primary); max-width: 18ch; }
.hero__sub { font-size: 19px; color: var(--ink-muted); max-width: 54ch; }

.hero--overlay { background: var(--brand-primary-deep); }
.hero--overlay .hero__inner { position: relative; z-index: 2; min-height: 520px;
  display: flex; align-items: center; padding-block: var(--s8); }
.hero--overlay::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,28,70,.88) 0%, rgba(0,28,70,.72) 45%, rgba(0,28,70,.45) 100%);
}
.hero--overlay .hero__copy { max-width: 640px; }
.hero--overlay .hero__h1, .hero--overlay .hero__sub { color: var(--surface); }
.hero--overlay .hero__sub { color: rgba(255,255,255,.88); }
.hero--overlay .eyebrow { color: #FFB57A; }

@media (max-width: 1023px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; gap: var(--s6); min-height: 0; }
  .hero__h1 { font-size: 40px; }
}
@media (max-width: 599px) {
  .hero__h1 { font-size: 36px; }
  .hero__sub { font-size: 17px; }
  .hero--split .hero__media { order: 2; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- 11. Promo banner ---------- */
.promo { background: var(--brand-primary); color: var(--surface); padding-block: var(--s7); text-align: center; }
.promo__h { font-size: 32px; color: var(--surface); margin-bottom: var(--s5); }
.promo__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5);
  max-width: 940px; margin-inline: auto; text-align: left;
}
.promo__list li { position: relative; padding-left: 30px; color: rgba(255,255,255,.92); font-size: 16px; }
.promo__list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px;
  border-radius: 50%; background: var(--brand-accent);
}
.promo__note { margin-top: var(--s4); font-size: 13px; color: rgba(255,255,255,.75); }
.promo .footnote { color: rgba(255,255,255,.9); }
@media (max-width: 899px) { .promo__list { grid-template-columns: 1fr; } .promo__h { font-size: 26px; } }

/* ---------- 12. Split ---------- */
.split { padding-block: var(--section-y); }
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split--img-left .split__copy { order: 2; }
.split--img-left .split__media { order: 1; }
.split__h { font-size: 32px; color: var(--brand-primary); max-width: 20ch; }
.split__body { font-size: 19px; color: var(--ink-muted); max-width: 56ch; }
.ticklist { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.ticklist li { display: flex; gap: var(--s3); align-items: flex-start; }
.ticklist li span:last-child { flex: 1; }
@media (max-width: 899px) {
  .split__inner { grid-template-columns: 1fr; gap: var(--s6); }
  .split--img-left .split__copy, .split--img-left .split__media { order: initial; }
  .split__h { font-size: 26px; }
}

/* ---------- 13. Triad ---------- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s7); }
.triad__item { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--e1); }
.bg-alt .triad__item { background: var(--surface); }
.triad__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-primary-tint); color: var(--brand-primary); margin-bottom: var(--s4);
}
.triad__h { font-size: 20px; color: var(--brand-primary); }
.triad__item p { color: var(--ink-muted); margin: 0; }
@media (max-width: 899px) { .triad { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- 14. Value props ---------- */
.vp { display: grid; gap: var(--s5); margin-top: var(--s7); }
.vp--3 { grid-template-columns: repeat(3, 1fr); }
.vp--4 { grid-template-columns: repeat(4, 1fr); }
.vp__item { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s6); }
.vp__num { display: block; font-family: var(--font-head); font-size: 40px; font-weight: 700;
  line-height: 1; color: var(--brand-primary); opacity: .28; margin-bottom: var(--s3); }
.vp__icon { display: inline-flex; color: var(--brand-primary); margin-bottom: var(--s3); }
.vp__h { font-size: 20px; color: var(--brand-primary); }
.vp__item p { color: var(--ink-muted); margin: 0; }
@media (max-width: 1023px) { .vp--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 699px) { .vp--3, .vp--4 { grid-template-columns: 1fr; } }

/* ---------- 15. Plans ---------- */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }
.filter__pill {
  min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--brand-primary); cursor: pointer;
  transition: background var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
}
.filter__pill:hover { border-color: var(--brand-primary); }
.filter__pill.is-active { background: var(--brand-primary-tint); border-color: var(--brand-primary); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--e1);
  transition: transform var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease);
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.plan--featured { border: 2px solid var(--brand-primary); box-shadow: var(--e2); }
.plan[hidden] { display: none; }
.plan__badge {
  position: absolute; top: -13px; left: var(--s6);
  background: var(--flag); color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 4px 14px; border-radius: var(--r-pill);
}
.plan__icon { display: block; margin-bottom: var(--s4); }
.plan__h { margin: 0 0 var(--s4); }
.plan__speed { display: block; font-size: 26px; font-weight: 700; color: var(--brand-primary); }
.plan__label { display: block; font-family: var(--font-body); font-size: 15px;
  font-weight: 400; color: var(--ink-muted); }
.plan__price { display: flex; align-items: baseline; gap: 2px; margin: 0 0 var(--s2);
  min-height: 60px; font-family: var(--font-head); }
.plan__cur { font-size: 26px; font-weight: 700; color: var(--brand-primary); }
.plan__num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.03em;
  color: var(--brand-primary); }
.plan__unit { font-family: var(--font-body); font-size: 17px; color: var(--ink-muted); }
.plan__price--call { font-size: 26px; font-weight: 700; color: var(--brand-primary); align-items: center; }
.plan__qual { font-size: 13px; line-height: 1.45; color: var(--ink-muted); min-height: 3.4em; }
.plan__more { margin: var(--s3) 0 var(--s4); font-size: 15px; }
.plan__more summary { cursor: pointer; font-weight: 600; color: var(--brand-primary);
  min-height: 44px; display: flex; align-items: center; }
.plan__more p { margin-top: var(--s2); color: var(--ink-muted); }
.plan__feats { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s5); }
.plan__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.plan__feats li span:last-child { flex: 1; }
.plan .btn { width: 100%; margin-top: auto; }
.plan__disc { margin: var(--s4) 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.plans__empty { margin-top: var(--s6); text-align: center; color: var(--ink-muted); }
@media (max-width: 1023px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 699px) { .plans { grid-template-columns: 1fr; } .plan__num { font-size: 44px; } }

/* ---------- 16. Accordion ---------- */
.acc { border-top: 1px solid var(--border); margin-top: var(--s7); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__h { margin: 0; font-family: var(--font-body); }
.acc__btn {
  display: flex; align-items: center; gap: var(--s4); width: 100%;
  min-height: 64px; padding: var(--s4) 0; background: none; border: 0; cursor: pointer;
  text-align: left; font-size: 20px; font-weight: 600; color: var(--brand-primary);
}
.acc__label { flex: 1; }
.acc__marker { flex: none; width: 24px; color: var(--brand-accent); font-weight: 700; }
.acc__chev { flex: none; transition: transform var(--t-mid) var(--ease); }
.acc__btn[aria-expanded="true"] .acc__chev { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__panel.is-open .acc__inner { padding-bottom: var(--s5); }
.acc__inner > *:first-child { margin-top: 0; }
.acc__inner p { color: var(--ink-muted); max-width: 68ch; }
@media (max-width: 599px) { .acc__btn { font-size: 17px; } }

/* ---------- 17. Availability band ---------- */
.band { background: var(--brand-primary); color: var(--surface); padding-block: var(--s8); }
.band--compact { padding-block: var(--s7); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); }
.band__h { font-size: 32px; color: var(--surface); max-width: 22ch; margin: 0; }
.band__sub { margin: var(--s3) 0 0; color: rgba(255,255,255,.85); max-width: 52ch; }
.band .btn-row { margin-top: 0; }
@media (max-width: 899px) { .band__h { font-size: 26px; } .band__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- 18. Footnotes ---------- */
.footnote { color: var(--brand-accent-hover); text-decoration: none; font-weight: 700;
  padding: 0 2px; }
.footnote:hover { text-decoration: underline; }
.acc__item:target { background: rgba(246,102,8,.06); }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--brand-primary-deep); color: rgba(255,255,255,.82);
  padding-block: var(--s8) var(--s6); font-size: 16px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--s6); }
.footer__brand .logo { margin-bottom: var(--s4); }
.footer__blurb { max-width: 46ch; font-size: 15px; line-height: 1.6; }
.footer__col h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--surface); margin-bottom: var(--s4); }
.footer__col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer__col a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer__col a:hover { color: var(--surface); text-decoration: underline; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.footer__contact .icon { color: var(--brand-accent); margin-top: 2px; }

.legal-block { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid rgba(255,255,255,.18); }
.legal-block__h { font-size: 20px; color: var(--surface); }
.legal-block__note { margin-top: var(--s5); font-size: 13px; color: rgba(255,255,255,.6); }
.acc--legal { border-top-color: rgba(255,255,255,.18); margin-top: var(--s5); }
.acc--legal .acc__item { border-bottom-color: rgba(255,255,255,.18); }
.acc--legal .acc__btn { color: var(--surface); font-size: 16px; min-height: 56px; }
.acc--legal .acc__inner p { color: rgba(255,255,255,.75); font-size: 14px; }
.acc--legal .legal-todo { background: rgba(246,102,8,.14); border-left-color: var(--brand-accent);
  color: #FFC08A; }
.acc--legal .acc__item:target { background: rgba(246,102,8,.12); }

.footer__base { margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap;
  gap: var(--s5); justify-content: space-between; align-items: flex-start; }
.footer__legal { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.6); max-width: 78ch; }
.footer__mini { display: flex; gap: var(--s5); }
.footer__mini a { color: rgba(255,255,255,.82); font-size: 14px; }
@media (max-width: 1023px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- 20. Modal & forms ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center;
  justify-content: center; padding: var(--s5); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16,26,28,.6); }
.modal__box { position: relative; z-index: 2; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--e3); padding: var(--s7); }
.modal__close { position: absolute; top: 12px; right: 12px; background: none; border: 0;
  padding: 10px; color: var(--brand-primary); cursor: pointer; }
.modal__box h2 { font-size: 28px; color: var(--brand-primary); }
.modal__lead { color: var(--ink-muted); }
.modal__alt { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); font-size: 15px; }
.form { margin-top: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field-row { display: flex; gap: var(--s4); }
.field label { font-weight: 600; font-size: 15px; color: var(--brand-primary); }
.field input {
  min-height: 48px; padding: 0 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
}
.field input:focus-visible { border-color: var(--brand-primary); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field__err { margin: 0; font-size: 14px; color: #B42318; }
.form__consent { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.form__success { text-align: center; padding: var(--s5) 0; }
.form__success h2 { margin-bottom: var(--s3); }
@media (max-width: 599px) { .field-row { flex-direction: column; } .modal__box { padding: var(--s5); } }

/* ---------- 21. Legal page template ---------- */
.legal-page { padding-block: var(--section-y); }
.legal-page__inner { display: grid; grid-template-columns: 280px minmax(0, 760px); gap: var(--s8); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.legal-toc__h { font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); }
.legal-toc ul { display: flex; flex-direction: column; gap: var(--s2); }
.legal-toc a { display: block; padding: 6px 0; font-size: 15px; color: var(--brand-primary);
  text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-body h1 { font-size: 40px; color: var(--brand-primary); }
.legal-body { font-size: 19px; line-height: 1.7; }
.legal-body h2 { margin-top: 32px; }
.legal-updated { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 1023px) { .legal-page__inner { grid-template-columns: 1fr; }
  .legal-toc { position: static; } .legal-body h1 { font-size: 32px; } }

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .btn:hover, .plan:hover, .triad__item:hover { transform: none !important; }
}

/* ---------- 23. Print ---------- */
@media print {
  .site-header, .mobile-nav, .sticky-call, .band, .modal, .disclosure-strip { display: none !important; }
  body { font-size: 12pt; }
}
