/* ==========================================================================
   FONEMIC homepage styles
   Implements DESIGN.md (brand: Brand Guideline 2026 · format: DESIGN-reference.md)
   ========================================================================== */

:root {
  /* Brand palette (BG p.12) */
  --azure: #6ab1e4;
  --sky: #9cd6ff;
  --mist: #c1e6ff;
  --ice: #e9f6ff;
  --offwhite: #f4f4f2;
  --ink: #1a1a1a;
  --ink-2: #232323;
  --gray: #a8a8a8;

  /* Problem state (Blind Spot only): not a brand color, used sparingly */
  --risk: #e5484d;
  --risk-soft: #ff9b9e;

  /* Derived neutrals (DESIGN.md §2.2) */
  --paper: #ffffff;
  --text-2: #5c5c5c;
  --text-3: #6b6b6b;
  --line: #e5e5e2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --grad: linear-gradient(135deg, var(--sky), var(--azure));

  /* Type */
  --font-display: "Zalando Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & layout */
  --r: 12px;
  --r-sm: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --section-y: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 860px) { :root { --section-y: 48px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
.reduce-motion { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  letter-spacing: -0.01em;
  font-feature-settings: "calt" 0, "liga" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); 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; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
.noscript { padding: 40px; text-align: center; }

/* ---------- type ---------- */
.h2 {
  font: 500 clamp(32px, 4vw, 48px)/1.1 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h3 { font: 600 clamp(20px, 2vw, 24px)/1.33 var(--font-body); letter-spacing: -0.01em; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__sub { margin-top: 16px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; color: var(--text-2); max-width: 60ch; }
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

/* ---------- sections & surfaces ---------- */
.section { padding: var(--section-y) 0; position: relative; background: var(--paper); }
.section--alt { background: var(--offwhite); }
.section--dark { background: var(--ink); color: #fff; --text-2: var(--gray); --text-3: var(--gray); --line: var(--line-dark); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--azure); color: var(--ink); }
.btn--primary:hover { background: var(--sky); }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--gray); }
.btn--secondary:hover { border-color: var(--ink); }

.link-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1.2 var(--font-body); text-decoration: none; color: var(--ink);
}
.link-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-ghost__icon { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   Asset slots / placeholders (DESIGN.md §6.16)
   ========================================================================== */
.slot {
  position: relative; overflow: hidden; width: 100%;
  background: repeating-linear-gradient(135deg, #ececea 0 10px, #e5e5e2 10px 20px);
  border-radius: var(--r);
}
.slot__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 12px; text-align: center; color: var(--text-3);
  font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0;
  border: 1px dashed #cfcfcb; border-radius: inherit;
}
.slot__id { font: 600 13px/1 var(--font-body); color: var(--ink); background: var(--paper); padding: 4px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.slot__path { word-break: break-all; max-width: 100%; }
.slot__size { opacity: .75; }
.slot__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.slot.is-loaded { background: transparent; }
.slot.is-loaded .slot__ph { display: none; }
.slot.is-loaded .slot__media { opacity: 1; }

.section--dark .slot, .footer .slot { background: repeating-linear-gradient(135deg, #262626 0 10px, #222 10px 20px); }
.section--dark .slot__ph, .footer .slot__ph { color: #8a8a8a; border-color: rgba(255,255,255,.16); }

/* Icon slots (A7/A8) */
.icon { width: 44px; height: 44px; flex: none; border-radius: var(--r); }
.icon .slot__ph { padding: 0; }
.icon .slot__id { font-size: 11px; padding: 3px 5px; }
.icon--sm { width: 40px; height: 40px; }
.icon.is-loaded .slot__media { object-fit: contain; }

/* Logo slots: text wordmark until the SVG exists */
.logo { width: fit-content; height: 26px; background: none !important; border-radius: 0; overflow: visible; }
.logo .slot__ph { position: relative; inset: auto; flex-direction: row; gap: 8px; padding: 0; border: 0; color: inherit; height: 100%; }
.logo .slot__media { position: relative; width: auto; height: 100%; }
.logo:not(.is-loaded) .slot__media { position: absolute; }
.wordmark { font: 700 21px/1 var(--font-display); letter-spacing: 0.01em; }
.slot__tag { font: 600 9px/1 var(--font-body); padding: 3px 4px; border-radius: 4px; border: 1px dashed currentColor; opacity: .5; letter-spacing: 0; }

/* ==========================================================================
   Announcement bar (§6.1)
   ========================================================================== */
.announce { background: var(--ink-2); color: #fff; font: 500 13px/1.3 var(--font-body); }
.announce__inner { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce a { color: var(--sky); text-decoration: none; white-space: nowrap; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   00 · Navbar (§6.2)
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--paper); border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav--scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 48px; }
.nav__brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.nav__links { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__menu { display: flex; gap: 32px; }
.nav__menu a { font: 500 14px/1 var(--font-body); text-decoration: none; color: var(--ink); }
.nav__menu a:hover { color: var(--text-2); }
.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__ghost { font-size: 14px; }
.nav__cta { height: 40px; padding: 0 16px; font-size: 14px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 48px rgba(26,26,26,.12);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__menu { flex-direction: column; gap: 0; }
  .nav__menu a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__actions { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .nav__ghost { justify-content: center; font-size: 15px; }
  .nav__cta { height: 52px; font-size: 16px; }
}

/* ==========================================================================
   01 · Hero: copy left over a full-bleed image anchored right
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; background: var(--paper);
  min-height: clamp(560px, 48vw, 820px); display: flex; align-items: center; padding: 80px 0;
}
.hero__grid { position: relative; z-index: 1; }
.hero__copy { max-width: min(45%, 580px); }
.hero__title {
  font: 500 clamp(44px, 5.4vw, 72px)/1.0 var(--font-display); letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__sub { margin-top: 24px; max-width: 34em; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; color: var(--text-2); }
.capture { margin-top: 32px; display: flex; gap: 8px; max-width: 480px; }
.capture input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--gray); background: var(--paper); font-size: 16px;
}
.capture input::placeholder { color: var(--text-3); }
.capture input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px var(--ice); }
.hero .link-ghost { margin-top: 24px; }

/* The art box keeps the image's ratio and is sized by height, so the symbol's
   % position always lands on the same spot of the image. */
.hero__visual { position: absolute; inset: 0; pointer-events: none; }
.hero__art {
  position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 3840 / 1848;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
          mask-image: linear-gradient(to right, transparent, #000 18%);
}
.hero__art picture, .hero__img { display: block; width: 100%; height: 100%; }
.hero__img { opacity: 0; transition: opacity .9s var(--ease); }
.hero__visual.is-loaded .hero__img { opacity: 1; }

/* Animated brand symbol: ring turns in, tail slides in, dot lands; then breathes */
.hero__mark { position: absolute; left: var(--lx); top: var(--ly); width: clamp(56px, 5.5vw, 92px); transform: translate(-45%, -46%); }
.hero__mark .lens-svg { color: var(--azure); display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 18px rgba(106, 177, 228, .35)); }
.hero__mark .sym__ring, .hero__mark .sym__dot, .hero__mark .sym__tail { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; }
.hero__visual.is-loaded .sym__ring { animation: sym-ring 1.1s var(--ease) .5s both; }
.hero__visual.is-loaded .sym__tail { animation: sym-tail .8s var(--ease) 1.1s both; }
.hero__visual.is-loaded .sym__dot  { animation: sym-dot .6s var(--ease) 1.4s both, sym-dot-beat 3s ease-in-out 2.4s infinite; }
.hero__pulse {
  position: absolute; left: 1%; top: 2%; width: 87%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--azure); opacity: 0;
}
.hero__visual.is-loaded .hero__pulse { animation: pulse 3s ease-out 2s infinite; }
@keyframes sym-ring { from { opacity: 0; transform: rotate(-140deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes sym-tail { from { opacity: 0; transform: translate(-30%, -30%) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes sym-dot { from { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.2); } to { opacity: 1; transform: none; } }
@keyframes sym-dot-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82); } }
@keyframes pulse { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.reduce-motion .hero__img, .reduce-motion .hero__mark * { animation: none !important; transition: none !important; opacity: 1 !important; }
.reduce-motion .hero__pulse { display: none; }

/* Stacked: copy first, then a frame cropped to the laptop (right half of the image) */
@media (max-width: 1100px) {
  .hero { display: block; min-height: 0; padding: 48px 0 0; }
  .hero__copy { max-width: 640px; }
  .hero__visual { position: relative; inset: auto; margin-top: 40px; aspect-ratio: 1.1; max-height: 640px; width: 100%; overflow: hidden; }
  .hero__art { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
}
@media (max-width: 480px) {
  .capture { flex-direction: column; }
  .capture input { flex: none; }
}

/* ==========================================================================
   Scrub sections (pinned, scroll-driven) (§6.11)
   ========================================================================== */
.scrub { height: var(--scrub-len, 400vh); padding: 0; }
.scrub__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center; padding-top: var(--nav-h);
}
.reduce-motion .scrub { height: auto; padding: var(--section-y) 0; }
.reduce-motion .scrub__sticky { position: relative; height: auto; overflow: visible; padding-top: 0; }

/* ==========================================================================
   02 · Blind Spot: problem → solution, one pinned grid (the dark story band)
   ========================================================================== */
.blind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 7vw, 112px); align-items: center; }
.blind .h2 { font-size: clamp(30px, 3.2vw, 44px); }

/* The two acts share one grid cell and crossfade */
.blind__copy { display: grid; max-width: 560px; }
.blind__act { grid-area: 1 / 1; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.blind__act:not(.is-current) { opacity: 0; visibility: hidden; pointer-events: none; }
.blind__act--problem:not(.is-current) { transform: translateY(-24px); }
.blind__act--solution:not(.is-current) { transform: translateY(24px); }
.blind__body { margin-top: 16px; max-width: 40ch; font-size: 16px; line-height: 1.5; color: var(--gray); }

/* Percentage card: overlaps the grid's lower-left corner; one meter per act */
.blind__stat {
  position: absolute; left: clamp(-56px, -4vw, -24px); bottom: 28px; z-index: 2; display: grid; width: max-content;
  padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line-dark);
  background: rgba(26, 26, 26, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.blind__meter { grid-area: 1 / 1; display: flex; align-items: center; gap: 14px; transition: opacity .5s var(--ease); }
#blind-spot:not(.is-solved) .blind__meter--solution, #blind-spot.is-solved .blind__meter--problem { opacity: 0; }
.blind__pct { font: 600 clamp(44px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--gray); transition: color .5s; font-variant-numeric: tabular-nums; }
.blind__pct--risk { color: var(--risk); }
.is-complete .blind__pct { color: var(--sky); }
.blind__label { font-size: 13px; color: var(--gray); max-width: 18ch; line-height: 1.4; }

.pains { margin-top: 28px; display: grid; gap: 14px; }
.pain { display: flex; gap: 16px; opacity: .25; transition: opacity .5s; }
.pain.is-on { opacity: .6; }
.pain.is-active { opacity: 1; }
.pain__num { font: 500 13px/1.7 var(--font-body); color: var(--sky); min-width: 2.2ch; }
.pain--risk .pain__num { color: var(--risk); }
.pain__title { font: 600 16px/1.4 var(--font-body); }
.pain__copy { font-size: 14px; color: var(--gray); }
.blind__closing {
  margin-top: 24px; font: 500 clamp(17px, 1.6vw, 20px)/1.35 var(--font-body); letter-spacing: -0.01em; color: var(--sky);
  opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease);
}
.blind__act--problem .blind__closing { color: var(--risk-soft); }
.blind__closing.is-on { opacity: 1; transform: none; }

/* Grid is capped so the pinned section keeps clear space above and below */
.blind__stage { position: relative; width: min(100%, calc(100svh - var(--nav-h) - 200px)); aspect-ratio: 1; justify-self: end; }
.tiles { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; width: 100%; height: 100%; }
.tile { border-radius: 2px; background-color: #2a2a2a; transition: background-color .5s, box-shadow .5s; }
.tile.is-risk { background-color: var(--risk); box-shadow: 0 0 6px rgba(229, 72, 77, .35); }
.tile.is-lit { background-color: var(--azure); box-shadow: 0 0 0 1px rgba(156, 214, 255, .5); }
.blind__lens { position: absolute; left: 0; top: 0; width: 20%; pointer-events: none; transition: opacity .4s; will-change: transform; }
.blind__lens .lens-svg { position: relative; width: 100%; height: auto; color: #fff; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .45)) drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.blind__lens::before { content: ""; position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(26, 26, 26, .75), transparent 70%); }

/* Reduced motion: both acts stacked, grid shown in its final state */
.is-static .blind__copy { gap: 48px; }
.is-static .blind__act { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
.is-static .blind__stat { display: flex; gap: 24px; }
.is-static .blind__meter { opacity: 1 !important; }

@media (max-width: 860px) {
  .blind { grid-template-columns: 1fr; gap: 20px; }
  .blind__stage { order: -1; width: min(100%, 32svh); justify-self: center; }
  .blind__stat { left: -12px; bottom: 10px; padding: 10px 14px; }
  .tiles { gap: 2px; }
  .pains { margin-top: 14px; }
  .blind .h2 { font-size: clamp(24px, 6.4vw, 32px); }
  .blind__body { margin-top: 8px; font-size: 14px; }
  .blind__meter { gap: 10px; }
  .blind__pct { font-size: 32px; }
  .blind__label { font-size: 12px; max-width: 16ch; }
  .pains { display: block; min-height: 72px; }
  .pain { display: none; opacity: 1; }
  .pain.is-active { display: flex; }
  .blind__closing { margin-top: 10px; font-size: 16px; }
  .is-static .pains { display: grid; gap: 14px; }
  .is-static .pain { display: flex; }
}

/* ==========================================================================
   03 · Front + IQ
   ========================================================================== */
#front-iq { overflow: hidden; }
.frontiq__split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.frontiq__half { padding: clamp(32px, 5vw, 64px) 0; }
.frontiq__half--iq { padding-left: clamp(24px, 5vw, 64px); border-left: 1px solid var(--line); }
.frontiq__half p { max-width: 34ch; font-size: 18px; line-height: 1.45; color: var(--text-2); margin-top: 16px; }
.frontiq__word { display: inline-flex; align-items: center; font: 600 clamp(72px, 13vw, 176px)/0.9 var(--font-display); letter-spacing: -0.04em; }
.frontiq__word--iq { color: var(--azure); }
.frontiq__q { position: relative; display: inline-block; }
.frontiq__lens { position: absolute; width: .42em; right: -.18em; bottom: -.04em; opacity: 0; transform: scale(.4) rotate(-60deg); transition: opacity .8s .5s, transform 1s .5s var(--ease); }
.frontiq__half--iq.is-in .frontiq__lens { opacity: 1; transform: none; }
.frontiq__line { margin-top: 48px; font: 500 clamp(24px, 3vw, 36px)/1.2 var(--font-display); letter-spacing: -0.02em; max-width: 26ch; text-wrap: balance; }
.frontiq__half--front.reveal { transform: translateX(-24px); }
.frontiq__half--iq.reveal { transform: translateX(24px); }
.frontiq__half.reveal.is-in { transform: none; }
@media (max-width: 700px) {
  .frontiq__split { grid-template-columns: 1fr; }
  .frontiq__half--iq { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   04 · How It Works
   ========================================================================== */
.how { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.how .h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 32px; }
.steps { display: grid; }
.step { position: relative; display: flex; gap: 16px; padding: 14px 0 14px 20px; border-left: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--azure); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.step.is-active::before { transform: scaleY(1); }
.step__num { font: 500 13px/1.85 var(--font-body); color: var(--text-3); min-width: 2.2ch; }
.step__title { font: 600 17px/1.4 var(--font-body); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-3); transition: color .3s; }
.step__copy { font-size: 15px; color: var(--text-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.step.is-active .step__title, .step.is-active .step__num { color: var(--ink); }
.step.is-active .step__copy { max-height: 120px; opacity: 1; margin-top: 6px; }
.step__inline { display: none; }
.badge { font: 500 12px/1 var(--font-body); padding: 5px 8px; border-radius: var(--r-sm); background: var(--ice); border: 1px solid var(--mist); color: var(--ink); letter-spacing: 0; }

/* Flat media frame (§6.12) */
.device { position: relative; padding: 8px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.device__screen { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-sm); overflow: hidden; background: var(--offwhite); }
.device__shot { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.device__shot.is-active { opacity: 1; }
.device__shot .slot { height: 100%; border-radius: 0; }
.device__frame-img { display: none; }
.device--image { padding: 0; background: none; border: 0; aspect-ratio: 2600 / 1800; }
.device--image .device__screen { position: absolute; top: var(--it); right: var(--ir); bottom: var(--ib); left: var(--il); aspect-ratio: auto; }
.device--image .device__frame-img { display: block; position: relative; width: 100%; height: 100%; pointer-events: none; }
.how__dots { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.how__dots span { width: 6px; height: 6px; border-radius: 3px; background: #d6d6d2; transition: width .4s var(--ease), background .4s; }
.how__dots span.is-active { width: 22px; background: var(--azure); }

@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; gap: 16px; }
  .how__visual { order: -1; }
  .how__dots { display: flex; margin-top: 10px; }
  .how .h2 { font-size: clamp(24px, 6.4vw, 30px); margin-bottom: 12px; }
  .step { display: none; border-left: 0; padding: 0; }
  .step::before { display: none; }
  .step.is-active { display: flex; }
}
.reduce-motion .how { grid-template-columns: 1fr; }
.reduce-motion .how__visual { display: none; }
.reduce-motion .steps { gap: 40px; }
.reduce-motion .step { display: flex; border-left: 0; padding: 0; }
.reduce-motion .step::before { display: none; }
.reduce-motion .step__title, .reduce-motion .step__num { color: var(--ink); }
.reduce-motion .step__copy { max-height: none; opacity: 1; margin-top: 6px; }
.reduce-motion .step__inline { display: block; margin-top: 16px; max-width: 720px; }

/* ==========================================================================
   05 · Product: centered headline over a feature-card strip (§6.7, §6.17)
   ========================================================================== */
#product .section__head { max-width: 980px; margin-bottom: 64px; }
/* Cards run wider than the standard container: 1440px max, 80px side padding */
.fcards-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
@media (max-width: 1100px) { .fcards-wrap { padding: 0 var(--gutter); } }
.fcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fcard {
  display: flex; flex-direction: column; min-height: 440px; overflow: hidden;
  background: var(--offwhite); border-radius: var(--r); padding: 32px 28px 28px;
}
.fcard__title { font: 600 clamp(20px, 1.8vw, 24px)/1.2 var(--font-body); letter-spacing: -0.02em; text-wrap: balance; }
.fcard__copy { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.fcard__vis { margin-top: auto; padding-top: 32px; min-width: 0; }

/* Shared vignette parts */
.vis { font: 500 12px/1.3 var(--font-body); color: var(--ink); letter-spacing: -0.01em; }
.vis small { display: block; margin-top: 3px; font: 500 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.vis--panel { background: var(--paper); border-radius: var(--r); padding: 14px; }
.vis--stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.vis--bleed { margin-bottom: -56px; }
.vchip {
  display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 6px; border-radius: var(--r-sm);
  font: 600 10px/1 var(--font-body); letter-spacing: 0; white-space: nowrap;
}
.vchip svg { width: 10px; height: 10px; }
.vchip--ok { background: var(--azure); color: var(--ink); }
.vchip--off { background: var(--paper); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--gray); }

/* chart */
.vis--chart { position: relative; height: 150px; }
.vis--chart svg { width: 100%; height: 100%; overflow: visible; }
.vis__grid { stroke: #d6d6d2; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.vis__ghost { fill: var(--mist); opacity: .7; }
.vis__area { fill: var(--azure); }
.vis__tip {
  position: absolute; left: 22%; top: 18%; padding: 6px 8px; border-radius: var(--r-sm);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.vis__tip strong { display: block; font: 600 14px/1 var(--font-body); }
.vis__tip span { display: block; margin-top: 3px; font: 500 9px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* bars */
.vis--bars { display: grid; gap: 9px; }
.vbar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label value" "track track"; gap: 4px 8px; align-items: center; }
.vbar__label { grid-area: label; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar__value { grid-area: value; font: 600 11px/1 var(--font-body); }
.vbar__track { grid-area: track; height: 4px; border-radius: 2px; background: var(--ice); overflow: hidden; }
.vbar__track i { display: block; height: 100%; border-radius: 2px; background: var(--azure); transform-origin: left; }
.reveal:not(.is-in) .vbar__track i { transform: scaleX(0); }
.vbar__track i { transition: transform 1s var(--ease) .3s; }

/* findings rows */
.vrow { display: flex; align-items: flex-start; gap: 8px; padding: 12px; }
.vrow__mark { width: 20px; height: 20px; flex: none; border-radius: var(--r-sm); background: var(--ice); box-shadow: inset 0 0 0 1px var(--mist); position: relative; }
.vrow__mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--azure); }
.vrow__mark.is-off { background: var(--offwhite); box-shadow: inset 0 0 0 1px var(--line); }
.vrow__mark.is-off::after { background: var(--gray); }
.vrow__text { flex: 1; min-width: 0; }
.vrow__text strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; }

/* insight */
.vbanner { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; }
.vbanner svg { width: 16px; height: 16px; color: var(--azure); flex: none; }
.vdoc { padding: 16px 16px 56px; }
.vdoc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.vdoc__head small { margin: 0; }
.vdoc__value { margin: 10px 0 18px; font-size: 12px; font-weight: 600; }
.vdoc__line { display: block; height: 10px; border-radius: 3px; background: var(--offwhite); margin-top: 8px; }

/* action */
.vaction { padding: 16px; }
.vaction__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.vaction__route { margin-top: 28px; display: flex; align-items: center; gap: 8px; }
.vaction__route strong { display: block; font: 600 15px/1 var(--font-body); }
.vaction__route .is-end { text-align: right; }
.vaction__line { flex: 1; height: 1.5px; background: var(--azure); position: relative; margin-bottom: 12px; }
.vaction__line::before, .vaction__line::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--azure); transform: translateY(-50%); }
.vaction__line::before { left: 0; }
.vaction__line::after { right: 0; }

@media (max-width: 1100px) { .fcards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .fcards { grid-template-columns: 1fr 1fr; }
  .fcard { min-height: 400px; padding: 24px 20px 20px; }
}
@media (max-width: 520px) {
  .fcards { grid-template-columns: 1fr; }
  .fcard { min-height: 0; }
  .vis--chart { height: 130px; }
}

/* ==========================================================================
   06 · Results (§6.8)
   ========================================================================== */
/* Results: dark band. One lead stat, two before/after stats, two survey rings, expansion CTA */
.res { background: radial-gradient(70% 60% at 85% 0%, rgba(106, 177, 228, .18), transparent 70%), var(--ink); }
.res__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.res__attr { margin-top: 12px; font-size: clamp(16px, 1.4vw, 18px); color: var(--gray); }

.res__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.res__card { position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.5); padding: clamp(24px, 2.4vw, 32px); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.res__card--hero { grid-column: 1 / 3; grid-row: 1 / 3; display: flex; flex-direction: column; color: var(--ink); border: 0; background: linear-gradient(145deg, var(--sky), var(--azure) 60%, #4f9ad3); }
/* Right side: two stats on top, two survey rings below, each pair side by side */
.res__card--stat { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.res__card--survey { display: flex; align-items: center; gap: 16px; }

.res__num { display: block; font: 600 clamp(44px, 4.4vw, 64px)/.95 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; }
.res__suffix { font-size: .55em; margin-left: .04em; letter-spacing: -0.01em; }
.res__card--hero .res__num { font-size: clamp(96px, 12vw, 176px); letter-spacing: -0.05em; }
.res__label { margin-top: 8px; font: 600 16px/1.35 var(--font-body); }
.res__card--hero .res__label { font: 500 clamp(20px, 1.8vw, 24px)/1.25 var(--font-display); letter-spacing: -0.01em; }
.res__basis { margin-top: 4px; font-size: 13px; color: var(--gray); }
.res__card--stat .res__num { font-size: clamp(40px, 3.6vw, 52px); }
/* Compact stacked bars in the narrow stat cards: label + value on one line, track below */
.res__card--stat .res__bar { grid-template-columns: 1fr auto; row-gap: 6px; }
.res__card--stat .res__bar-track { grid-column: 1 / -1; grid-row: 2; height: 8px; }
.res__mark { position: absolute; right: -12%; top: -16%; width: 60%; color: #fff; opacity: .16; pointer-events: none; }
.res__mark .lens-svg { display: block; width: 100%; height: auto; }

/* Before/after bars */
.res__bars { display: grid; gap: 10px; }
.res__card--hero .res__bars { margin-top: auto; padding-top: 40px; gap: 14px; }
.res__bar { display: grid; grid-template-columns: minmax(96px, 9.5em) 1fr auto; align-items: center; gap: 12px; font-size: 13px; }
.res__bar-label { color: var(--gray); }
.res__bar-val { font: 600 14px/1 var(--font-body); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.res__bar-track { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.res__bar-track i { display: block; height: 100%; width: var(--w); border-radius: 5px; background: #5a5a5a; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
.res__bar--brand .res__bar-track i { background: var(--grad); }
.res__bar--brand .res__bar-label, .res__bar--brand .res__bar-val { color: var(--sky); }
.res__card.is-shown .res__bar-track i { transform: none; }
.res__card--hero .res__bar { font-size: 14px; }
.res__card--hero .res__bar-label { color: rgba(26, 26, 26, .72); }
.res__card--hero .res__bar-track { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .35); }
.res__card--hero .res__bar-track i { background: rgba(26, 26, 26, .35); }
.res__card--hero .res__bar--brand .res__bar-track i { background: var(--ink); }
.res__card--hero .res__bar--brand .res__bar-label, .res__card--hero .res__bar--brand .res__bar-val { color: var(--ink); font-weight: 600; }

/* Survey rings */
.res__ring { position: relative; flex: none; width: 76px; height: 76px; }
.res__ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 19px/1 var(--font-display); letter-spacing: -0.02em; }
.res__card--survey .res__label { margin-top: 0; font-size: 15px; }
.ring--res .ring__track { stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
.ring--res .ring__bar { stroke-width: 8; }


@media (max-width: 1100px) {
  .res__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res__card--hero { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 600px) {
  .res__grid { grid-template-columns: 1fr; }
  .res__bar { grid-template-columns: 1fr auto; row-gap: 6px; }
  .res__bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ==========================================================================
   07 · Honest by Design
   ========================================================================== */
/* Strong spans two rows on the left; Moderate + Improving stack on the right.
   Color steps down with confidence: brand gradient → ice tint → neutral outline. */
.honest { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.honest__group { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: calc(var(--r) * 1.5); padding: 32px; }
.honest__head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.honest__level { font: 600 24px/1.1 var(--font-display); letter-spacing: -0.01em; }
.honest__note { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.meter { display: inline-flex; gap: 4px; margin-top: 8px; }
.meter i { width: 20px; height: 4px; border-radius: 2px; background: var(--line); }
.meter i.on { background: var(--azure); }

.honest__items { position: relative; display: grid; gap: 12px; flex: 1; align-content: start; }
.honest__item { display: flex; gap: 16px; align-items: flex-start; }
.honest__item h4 { font: 600 16px/1.4 var(--font-body); }
.honest__item p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.honest__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--paper) !important; box-shadow: 0 1px 2px rgba(26, 26, 26, .06); }
.honest__icon .slot__media { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }

/* Strong: brand gradient, 2×2 frosted tiles, watermark symbol */
.honest__group--s3 { grid-row: span 2; color: var(--ink); background: linear-gradient(145deg, var(--sky) 0%, var(--azure) 55%, #4f9ad3 100%); }
.honest__group--s3 .honest__head { border-color: rgba(26, 26, 26, .14); }
.honest__group--s3 .honest__level { font-size: clamp(28px, 2.6vw, 36px); }
.honest__group--s3 .honest__note { color: rgba(26, 26, 26, .72); }
.honest__group--s3 .meter i { background: rgba(255, 255, 255, .45); }
.honest__group--s3 .meter i.on { background: var(--ink); }
.honest__group--s3 .honest__items { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; align-content: stretch; }
.honest__group--s3 .honest__item {
  flex-direction: column; gap: 20px; padding: 24px; border-radius: var(--r);
  background: rgba(255, 255, 255, .32); border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.honest__group--s3 .honest__item p { color: rgba(26, 26, 26, .72); }
.honest__mark { position: absolute; right: -8%; top: -14%; width: 52%; color: #fff; opacity: .16; pointer-events: none; }
.honest__mark .lens-svg { display: block; width: 100%; height: auto; }

/* Right-column cards: head on top, item anchored to the bottom edge */
.honest__group--s2 .honest__items, .honest__group--s1 .honest__items { align-content: end; }
.honest__group--s2 .honest__head, .honest__group--s1 .honest__head { margin-bottom: 24px; }

/* Moderate: ice tint */
.honest__group--s2 { background: var(--ice); border: 1px solid var(--mist); }
.honest__group--s2 .honest__head { border-color: var(--mist); }

/* Improving: neutral, dashed = work in progress */
.honest__group--s1 { background: var(--paper); border: 1.5px dashed var(--mist); }
.honest__group--s1 .honest__icon { background: var(--ice) !important; box-shadow: none; }

@media (max-width: 960px) {
  .honest { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .honest__group { padding: 24px; }
  .honest__group--s3 { grid-row: auto; }
  .honest__group--s2 .honest__items, .honest__group--s1 .honest__items { align-content: start; }
}
@media (max-width: 600px) {
  .honest__group--s3 .honest__items { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .honest__group--s3 .honest__item { flex-direction: row; padding: 16px; gap: 14px; }
  .honest__mark { width: 80%; top: -6%; }
}

/* ==========================================================================
   08 · Industries: horizontal tabs (§6.9)
   ========================================================================== */
.sectors__tabs {
  display: flex; gap: 32px; border-bottom: 1px solid #dcdcd8; margin-bottom: 40px;
  overflow-x: auto; scrollbar-width: none;
}
.sectors__tabs::-webkit-scrollbar { display: none; }
.sectors__tab {
  position: relative; flex: none; background: none; border: 0; padding: 0 0 16px; cursor: pointer; white-space: nowrap;
  font: 500 15px/1.2 var(--font-body); color: var(--text-2); transition: color .2s;
}
.sectors__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--azure); transform: scaleX(0); transition: transform .3s var(--ease); }
.sectors__tab:hover { color: var(--ink); }
.sectors__tab[aria-selected="true"] { color: var(--ink); }
.sectors__tab[aria-selected="true"]::after { transform: scaleX(1); }
.sectors__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; animation: fade-in .5s var(--ease); }
.sectors__panel[hidden] { display: none; }
.sectors__img { max-width: 380px; }
.sectors__text dl { margin-top: 8px; display: grid; }
.sectors__text dt { font: 500 13px/1.4 var(--font-body); color: var(--text-3); margin-top: 24px; padding-top: 24px; border-top: 1px solid #dcdcd8; }
.sectors__text dd { margin-top: 6px; font-size: 18px; line-height: 1.45; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .sectors__tabs {
    gap: 24px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent);
  }
  .sectors__panel { grid-template-columns: 1fr; }
  .sectors__img { max-width: none; aspect-ratio: 4 / 3 !important; }
  .sectors__img .slot__media { object-position: center 25%; }
}

/* ==========================================================================
   09 · Roadmap (light) (§6.13)
   ========================================================================== */
.roadmap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.roadmap .h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 32px; }
.phases { display: grid; }
.phase { position: relative; display: flex; gap: 16px; padding: 16px 0 16px 20px; border-left: 1px solid var(--line); }
.phase::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--azure); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.phase.is-active::before { transform: scaleY(1); }
.phase__mini { display: none; position: relative; width: 64px; height: 64px; flex: none; }
.phase__mini span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 13px/1 var(--font-body); }
.phase__num { font: 500 13px/1.4 var(--font-body); color: var(--text-3); }
.phase__title { margin-top: 2px; font: 600 18px/1.35 var(--font-body); color: var(--text-3); transition: color .3s; }
.phase__copy { margin-top: 4px; font-size: 15px; color: var(--text-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.phase.is-active .phase__title { color: var(--ink); }
.phase.is-active .phase__copy { max-height: 120px; opacity: 1; }

.roadmap__visual { position: relative; padding-bottom: 32px; }
.roadmap__images { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--ice); }
.roadmap__img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.roadmap__img.is-active { opacity: 1; }
.roadmap__img .slot { height: 100%; border-radius: 0; }
/* UI screenshots sit whole on a soft brand backing */
.roadmap__img--ui { padding: 7%; background: radial-gradient(120% 90% at 50% 100%, var(--mist), var(--ice) 70%); }
.roadmap__img--ui .slot { background: none; overflow: visible; }
.roadmap__img--ui .slot__media { filter: drop-shadow(0 18px 36px rgba(26, 26, 26, .16)); }
.roadmap__ring {
  position: absolute; left: 24px; bottom: 0;
  width: clamp(140px, 15vw, 196px); aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
}
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--ice); stroke-width: 6; }
.ring__bar { fill: none; stroke: url(#g-brand); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.ring--main { padding: 8px; }
.ring--mini .ring__track, .ring--mini .ring__bar { stroke-width: 8; }
.roadmap__ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.roadmap__ring-text strong { font: 600 clamp(28px, 3vw, 40px)/1 var(--font-display); letter-spacing: -0.03em; }
.roadmap__ring-text span { margin-top: 6px; font: 500 12px/1 var(--font-body); color: var(--text-3); }

/* Bridge CTA under the roadmap: dark brand card, copy + "your inputs = your AI model" */
.roadmap-lines { padding-top: 0; }
.own {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 80px);
  border-radius: calc(var(--r) * 2); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(106, 177, 228, .35), transparent 55%), var(--ink);
}
.own__mark { position: absolute; left: -10%; bottom: -38%; width: 46%; color: var(--azure); opacity: .08; pointer-events: none; }
.own__mark .lens-svg, .own__out-icon .lens-svg { display: block; width: 100%; height: auto; }
.own__copy { position: relative; }
.own__title { font: 500 clamp(30px, 3.4vw, 46px)/1.08 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.own__body { margin-top: 20px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; color: var(--gray); }
.own__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--ghost-dark:hover { border-color: #fff; }
.own__note { margin-top: 16px; font-size: 14px; color: var(--gray); }

.own__eq { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.own__in {
  display: block; padding: 16px 20px; border-radius: var(--r); font: 500 16px/1.2 var(--font-body);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark);
}
.own__op { align-self: center; font: 500 18px/1 var(--font-body); color: var(--azure); }
.own__flow { align-self: center; width: 2px; height: 40px; margin: 4px 0; border-radius: 1px; background: linear-gradient(var(--line-dark), var(--azure)); }
.own__out {
  display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--r);
  font: 600 clamp(18px, 1.6vw, 22px)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink);
  background: var(--grad); box-shadow: 0 12px 40px rgba(106, 177, 228, .35);
}
.own__out-icon { flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 10px; background: var(--ink); color: var(--azure); }

@media (max-width: 860px) {
  .own { grid-template-columns: 1fr; gap: 32px; }
  .own__actions .btn { flex: 1 1 auto; }
  .own__mark { width: 80%; bottom: -20%; }
  .own__eq { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .own__in { padding: 10px 14px; font-size: 14px; }
  .own__op { font-size: 15px; }
  .own__flow { display: none; }
  .own__out { flex-basis: 100%; margin-top: 8px; padding: 16px; }
}

@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; gap: 16px; }
  .roadmap__visual { order: -1; padding-bottom: 0; }
  .roadmap .h2 { font-size: clamp(24px, 6.4vw, 30px); margin-bottom: 8px; }
  .roadmap__ring { left: auto; right: 12px; bottom: -28px; width: 108px; }
  .roadmap__ring-text strong { font-size: 24px; }
  .roadmap__ring-text span { font-size: 10px; }
  .phase { display: none; padding: 0; border-left: 0; }
  .phase::before { display: none; }
  .phase.is-active { display: flex; }
}
.reduce-motion .roadmap__visual { display: none; }
.reduce-motion .roadmap { grid-template-columns: 1fr; }
.reduce-motion .phase { display: flex; border-left: 0; padding: 16px 0; }
.reduce-motion .phase::before { display: none; }
.reduce-motion .phase__title { color: var(--ink); }
.reduce-motion .phase__copy { max-height: none; opacity: 1; }
.reduce-motion .phase__mini { display: block; }

/* ==========================================================================
   10 · Final CTA (§6.14)
   ========================================================================== */
/* Final CTA: dark full-bleed background; glass symbol on the left, copy + form on the right */
/* Tall enough that the background keeps its ratio: the symbol stays in the lower ~60%, clear of the copy */
.cta { --cta-h: max(56.25vw, 780px); position: relative; overflow: hidden; background: #050608; min-height: var(--cta-h); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 8, .55), transparent 40%), linear-gradient(90deg, transparent 40%, rgba(5, 6, 8, .55) 75%); pointer-events: none; }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-rows: auto 1fr; gap: 32px clamp(40px, 6vw, 96px); min-height: calc(var(--cta-h) - var(--section-y) * 2); }
/* Copy sits top-left, above the glass symbol in the background; form on the right */
.cta__copy { grid-column: 1; max-width: 560px; }
.cta .form { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.cta__copy .section__sub { color: var(--gray); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: grid; gap: 16px; }
/* Dark frosted variant inside the CTA */
.cta .form { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.cta .field span { color: var(--gray); }
.cta .field input, .cta .field select { background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.cta .field input::placeholder { color: #8a8a8a; }
.cta .field input:hover, .cta .field select:hover { border-color: rgba(255, 255, 255, .32); }
.cta .field input:focus, .cta .field select:focus { background-color: rgba(255, 255, 255, .1); border-color: var(--azure); box-shadow: 0 0 0 3px rgba(106, 177, 228, .25); }
.cta .field select { background-image: linear-gradient(45deg, transparent 50%, #bbb 50%), linear-gradient(135deg, #bbb 50%, transparent 50%); }
.cta .field select option { color: var(--ink); }
.cta .field select:invalid { color: #8a8a8a; }
.cta .form__status[data-kind="ok"] { color: #7fd6a2; }
.cta .form__status[data-kind="error"] { color: var(--risk-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font: 500 13px/1.4 var(--font-body); color: var(--text-2); }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid transparent; background: var(--offwhite);
  font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: var(--text-3); }
.field input:hover, .field select:hover { border-color: var(--gray); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; background-color: var(--paper); border-color: var(--azure); box-shadow: 0 0 0 3px var(--ice); }
.field input:user-invalid, .field select:user-invalid { border-color: #c2504a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { margin-top: 8px; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form__status[data-kind="ok"] { color: #2e7d4f; }
.form__status[data-kind="error"] { color: #b3443e; }

@media (max-width: 900px) {
  .cta { min-height: 0; }
  .cta__inner { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .cta__copy, .cta .form { grid-column: 1; grid-row: auto; }
  .cta__bg img { object-position: 20% center; opacity: .55; }
  .cta::after { background: linear-gradient(180deg, rgba(5, 6, 8, .2), rgba(5, 6, 8, .7)); }
}
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } .form { padding: 24px; } }

/* ==========================================================================
   11 · Footer (§6.15)
   ========================================================================== */
/* ==========================================================================
   11 · Blog
   ========================================================================== */
.blog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.blog__all { flex: none; }
.blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border-radius: calc(var(--r) * 1.5); overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post__link:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 26, 26, .08); }
.post__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post__link:hover .post__cover img, .post__link:hover .post__mark { transform: scale(1.04); }
.post__cover--sky { background: linear-gradient(145deg, var(--sky), var(--azure) 60%, #4f9ad3); color: #fff; }
.post__cover--ice { background: radial-gradient(90% 90% at 80% 20%, var(--mist), var(--ice) 70%); color: var(--azure); }
.post__cover--ink { background: radial-gradient(100% 120% at 100% 0%, rgba(106, 177, 228, .45), transparent 60%), var(--ink); color: var(--azure); }
.post__mark { position: absolute; right: -8%; bottom: -22%; width: 62%; opacity: .9; transition: transform .6s var(--ease); }
.post__cover--sky .post__mark { opacity: .35; }
.post__mark .lens-svg { display: block; width: 100%; height: auto; }
.post__cat { position: absolute; left: 20px; top: 20px; padding: 6px 12px; border-radius: 999px; font: 500 12px/1 var(--font-body); background: rgba(255, 255, 255, .9); color: var(--ink); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post__title { font: 600 clamp(19px, 1.6vw, 22px)/1.3 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.post__excerpt { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.post__more { margin-top: auto; padding-top: 20px; font: 600 14px/1 var(--font-body); color: var(--ink); }
.post__link:hover .post__more { color: var(--azure); }
@media (max-width: 960px) { .blog__grid { grid-template-columns: 1fr 1fr; } .blog__grid .post:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .blog__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   12 · FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__cta { margin-top: 32px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none;
  font: 600 clamp(17px, 1.4vw, 19px)/1.35 var(--font-body); transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--azure); }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ice); transition: background .3s, transform .3s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--azure); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 56px 24px 0; }
.faq__a p { font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 64ch; }
.faq__item[open] .faq__a { animation: fade-in .35s var(--ease); }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__head { position: static; }
  .faq__a { padding-right: 0; }
}

/* Footer: white, link columns on top, oversized wordmark, soft brand glow at the bottom */
.footer { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.footer::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 75%; pointer-events: none;
  background:
    radial-gradient(40% 60% at 22% 70%, rgba(156, 214, 255, .55), transparent 70%),
    radial-gradient(45% 65% at 58% 80%, rgba(106, 177, 228, .40), transparent 70%),
    radial-gradient(35% 55% at 88% 75%, rgba(193, 230, 255, .60), transparent 70%);
  filter: blur(40px);
}
.footer__wrap { position: relative; max-width: 1440px; margin: 0 auto; padding: clamp(64px, 8vw, 104px) clamp(16px, 5.5vw, 80px) 32px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.footer__head { margin-bottom: 20px; font: 400 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; color: var(--text-3); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font: 500 17px/1.35 var(--font-body); color: var(--ink); text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--azure); }
.footer__address { margin-top: 24px; font: 500 17px/1.5 var(--font-body); font-style: normal; color: var(--ink); white-space: pre-line; }
.footer .todo { color: #8a8a8a; border-color: #c9c9c9; }

.footer__logo { display: block; margin-top: clamp(80px, 12vw, 200px); }
.footer__logo img { display: block; width: 100%; height: auto; }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(28px, 3vw, 48px); }
.footer__legal { display: flex; gap: 32px; }
.footer__legal a { font: 500 15px/1.4 var(--font-body); color: var(--ink); text-decoration: none; }
.footer__legal a:hover { color: var(--azure); }
.footer__copy { font: 400 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; color: var(--text-2); }

@media (max-width: 860px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__col a, .footer__address { font-size: 16px; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   ?assets checklist panel (dev helper)
   ========================================================================== */
.asset-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 200; width: min(420px, calc(100vw - 32px)); max-height: 60vh; overflow: auto;
  background: #111; color: #ddd; border-radius: var(--r); box-shadow: 0 16px 48px rgba(26,26,26,.24); font: 12px/1.5 ui-monospace, Menlo, monospace; letter-spacing: 0;
}
.asset-panel header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #111; border-bottom: 1px solid #333; }
.asset-panel button { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
.asset-panel ul { padding: 8px 14px 14px; }
.asset-panel li { display: flex; gap: 8px; padding: 3px 0; word-break: break-all; color: #999; }
.asset-panel li.ok { color: #8fd19e; }
.asset-panel b { color: #fff; flex: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
