:root{
  --orange:#F69810; --orange-dark:#D9840C; --orange-tint:#FFF1DD;
  /* v1.202 S-03: text-safe amber ink. Brand fills keep #F69810/#D9840C;
     TEXT that reads as orange on light surfaces uses --orange-ink instead
     (#A34F00 = 5.7:1 on white, vs #D9840C's 2.8:1). */
  --orange-ink:#A34F00;
  --teal:#003841; --teal-deep:#00262C; --teal-raised:#06454F;
  --paper:#F7F8F9; --ink:#0F2226; --ink-soft:#4C6066; --fog:#9FB4B8;
  --line-light:rgba(0,56,65,0.14); --line-dark:rgba(255,255,255,0.14);
  --shadow:0 20px 50px rgba(0,20,24,0.14);

  /* V33 foundation: elevation scale */
  --elev-1:0 1px 3px rgba(0,20,24,0.06);
  --elev-2:0 8px 20px rgba(0,20,24,0.10);
  --elev-3:0 20px 50px rgba(0,20,24,0.14);
  --elev-4:0 30px 70px rgba(0,10,12,0.28);

  /* V33 foundation: motion */
  --dur-fast:120ms; --dur-base:180ms; --dur-slow:280ms;
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in-out:cubic-bezier(.65,0,.35,1);
  /* Cinematic narrative flow (item 13): one consistent easing for reveals,
     hover lifts, parallax and the flow connectors on the restructured
     homepage. Doesn't replace --ease-out/--ease-in-out, used elsewhere. */
  --ease-cinematic:cubic-bezier(.22,.61,.36,1);

  /* V33 foundation: radius scale */
  --radius-sm:6px; --radius-md:10px; --radius-lg:16px;
}
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms!important; transition-duration:.001ms!important; }
}
body{ margin:0; background:var(--paper); color:var(--ink); font-family:'Inter',system-ui,sans-serif; font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4{ font-family:'Satoshi',sans-serif; margin:0; letter-spacing:-0.01em; }
/* M-10: one responsive h2 ramp for every surface that doesn't scope its own
   h2 size (marketing-apple.css mirrors this clamp for the marketing site). */
h2{ font-size:clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); line-height:1.15; }
p{ margin:0; } a{ color:inherit; text-decoration:none; } ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; } img{ max-width:100%; display:block; }
.mono{ font-family:ui-monospace,'Cascadia Mono',Consolas,'Liberation Mono',monospace; }
.container{ max-width:1180px; margin:0 auto; padding:0 32px; }

.eyebrow{ font-family:ui-monospace,'Cascadia Mono',Consolas,'Liberation Mono',monospace; font-size:.72rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--orange-ink); display:flex; align-items:center; gap:10px; }
.eyebrow::before{ content:''; width:18px; height:1px; background:var(--orange-dark); }
.section--dark .eyebrow{ color:var(--orange); }
.section--dark .eyebrow::before{ background:var(--orange); }

.btn{ display:inline-flex; align-items:center; gap:9px; padding:13px 24px; border-radius:4px; font-family:ui-monospace,'Cascadia Mono',Consolas,'Liberation Mono',monospace; font-size:.78rem; font-weight:500; letter-spacing:.05em; text-transform:uppercase; border:1px solid transparent; transition:.2s; white-space:nowrap; }
.btn svg{ width:16px; height:16px; }
.btn--primary{ background:var(--orange); color:#003841; } /* v1.202 S-01: teal ink on orange fill = 5.74:1 vs white's 2.89:1 */
.btn--primary:hover{ background:var(--orange-dark); transform:translateY(-1px); box-shadow:var(--elev-3); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line-light); }
.btn--ghost:hover{ border-color:var(--orange-ink); color:var(--orange-ink); } /* v1.202 S-03: hover text 5.7:1 vs orange-dark's 2.8:1 */
.btn--white{ background:#fff; color:var(--orange-ink); } /* v1.202 S-03 */
.btn--white:hover{ background:var(--orange-tint); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
/* Item 17: button micro-interaction — a soft press on click, transform/opacity
   only, layered on top of whichever .btn--* hover styles already apply. */
.btn--micro{ transition:transform var(--dur-fast) var(--ease-cinematic), background var(--dur-base) var(--ease-cinematic), box-shadow var(--dur-base) var(--ease-cinematic); }
.btn--micro:active{ transform:scale(.97); }

/* ---------- Nav ---------- */
.nav{ position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(0,56,65,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line-dark); }
.nav-inner{ max-width:1180px; margin:0 auto; padding:0 32px; height:66px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.logo img{ height:28px; width:auto; transition:transform .25s ease, filter .25s ease; }
.logo:hover img{ transform:scale(1.05); filter:brightness(1.08); }
@media (prefers-reduced-motion: reduce){ .logo img{ transition:none; } .logo:hover img{ transform:none; filter:none; } }
.nav-links{ display:flex; align-items:center; gap:28px; font-size:.87rem; color:var(--fog); }
.nav-links a{ transition:color .2s; position:relative; white-space:nowrap; }
.nav-links a:hover{ color:#fff; }
/* V36: the nav logo must never be squeezed or distorted when the bar gets
   crowded — it keeps its box, and narrower viewports progressively hide
   the optional right-side items instead (readout, then social icons). */
.nav .logo{ flex-shrink:0; }
.nav .logo img{ width:auto; object-fit:contain; }
/* V36: scroll-spy active section (marketing.js toggles .active) */
.nav-links a.active{ color:#fff; }
.nav-links a.active::after{ content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px; border-radius:2px; background:var(--orange); }
@media (prefers-reduced-motion: reduce){ .nav-links a.active::after{ transition:none; } }
.nav-right{ display:flex; align-items:center; gap:14px; }
.nav-toggle{ display:none; background:none; border:1px solid var(--line-dark); border-radius:3px; width:38px; height:38px; align-items:center; justify-content:center; color:#fff; }
@media (max-width:1320px){
  .nav .readout{ display:none; }
}
@media (max-width:1200px){
  .nav-inner{ gap:14px; }
  .nav-links{ gap:18px; }
  .nav-right{ gap:8px; }
  .nav-right .icon-link{ display:none; }
}
/* V34 Phase 3: animated mobile menu — replaces the old inline-styled
   display:none toggle with a max-height/opacity slide-down. Closed state
   keeps side padding only so the height transition doesn't jump.
   M-07: visibility:hidden while closed takes the ~10 invisible links out of
   the tab order entirely; .open flips visibility immediately (0s, no delay)
   and the closed rule delays its flip by .3s so the slide-up finishes
   before the links become unreachable/unfocusable. */
.mobile-menu{ display:flex; flex-direction:column; background:var(--teal); padding:0 20px; max-height:0; overflow:hidden; opacity:0; transform:translateY(-6px); visibility:hidden; transition:max-height .3s var(--ease-cinematic), opacity .25s ease, transform .3s var(--ease-cinematic), padding .3s var(--ease-cinematic), visibility 0s linear .3s; }
.mobile-menu.open{ max-height:480px; opacity:1; transform:none; padding-bottom:16px; visibility:visible; transition:max-height .3s var(--ease-cinematic), opacity .25s ease, transform .3s var(--ease-cinematic), padding .3s var(--ease-cinematic), visibility 0s; }
.mobile-menu a{ padding:12px 0; border-top:1px solid var(--line-dark); color:#fff; font-size:.92rem; }
.mobile-menu-social{ display:flex; gap:10px; padding:16px 0 4px; border-top:1px solid var(--line-dark); }
@media (prefers-reduced-motion: reduce){ .mobile-menu{ transition:none; } }
@media (max-width:1024px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
}
@media (max-width:640px){
  .nav-inner{ padding:0 16px; gap:10px; }
  .nav-right{ gap:8px; }
}
@media (max-width:480px){
  .nav-right > .icon-link{ display:none; }
}

/* ---------- Sections ---------- */
/* Item 8: tightened to a consistent professional rhythm — ~72px desktop,
   48px mobile — down from the prior 100px/70px, removing excess whitespace
   between the now-longer sequence of homepage sections. */
.section{ padding:72px 0; position:relative; }
.section--dark{ background:var(--teal); color:var(--paper); }
.section--orange{ background:var(--orange); color:#fff; }
@media (max-width:760px){ .section{ padding:48px 0; } .container{ padding:0 20px; } }

/* M-04: +72px of rest space under the hero copy so the collapsed staff FAB
   cluster never sits on the "Serving:" proof line (or scrolled content). */
.hero{ padding:160px 0 144px; }
.hero h1{ font-size:clamp(2rem,4.2vw,3.2rem); line-height:1.12; font-weight:700; margin:18px 0 20px; color:var(--teal); max-width:760px; }
.hero p.lede{ font-size:1.08rem; color:var(--ink-soft); max-width:640px; margin-bottom:30px; }

.directory-board{ border:1px solid var(--line-light); border-radius:8px; overflow:hidden; background:#fff; box-shadow:var(--elev-3); margin-top:40px; }
.directory-row{ display:grid; grid-template-columns:70px 1fr 2fr; gap:24px; align-items:baseline; padding:24px 28px; border-top:1px solid var(--line-light); }
.directory-row:first-child{ border-top:none; }
.directory-num{ color:var(--orange); font-weight:600; }
.directory-name{ font-family:'Satoshi',sans-serif; font-weight:700; color:var(--teal); }
.directory-desc{ font-size:.94rem; color:var(--ink-soft); }
@media (max-width:680px){ .directory-row{ grid-template-columns:1fr; gap:6px; } }

.partner-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:start; margin-top:40px; }
@media (max-width:860px){ .partner-grid{ grid-template-columns:1fr; } }
.partner-card{ border-radius:8px; padding:30px; background:var(--paper); }
.section--dark .partner-card{ background:var(--teal-raised); }
.logo-chip{ display:inline-flex; align-items:center; justify-content:center; background:transparent; border:1px solid var(--line-light); border-radius:8px; padding:14px 18px; margin-bottom:16px; }
.section--dark .logo-chip{ border-color:var(--line-dark); }
.partner-card p{ font-size:.92rem; color:var(--ink-soft); }
.section--dark .partner-card p{ color:var(--fog); }
.partner-stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:20px; padding-top:16px; border-top:1px solid var(--line-light); }
.section--dark .partner-stats{ border-color:var(--line-dark); }
.partner-stats b{ display:block; color:var(--orange); font-size:1.1rem; }
/* v1.217 brand: brand orange fails contrast on light cards (2.1:1) — text-safe amber there */
.section:not(.section--dark) .partner-stats b{ color:var(--orange-ink); }
.partner-stats span{ font-size:.76rem; color:var(--ink-soft); }
.section--dark .partner-stats span{ color:var(--fog); }
.feature-list{ margin-top:24px; display:flex; flex-direction:column; gap:12px; }
.feature-item{ display:flex; gap:10px; font-size:.94rem; align-items:flex-start; }
.feature-item svg{ width:16px; height:16px; color:var(--orange); flex-shrink:0; margin-top:3px; }

.solutions-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-light); border:1px solid var(--line-light); border-radius:8px; overflow:hidden; margin-top:40px; }
.solutions-grid > div{ background:#fff; padding:28px; }
@media (max-width:760px){ .solutions-grid{ grid-template-columns:1fr; } }

.footer{ background:var(--teal-deep); color:var(--fog); padding:64px 0 30px; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:48px; border-bottom:1px solid var(--line-dark); }
.footer-col h4, .footer-col h3{ font-family:ui-monospace,'Cascadia Mono',Consolas,'Liberation Mono',monospace; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:14px; font-weight:500; } /* v1.202 S-08: columns are h3 now (fixes H2→H4 skip); selector widened to keep the look */
.footer-col li{ margin-bottom:9px; font-size:.9rem; }
.footer-col a:hover{ color:var(--orange); }
/* v1.217 brand: footer headings sit on teal-deep — brand orange labels (7.3:1), not the global h3 ink */
.footer .footer-col h3, .footer .footer-col h4{ color:var(--orange); }
.footer-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding-top:24px; font-size:.72rem; }
.footer-social-row{ display:flex; gap:10px; }
address{ font-style:normal; }
@media (max-width:820px){ .footer-top{ grid-template-columns:1fr 1fr; row-gap:32px; } }
@media (max-width:480px){ .footer{ padding:48px 0 24px; } .footer-top{ grid-template-columns:1fr; gap:28px; } .footer-bottom{ flex-direction:column; align-items:flex-start; } }

/* ---------- Forms (wizard, admin, portal share these) ---------- */
.field{ display:block; margin-bottom:18px; }
.field label{ display:block; font-size:.86rem; font-weight:600; color:var(--teal); margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--line-light); border-radius:6px; padding:10px 13px;
  font:inherit; font-size:.94rem; background:#fff; color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(246,152,16,.15); }
.field textarea{ min-height:90px; resize:vertical; }
.field-help{ font-size:.78rem; color:var(--ink-soft); margin-top:4px; display:block; }
.field-error{ font-size:.78rem; color:#c0392b; margin-top:4px; display:block; }
.error-box{ background:#fdecea; color:#c0392b; padding:10px 14px; border-radius:6px; font-size:.88rem; margin-bottom:16px; }
.toggle-row{ display:flex; align-items:center; justify-content:space-between; border:1px solid var(--line-light); border-radius:6px; padding:11px 14px; margin-bottom:18px; background:#fff; }
.toggle-row span{ font-size:.9rem; font-weight:600; color:var(--teal); }
.switch{ position:relative; width:42px; height:24px; border-radius:99px; background:var(--line-light); border:none; cursor:pointer; }
.switch[aria-checked="true"]{ background:var(--orange); }
.switch::after{ content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#fff; transition:transform .2s; }
.switch[aria-checked="true"]::after{ transform:translateX(18px); }
/* M-09: invisible hit-slop pad takes the 42x24 toggle's touch target to >=44px. */
.switch::before{ content:''; position:absolute; inset:-10px; }
.chip-group{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ border:1px solid var(--line-light); border-radius:99px; padding:7px 14px; font-size:.88rem; background:#fff; cursor:pointer; transition:.15s; }
.chip.active{ border-color:var(--orange); background:var(--orange-tint); color:var(--orange-dark); }

/* ---------- Card grids used in admin/portal ---------- */
.card{ background:#fff; border:1px solid var(--line-light); border-radius:8px; padding:20px; }

/* V34 Phase 4: branded empty state (shared by admin + portal) */
.empty-state{ text-align:center; padding:44px 20px; color:var(--ink-soft); }
.empty-state-icon{ width:52px; height:52px; margin:0 auto 14px; border-radius:12px; background:var(--orange-tint); color:var(--orange-dark); display:flex; align-items:center; justify-content:center; font-size:1.4rem; }
.empty-state h3{ font-size:1rem; color:var(--teal); margin-bottom:6px; }
.empty-state p{ font-size:.88rem; max-width:380px; margin:0 auto; }
.badge{ display:inline-flex; align-items:center; border-radius:99px; padding:3px 10px; font-size:.72rem; font-weight:600; font-family:ui-monospace,'Cascadia Mono',Consolas,'Liberation Mono',monospace; text-transform:uppercase; }
.badge-high{ background:#fdecea; color:#c0392b; }
.badge-medium{ background:#fef6e0; color:#b8860b; }
.badge-low{ background:#eef1f1; color:var(--ink-soft); }

/* ---------- V41: contract document typography (shared by the admin
   contract page and the public sign.php page) ---------- */
.contract-document{ max-width:760px; margin:0 auto; padding:8px 6px 16px; font-family:Georgia,'Times New Roman',serif; font-size:.95rem; line-height:1.65; color:#1a2b30; }
.contract-document h3{ font-family:inherit; text-align:center; letter-spacing:.12em; font-size:1.25rem; margin:6px 0 2px; text-transform:uppercase; }
.contract-document .doc-ref{ text-align:center; color:#5c6f75; font-size:.82rem; border-bottom:2px solid var(--teal,#003841); padding-bottom:14px; margin-bottom:18px; }
.contract-document h4{ font-size:1rem; color:var(--teal,#003841); border-bottom:1px solid #dbe4e6; padding-bottom:4px; margin:26px 0 10px; }
.contract-document p{ margin:0 0 12px; }
.contract-document ul{ margin:0 0 12px 22px; }
.contract-document li{ margin-bottom:6px; }
.contract-document .sig-line{ font-size:.9rem; }
.contract-document .contract-value{ border-top:2px solid var(--orange,#F69810); margin-top:22px; padding-top:12px; font-size:1rem; }

/* v1.231 CANCEL-1: the hidden attribute always wins. Pop-ups that hide with
   `hidden` but carry an inline display:flex were showing on page load and
   their Cancel (which sets hidden) changed nothing. */
[hidden]{ display:none !important; }
