/* ============================================================
   SURE: shared design system (tokens, type, buttons, nav, footer)
   Linked by every page. Page-specific layout stays in each file's
   own <style>. See SURE_FIGMA_PROCESS.md / SURE_DESIGN_SYSTEM.md.
   ============================================================ */
:root{
  /* Surfaces */
  --dark:#161617;
  --dark-card:#202021;
  --surface:#f6f6f6;
  --cream:#fff4da;
  --page:#ffffff;
  /* Warm whites on dark */
  --warm-white:#fffdf7;
  --warm-white-2:#fffbf0;
  /* Accent */
  --gold:#ffdd78;
  --gold-ink:#161617;
  --gold-label:#b5811c;
  --gold-deep:#8b6b05;
  --gold-card:#cd9315;
  --pink-card:#f4d5ee;
  --green-deep:#0F9439;
  --red:#a53232;
  --red-line:#f16868;
  --red-dot:#a63d3d;
  --red-soft:#f05959;
  /* Ink on light */
  --ink:#0f172a;
  --ink-2:#475569;
  --ink-3:#1e293b;
  --ink-deep:#2a0f2a;
  --line:#e2e8f0;
  --muted:#64748b;
  /* Type */
  --serif:'Besley',Georgia,'Times New Roman',serif;
  --sans:Inter,-apple-system,'Segoe UI',Arial,sans-serif;
  /* Layout */
  --content:966px;
  --gutter:clamp(20px,5vw,200px);
  /* Shadows */
  --sh-btn:0 4px 4px rgba(15,23,42,.02),0 1px 1px rgba(15,23,42,.04);
  --sh-card:0 1px 2px rgba(0,0,0,.05);
  --sh-float:0 43px 70.8px rgba(0,0,0,.07),0 7px 11.8px rgba(0,0,0,.04);
  --sh-input:0 18px 37.5px rgba(0,0,0,.01),0 2px 9.7px rgba(0,0,0,.08);
  --sh-text:0 2px 8px rgba(0,0,0,.15);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
/* Horizontal containment belongs on the root only. Setting overflow-x on <body>
   as well makes <body> its own scrollport, and support.js then injects
   `html,body{height:100%}` for its standalone-canvas runtime, and the two together
   turn <body> into a fixed-height nested scroller, so the document itself is
   only ever one viewport tall. On phones that is the whole ballgame: iOS never
   collapses the URL bar, momentum/rubber-band scrolling goes, and every
   position:sticky scene resolves against a scrollport that never moves.
   Clip at the root, keep the document as the one scroller, and override the
   injected height (no !important there, so this wins). */
html{overflow-x:hidden;}
html,body{height:auto!important;}
body{margin:0;background:var(--page);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;}
a{color:inherit;}
img{max-width:100%;display:block;}

/* ---------- Layout ---------- */
.wrap{width:min(var(--content),100% - var(--gutter)*2);margin-inline:auto;}
/* Anchor targets clear the 93px sticky nav instead of landing underneath it. */
[id]{scroll-margin-top:109px;}
.wrap--wide{width:min(1440px,100% - var(--gutter)*2);margin-inline:auto;}

/* ---------- Type scale ---------- */
.h1{font-family:var(--serif);font-weight:600;font-size:clamp(32px,2.2vw + 18px,48px);line-height:1.084;letter-spacing:-0.01em;margin:0;}
.h2{font-family:var(--serif);font-weight:600;font-size:clamp(24px,1.4vw + 14px,32px);line-height:1.25;letter-spacing:-0.02em;margin:0;}
.h2-tight{font-family:var(--serif);font-weight:600;font-size:clamp(24px,1.4vw + 14px,32px);line-height:1.084;letter-spacing:-0.01em;margin:0;}
.h3{font-family:var(--serif);font-weight:700;font-size:24px;line-height:1.1;letter-spacing:-0.02em;margin:0;}
.eyebrow{font-size:12px;font-weight:600;line-height:1.25;letter-spacing:0.1em;text-transform:uppercase;color:var(--gold-label);margin:0;}
.body-lg{font-size:clamp(16px,.4vw + 14px,18px);font-weight:500;line-height:1.3;letter-spacing:-0.02em;margin:0;}
.body{font-size:16px;font-weight:400;line-height:1.3;margin:0;}
.body-sm{font-size:14px;font-weight:400;line-height:1.3;margin:0;}

/* ---------- Buttons. shadcn-style: compact, flat, no shadow ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 20px;
  border-radius:8px;font-size:14px;font-weight:500;text-decoration:none;border:1px solid transparent;cursor:pointer;
  font-family:inherit;line-height:1;white-space:nowrap;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .1s ease;}
.btn:hover{text-decoration:none;}
.btn:active{transform:scale(.98);}
.btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.btn--gold{background:var(--gold);color:var(--gold-ink);}
.btn--gold:hover{background:color-mix(in srgb,var(--gold) 88%,#000);}
.btn--ghost{background:transparent;color:var(--warm-white);border-color:rgba(255,255,255,.18);}
.btn--ghost:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.28);}
.btn--outline{background:transparent;color:var(--ink);border-color:var(--line);}
.btn--outline:hover{background:var(--surface);}
.btn--sm{height:34px;border-radius:7px;padding:0 14px;font-size:13px;}
.btn--lg{height:44px;padding:0 28px;font-size:15px;}

/* ---------- Nav ---------- */
.nav{position:sticky;top:0;z-index:50;background:var(--dark);height:93px;display:flex;align-items:center;}
.nav__inner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:36px;}
.nav__brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none;}
.logo-mark{height:27px;width:auto;display:block;flex:none;}
/* Links cluster on the right, flush against the CTA; the brand holds the left edge. */
.nav__links{display:flex;align-items:center;gap:32px;margin-left:auto;}
.nav__links a{font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap;color:rgba(255,251,240,.74);transition:color .15s ease;}
.nav__links a:hover{color:var(--warm-white);}
.nav__links a.is-active{color:var(--warm-white);}
/* Hover underline: a 1px rule that grows out from the left, in the link's own colour. */
.nav__links a{position:relative;}
.nav__links a::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:currentColor;border-radius:1px;transform:scaleX(0);transform-origin:left;
  transition:transform .25s ease;}
.nav__links a:hover::after,.nav__links a:focus-visible::after{transform:scaleX(1);}
.nav__cta{display:flex;align-items:center;gap:24px;flex:none;}
/* Mobile menu: checkbox-driven, no JS needed. The checkbox sits
   between .nav__brand and .nav__links so the sibling combinator below
   can reach .nav__links from it; .nav__burger triggers it via `for`. */
.nav__toggle{position:absolute;opacity:0;pointer-events:none;}
.nav__burger{display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;
  width:44px;height:44px;cursor:pointer;flex:none;}
.nav__burger span{display:block;width:20px;height:2px;background:var(--warm-white);border-radius:2px;
  transition:transform .2s ease,opacity .2s ease;}
@media (max-width:900px){
  .nav__inner{gap:16px;}
  /* CTA sits to the left of the burger, which holds the right edge. Flex
     `order` does the visual swap so the DOM keeps the checkbox ahead of
     .nav__links, which is what the sibling combinators below depend on. */
  .nav__cta{order:2;margin-left:auto;}
  .nav__burger{order:3;display:flex;position:relative;z-index:20;}
  /* Full-screen overlay. The sheet and the burger both live inside .nav, so
     they share its stacking context; the burger only needs the higher
     z-index to stay visible and clickable (as the X) on top of the sheet. */
  .nav__links{display:none;position:fixed;inset:0;z-index:10;margin-left:0;flex-direction:column;
    align-items:stretch;justify-content:flex-start;gap:0;background:var(--dark);
    padding:101px var(--gutter) 48px;overflow-y:auto;}
  .nav__links a{padding:14px 0;font-size:clamp(24px,6vw,32px);font-weight:600;
    letter-spacing:-0.02em;color:var(--warm-white);}
  .nav__links a.is-active{color:var(--gold);}
  .nav__links a::after{display:none;}
  .nav__toggle:checked ~ .nav__links{display:flex;}
  .nav__toggle:checked ~ .nav__burger span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav__toggle:checked ~ .nav__burger span:nth-child(2){opacity:0;}
  .nav__toggle:checked ~ .nav__burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  /* Scroll lock behind the overlay (progressive enhancement). The document is
     the scroller, so the lock has to land on <html>; body alone would only
     make body a clipping scrollport and leave the page scrolling behind. */
  html:has(.nav__toggle:checked),body:has(.nav__toggle:checked){overflow:hidden;}
}

/* ---------- Page hero (dark, for interior pages) ---------- */
/* Background is full-bleed dark; the .wrap inside it aligns text to the exact
   same 966px column every section below uses, so the hero doesn't drift from
   the page's grid at wide viewports the way a bare gutter-padded section would. */
.page-hero{background:var(--dark);padding-block:clamp(64px,9vw,120px) clamp(56px,7vw,96px);}
.page-hero__eyebrow{color:var(--gold);}
.page-hero .h1{color:var(--warm-white);text-shadow:var(--sh-text);margin-top:14px;max-width:22ch;}
.page-hero p.body-lg{color:var(--warm-white-2);opacity:.8;margin-top:22px;max-width:60ch;}

/* ---------- Generic section rhythm ---------- */
.sec{padding-block:clamp(64px,9vw,117px);}
.sec__head{display:flex;flex-direction:column;gap:12px;max-width:560px;}
.sec__head--center{margin-inline:auto;text-align:center;max-width:568px;}
.band{background:var(--surface);}

/* ---------- Numbered step / timeline pattern (Pilot, etc.) ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.step{padding-top:22px;border-top:2px solid var(--gold-label);}
.step__num{font-size:12px;font-weight:600;color:var(--gold-label);}
@media (max-width:768px){.steps{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){.steps{grid-template-columns:1fr;}}


/* ---------- Footer ----------
   Logo + links on one row, hairline divider, tagline below. Same rules as
   css/docs.css's footer (the base.css pages), so every page's footer matches. */
.foot{background:var(--dark);color:var(--warm-white);padding:64px 0 40px;margin-top:clamp(64px,9vw,117px);}
.foot__inner{display:flex;flex-direction:column;gap:32px;}
.foot__row{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;width:100%;}
.foot__divider{height:1px;background:rgba(255,255,255,.08);border:0;margin:0;}
.foot__tag{margin:0;font-size:13px;letter-spacing:-0.01em;color:rgba(255,251,240,.4);}
.foot__links{display:flex;gap:32px;font-size:13px;font-weight:500;letter-spacing:-0.01em;}
.foot__links a{color:rgba(255,251,240,.6);text-decoration:none;transition:color .3s cubic-bezier(.4,0,.6,1);}
.foot__links a:hover,.foot__links a:focus-visible{color:var(--warm-white);}

/* ---------- Shared modal / form field ---------- */
.modal{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.55);}
.modal__box{width:min(460px,94vw);background:var(--page);border-radius:16px;padding:40px;position:relative;}
.modal__x{position:absolute;top:14px;right:14px;border:0;background:none;color:var(--muted);font-size:20px;cursor:pointer;font-family:inherit;}
.field{display:grid;gap:6px;font-size:12px;font-weight:600;color:var(--ink-2);}
.field input,.field textarea,.field select{font-family:inherit;font-size:15px;padding:12px 14px;border:1px solid var(--line);
  border-radius:10px;background:var(--page);color:var(--ink);outline-color:var(--gold-label);}

/* ---------- Motion ---------- */
@keyframes wave-pulse{0%,100%{transform:scaleY(.2)}50%{transform:scaleY(1)}}
@keyframes rec-pulse{0%{box-shadow:0 0 0 0 rgba(240,89,89,.45)}100%{box-shadow:0 0 0 14px transparent}}
@keyframes dot-pulse{0%,100%{opacity:.55}50%{opacity:1}}
@keyframes flow-dash{to{stroke-dashoffset:-26px}}
