/* ==========================================================================
   UNSTACK — main.css
   Motion language: "Messy → Ordered"
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy-900: #081426;
  --navy-800: #0C1E38;
  --navy-700: #13294A;
  --navy-500: #2A4570;
  --paper: #F5F3EE;
  --paper-2: #ECE8E0;
  --ink: #0B1424;
  --mist: #9AA8BF;
  --orange: #FF7A2F;
  --green: #1DB56C;
  --amber: #F5B400;
  --red: #E5484D;

  /* Derived (AA-safe text tints) */
  --orange-ink: #B0450A;     /* orange text on paper */
  --ink-2: #4A5568;          /* muted text on paper */
  --green-ink: #0F7A47;
  --amber-ink: #8A6500;
  --red-ink: #B42328;
  --green-soft: #5FE3A1;
  --amber-soft: #FFD25C;
  --red-soft: #FF8A8E;
  --gray: #6B7A92;
  --line-dark: rgba(154, 168, 191, 0.16);
  --line-light: rgba(11, 20, 36, 0.10);

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: 16px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-light: 0 1px 1px rgba(11,20,36,.04), 0 4px 10px rgba(11,20,36,.05), 0 18px 40px -12px rgba(11,20,36,.14);
  --shadow-deep: 0 30px 80px -20px rgba(0,0,0,.6), 0 12px 30px -10px rgba(0,0,0,.45);
  --hl-dark: inset 0 1px 0 rgba(255,255,255,.06);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: #fff;
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
i, em { font-style: normal; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.light :focus-visible, .pilot :focus-visible { outline-color: var(--navy-900); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 2000;
  background: var(--orange); color: var(--navy-900); font-weight: 600;
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Section skins ---------- */
section { position: relative; }
.dark { background: var(--navy-800); color: #fff; }
.hero.dark, .final.dark, .footer { background: var(--navy-900); }
.light { background: var(--paper); color: var(--ink); }

/* Drifting ledger grid (transform-only animation) */
.grid-bg { overflow: hidden; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: -80px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42,69,112,.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42,69,112,.15) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridDrift 24s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
}
@keyframes gridDrift { to { transform: translate3d(40px, 40px, 0); } }

/* Paper grain */
.paper { isolation: isolate; }
.paper::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient warm light drifting on paper sections */
.paper::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  left: -10%; top: 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,47,.07), transparent 60%);
  animation: paperDrift 18s ease-in-out infinite alternate;
}
@keyframes paperDrift { to { transform: translate3d(40vw, 20%, 0) scale(1.15); } }
.paper { overflow: hidden; }

/* Optional photography layer (CONFIG.images) */
.img-layer { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.img-layer.is-loaded { opacity: .18; }
.light .img-layer.is-loaded { opacity: .12; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--orange); margin-bottom: 18px;
}
.eyebrow--mono { font-family: var(--font-mono); }
.eyebrow--ink { color: var(--orange-ink); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: .98; letter-spacing: -.035em;
}
.section-sub { margin-top: 20px; color: var(--mist); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 560px; }
.light .section-sub { color: var(--ink-2); }

.demo-label, .demo-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mist);
}
.demo-label {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  padding: 4px 9px; border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(8,20,38,.6);
}
.demo-label--sm { font-size: 10px; top: 10px; right: 10px; }
.demo-tag { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border: 1px solid var(--line-dark); border-radius: 999px; }
.demo-tag--ink { color: var(--ink-2); border-color: var(--line-light); margin: 20px 0 0; }

/* Word splitter */
.w { display: inline-block; white-space: nowrap; }
.wi { display: inline-block; will-change: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .3s;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--xl { min-height: 72px; padding: 0 44px; font-size: 20px; }
.btn--primary {
  background: var(--orange); color: var(--navy-900);
  box-shadow: 0 10px 30px -10px rgba(255,122,47,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover { background: #FF8C4A; box-shadow: 0 14px 40px -10px rgba(255,122,47,.85), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--ghost { color: #fff; border: 1px solid rgba(154,168,191,.35); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--navy { background: var(--navy-900); color: #fff; box-shadow: 0 14px 34px -12px rgba(8,20,38,.6); }
.btn--navy:hover { background: var(--navy-700); }
.magnetic { will-change: auto; }

/* ---------- Logo bits ---------- */
.logo-icon { width: 34px; height: 34px; color: var(--navy-800); }
.logo-icon--light { color: #fff; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.02em; line-height: 1; }

/* ---------- Pills & dots ---------- */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gray); flex: none; }
.dot--green { background: var(--green); box-shadow: 0 0 0 3px rgba(29,181,108,.18); }
.dot--amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,180,0,.18); }
.dot--red { background: var(--red); box-shadow: 0 0 0 3px rgba(229,72,77,.2); }
.dot--gray { background: var(--gray); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent;
}
.pill--green { color: var(--green-soft); background: rgba(29,181,108,.14); border-color: rgba(29,181,108,.3); }
.pill--amber { color: var(--amber-soft); background: rgba(245,180,0,.12); border-color: rgba(245,180,0,.3); }
.pill--red { color: var(--red-soft); background: rgba(229,72,77,.14); border-color: rgba(229,72,77,.35); }
.pill--gray { color: #B7C2D4; background: rgba(154,168,191,.1); border-color: rgba(154,168,191,.2); }
.light .pill--green { color: var(--green-ink); background: rgba(29,181,108,.12); }
.light .pill--amber { color: var(--amber-ink); background: rgba(245,180,0,.16); }

/* Cards on dark */
.card-dark {
  position: relative; background: linear-gradient(180deg, rgba(19,41,74,.92), rgba(12,30,56,.92));
  border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: var(--hl-dark), var(--shadow-deep);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1500;
  background: var(--navy-900);
  /* Failsafe: never trap the page if JS fails mid-way. */
  animation: plFailsafe .4s 5s forwards;
}
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; } }
.preloader.is-done { display: none; }
.preloader__stage { position: relative; width: 340px; height: 200px; }
.pl-papers { position: absolute; inset: 0; }
.pl-paper {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 98px; margin: -49px 0 0 -38px;
  background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  background-image: repeating-linear-gradient(to bottom, transparent 0 14px, #E3E6EC 14px 15.5px);
  background-size: 72% 70%; background-position: 50% 70%; background-repeat: no-repeat;
  opacity: 0;
}
.pl-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; }
.pl-icon { width: 92px; height: 92px; overflow: visible; }
.pl-icon path[id^="chev"] { fill: #fff; opacity: 0; }
.pl-icon #check { fill: none; stroke: var(--orange); stroke-width: 11.5; stroke-miterlimit: 10; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pl-word { font-family: var(--font-display); font-weight: 800; font-size: 50px; letter-spacing: -.02em; line-height: 1; color: #fff; display: inline-flex; }
.pl-word .ch { display: inline-block; opacity: 0; }

/* ==========================================================================
   SCROLL PROGRESS + CURSOR
   ========================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { display: none; }
@media (pointer: fine) and (hover: hover) {
  .js:not(.reduced-motion) .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 1600; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; }
  .cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--orange); }
  .cursor__ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(255,122,47,.55); transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .3s, border-color .3s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,122,47,.1); border-color: rgba(255,122,47,.8); }
  .cursor.is-visible .cursor__dot, .cursor.is-visible .cursor__ring { opacity: 1; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: transform .45s var(--ease-out), background-color .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; gap: 24px;
}
.nav.is-scrolled {
  background: rgba(12,30,56,.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(154,168,191,.12);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.nav__links { display: none; margin: 0 auto; gap: 34px; font-size: 15px; color: #D5DCE8; }
.nav__links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s var(--ease-out); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__cta { display: none; }
.nav__burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border-radius: 12px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease-out); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 990; background: var(--navy-900);
  display: flex; align-items: center; padding: 100px var(--gutter) 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 10vw, 3.2rem); letter-spacing: -.03em; line-height: 1.15; }
.mobile-menu .btn { margin-top: 26px; align-self: flex-start; }
.mobile-menu nav > * { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.mobile-menu.is-open nav > * { opacity: 1; transform: none; }
.mobile-menu.is-open nav > *:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav > *:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav > *:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open nav > *:nth-child(5) { transition-delay: .2s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { min-height: 100vh; min-height: 100svh; padding: 120px 0 72px; display: flex; align-items: center; }
.hero__glow {
  position: absolute; z-index: -1; width: 900px; height: 900px; right: -220px; top: 50%; margin-top: -450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,47,.22) 0%, rgba(255,122,47,.07) 35%, transparent 65%);
  animation: glowBreathe 7s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glowBreathe { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 45fr 55fr; gap: 40px; } }
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 8vw, 7.5rem); line-height: .95; letter-spacing: -.035em;
  margin-bottom: 26px;
}
@media (min-width: 1024px) { .hero__title { font-size: clamp(3rem, 6.6vw, 7.5rem); } }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #C9D2E0; max-width: 520px; line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__micro { margin-top: 18px; font-size: 14px; color: var(--mist); }
.hero__micro { position: relative; padding-left: 20px; }
.hero__micro::before, .hero__micro::after { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--orange); }
.hero__micro::after { background: rgba(255,122,47,.45); animation: dotPing 2.4s var(--ease-out) infinite; }
@keyframes dotPing { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* ---------- The AP Desk ---------- */
.desk {
  position: relative; width: 100%; aspect-ratio: 640 / 520;
  border-radius: 28px; border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(19,41,74,.7), rgba(8,20,38,.65));
  box-shadow: var(--hl-dark), var(--shadow-deep);
  overflow: hidden; contain: layout paint;
}
.desk::before { /* desk felt */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.035), transparent 60%);
}
.desk__stage { position: absolute; left: 0; top: 0; width: 640px; height: 520px; transform-origin: 0 0; transform: scale(var(--s, 1)); }
.js .desk__static { display: none; }
.desk__static { position: absolute; inset: 0; padding: 60px 40px; display: flex; flex-direction: column; gap: 22px; }
.d-ledger, .d-tray {
  position: absolute; border-radius: 14px; border: 1px solid var(--line-dark);
  background: rgba(8,20,38,.6); box-shadow: var(--hl-dark);
}
.desk__static .d-ledger { position: relative; width: 100%; padding-bottom: 8px; }
.d-panel-head {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist);
  border-bottom: 1px solid var(--line-dark);
}
.d-panel-head .mono { font-size: 15px; color: #fff; letter-spacing: 0; }
.d-panel-head .d-tag { color: var(--green-soft); }
.d-tray .d-panel-head .d-tag { color: var(--amber-soft); }
.d-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 22px; padding: 0 14px;
  font-size: 11.5px; color: #D5DCE8; white-space: nowrap;
}
.d-row .mono { font-size: 11px; color: #fff; }
.d-row__ok { color: var(--green); width: 12px; height: 12px; flex: none; }
.d-row__name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.d-row--live { opacity: 0; }
.d-chip, .d-summary {
  align-self: flex-start; padding: 9px 16px; border-radius: 999px; font-family: var(--font-mono); font-size: 12.5px;
  background: rgba(8,20,38,.85); border: 1px solid rgba(255,122,47,.45); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  white-space: nowrap;
}

.d-card {
  position: absolute; left: 0; top: 0; width: 196px; height: 110px; padding: 11px 13px;
  background: #FBFAF7; color: var(--ink); border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 12px 28px -6px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 2px; will-change: transform;
}
.d-card__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 9.5px; color: #66728A; }
.d-src { padding: 1px 6px; border-radius: 4px; background: var(--paper-2); color: #4A5568; letter-spacing: .06em; font-size: 8.5px; }
.d-card__name { font-weight: 600; font-size: 12.5px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-card__amt { font-family: var(--font-mono); font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.d-card__lines { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.d-card__lines i { display: block; height: 3px; border-radius: 2px; background: #E4E1DA; }
.d-card__lines i:nth-child(2) { width: 70%; }
.d-stamp {
  position: absolute; right: 10px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 5px; border: 1.5px solid currentColor;
  font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.9); transform: rotate(-6deg); opacity: 0;
}
.d-stamp svg { width: 11px; height: 11px; }
.d-stamp--g { color: var(--green-ink); }
.d-stamp--a { color: var(--amber-ink); }
.d-stamp--r { color: var(--red-ink); }
.d-beam {
  position: absolute; left: 10px; width: 340px; height: 2px; top: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--orange) 15%, #FFB27F 50%, var(--orange) 85%, transparent);
  box-shadow: 0 0 18px 4px rgba(255,122,47,.55), 0 0 60px 10px rgba(255,122,47,.18);
}
.d-beam::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 46px; background: linear-gradient(to top, rgba(255,122,47,.16), transparent); }
.d-bubble {
  position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--navy-700); border: 1px solid rgba(255,122,47,.45); color: #fff; font-size: 11.5px; white-space: nowrap;
  box-shadow: 0 14px 30px -8px rgba(0,0,0,.6); opacity: 0;
}
.d-bubble b { font-weight: 600; }
.d-bubble__sent { color: var(--orange); font-family: var(--font-mono); font-size: 10.5px; }
.d-plane { position: absolute; width: 18px; height: 18px; color: var(--orange); opacity: 0; }
.d-hdr { position: absolute; left: 22px; top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); display: flex; align-items: center; gap: 8px; }
.d-hdr i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,47,.2); }

/* ==========================================================================
   INTRO VIDEO
   ========================================================================== */
.intro { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); background: linear-gradient(var(--navy-900), var(--navy-800)); }
.intro__title { text-align: center; margin-bottom: 28px; }
.intro__perspective { perspective: 1400px; }
.intro__frame {
  position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(154,168,191,.2); background: var(--navy-900); box-shadow: var(--hl-dark), 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.3);
  transform-origin: 50% 100%;
}
.intro__fallback, .intro__video-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.intro__fallback {
  background: radial-gradient(ellipse at 50% 55%, rgba(255,122,47,.16), transparent 55%), linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.intro__grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(to right, rgba(42,69,112,.25) 1px, transparent 1px), linear-gradient(to bottom, rgba(42,69,112,.25) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse, #000 20%, transparent 70%); }
.intro__logo { position: absolute; width: clamp(140px, 22vw, 260px); opacity: .14; overflow: visible; }
.intro__logo .ic-chev { fill: #fff; }
.intro__logo .ic-check { fill: none; stroke: var(--orange); stroke-width: 11.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.play {
  position: relative; z-index: 2; width: clamp(76px, 10vw, 112px); aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); color: var(--navy-900); display: grid; place-items: center;
  box-shadow: 0 20px 50px -10px rgba(255,122,47,.7); transition: transform .5s var(--ease-spring);
}
.play svg { width: 36%; margin-left: 6%; }
.play__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: ringPulse 2.6s var(--ease-out) infinite; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.intro__fallback:hover .play, .intro__video-wrap:hover .play { transform: scale(1.08); }
.intro__soon { position: absolute; z-index: 2; bottom: clamp(18px, 4vw, 40px); left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.intro__playbtn { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent, rgba(8,20,38,.35)); }

/* ==========================================================================
   PROBLEM
   ========================================================================== */
.problem { padding: 0; }
.problem__pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; }
.problem__vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(229,72,77,.32) 100%); z-index: 0; }
.problem__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .problem__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.problem__steps { display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.problem__step {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.04; letter-spacing: -.03em;
}
.js:not(.reduced-motion) .problem__steps { display: grid; }
.js:not(.reduced-motion) .problem__step { grid-area: 1 / 1; opacity: 0; }
.js:not(.reduced-motion) .problem__step:first-child { opacity: 1; }
.again { position: relative; display: inline-block; color: #fff; }
.again::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .09em; background: var(--red); border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--u, 1)); }
.js:not(.reduced-motion) .again::after { transform: scaleX(var(--u, 0)); }
.problem__ticks { display: none; gap: 8px; margin-top: 32px; }
.js:not(.reduced-motion) .problem__ticks { display: flex; }
.problem__ticks span { width: 36px; height: 3px; border-radius: 3px; background: rgba(154,168,191,.25); overflow: hidden; position: relative; }
.problem__ticks span::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

.problem__visual { position: relative; }
.pv-counter { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.pv-counter__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.pv-counter__num { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: #fff; }
.pv-counter__num.is-red .pv-amount { color: var(--red-soft); }
.pv-amount { display: inline-block; }
.pv-out { color: var(--mist); font-size: .5em; letter-spacing: 0; }
.pv-stack { position: relative; min-height: 300px; display: flex; flex-direction: column; gap: 16px; }
.js:not(.reduced-motion) .pv-stack { display: block; height: 380px; }
.pv-card {
  position: relative; width: min(380px, 100%); padding: 18px 20px; border-radius: 16px;
  background: #FBFAF7; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.3);
}
.js:not(.reduced-motion) .pv-card { position: absolute; left: 0; top: 0; }
.js:not(.reduced-motion) .pv-supplier { left: auto; right: 0; top: 120px; }
.js:not(.reduced-motion) .pv-lien { left: 4%; top: 262px; }
.pv-card__top { display: flex; justify-content: space-between; font-size: 11px; color: #66728A; letter-spacing: .04em; }
.pv-card__from { font-weight: 600; margin-top: 10px; font-size: 15px; }
.pv-card__amt { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin-top: 2px; }
.pv-card__lines { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.pv-card__lines i { height: 4px; background: #E4E1DA; border-radius: 2px; }
.pv-card__lines i:nth-child(2) { width: 78%; } .pv-card__lines i:nth-child(3) { width: 52%; }
.pv-stamp {
  position: absolute; right: 18px; top: 52px; padding: 5px 12px; border-radius: 6px; border: 2px solid currentColor;
  font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-8deg);
}
.pv-stamp--approved { color: var(--navy-500); right: 18px; top: auto; bottom: 16px; transform: rotate(4deg); font-size: 11px; }
.pv-stamp--paid { color: var(--navy-800); background: rgba(255,255,255,.7); }
.pv-supplier { border: 2px solid transparent; transition: border-color .3s; }
.pv-supplier.is-red { border-color: var(--red); box-shadow: 0 30px 60px -20px rgba(229,72,77,.5), 0 2px 8px rgba(0,0,0,.3); }
.pv-status { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); background: rgba(229,72,77,.12); }
.pv-lien { background: var(--red); color: #fff; width: min(300px, 90%); }
.pv-lien__title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.pv-lien__sub { font-weight: 600; margin-top: 6px; font-size: 14.5px; }
.pv-lien .pv-card__amt { color: #fff; font-size: 24px; }

.problem__final { padding-bottom: clamp(100px, 14vw, 180px); padding-top: 20px; }
.problem__punch { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.035em; max-width: 1000px; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how { padding: clamp(90px, 11vw, 150px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.how__head { margin-bottom: 48px; }
.how__progress { display: none; }
.how__viewport { width: 100%; }
.how__track { display: grid; gap: 22px; padding: 0 var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.step {
  position: relative; display: grid; gap: 26px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius);
  background: #FFFDF8; border: 1px solid var(--line-light); box-shadow: var(--shadow-light);
}
.step__num { font-size: 15px; color: var(--orange-ink); font-weight: 500; letter-spacing: .06em; }
.step__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 12px; }
.step__copy { color: var(--ink-2); font-size: 17px; max-width: 400px; }
.step__viz {
  position: relative; height: 260px; border-radius: 18px; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line-light);
  background-image: linear-gradient(to right, rgba(11,20,36,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(11,20,36,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Desktop: pinned horizontal track */
@media (min-width: 1024px) {
  .js:not(.reduced-motion) .how { padding: 0; }
  .js:not(.reduced-motion) .how__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
  .js:not(.reduced-motion) .how__head { margin-bottom: 36px; }
  .js:not(.reduced-motion) .how__progress { display: block; position: relative; max-width: var(--max); width: calc(100% - var(--gutter) * 2); margin: 0 auto 28px; height: 3px; border-radius: 3px; background: rgba(11,20,36,.08); overflow: hidden; }
  .js:not(.reduced-motion) .how__progress span { position: absolute; inset: 0; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
  .js:not(.reduced-motion) .how__track { display: flex; gap: 28px; width: max-content; max-width: none; margin: 0; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: 12vw; }
  .js:not(.reduced-motion) .step { width: min(68vw, 860px); grid-template-columns: .9fr 1.1fr; align-items: center; min-height: min(58vh, 480px); }
  .js:not(.reduced-motion) .step__viz { height: 100%; min-height: 300px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .step { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Step 1 — capture */
.viz-capture { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0 22px; gap: 10px; }
.cap__sources { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.cap__src { width: 64px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid var(--line-light); display: grid; place-items: center; align-content: center; gap: 3px; box-shadow: 0 6px 14px -6px rgba(11,20,36,.2); color: var(--navy-800); }
.cap__src svg { width: 22px; height: 22px; }
.cap__src span { font-size: 9px; letter-spacing: .08em; color: var(--ink-2); }
.cap__lanes { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 56px; }
.cap__lanes i { display: block; height: 0; border-top: 1.5px dashed rgba(11,20,36,.18); }
.cap__tray { position: relative; z-index: 2; width: 112px; padding: 12px 10px; border-radius: 16px; background: var(--navy-800); color: #fff; box-shadow: 0 14px 30px -10px rgba(8,20,38,.5); display: flex; flex-direction: column; gap: 8px; }
.cap__tray-label { font-size: 9.5px; letter-spacing: .1em; color: var(--mist); }
.cap__slots { display: flex; flex-direction: column; gap: 5px; }
.cap__slots b { display: block; height: 16px; border-radius: 5px; background: rgba(255,255,255,.92); }
.cap__count { font-size: 11px; color: var(--orange); }
.cap__fly { position: absolute; left: 0; top: 0; width: 40px; height: 26px; border-radius: 5px; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 6px 14px -4px rgba(11,20,36,.3); z-index: 3; opacity: 0; }
.cap__fly::before { content: ""; position: absolute; left: 6px; right: 10px; top: 8px; height: 2px; background: #D9D5CC; box-shadow: 0 5px 0 #D9D5CC; }

/* Step 2 — check */
.viz-check { display: grid; place-items: center; padding: 18px; }
.chk__doc { width: min(100%, 360px); background: #fff; border-radius: 14px; box-shadow: 0 16px 34px -14px rgba(11,20,36,.3); padding: 14px 16px 8px; }
.chk__head { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--line-light); margin-bottom: 4px; }
.chk__head .mono { font-weight: 400; font-size: 11.5px; color: var(--ink-2); }
.chk__line { position: relative; display: grid; grid-template-columns: 1fr auto 20px; gap: 10px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; font-size: 13px; transition: background-color .3s; }
.chk__line .mono { font-size: 12px; }
.tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(29,181,108,.14); color: var(--green-ink); }
.tick svg { width: 11px; height: 11px; }
.tick--amber { background: var(--amber); color: var(--ink); font-family: var(--font-mono); font-weight: 600; font-size: 11px; }
.chk__line--flag { background: rgba(245,180,0,.16); }
.chk__note { grid-column: 1 / -1; font-size: 11px; color: var(--amber-ink); font-weight: 500; }
.chk__line.is-lit { background: rgba(29,181,108,.08); }

/* Step 3 — waiver */
.viz-waiver { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; }
.wv__doc { position: relative; width: 44%; max-width: 170px; aspect-ratio: 3 / 4; background: #fff; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 34px -14px rgba(11,20,36,.35); }
.wv__kicker { font-size: 9px; letter-spacing: .12em; color: var(--ink-2); }
.wv__name { font-weight: 600; font-size: 12px; line-height: 1.25; }
.wv__amt { font-size: 14px; font-weight: 500; }
.wv__doc i { display: block; height: 3px; border-radius: 2px; background: #E4E1DA; }
.wv__doc i:nth-of-type(2) { width: 80%; } .wv__doc i:nth-of-type(3) { width: 60%; }
.wv__sign { margin-top: auto; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 15px; color: var(--navy-500); border-top: 1px solid var(--line-light); padding-top: 4px; }
.wv__stamp {
  position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 8px; border: 2px solid var(--green-ink); color: var(--green-ink); background: rgba(255,255,255,.94);
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-7deg); box-shadow: 0 10px 24px -8px rgba(11,20,36,.3);
}
.wv__stamp svg { width: 14px; height: 14px; }

/* Step 4 — post or chase */
.viz-post { padding: 0; }
.pc__paths { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc__paths path { fill: none; stroke: rgba(11,20,36,.25); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.pc__card { position: absolute; left: 6%; top: 50%; width: 84px; height: 108px; margin-top: -54px; background: #fff; border-radius: 10px; box-shadow: 0 16px 30px -12px rgba(11,20,36,.35); padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; z-index: 2; }
.pc__card span { font-size: 9px; color: var(--ink-2); }
.pc__card b { display: block; height: 3px; background: #E4E1DA; border-radius: 2px; }
.pc__card b + b { width: 70%; }
.pc__ledger, .pc__mail { position: absolute; right: 5%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 13px; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(11,20,36,.35); z-index: 2; }
.pc__ledger { top: 20%; transform: translateY(-50%); background: #fff; }
.pc__ledger .mono { font-size: 12.5px; }
.pc__mail { top: 80%; transform: translateY(-50%); background: var(--navy-800); color: #fff; }
.pc__mail svg { width: 16px; height: 16px; color: var(--orange); }

/* ==========================================================================
   WAIVER TRACKER
   ========================================================================== */
.waivers { padding: clamp(100px, 12vw, 160px) 0; }
.wt { padding: 56px clamp(14px, 2.6vw, 30px) 24px; }
.wt__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; font-size: 13px; color: var(--mist); }
.wt__legend span { display: inline-flex; align-items: center; gap: 7px; }
.wt__table { display: flex; flex-direction: column; }
.wt__row {
  position: relative; display: grid; grid-template-columns: minmax(96px, 1.5fr) repeat(5, minmax(0, 1fr)); align-items: center;
  gap: 6px; padding: 10px 8px; border-radius: 12px; transition: background-color .25s;
}
.wt__row + .wt__row { border-top: 1px solid var(--line-dark); }
.wt__row--head { font-size: 11px; color: var(--mist); letter-spacing: .04em; padding-top: 4px; padding-bottom: 12px; }
.wt__row--head .mono { text-align: center; }
.wt__row:not(.wt__row--head):hover { background: rgba(255,255,255,.04); border-top-color: transparent; }
.wt__sub { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt__row--head .wt__sub { font-weight: 400; font-size: 11px; }
.wcell { display: grid; place-items: center; min-width: 0; }
.wpill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; max-width: 100%;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; border: 1px solid transparent; position: relative;
}
.wpill b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.wpill em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpill--green { color: var(--green-soft); background: rgba(29,181,108,.12); border-color: rgba(29,181,108,.28); }
.wpill--amber { color: var(--amber-soft); background: rgba(245,180,0,.1); border-color: rgba(245,180,0,.3); }
.wpill--red { color: var(--red-soft); background: rgba(229,72,77,.14); border-color: rgba(229,72,77,.4); }
.wpill--gray { color: #A9B5C8; background: rgba(154,168,191,.07); border-color: rgba(154,168,191,.16); }
.wpill__env { position: absolute; left: 50%; top: -6px; width: 18px; height: 18px; margin-left: -9px; color: var(--orange); opacity: 0; pointer-events: none; }
.wt__tip {
  position: absolute; right: 12px; top: -34px; z-index: 4; padding: 7px 12px; border-radius: 10px; font-size: 11.5px; white-space: nowrap;
  background: #fff; color: var(--ink); box-shadow: 0 12px 26px -8px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease-out); pointer-events: none;
}
.wt__row:hover .wt__tip { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .wt__row { grid-template-columns: minmax(84px, 1.6fr) repeat(5, minmax(0, 1fr)); gap: 4px; padding: 10px 4px; }
  .wt__row--head .mono { font-size: 0; }
  .wt__row--head .mono::after { content: attr(data-short); font-size: 10px; }
  .wpill { width: 26px; height: 26px; padding: 0; }
  .wpill em { display: none; }
  .wpill b { width: 9px; height: 9px; }
  .wt__sub { font-size: 12.5px; }
  .wt__tip { display: none; }
}

/* ==========================================================================
   RISK SCORE
   ========================================================================== */
.risk { padding: clamp(100px, 12vw, 160px) 0; }
.risk__grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .risk__grid { grid-template-columns: repeat(3, 1fr); } }
.rcard { display: block; width: 100%; text-align: left; perspective: 1200px; border-radius: var(--radius); }
.rcard__inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.rcard__face {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px;
  min-height: 380px; border-radius: var(--radius); background: #FFFDF8; border: 1px solid var(--line-light); box-shadow: var(--shadow-light);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.rcard__back { transform: rotateY(180deg); background: var(--navy-800); color: #fff; border-color: var(--navy-700); }
.rcard[aria-pressed="true"] .rcard__inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .rcard:hover .rcard__inner { transform: rotateY(180deg); } }
.rcard__sub { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.gauge { position: relative; width: 170px; height: 170px; align-self: center; margin: 10px 0 6px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__bg { fill: none; stroke: var(--paper-2); stroke-width: 10; }
.gauge__fg { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--score, 0)); }
.rcard--green .gauge__fg { stroke: var(--green); }
.rcard--amber .gauge__fg { stroke: var(--amber); }
.rcard--red .gauge__fg { stroke: var(--red); }
.gauge__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 52px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); }
.rcard__status { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.rcard__line { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.rcard__list { display: flex; flex-direction: column; gap: 0; width: 100%; margin-top: 8px; }
.rcard__list span { padding: 14px 0 14px 26px; border-top: 1px solid rgba(154,168,191,.18); position: relative; font-size: 15.5px; color: #DCE3EE; }
.rcard__list span::before { content: ""; position: absolute; left: 2px; top: 22px; width: 9px; height: 9px; border-radius: 50%; }
.rcard--green .rcard__list span::before { background: var(--green); }
.rcard--amber .rcard__list span::before { background: var(--amber); }
.rcard--red .rcard__list span::before { background: var(--red); }

/* ==========================================================================
   BENTO
   ========================================================================== */
.features { padding: clamp(100px, 12vw, 160px) 0; }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; }
  .bcard { grid-column: span 3; }
  .bcard--1, .bcard--3, .bcard--9 { grid-column: span 6; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(200px, auto); }
  .bcard--1 { grid-column: 1 / 8; grid-row: 1 / 3; }
  .bcard--2 { grid-column: 8 / 13; grid-row: 1; }
  .bcard--3 { grid-column: 8 / 13; grid-row: 2 / 4; }
  .bcard--4 { grid-column: 1 / 5; grid-row: 3; }
  .bcard--5 { grid-column: 5 / 8; grid-row: 3; }
  .bcard--6 { grid-column: 1 / 5; grid-row: 4; }
  .bcard--7 { grid-column: 5 / 9; grid-row: 4; }
  .bcard--8 { grid-column: 9 / 13; grid-row: 4; }
  .bcard--9 { grid-column: 1 / 13; grid-row: 5; }
}
.bcard {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19,41,74,.95), rgba(12,30,56,.95));
  border: 1px solid var(--line-dark); box-shadow: var(--hl-dark), 0 20px 40px -24px rgba(0,0,0,.6);
  transform-style: preserve-3d;
}
.bcard::after { /* moving sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,122,47,.13), transparent 45%);
}
.bcard:hover::after { opacity: 1; }
.bcard h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; margin: 18px 0 8px; }
.bcard p { color: var(--mist); font-size: 15.5px; max-width: 380px; }
.bicon { width: 44px; height: 44px; color: var(--orange); }
.bicon path, .bicon rect, .bicon circle { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bcard--1 h3, .bcard--3 h3 { font-size: clamp(24px, 2.4vw, 30px); }

.flatten { position: relative; margin-top: 26px; height: 230px; border-radius: 16px; background: rgba(8,20,38,.55); border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; gap: 22px; padding: 20px; perspective: 800px; }
.flatten__photo {
  position: relative; width: 140px; height: 176px; flex: none; border-radius: 6px; padding: 18px 14px; display: flex; flex-direction: column; gap: 9px;
  background: linear-gradient(115deg, #EDEAE3 0%, #FBFAF7 22%, #DCD8CF 23%, #F6F4EF 45%, #E4E0D8 62%, #FBFAF7 63%, #E9E5DD 100%);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,.6); transform: rotate(-9deg) skewX(-4deg);
}
.flatten__photo i { display: block; height: 4px; background: #C9C4B8; border-radius: 2px; }
.flatten__photo i:nth-child(2) { width: 70%; } .flatten__photo i:nth-child(4) { width: 50%; }
.flatten__photo span { margin-top: auto; font-size: 12px; color: #5A6478; }
.flatten__fields { display: grid; gap: 8px; min-width: 0; flex: 1; max-width: 270px; }
.flatten__fields div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); font-size: 12.5px; }
.flatten__fields span { color: var(--mist); font-size: 11.5px; }
.flatten__fields b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wtypes { position: relative; margin-top: 26px; display: flex; flex-direction: column; gap: 8px; padding: 46px 16px 16px; border-radius: 16px; background: rgba(8,20,38,.55); border: 1px solid var(--line-dark); }
.wtypes div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); }
.bcard__wide { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .bcard__wide { grid-template-columns: 1fr 1.4fr; } }
.close-bar { position: relative; padding: 46px 18px 20px; border-radius: 16px; background: rgba(8,20,38,.55); border: 1px solid var(--line-dark); }
.close-bar__steps { display: flex; justify-content: space-between; font-size: 11px; color: var(--mist); margin-bottom: 10px; letter-spacing: .04em; }
.close-bar__track { height: 8px; border-radius: 8px; background: rgba(154,168,191,.15); overflow: hidden; }
.close-bar__track span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #FFB27F); border-radius: 8px; transform-origin: 0 50%; }

/* ==========================================================================
   ROLES
   ========================================================================== */
.roles { padding: clamp(100px, 12vw, 160px) 0; }
.roles__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .roles__grid { grid-template-columns: 1.25fr .75fr; gap: 72px; } }
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line-light); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; padding: 14px 16px; font-weight: 600; font-size: 16px; color: var(--ink-2); white-space: nowrap; transition: color .25s; border-radius: 8px 8px 0 0; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab:hover { color: var(--ink); }
.tabs__underline { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100px; border-radius: 3px; background: var(--orange); transform-origin: 0 50%; transition: transform .55s var(--ease-spring), width .55s var(--ease-spring); }
.no-js .tabs__underline { display: none; }
.panels { display: grid; margin-top: 40px; }
.panel { grid-area: 1 / 1; }
.panel:focus-visible { outline-offset: 8px; }
.js .panel[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
.no-js .panel + .panel { margin-top: 40px; grid-area: auto; }
.no-js .panels { display: block; }
.panel__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5.6vw, 4.8rem); letter-spacing: -.035em; line-height: .98; }
.panel__list { margin-top: 30px; display: grid; gap: 12px; }
.panel__list li { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; }
.panel__list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23081426' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.roles__portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); box-shadow: var(--shadow-light), 0 40px 80px -30px rgba(8,20,38,.45); max-width: 460px; width: 100%; justify-self: center; }
.roles__portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(255,122,47,.25), transparent 50%), linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.portrait-fallback .logo-icon { width: 38%; height: auto; aspect-ratio: 1; }
.portrait-fallback__lines { position: absolute; left: 10%; right: 10%; bottom: 10%; display: grid; gap: 10px; }
.portrait-fallback__lines i { display: block; height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); }
.portrait-fallback__lines i:nth-child(2) { width: 70%; } .portrait-fallback__lines i:nth-child(3) { width: 40%; background: rgba(255,122,47,.5); }

/* ==========================================================================
   AP QUEUE
   ========================================================================== */
.queue { padding: clamp(100px, 12vw, 160px) 0; }
.browser { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(154,168,191,.2); background: var(--navy-900); box-shadow: var(--hl-dark), var(--shadow-deep), 0 0 0 1px rgba(0,0,0,.3); }
.browser__bar { position: relative; display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; background: var(--navy-700); border-bottom: 1px solid var(--line-dark); }
.browser__bar .demo-label { top: 50%; transform: translateY(-50%); right: 12px; }
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A5480; }
.browser__dots i:nth-child(1) { background: #FF5F57; } .browser__dots i:nth-child(2) { background: #FEBC2E; } .browser__dots i:nth-child(3) { background: #28C840; }
.browser__url { padding: 5px 14px; border-radius: 8px; background: rgba(8,20,38,.6); color: var(--mist); font-size: 12px; }
.app { display: grid; grid-template-columns: 1fr; min-height: 520px; }
@media (min-width: 900px) { .app { grid-template-columns: 200px 1fr; } }
.app__side { display: none; flex-direction: column; gap: 4px; padding: 20px 12px; border-right: 1px solid var(--line-dark); background: rgba(12,30,56,.6); }
@media (min-width: 900px) { .app__side { display: flex; } }
.app__brand { padding: 4px 10px 18px; }
.app__brand .logo-icon { width: 30px; height: 30px; }
.app__nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--mist); }
.app__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app__nav.is-active { background: rgba(255,122,47,.12); color: #fff; }
.app__nav.is-active svg { color: var(--orange); }
.app__main { padding: clamp(14px, 2.4vw, 26px); min-width: 0; }
.app__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 700px) { .app__stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--navy-800); border: 1px solid var(--line-dark); box-shadow: var(--hl-dark); }
.stat span { display: block; font-size: 12px; color: var(--mist); }
.stat b { display: block; margin-top: 4px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.03em; }
.qt { border-radius: 14px; border: 1px solid var(--line-dark); overflow: hidden; background: rgba(12,30,56,.5); }
.qt__row {
  position: relative; display: grid; align-items: center; gap: 12px; padding: 0 16px; height: 50px;
  grid-template-columns: 1.4fr .9fr auto; font-size: 13.5px; white-space: nowrap;
  border-bottom: 1px solid var(--line-dark); overflow: hidden;
}
.qt__row > span { overflow: hidden; text-overflow: ellipsis; }
.qt__row--head { height: 40px; font-size: 11.5px; color: var(--mist); letter-spacing: .04em; background: rgba(8,20,38,.4); }
.qt__proj, .qt__inv, .qt__amt, .qt__risk { display: none; }
@media (min-width: 700px) {
  .qt__row { grid-template-columns: 1.5fr 1fr 1fr 96px 100px; }
  .qt__amt { display: block; text-align: right; }
}
@media (min-width: 1100px) {
  .qt__row { grid-template-columns: 1.4fr 1.3fr .9fr 1fr 106px 44px 100px; }
  .qt__proj, .qt__inv, .qt__risk { display: block; }
  .qt__proj { color: var(--mist); }
  .qt__inv { color: #C9D2E0; font-size: 12.5px; }
}
.qt__row:not(.qt__row--head) .qt__amt { font-size: 13px; }
.qt__body { position: relative; }
.js .qt__body { height: 400px; overflow: hidden; }
.qt__body .qt__row:last-child { border-bottom: 0; }
.qt__row.is-flagged { background: linear-gradient(90deg, rgba(245,180,0,.06), transparent 60%); }
.qt__act { justify-self: end; }
.qbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; min-width: 84px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(154,168,191,.3); color: #fff; }
.qbtn--approve { background: var(--orange); color: var(--navy-900); border-color: var(--orange); }
.qbtn--approve:hover { background: #FF8C4A; }
.qbtn--done { color: var(--green-soft); border-color: rgba(29,181,108,.3); background: rgba(29,181,108,.08); font-weight: 500; font-family: var(--font-mono); font-size: 11.5px; }
.qbtn--scan { color: var(--mist); border-color: var(--line-dark); font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; }
.qt__beam { position: absolute; top: 0; bottom: 0; width: 120px; left: -120px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,122,47,.28), transparent); border-right: 2px solid var(--orange); }
.qt__okmark { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29,181,108,.16); color: var(--green); pointer-events: none; }
.qt__okmark svg { width: 26px; height: 26px; }

/* ==========================================================================
   ESTIMATOR
   ========================================================================== */
.estimator { padding: clamp(100px, 12vw, 160px) 0; }
.est { display: grid; gap: 28px; padding: clamp(24px, 4vw, 52px); border-radius: 28px; background: #FFFDF8; border: 1px solid var(--line-light); box-shadow: var(--shadow-light); }
@media (min-width: 960px) { .est { grid-template-columns: 1fr 1.1fr; column-gap: 64px; } .est__note, .est__cta { grid-column: 1 / -1; } }
.est__label { display: block; font-weight: 600; font-size: 16px; color: var(--ink-2); }
.est__value { display: block; margin: 8px 0 22px; font-size: clamp(3.4rem, 8vw, 6rem); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.est__scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; --fill: 19%; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--orange) 0 var(--fill), var(--paper-2) var(--fill) 100%); box-shadow: inset 0 1px 2px rgba(11,20,36,.12); }
.range::-moz-range-track { height: 10px; border-radius: 10px; background: var(--paper-2); }
.range::-moz-range-progress { height: 10px; border-radius: 10px; background: var(--orange); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 6px 16px -4px rgba(176,69,10,.5); transition: transform .3s var(--ease-spring); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 6px 16px -4px rgba(176,69,10,.5); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline-offset: 6px; }
.est__outputs { display: grid; gap: 12px; align-content: center; }
.est__out { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-light); }
.est__out-label { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.est__out b { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.est__out--accent { background: var(--navy-800); border-color: var(--navy-800); }
.est__out--accent .est__out-label { color: var(--mist); }
.est__out--accent b { color: #fff; }
.est__note { font-size: 13.5px; color: var(--ink-2); max-width: 760px; }
.est__cta { justify-self: start; }

/* ==========================================================================
   PILOT
   ========================================================================== */
.pilot { background: var(--orange); color: var(--navy-900); padding: clamp(90px, 11vw, 150px) 0; overflow: hidden; isolation: isolate; }
.pilot__shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pilot__shape { position: absolute; color: var(--navy-900); opacity: .07; }
.pilot__shape.s1 { width: 520px; height: 520px; right: -120px; top: -140px; }
.pilot__shape.s2 { width: 300px; height: 300px; left: -80px; bottom: -110px; }
.pilot__shape.s3 { width: 180px; height: 180px; left: 48%; top: 8%; opacity: .05; }
.pilot__inner { position: relative; }
.pilot__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 5.2rem); letter-spacing: -.035em; line-height: .98; max-width: 980px; }
.pilot__line { margin: 24px 0 36px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; max-width: 640px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: clamp(100px, 12vw, 160px) 0; }
.faq__inner { display: grid; gap: 20px; }
@media (min-width: 960px) { .faq__inner { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.acc { border-top: 1px solid var(--line-dark); }
.acc__item { border-bottom: 1px solid var(--line-dark); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.35rem); letter-spacing: -.015em; line-height: 1.3; transition: color .2s; }
.acc__btn:hover { color: var(--orange); }
.acc__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(154,168,191,.3); transition: transform .5s var(--ease-spring), background-color .3s, border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.8px; margin: -.9px 0 0 -6.5px; background: currentColor; border-radius: 2px; }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: var(--navy-900); }
.acc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease-out); }
.js .acc__panel { grid-template-rows: 0fr; }
.js .acc__panel.is-open { grid-template-rows: 1fr; }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 56px 26px 0; color: #C9D2E0; font-size: 16.5px; max-width: 680px; }
.js .acc__body p { opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease-out); }
.js .acc__panel.is-open .acc__body p { opacity: 1; transform: none; transition-delay: .08s; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0; text-align: center; }
.final__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: grid; place-items: center; opacity: .06; }
.final__bg .fb-stage { position: relative; width: 420px; height: 420px; transform: scale(1.5); }
.final__bg .fb-paper { position: absolute; left: 50%; top: 50%; width: 120px; height: 156px; margin: -78px 0 0 -60px; border-radius: 8px; background: #fff; }
.final__bg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.final__bg .fb-chev { fill: #fff; }
.final__bg .fb-check { fill: none; stroke: var(--orange); stroke-width: 11.5; stroke-dasharray: 1; }
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 44px; }
.final__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 7.5rem); line-height: .95; letter-spacing: -.035em; max-width: 1100px; }
.copy-email { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mist); padding: 10px 16px; border-radius: 12px; transition: color .2s, background-color .2s; }
.copy-email:hover { color: #fff; background: rgba(255,255,255,.05); }
.copy-email svg { width: 16px; height: 16px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 64px 0 120px; border-top: 1px solid var(--line-dark); color: var(--mist); font-size: 14.5px; }
@media (min-width: 768px) { .footer { padding-bottom: 64px; } }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }
.footer__brand p { margin-top: 14px; max-width: 320px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a:hover, .footer__meta a:hover { color: #fff; }
.footer__meta { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .footer__meta { align-items: flex-end; } }

/* ==========================================================================
   EMAIL FAB + MOBILE BAR + TOAST
   ========================================================================== */
.email-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 900; height: 60px; min-width: 60px; border-radius: 999px;
  display: none; align-items: center; background: var(--orange); color: #fff;
  box-shadow: 0 16px 40px -10px rgba(255,122,47,.75), 0 4px 12px rgba(0,0,0,.25);
  transition: transform .6s var(--ease-out);
}
@media (min-width: 768px) { .email-fab { display: flex; } }
.js .email-fab { transform: translateY(140px); }
.js .email-fab.is-in { transform: none; }
.js .email-fab.is-in.is-nudged { transform: translateY(-80px); }
.email-fab__icon { width: 26px; height: 26px; margin: 0 17px; flex: none; position: relative; z-index: 1; }
.email-fab__text {
  max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 16px; color: var(--navy-900);
  transition: max-width .6s var(--ease-spring), padding .6s var(--ease-spring), opacity .3s; opacity: 0; margin-left: -10px;
}
.email-fab:hover .email-fab__text, .email-fab:focus-visible .email-fab__text { max-width: 120px; opacity: 1; padding-right: 24px; }
.email-fab__ring { position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--orange); pointer-events: none; animation: fabPulse 4s var(--ease-out) infinite; }
@keyframes fabPulse { 0%, 55% { transform: scale(1); opacity: 0; } 60% { opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

.mbar { display: none; }
@media (max-width: 767px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(8,20,38,.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line-dark);
    transition: transform .5s var(--ease-out);
  }
  .js .mbar { transform: translateY(110%); }
  .js .mbar.is-in { transform: none; }
  .mbar .logo-icon { width: 32px; height: 32px; }
}

.toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 1300; padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.4);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; scroll-behavior: auto !important; }
  .grid-bg::before, .hero__glow { animation: none !important; }
  .email-fab__ring, .play__ring { display: none; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 600px) {
  .flatten { height: auto; min-height: 200px; gap: 14px; padding: 40px 14px 16px; }
  .flatten__photo { width: 92px; height: 124px; padding: 12px 10px; gap: 7px; }
  .flatten__photo span { font-size: 10px; }
  .flatten__fields div { padding: 7px 10px; font-size: 11.5px; }
  .flatten__fields span { display: none; }
  .bcard { padding: 22px; }
}
@media (max-width: 959px) {
  .roles__portrait { max-width: 360px; aspect-ratio: 5 / 4; }
}
.no-js .nav { background: rgba(12,30,56,.94); border-bottom-color: rgba(154,168,191,.12); }

/* ==========================================================================
   PHONES (≤767px) — tighter rhythm, swipeable risk cards, 2-up bento
   ========================================================================== */
.risk__dots { display: none; }
@media (max-width: 767px) {
  body { font-size: 16px; }
  .waivers, .risk, .features, .roles, .queue, .estimator, .faq { padding: 80px 0; }
  .how { padding: 80px 0 64px; }
  .pilot { padding: 76px 0; }
  .intro { padding: 28px 0 76px; }
  .hero { padding: 100px 0 56px; }
  .hero__ctas { margin-top: 28px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .section-head { margin-bottom: 34px; }
  .section-title { font-size: clamp(2.05rem, 9vw, 2.6rem); }
  .eyebrow { font-size: 12px; margin-bottom: 14px; }

  /* Problem story: everything fits above the sticky bar */
  .problem__pin { padding: 84px 0 84px; }
  .problem__grid { gap: 20px; }
  .problem__step { font-size: clamp(1.5rem, 6.6vw, 1.85rem); }
  .problem__ticks { margin-top: 16px; }
  .pv-counter { margin-bottom: 14px; }
  .pv-counter__num { font-size: clamp(2.2rem, 11vw, 2.8rem); }
  .pv-card { padding: 13px 15px; border-radius: 14px; }
  .pv-card__from { margin-top: 6px; font-size: 14px; }
  .pv-card__amt { font-size: 23px; }
  .pv-card__lines { margin-top: 10px; }
  .pv-stamp { font-size: 12px; top: 40px; right: 14px; padding: 4px 10px; }
  .pv-stamp--approved { font-size: 10px; top: auto; bottom: 12px; }
  .js:not(.reduced-motion) .pv-card { width: 84%; }
  .js:not(.reduced-motion) .pv-stack { height: 280px; }
  .js:not(.reduced-motion) .pv-supplier { top: 84px; }
  .js:not(.reduced-motion) .pv-lien { top: 172px; left: 3%; width: 80%; }
  .problem__punch { font-size: clamp(2rem, 9.4vw, 2.6rem); }

  /* How it works */
  .step { padding: 22px; gap: 20px; }
  .step__viz { height: 230px; }

  /* Risk: swipeable carousel */
  .risk__grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .risk__grid::-webkit-scrollbar { display: none; }
  .rcard { flex: 0 0 84%; scroll-snap-align: center; }
  .rcard__face { min-height: 330px; padding: 22px; gap: 10px; }
  .gauge { width: 136px; height: 136px; margin: 4px 0; }
  .gauge__num { font-size: 42px; }
  .rcard__list span { padding: 11px 0 11px 24px; font-size: 14.5px; }
  .rcard__list span::before { top: 18px; }
  .risk__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .risk__dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(11,20,36,.18); transition: width .35s var(--ease-out), background-color .3s; }
  .risk__dots i.is-on { width: 22px; background: var(--orange-ink); }

  /* Bento: 2-up small cards */
  .bento { grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-flow: dense; }
  .bcard { padding: 18px; border-radius: 18px; }
  .bcard--1, .bcard--3, .bcard--9 { grid-column: 1 / -1; padding: 22px; }
  .bcard h3 { font-size: 16.5px; margin: 12px 0 6px; }
  .bcard p { font-size: 13.5px; line-height: 1.45; }
  .bcard .bicon { width: 34px; height: 34px; }
  .bcard--1 h3, .bcard--3 h3 { font-size: 22px; }
  .bcard--1 p, .bcard--3 p, .bcard--9 p { font-size: 15px; }
  .wtypes, .close-bar { margin-top: 18px; }
  .wtypes div { font-size: 12.5px; padding: 9px 10px; }
  .close-bar__steps { font-size: 9.5px; }

  /* Roles: drop the decorative placeholder on phones (real photo still shows) */
  .roles__portrait:not(.has-img) { display: none; }
  .roles__grid { gap: 0; }
  .panels { margin-top: 30px; }
  .panel__list li { font-size: 16.5px; }
  .tab { padding: 12px 12px; font-size: 15px; }

  /* Queue */
  .app { min-height: 0; }
  .qt__row { padding: 0 12px; gap: 8px; font-size: 13px; }
  .qbtn { min-width: 74px; padding: 0 10px; font-size: 12px; }

  /* Estimator */
  .est { padding: 22px; border-radius: 22px; gap: 22px; }
  .est__out { padding: 14px 16px; }
  .est__out-label { font-size: 14px; }
  .est__cta { width: 100%; white-space: normal; text-align: center; }

  /* Final CTA */
  .final { min-height: 0; padding: 110px 0 120px; }
  .final__bg { opacity: .03; }
  .final__inner { gap: 34px; }
  .btn--xl { min-height: 62px; padding: 0 34px; font-size: 18px; }

  .acc__btn { padding: 20px 0; }
}
@media (max-width: 520px) {
  .browser__url { display: none; }
  .est__cta { font-size: 15px; padding: 0 16px; white-space: nowrap; }
}
/* Match the JS phone layout from first paint (prevents a layout shift) */
@media (max-width: 767px) {
  .desk { aspect-ratio: 360 / 560; }
  .hero__glow { top: 40%; width: 640px; height: 640px; margin-top: -320px; right: -260px; }
}
