/* ==========================================================================
   Canvas Scout — marketing site
   Brand: Canvas Scout Brand Guidelines v1.0 (Branding/Brand Guidelines)
   Layout reference: Tomorro (floating pill nav, dark/light bands, tilted UI cards)
   Motion reference: Air (smooth scroll, masked line reveals, color morph)
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License — see assets/fonts/OFL-*.txt) ----------
   Served from this domain so no visitor data goes to a font CDN. */
@font-face { font-family: Archivo; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo-400.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/archivo-500.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo-600.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/archivo-700.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/archivo-800.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500.woff2) format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (guidelines §05) */
  --blue: #0372CE;        /* Scout Blue — primary ground */
  --peach: #FDB685;       /* Trail Peach — accent: logo, pins, display, primary buttons */
  --cream: #F2DDD0;       /* Canvas Cream — tagline, soft highlights */
  --ink: #0B1A2E;         /* Night Ink — text, dark sections */
  --paper: #F6F2EC;       /* Paper — light page background */
  --white: #FFFFFF;
  --pin-gray: #C9CED6;    /* Excluded / outside territory */

  /* Derived (tints/shades of the palette only) */
  --ink-2: #12253D;       /* raised surface on ink */
  --ink-3: #1B324F;       /* hairlines on ink */
  --blue-deep: #04498A;   /* blue into ink */
  --paper-2: #EDE6DC;     /* card on paper */
  --line: rgba(11, 26, 46, .12);
  --line-strong: rgba(11, 26, 46, .22);
  --line-light: rgba(255, 255, 255, .16);
  --muted: rgba(11, 26, 46, .66);
  --muted-light: rgba(255, 255, 255, .72);

  /* Type (guidelines §06): Indivisible via Adobe Fonts → Archivo → Arial */
  --font: indivisible, Archivo, Arial, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --fs-display: clamp(44px, 7.4vw, 112px);
  --fs-h1: clamp(40px, 6vw, 84px);
  --fs-h2: clamp(32px, 4.4vw, 60px);
  --fs-h3: clamp(22px, 2vw, 28px);
  --fs-lead: clamp(18px, 1.6vw, 22px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-label: 12px;

  /* Space & shape */
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --section-y: clamp(88px, 12vw, 168px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-card: 0 30px 60px -24px rgba(11, 26, 46, .45), 0 8px 18px -8px rgba(11, 26, 46, .25);
  --shadow-nav: 0 10px 34px rgba(11, 26, 46, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
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);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .9s var(--ease);
}
/* Page-level color morph: sections declare data-theme, JS mirrors it here */
body[data-theme="ink"] { background-color: var(--ink); }
body[data-theme="paper"] { background-color: var(--paper); }
body[data-theme="blue"] { background-color: var(--blue); }
body[data-theme="cream"] { background-color: var(--cream); }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--peach); color: var(--ink); }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--peach); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 26px; height: 26px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.label {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.display {
  font-size: var(--fs-display); line-height: .92; font-weight: 700;
  text-transform: uppercase; letter-spacing: -.012em; text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); line-height: .92; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: .98; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.h2.caps { text-transform: uppercase; line-height: .92; letter-spacing: -.01em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.body { font-size: var(--fs-body); line-height: 1.55; text-wrap: pretty; }
.muted { color: var(--muted); }
.t-peach { color: var(--peach); }
.t-blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--peach); --btn-fg: var(--ink); --btn-bd: var(--peach);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-size: 16px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn::after { /* sheen sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.7); }
.btn-ghost:hover { --btn-bg: rgba(255,255,255,.1); --btn-bd: var(--white); }
.btn-ghost-ink { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-ghost-ink:hover { --btn-bd: var(--ink); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn-blue { --btn-bg: var(--blue); --btn-fg: var(--white); --btn-bd: var(--blue); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); margin-left: -8px; }
.btn .play .i { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.btn:hover .play .i { transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.4); color: var(--white); font-size: 14px; font-weight: 500;
  background: rgba(11, 26, 46, .18); backdrop-filter: blur(6px);
  transition: background-color .3s, border-color .3s;
}
.pill:hover { background: rgba(11,26,46,.3); border-color: rgba(255,255,255,.7); }
.pill .tag { white-space: nowrap; flex: none; background: var(--peach); color: var(--ink); border-radius: var(--r-pill); padding: 2px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pill .i { width: 14px; height: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  background: var(--paper-2); color: var(--ink);
}
.chip-peach { background: var(--peach); color: var(--ink); }
.chip-blue { background: rgba(3,114,206,.12); color: var(--blue); }
.chip-ink { background: var(--ink); color: var(--peach); }
.chip-line { background: transparent; border: 1px solid var(--line-strong); }

/* ---------- Grain + gradient surfaces (guidelines §07: always grained) ---------- */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: url(../img/grain.svg); mix-blend-mode: overlay; opacity: .35;
}
.bg-layer { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.bg-layer img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Nav (Tomorro floating pill) ---------- */
.nav-wrap {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter);
  transition: transform .6s var(--ease);
}
.nav-wrap.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav {
  max-width: var(--maxw); margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 12px; padding: 0 10px 0 22px;
  background: rgba(11, 26, 46, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-pill);
  color: var(--white); box-shadow: var(--shadow-nav);
}
.nav-logo { display: flex; align-items: center; height: 40px; margin-right: auto; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: rgba(255,255,255,.78); transition: color .25s, background-color .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-login { padding: 8px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-pill); font-size: 15px; font-weight: 500; transition: border-color .25s, background-color .25s; }
.nav-login:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: rgba(255,255,255,.08); }
.nav-toggle .i { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--ink); color: var(--white);
  padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; gap: 8px;
  clip-path: circle(0% at calc(100% - 52px) 48px); transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 52px) 48px); visibility: visible; }
.mobile-menu a.big { font-size: 44px; font-weight: 700; text-transform: uppercase; line-height: 1; padding: 8px 0; border-bottom: 1px solid var(--line-light); }
.mobile-menu .btn { margin-top: auto; }
.mobile-menu .mm-foot { display: flex; gap: 10px; margin-top: 16px; }
.mobile-menu .mm-foot .btn { margin-top: 0; flex: 1; }

@media (max-width: 960px) {
  .nav-links, .nav-actions .nav-login, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav { height: 60px; padding: 0 8px 0 18px; }
  .nav-logo img { height: 30px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section[data-theme="ink"] { color: var(--white); }
.section[data-theme="blue"] { color: var(--white); }
.section[data-theme="paper"], .section[data-theme="cream"] { color: var(--ink); }
/* No-JS / reduced-motion: sections paint their own ground */
html:not(.morph) .section[data-theme="ink"] { background: var(--ink); }
html:not(.morph) .section[data-theme="blue"] { background: var(--blue); }
html:not(.morph) .section[data-theme="paper"] { background: var(--paper); }
html:not(.morph) .section[data-theme="cream"] { background: var(--cream); }

.section-head { display: grid; gap: 20px; max-width: 820px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head .label { color: var(--blue); }
[data-theme="ink"] .section-head .label, [data-theme="blue"] .section-head .label { color: var(--peach); }
[data-theme="ink"] .muted, [data-theme="blue"] .muted { color: var(--muted-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--white); background: var(--blue);
  display: flex; align-items: stretch; overflow: clip;
}
.hero .bg-layer img { object-position: 70% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(120% 90% at 0% 40%, rgba(3,114,206,.95) 0%, rgba(3,114,206,.75) 38%, rgba(3,114,206,0) 70%); }
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 150px var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-copy .label { color: var(--white); }
.hero-copy h1 { color: var(--peach); font-size: clamp(44px, 5vw, 84px); }
.hero-copy .lead { max-width: 520px; color: var(--white); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { position: relative; aspect-ratio: 1 / .92; perspective: 1600px; }

/* ---------- Product UI mockups (floating, tilted cards) ---------- */
.ui-card {
  position: absolute; background: var(--white); color: var(--ink); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); overflow: hidden; will-change: transform;
}
.ui-app { left: 0; top: 4%; width: 92%; aspect-ratio: 16 / 11; transform: rotate(-3deg); display: grid; grid-template-rows: 40px 1fr; }
.ui-bar { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.ui-bar img { height: 20px; width: auto; }
.ui-bar .ui-search { flex: 1; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; background: var(--paper); border-radius: var(--r-pill); color: var(--muted); font-size: 11px; }
.ui-bar .ui-search .i { width: 12px; height: 12px; }
.ui-bar .ui-terr { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--blue); text-transform: uppercase; }
.ui-body { display: grid; grid-template-columns: 38% 1fr; min-height: 0; }
.ui-list { border-right: 1px solid var(--line); padding: 6px; display: grid; align-content: start; gap: 2px; overflow: hidden; }
.ui-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px; border-radius: 8px; font-size: 11px; line-height: 1.3; }
.ui-row.is-active { background: rgba(3,114,206,.08); box-shadow: inset 2px 0 0 var(--blue); }
.ui-row b { font-weight: 600; font-size: 11.5px; }
.ui-row small { color: var(--muted); font-size: 10px; grid-column: 1; }
.ui-row .score { grid-row: span 2; align-self: center; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 7px; border-radius: 6px; background: var(--peach); }
.ui-row .score.warm { background: var(--cream); }
.ui-row .score.cool { background: var(--paper); color: var(--muted); }
.ui-map { position: relative; min-height: 0; }
.ui-map svg { width: 100%; height: 100%; }
.ui-map .ui-filters { position: absolute; left: 10px; top: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.ui-map .ui-filters .chip { font-size: 9.5px; padding: 3px 8px; background: var(--white); box-shadow: 0 2px 6px rgba(11,26,46,.12); }
.ui-map .ui-filters .chip.on { background: var(--ink); color: var(--peach); }

.ui-biz { right: 0; bottom: 6%; width: 50%; padding: 16px; transform: rotate(4deg); display: grid; gap: 10px; font-size: 12px; }
.ui-biz-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.ui-biz-head b { font-size: 15px; line-height: 1.15; display: block; }
.ui-biz-head small { color: var(--muted); font-size: 11px; }
.ui-biz .big-score { font-family: var(--mono); font-size: 20px; font-weight: 500; background: var(--peach); border-radius: 10px; padding: 6px 9px; line-height: 1; text-align: center; }
.ui-biz .big-score small { display: block; font-size: 8px; letter-spacing: .08em; color: var(--ink); opacity: .7; margin-top: 3px; }
.ui-biz ul { display: grid; gap: 6px; }
.ui-biz li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.ui-biz li .i { width: 14px; height: 14px; color: var(--blue); }
.ui-biz .ui-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-biz .ui-actions span { display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border-radius: 8px; background: var(--paper); font-size: 11px; font-weight: 600; }
.ui-biz .ui-actions span.primary { background: var(--ink); color: var(--peach); }
.ui-biz .ui-actions .i { width: 13px; height: 13px; }

.ui-toast { left: 6%; bottom: 0; width: 46%; padding: 12px 14px; transform: rotate(-6deg); display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--white); font-size: 12px; }
.ui-toast .ico { width: 32px; height: 32px; border-radius: 50%; background: var(--peach); color: var(--ink); display: grid; place-items: center; flex: none; }
.ui-toast .ico .i { width: 16px; height: 16px; }
.ui-toast b { display: block; font-size: 12.5px; }
.ui-toast small { color: var(--muted-light); font-size: 11px; }

@media (max-width: 560px) {
  .ui-app { width: 100%; }
  .ui-biz { width: 64%; }
  .ui-toast { width: 62%; }
  .ui-list .ui-row:nth-child(n+5) { display: none; }
}

/* ---------- Audience marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); color: var(--white); background: var(--ink); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-lead { color: var(--peach); }

/* ---------- Statement (Air-style giant type) ---------- */
.statement { overflow: clip; }
.statement-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(40px, 6vw, 72px); }
.statement-grid .body { max-width: 520px; color: var(--muted-light); font-size: clamp(17px, 1.4vw, 20px); }
.statement-grid .body strong { color: var(--white); font-weight: 600; }
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.media-frame img { width: 100%; height: 115%; object-fit: cover; }
.media-caption { position: absolute; left: 16px; bottom: 16px; z-index: 2; color: var(--white); background: rgba(11,26,46,.55); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: var(--r-pill); }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }

/* ---------- Line-mask reveals ---------- */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-mask > .line-in { display: block; will-change: transform; }

/* ---------- How it works (pinned story) ---------- */
.story { position: relative; }
.story-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.story-steps { display: grid; }
.story-step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px 0; transition: opacity .6s var(--ease); }
html.js:not(.reduced) .story-step { opacity: .28; }
html.js:not(.reduced) .story-step.is-active { opacity: 1; }
.story-step:first-child { min-height: 70vh; justify-content: flex-start; padding-top: 18vh; }
.story-step:last-child { min-height: 62vh; }
.story-step .num { display: inline-flex; align-items: center; gap: 12px; color: var(--peach); }
.story-step .num::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.story-step .body { color: var(--muted-light); max-width: 460px; font-size: 18px; }
.story-step ul { display: grid; gap: 10px; margin-top: 4px; }
.story-step li { display: flex; gap: 10px; align-items: flex-start; color: var(--white); font-size: 16px; }
.story-step li .i { color: var(--peach); width: 18px; height: 18px; margin-top: 3px; }
.story-visual-wrap { position: relative; }
.story-visual {
  position: sticky; top: 12vh; height: 76vh; border-radius: var(--r-lg); overflow: hidden;
  background: #081424; border: 1px solid var(--ink-3); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.story-visual svg { width: 100%; height: 100%; }
.story-hud { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; pointer-events: none; }
.story-hud .label { background: rgba(11,26,46,.7); backdrop-filter: blur(6px); color: var(--white); padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--ink-3); }
.story-hud .label b { color: var(--peach); font-weight: 500; }
.story-legend { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.story-legend span { display: inline-flex; align-items: center; gap: 6px; background: rgba(11,26,46,.7); color: var(--white); padding: 5px 10px; border-radius: var(--r-pill); font-size: 12px; border: 1px solid var(--ink-3); }
.story-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.story-progress { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 120px; height: 3px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 100%; background: var(--peach); transform-origin: left; transform: scaleX(0); }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-visual-wrap { order: -1; position: sticky; top: 84px; z-index: 2; }
  .story-visual { position: relative; top: 0; height: 44vh; }
  .story-step, .story-step:first-child, .story-step:last-child { min-height: 64vh; padding-top: 32px; justify-content: flex-start; }
}

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(11,26,46,.35); border-color: var(--line-strong); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--peach); display: grid; place-items: center; }
.card .icon .i { width: 22px; height: 22px; }
.card h3 { margin-top: 6px; }
.card p { color: var(--muted); }
.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .card-feature { background: var(--ink); color: var(--white); border-color: var(--ink); }
.bento .card-feature p { color: var(--muted-light); }
.bento .card-feature .icon { background: var(--peach); color: var(--ink); }
.card-art { margin-top: auto; border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.card-feature .card-art { background: #081424; }
.card-art svg { width: 100%; height: auto; }

/* score meter art */
.meter { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }
.meter-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.meter-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.meter-row .bar i { display: block; height: 100%; background: var(--peach); border-radius: 6px; transform-origin: left; }
.meter-row b { font-family: var(--mono); font-weight: 500; font-size: 12px; }

/* status list art */
.status-list { display: grid; gap: 6px; margin-top: auto; }
.status-list span { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--paper); font-size: 13px; font-weight: 500; }
.status-list i { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.cat-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* crew assignment art */
.crew-list { display: grid; gap: 8px; margin-top: auto; }
.crew-list > div { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.crew-list .av { grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.crew-list .av-blue { background: var(--blue); color: var(--white); }
.crew-list .av-ink { background: var(--ink); color: var(--peach); }
.crew-list b { font-size: 14px; line-height: 1.2; }
.crew-list small { font-size: 12px; color: var(--muted); }
.crew-list .bar { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; margin-top: 6px; }
.crew-list .bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-2, .bento .span-3 { grid-column: span 1; }
  .bento .span-4 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: span 1; }
}

/* ---------- Change feed (blue, topo) ---------- */
.feed-section { overflow: clip; }
.feed-section .bg-layer img { opacity: .5; }
.feed-section .bg-fade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, var(--blue) 30%, rgba(3,114,206,.35) 100%); }
.feed-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feed-grid .h2 { color: var(--peach); }
.feed-grid .body { color: var(--white); max-width: 480px; font-size: 18px; }
.feed-points { display: grid; gap: 12px; margin-top: 8px; }
.feed-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--white); }
.feed-points .i { color: var(--peach); margin-top: 3px; }
.feed { position: relative; display: grid; gap: 12px; }
.feed-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: 16px 18px;
  box-shadow: 0 20px 40px -24px rgba(11,26,46,.6);
}
.feed-card:nth-child(odd) { transform: translateX(-4%) rotate(-1deg); }
.feed-card:nth-child(even) { transform: translateX(4%) rotate(1deg); }
.feed-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--blue); }
.feed-card .ico.hot { background: var(--peach); color: var(--ink); }
.feed-card .ico.ink { background: var(--ink); color: var(--peach); }
.feed-card b { display: block; font-size: 15px; line-height: 1.25; }
.feed-card small { color: var(--muted); font-size: 13px; }
.feed-card .when { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.feed-head { display: flex; justify-content: space-between; align-items: center; color: var(--white); padding: 0 4px 4px; }
@media (max-width: 900px) {
  .feed-grid { grid-template-columns: 1fr; }
  .feed-card:nth-child(odd), .feed-card:nth-child(even) { transform: none; }
}

/* ---------- Full-bleed photo band ---------- */
.photo-band { position: relative; min-height: 110vh; display: flex; align-items: flex-end; overflow: clip; color: var(--white); background: var(--ink); }
.photo-band .bg-layer img { height: 120%; object-position: 60% 40%; }
.photo-band .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11,26,46,.92) 0%, rgba(11,26,46,.25) 45%, rgba(11,26,46,0) 70%); }
.photo-band .container { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 112px); display: grid; gap: 22px; }
.photo-band .h1 { color: var(--peach); max-width: 900px; }
.photo-band .lead { max-width: 520px; }

/* ---------- Owners two-up ---------- */
.owners-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.owners-head .lead { max-width: 480px; }
.owners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.owners-grid .owner-card:nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
.owner-card { margin: 0; position: relative; }
.owner-card .media-frame { aspect-ratio: 4 / 5; }
.owner-card .media-frame img { height: 100%; }
.owner-chip {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.owner-chip b { display: block; font-size: 16px; line-height: 1.2; }
.owner-chip small { color: var(--muted); font-size: 13px; }
.owner-chip .score { font-family: var(--mono); font-weight: 500; font-size: 18px; background: var(--peach); border-radius: 10px; padding: 8px 10px; flex: none; }
@media (max-width: 860px) {
  .owners-head, .owners-grid { grid-template-columns: 1fr; }
  .owners-grid .owner-card:nth-child(2) { margin-top: 0; }
}

.faq-art { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; max-width: 420px; }
.faq-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .faq-art { display: none; } }

/* ---------- Built in the field (proof) ---------- */
.proof-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.proof-art { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; }
.proof-art img { width: 100%; height: 100%; object-fit: cover; }
.proof-art .label { position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: var(--peach); padding: 6px 12px; border-radius: var(--r-pill); }
.proof-copy { display: grid; gap: 24px; }
.proof-copy .body { color: var(--muted); font-size: 18px; max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; margin-top: 8px; }
.stat { background: var(--paper); padding: 22px; display: grid; gap: 6px; }
.stat b { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } .proof-art { aspect-ratio: 4 / 3; } }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--paper-2); border: 1px solid var(--line); position: relative; }
.billing-toggle button { position: relative; z-index: 1; padding: 10px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; color: var(--muted); transition: color .3s; }
.billing-toggle button[aria-pressed="true"] { color: var(--paper); }
.billing-toggle .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: var(--r-pill); background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.billing-toggle .save { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; background: var(--peach); color: var(--ink); padding: 2px 7px; border-radius: var(--r-pill); margin-left: 6px; vertical-align: 1px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(11,26,46,.4); }
.plan-name { display: flex; justify-content: space-between; align-items: center; }
.plan-name h3 { font-size: 26px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); }
.plan-note { font-size: 13px; color: var(--muted); min-height: 20px; }
.plan-desc { color: var(--muted); }
.plan-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plan-meta div { background: var(--paper); padding: 12px 14px; display: grid; gap: 2px; }
.plan-meta b { font-size: 20px; line-height: 1.1; }
.plan-meta span { font-size: 12px; color: var(--muted); }
.plan ul.feat { display: grid; gap: 10px; }
.plan ul.feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan ul.feat li .i { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.plan ul.feat li.head { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan.is-featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan.is-featured .plan-desc, .plan.is-featured .plan-price span, .plan.is-featured .plan-note { color: var(--muted-light); }
.plan.is-featured .plan-meta { background: var(--ink-3); border-color: var(--ink-3); }
.plan.is-featured .plan-meta div { background: var(--ink-2); }
.plan.is-featured .plan-meta span { color: var(--muted-light); }
.plan.is-featured ul.feat li .i { color: var(--peach); }
.plan.is-featured ul.feat li.head { color: var(--muted-light); }
.plan.is-featured .plan-price b { color: var(--peach); }
.plan-enterprise { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); }
.plan-enterprise p { color: var(--muted); max-width: 620px; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 18px; position: sticky; top: 92px; background: var(--paper); z-index: 1; }
.compare tbody tr.group td { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); padding-top: 32px; border-bottom-color: var(--line-strong); }
.compare .i { margin: 0 auto; color: var(--blue); }
.compare .dash { color: var(--line-strong); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .compare { min-width: 680px; }

/* territory explainer */
.explainer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.explainer .map-box { border-radius: var(--r-lg); overflow: hidden; background: #E9EEF4; aspect-ratio: 1; position: relative; }
.explainer .map-box svg { width: 100%; height: 100%; }
.explainer dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.explainer dl div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.explainer dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); padding-top: 3px; }
.explainer dd { margin: 0; }
@media (max-width: 900px) { .explainer { grid-template-columns: 1fr; } .explainer dl div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.faq-item[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: var(--peach); border-color: var(--ink); }
.faq-item .faq-body { overflow: hidden; }
.faq-item .faq-body p { padding: 0 56px 24px 0; color: var(--muted); font-size: 17px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Final CTA (dusk) ---------- */
.cta-final { position: relative; overflow: clip; color: var(--white); background: var(--ink); padding: clamp(120px, 16vw, 220px) 0 0; }
.cta-final .bg-layer img { object-position: 50% 0%; }
/* Flat scout faces right, toward the CTA (guidelines §04) — kept clear of the type */
.cta-final .cta-scout { position: absolute; z-index: 1; left: max(-2vw, calc(50% - 780px)); bottom: clamp(120px, 14vw, 220px); width: clamp(220px, 24vw, 380px); opacity: .95; pointer-events: none; }
@media (max-width: 1180px) { .cta-final .cta-scout { display: none; } }
.cta-final .container { position: relative; z-index: 2; display: grid; gap: 28px; justify-items: center; text-align: center; }
.cta-final .display { color: var(--peach); max-width: 1000px; }
.cta-final .lead { max-width: 560px; }
.cta-final .hero-ctas { justify-content: center; }
.mega {
  position: relative; z-index: 2; margin-top: clamp(80px, 12vw, 160px); white-space: nowrap; overflow: hidden;
  font-size: clamp(80px, 17vw, 280px); line-height: .82; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(253,182,133,.55);
}
.mega-track { display: inline-flex; gap: .3em; will-change: transform; }
.mega-track span:nth-child(even) { color: var(--peach); -webkit-text-stroke: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: 72px 0 32px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { color: var(--muted-light); max-width: 320px; }
.footer h4, .footer .footer-h { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--peach); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--muted-light); transition: color .25s; }
.footer ul a:hover { color: var(--white); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; color: var(--muted-light); }
.footer-base .label { color: var(--cream); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--white); background: var(--blue); overflow: clip; padding: 150px 0 clamp(80px, 10vw, 140px); min-height: 100svh; display: flex; align-items: center; }
.page-hero > .container { width: 100%; }
.page-hero .bg-layer img { opacity: .55; }
.page-hero .bg-fade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(3,114,206,.2) 0%, rgba(3,114,206,.85) 100%); }
.page-hero .container { position: relative; z-index: 2; display: grid; gap: 24px; justify-items: center; text-align: center; }
.page-hero .h1 { color: var(--peach); max-width: 980px; }
.page-hero .lead { max-width: 640px; }

/* ---------- Auth / Start pages ---------- */
.split { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.split-form { display: flex; flex-direction: column; padding: 32px clamp(24px, 6vw, 88px); background: var(--paper); }
.split-form .top { display: flex; justify-content: space-between; align-items: center; }
.split-form .top img { height: 40px; }
.split-form .inner { width: 100%; max-width: 460px; margin: auto 0; padding: 48px 0; display: grid; gap: 24px; }
.split-art { position: relative; overflow: hidden; background: var(--blue); color: var(--white); }
.split-art .bg-layer img { object-position: 50% 50%; }
.split-art .art-copy { position: absolute; left: 40px; right: 40px; bottom: 40px; z-index: 2; display: grid; gap: 12px; }
.split-art .art-copy .h2 { color: var(--peach); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-art { min-height: 46vh; order: -1; } }

.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--line-strong); transition: border-color .25s, box-shadow .25s; font-size: 16px;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(3,114,206,.15); }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 46px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--blue); font-weight: 600; }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(3,114,206,.08); color: var(--blue); }

.range { width: 100%; accent-color: var(--blue); height: 28px; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-row output { font-family: var(--mono); font-size: 14px; color: var(--blue); }

.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select label { cursor: pointer; }
.chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.chips-select span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.chips-select input:checked + span { background: var(--ink); color: var(--peach); border-color: var(--ink); }
.chips-select input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.steps-indicator { display: flex; gap: 8px; }
.steps-indicator i { height: 4px; flex: 1; border-radius: 4px; background: var(--line-strong); transition: background-color .4s; }
.steps-indicator i.on { background: var(--blue); }

.start-map { position: absolute; inset: 0; z-index: 0; background: #081424; }
.start-map svg { width: 100%; height: 100%; }
.start-hud { position: absolute; left: 24px; right: 24px; top: 24px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.start-hud .label { background: rgba(11,26,46,.72); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--ink-3); }
.start-hud .label b { color: var(--peach); font-weight: 500; }
.start-lock { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; display: flex; gap: 14px; align-items: center; background: rgba(11,26,46,.8); backdrop-filter: blur(10px); border: 1px solid var(--ink-3); border-radius: var(--r-md); padding: 16px 18px; }
.start-lock .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--peach); color: var(--ink); display: grid; place-items: center; flex: none; }
.start-lock b { display: block; }
.start-lock small { color: var(--muted-light); }

/* ---------- Reveal defaults (JS adds .js; content stays visible without JS) ---------- */
html.js [data-reveal="fade"] { opacity: 0; transform: translateY(40px); }
html.js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(36px); }
html.js [data-reveal="clip"] { clip-path: inset(14% 10% 14% 10% round 24px); }
html.reduced [data-reveal] , html.reduced [data-reveal] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}

@media (max-width: 900px) {
  .split-art:has(.start-map) { min-height: 54vh; }
  .start-lock { padding: 12px 14px; }
  .start-lock small { display: none; }
}

/* ---------- Territory picker (start.html) ---------- */
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 360px; overflow: auto;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 48px -20px rgba(11,26,46,.35);
}
.combo-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.combo-list li b { font-size: 15px; font-weight: 600; }
.combo-list li small { font-size: 12.5px; color: var(--muted); }
.combo-list li.is-active, .combo-list li:hover { background: rgba(3,114,206,.08); }
.combo-list li.none { color: var(--muted); cursor: default; font-size: 14px; }
.combo-list li.none:hover { background: none; }

.terr-box { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.terr-head { display: flex; justify-content: space-between; align-items: center; }
.terr-head .label { color: var(--blue); }
.terr-clear { color: var(--muted); text-decoration: underline; }
.terr-rows { display: grid; gap: 2px; max-height: 210px; overflow: auto; }
.terr-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.terr-row:hover { background: var(--paper); }
.terr-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.terr-row .ct { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.terr-near { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.terr-near:empty { display: none; }
.terr-near .label { color: var(--muted); margin-right: 4px; }
.terr-near .chip { cursor: pointer; font-weight: 500; transition: background-color .2s, border-color .2s; }
.terr-near .chip:hover { background: var(--paper); border-color: var(--ink); }
.terr-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.terr-sum > div { background: var(--paper); padding: 14px 16px; display: grid; gap: 2px; }
.terr-sum b { font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.terr-sum small { font-size: 12.5px; color: var(--muted); }
.terr-box .hint { font-size: 12.5px; color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:disabled::after { display: none; }

.step2-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 12px; background: rgba(3,114,206,.08); color: var(--ink); }
.step2-summary .i { color: var(--blue); }
.step2-summary .link-arrow { margin-left: auto; color: var(--blue); }
.plan-warn { font-size: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(253,182,133,.25); color: var(--ink); }

.split-art:has(.pick-map) { background: #081424; }
.start-map { transition: opacity .6s var(--ease); }
.pick-map { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.pick-map .pk-bubble { cursor: pointer; outline: none; }
.pick-map .pk-bubble circle:nth-last-of-type(1) { transition: stroke .2s, fill .2s; }
.pick-map .pk-bubble:not(.on):hover circle, .pick-map .pk-bubble:not(.on):focus-visible circle { stroke: #FDB685; fill: rgba(253,182,133,.1); }
.pick-map .pk-bubble.on:hover circle:last-of-type, .pick-map .pk-bubble.on:focus-visible circle:last-of-type { stroke: #FFFFFF; }
.pick-empty { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 40px; color: var(--white); background: radial-gradient(60% 50% at 50% 50%, rgba(8,20,36,.85), rgba(8,20,36,.3)); }
.pick-empty .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(253,182,133,.15); color: var(--peach); border: 1px solid rgba(253,182,133,.4); }
.pick-empty b { font-size: 20px; }
.pick-empty small { color: var(--muted-light); max-width: 320px; }
.start-hud .label b { max-width: 42vw; display: inline-block; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .start-hud .label b { max-width: 60vw; } }

/* ==========================================================================
   Accessibility (WCAG 2.2 AA)
   Trail Peach on Scout Blue is only 2.8:1, below the 3:1 large text needs. So
   anywhere peach display type or small white text sits on a photo or gradient,
   the ground behind it is deepened to --blue-600 / ink. Blue text on Paper or
   Cream uses --blue-600 too (Scout Blue itself is 4.4:1 there, just under 4.5).
   ========================================================================== */
:root { --blue-600: #035AA6; }
.t-blue, .section-head .label, .explainer dt, .compare tbody tr.group td,
.form-note a, .step2-summary .link-arrow, .legal a { color: var(--blue-600); }
/* Theme-scoped colors follow the nearest section, never <body> (body keeps its first theme when motion is off) */
:not(body)[data-theme="paper"] .section-head .label, :not(body)[data-theme="cream"] .section-head .label { color: var(--blue-600); }
:not(body)[data-theme="paper"] .muted, :not(body)[data-theme="cream"] .muted { color: var(--muted); }
:not(body)[data-theme="paper"] :focus-visible, :not(body)[data-theme="cream"] :focus-visible,
.split-form :focus-visible, .legal :focus-visible { outline-color: var(--ink); }

.hero-shade { background: radial-gradient(120% 95% at 0% 42%, rgba(3,84,158,.98) 0%, rgba(3,84,158,.94) 46%, rgba(3,84,158,0) 76%); }
@media (max-width: 960px) {
  .hero-shade { background: linear-gradient(180deg, rgba(3,84,158,.97) 0%, rgba(3,84,158,.95) 62%, rgba(3,84,158,.6) 100%); }
}
.pill { background: rgba(11,26,46,.42); }
.pill:hover { background: rgba(11,26,46,.55); }
.media-caption { background: rgba(11,26,46,.82); }
.feed-section .bg-fade { background: linear-gradient(90deg, var(--blue-600) 40%, rgba(3,90,166,.55) 100%); }
@media (max-width: 860px) { .feed-section .bg-fade { background: rgba(3,90,166,.94); } }
.photo-band .shade { background: linear-gradient(0deg, rgba(11,26,46,.96) 0%, rgba(11,26,46,.9) 44%, rgba(11,26,46,.4) 68%, rgba(11,26,46,0) 80%); }
@media (max-width: 860px) { .photo-band .shade { background: linear-gradient(0deg, rgba(11,26,46,.96) 0%, rgba(11,26,46,.9) 50%, rgba(11,26,46,.4) 78%, rgba(11,26,46,.1) 100%); } }
.page-hero .bg-fade { background: linear-gradient(180deg, rgba(3,84,158,.8) 0%, rgba(3,84,158,.94) 100%); }
.cta-final .bg-layer::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 42%, rgba(11,26,46,.78) 0%, rgba(11,26,46,.5) 60%, rgba(11,26,46,.2) 100%); }

/* Moving content can be paused (WCAG 2.2.2) and stops for reduced motion */
.marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
html.reduced .marquee-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-pause { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); color: var(--white); border: 1px solid var(--line-light); }
.marquee-pause .i { width: 14px; height: 14px; }
html.reduced .marquee-pause { display: none; }

/* Keyboard-reachable scroll area */
.table-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* "Coming soon" tags on features that aren't in the app yet */
.soon { display: inline-block; vertical-align: 2px; margin-left: 6px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1; padding: 4px 7px; border-radius: var(--r-pill); background: var(--ink); color: var(--peach); white-space: nowrap; }
[data-theme="ink"] .soon, .plan.is-featured .soon, .feed-section .soon, .story .soon { background: var(--peach); color: var(--ink); }
:not(body)[data-theme="paper"] .soon, :not(body)[data-theme="cream"] .soon { background: var(--ink); color: var(--peach); }
.plan.is-featured ul.feat .soon { background: var(--peach); color: var(--ink); }
.illus-note { font-size: 13px; color: var(--muted-light); margin-top: 20px; }

/* Consent checkboxes */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.check a { color: var(--blue-600); text-decoration: underline; }
.disclosure { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }
.disclosure strong { color: var(--ink); }

/* Footer business details */
.footer-legal { display: grid; gap: 4px; font-size: 13px; color: var(--muted-light); }
.footer-legal a { color: inherit; text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--ink); color: var(--white); padding: 150px 0 64px; }
.legal-hero .label { color: var(--peach); }
.legal-hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; margin-top: 18px; color: var(--peach); }
.legal-hero p { color: var(--muted-light); margin-top: 18px; max-width: 640px; }
.legal { background: var(--paper); color: var(--ink); padding: 64px 0 120px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); }
.legal-toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 8px; font-size: 14px; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal-toc .label { color: var(--ink); margin-bottom: 6px; }
.legal-body { font-size: 17px; line-height: 1.65; }
.legal-body h2 { font-size: 26px; line-height: 1.2; margin: 48px 0 14px; scroll-margin-top: 110px; letter-spacing: -.01em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 19px; margin: 28px 0 8px; }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body table { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { text-decoration: underline; }
.legal-body strong { font-weight: 700; }
.legal-body .callout { background: var(--cream); border-radius: 16px; padding: 18px 20px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal-body th { font-weight: 700; }
.legal-body .meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .legal-body table { display: block; overflow-x: auto; }
}
.stage-note { position: absolute; right: 0; top: -6px; z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--white); background: rgba(11,26,46,.78); padding: 4px 10px; border-radius: var(--r-pill); }
.plans-note { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--muted); }
.plans-note a { color: var(--blue-600); text-decoration: underline; }

/* Signup: errors, honeypot, finished state */
.form-error { font-size: 14px; font-weight: 600; color: #9B1C1C; background: #FDECEC; border-radius: 12px; padding: 10px 14px; }
.input[aria-invalid="true"] { border-color: #9B1C1C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.start-done { display: grid; gap: 16px; justify-items: start; outline: none; }
.start-done .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--peach); }
.start-done .btn { margin-top: 8px; }
