/* ==========================================================================
   LOC · "The Verified World" — stylesheet (all chapters)
   Brand palette canonical (Central Brain marketing guidelines).
   Light editorial system over the pale 3D world; navy reserved for the close.
   ========================================================================== */

:root {
  --white: #ffffff;
  --paper: #fafbfc;
  --ice: #eef4f9;
  --grey: #f0f2f5;
  --loc-blue: #234e70;
  --navy: #0a1628;
  --green: #4caf50;
  --green-deep: #3d8b40;
  --data-blue: #4a90d9;
  --amber: #f5a623;
  --body: #555555;
  --body-dark: #2d2d2d;
  --caption: #8a98a6;
  --hairline: rgba(35, 78, 112, 0.15);

  --font-display: "Garet", "Sora", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Garet Book", "Hanken Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 1280px;
}

@font-face {
  font-family: "Garet";
  src: url("../assets/fonts/Garet-Heavy.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Garet Book";
  src: url("../assets/fonts/Garet-Book.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.65;
  color: var(--body);
  background: linear-gradient(180deg, #f6fafd 0%, var(--ice) 45%, #f3f8fc 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--loc-blue);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.01em; }

.u-green { color: var(--green-deep); }
.u-amber { color: var(--amber); }
.u-blue { color: var(--data-blue); }

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  max-width: 56ch;
  margin-top: 1.4rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--loc-blue);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow__tick { width: 2.2rem; height: 1px; background: var(--loc-blue); flex: none; }
.eyebrow--ondark { color: rgba(255,255,255,0.85); }
.eyebrow--ondark .eyebrow__tick { background: var(--green); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--data-blue);
  margin-bottom: 0.9rem;
}
.mono-label--green { color: var(--green-deep); }
.mono-label--amber { color: #c47f10; }
.mono-label--blue { color: var(--data-blue); }

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
}
.section-head h2, .reviewer h2, .close h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem);
  max-width: 22ch;
  margin-top: 1.4rem;
}

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--loc-blue); color: #fff; box-shadow: 0 8px 24px rgba(35,78,112,0.22); }
.btn--solid:hover { background: #1e3d6b; }
.btn--green { background: var(--green); color: #fff; font-size: 1.05rem; padding: 1rem 2.1rem; box-shadow: 0 10px 30px rgba(76,175,80,0.35); }
.btn--green:hover { background: var(--green-deep); }

.js .reveal { opacity: 0; transform: translateY(36px); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem var(--pad);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(10, 22, 40, 0.06);
}
.nav__logo img { height: 4.2rem; width: auto; }
@media (max-width: 760px) { .nav__logo img { height: 3rem; } }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-dark);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover { color: var(--loc-blue); border-bottom-color: var(--green); }
/* demo CTA + dashboard sign-in, grouped with a consistent gap; Book a demo
   leads, Sign in sits to its right (far edge) */
.nav__actions { display: flex; align-items: center; gap: 0.7rem; }
.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn--ghost {
  color: var(--loc-blue);
  border: 1.5px solid rgba(35, 78, 112, 0.35);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--loc-blue); background: rgba(35, 78, 112, 0.06); }
.nav__signin { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
}

/* ---------- the world ---------- */

.world { position: fixed; inset: 0; z-index: 0; }
.world canvas { width: 100%; height: 100%; display: block; }
.world__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(238, 244, 249, 0.85) 100%);
}
.no-webgl .world { display: none; }

/* keep content above the fixed world canvas; the nav and steps keep their own
   fixed positioning (do NOT force them relative here, or the nav unfreezes) */
main { position: relative; z-index: 2; }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(6rem, 14vh, 10rem);
  position: relative;
}
.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__eyebrow { justify-content: center; margin-bottom: 1.6rem; }
.hero__title {
  font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.6rem);
  max-width: 20ch;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__title em { font-style: normal; color: var(--data-blue); }
.hero__tag {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  color: var(--body-dark);
}
.hero__scrollcue {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--caption);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.hero__scrollcue span {
  width: 1px; height: 2.4rem;
  background: linear-gradient(var(--loc-blue), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
.js .hero__eyebrow, .js .hero__line, .js .hero__tag, .js .hero__scrollcue { opacity: 0; }

/* ---------- journey ---------- */

.journey__seg { height: 300vh; position: relative; }
.journey__seg--long { height: 460vh; }

.journey__copy {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 30rem;
  padding: 0 var(--pad);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
  pointer-events: none;
  /* soft halo behind the copy so it stays readable over any part of the
     world (cars, houses, the glowing strand) without a hard card edge */
  background: radial-gradient(ellipse 130% 42% at 50% 50%,
    rgba(240, 247, 252, 0.88) 0%,
    rgba(240, 247, 252, 0.6) 48%,
    rgba(240, 247, 252, 0) 78%);
}
.journey__copy.is-on { opacity: 1; transform: none; }
.journey__copy--right { margin-left: auto; margin-right: clamp(1rem, 8vw, 9rem); }
.journey__copy--left { margin-right: auto; margin-left: clamp(1rem, 7vw, 8rem); }
.journey__copy--center { margin: 0 auto; text-align: center; align-items: center; max-width: 36rem; }
.journey__copy h2 { font-size: clamp(1.5rem, 1.05rem + 2vw, 2.4rem); }
.journey__copy h2 em { font-style: normal; color: var(--data-blue); }
.journey__copy p { margin-top: 1rem; font-size: 1.0rem; }
.journey__copy b { font-weight: 600; color: var(--body-dark); }
.route-notes {
  list-style: none;
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}
.route-notes li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  color: var(--body);
}
.route-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--data-blue);
}
.route-notes b { color: var(--body-dark); font-weight: 600; }

.journey__aside {
  font-family: var(--font-mono);
  font-size: 0.66rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caption);
}
.journey__quote {
  margin-top: 1.4rem;
  border-left: 3px solid var(--green);
  padding-left: 1.1rem;
}
.journey__quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--loc-blue);
  margin-top: 0 !important;
}
.journey__quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--caption);
  display: block;
  margin-top: 0.5rem;
}

.risk-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.risk-chips li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b97c12;
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}

/* ---------- step list ---------- */

/* a slim glass pill centred at the bottom: number chips, only the active
   chapter shows its title — copy panels above can never overlap it */
.steps {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 3;
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
  background: rgba(250, 253, 255, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(35, 78, 112, 0.10);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.10);
}
.steps.is-on { opacity: 1; transform: translateX(-50%); }
.steps ol { list-style: none; display: flex; align-items: center; gap: 0.55rem; }
.steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0.45;
  transition: opacity 0.35s;
}
.steps li.is-active { opacity: 1; }
.steps__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--loc-blue);
  width: 2rem; height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition: background 0.35s, box-shadow 0.35s;
}
.steps li.is-active .steps__num {
  background: var(--white);
  box-shadow: 0 6px 18px rgba(10, 22, 40, 0.12);
}
.steps__title {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--loc-blue);
  padding-right: 0.25rem;
  white-space: nowrap;
}
.steps li.is-active .steps__title { display: block; }
@media (max-width: 760px) { .steps { bottom: 1rem; } .steps li.is-active .steps__title { font-size: 0.8rem; } }

/* ---------- the evidence card (step 02) ---------- */

.evidence {
  background: var(--white);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 26px 70px rgba(10, 22, 40, 0.18);
  position: relative;
  overflow: hidden;
  pointer-events: none;
}
.evidence__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline);
}
.evidence__id {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--loc-blue);
}
.evidence__status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--amber);
  color: var(--amber);
  transition: all 0.4s;
}
.evidence__status[data-state="verified"] {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}
.evidence__rows { display: grid; gap: 0.5rem; margin-top: 0.85rem; }
.evidence__row {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.8rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}
.evidence__k {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--data-blue);
  padding-top: 0.2em;
}
.evidence__v { font-size: 0.86rem; color: var(--body-dark); }
.evidence__row--photo img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}
.evidence__row--photo em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--caption);
  margin-top: 0.35rem;
}
.evidence__stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 3.6rem;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: var(--green);
  border: 3px solid var(--green);
  border-radius: 8px;
  padding: 0.25rem 0.8rem;
  transform: rotate(-12deg);
}
.journey__copy .journey__aside { margin-top: 1rem; }

/* ---------- the verdict card (step 04) ---------- */

.verdict {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(10, 22, 40, 0.16);
  overflow: hidden;
  pointer-events: none;
}
.verdict__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.verdict__badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--loc-blue);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.verdict__rows { list-style: none; }
.verdict__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--hairline);
}
.verdict__row b { display: block; color: var(--body-dark); font-size: 0.9rem; }
.verdict__row em { font-style: normal; font-size: 0.78rem; color: var(--caption); }
.verdict__row div { flex: 1; }
.verdict__thumb {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(150deg, #eaf2fa, #d8e6f3);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
}
.verdict__thumb svg { width: 38px; height: 38px; display: block; }
.verdict__thumb .verdict__icon {
  position: absolute;
  right: -7px;
  bottom: -7px;
  box-shadow: 0 2px 6px rgba(10, 22, 40, 0.18);
}
.verdict__row[data-verdict="exception"] .verdict__thumb .verdict__icon { background: var(--white); }

.verdict__icon { width: 22px; height: 22px; border-radius: 50%; flex: none; position: relative; }
.verdict__row[data-verdict="pass"] .verdict__icon { background: var(--green); }
.verdict__row[data-verdict="pass"] .verdict__icon::after {
  content: "";
  position: absolute;
  left: 6px; top: 5px;
  width: 7px; height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}
.verdict__row[data-verdict="exception"] .verdict__icon { border: 2px solid var(--amber); }
.verdict__row[data-verdict="exception"] .verdict__icon::after {
  content: "!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.verdict__call {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  flex: none;
}
.verdict__call--pass { background: rgba(76,175,80,0.12); color: var(--green-deep); }
.verdict__call--exception { background: rgba(245,166,35,0.14); color: #b97c12; }
.verdict__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--caption);
}
.verdict__foot b { color: var(--loc-blue); font-weight: 500; }

/* ==========================================================================
   BACK HALF
   ========================================================================== */

.backhalf { position: relative; z-index: 2; }

/* proof */
.proof { background: var(--paper); border-top: 1px solid var(--hairline); }

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.stat { border-top: 3px solid var(--green); padding-top: 1.4rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 4.5vw, 5.5rem);
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat__lbl { display: block; margin-top: 0.8rem; font-size: 0.92rem; }
.stat__lbl b { color: var(--body-dark); font-weight: 600; }

.cases {
  max-width: var(--max);
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.case {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 18px 50px rgba(10, 22, 40, 0.07);
}
.case header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.case > p { margin-top: 1rem; font-size: 0.97rem; }
.case__scale {
  list-style: none;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.case__scale b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--loc-blue);
  display: block;
  white-space: nowrap;
}
.case__scale span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caption);
}

.quotes {
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0 var(--pad) clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.quote { border-left: 3px solid var(--data-blue); padding-left: 1.2rem; font-size: 0.95rem; }
.quote p b { color: var(--loc-blue); font-weight: 600; }
.quote cite {
  font-style: normal;
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--caption);
}
.quote cite b { color: var(--loc-blue); font-weight: 500; }

/* field */
.field { background: var(--white); }

.tags {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.tag-card {
  background: var(--grey);
  border-radius: 18px;
  padding: 1.6rem;
  text-align: center;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
}
.tag-card:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(10,22,40,0.12); }
.tag-card__img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.tag-card__img img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 16px 24px rgba(10, 22, 40, 0.18));
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.tag-card:hover .tag-card__img img { transform: scale(1.07) rotate(-2deg); }
.tag-card p { font-size: 0.92rem; margin-top: 0.3rem; }

.tags__note {
  max-width: 36rem;
  margin: clamp(1.8rem, 3vw, 2.6rem) auto 0;
  padding: 0 var(--pad);
  text-align: center;
  font-size: 1.05rem;
  color: var(--body);
}
.tags__note b { color: var(--loc-blue); font-weight: 600; }

.spec-strip {
  list-style: none;
  max-width: var(--max);
  margin: clamp(1.6rem, 3vw, 2.4rem) auto 0;
  padding: 1.1rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.spec-strip li { display: flex; align-items: baseline; gap: 0.55rem; }
.spec-strip b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--loc-blue);
}
.spec-strip span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caption);
}

.field__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad) clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.field__features { display: grid; gap: 1rem; }
.feat {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.feat:hover { border-color: rgba(76,175,80,0.5); box-shadow: 0 16px 40px rgba(10,22,40,0.07); }
.feat h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feat p { font-size: 0.94rem; }
.feat--pen { display: flex; gap: 1.2rem; align-items: center; }
.feat--pen img { width: 120px; border-radius: 10px; flex: none; }

.field__phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem 0 0;
}
/* the real app screenshots are transparent-background device cutouts —
   the shadow follows the bezel silhouette, no CSS frame at all. A soft
   tinted backdrop sits behind them so the white screens read against
   the white page. Gentle angles: rotation magnifies edge roughness. */
.field__phones::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 40vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.14), rgba(74, 144, 217, 0.05) 55%, transparent 72%);
  z-index: 0;
}
.phone {
  width: clamp(180px, 22vw, 250px);
  filter: drop-shadow(0 6px 12px rgba(10, 22, 40, 0.16)) drop-shadow(0 30px 48px rgba(10, 22, 40, 0.24));
}
.phone img { width: 100%; display: block; }
.phone--back {
  position: absolute;
  transform: translateX(-50%) rotate(-3deg) scale(0.9);
  z-index: 1;
  top: 4rem;
}
.phone--front { position: relative; z-index: 2; transform: translateX(24%) rotate(1.5deg); }
.field__phones-note {
  position: absolute;
  bottom: -2.4rem;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--caption);
}

/* reviewer */
.reviewer {
  background:
    radial-gradient(900px 520px at 12% 20%, rgba(76, 175, 80, 0.07), transparent 60%),
    var(--paper);
  border-top: 1px solid var(--hairline);
}
.reviewer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) var(--pad);
}
/* two-column: copy left, the CR logo fills the empty right side */
.reviewer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(16rem, 28vw, 24rem);
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.reviewer__inner > * { grid-column: 1; }
.reviewer__logo {
  grid-column: 2;
  grid-row: 1 / span 5;
  width: 100%;
  height: auto;
  justify-self: center;
  align-self: center;
}
.reviewer__lede {
  margin-top: 1.4rem;
  max-width: 62ch;
  font-size: 1.02rem;
}
@media (max-width: 820px) {
  .reviewer__inner { grid-template-columns: 1fr; }
  .reviewer__logo { grid-column: 1; grid-row: auto; max-width: 18rem; justify-self: start; margin-top: 1.6rem; }
}
.reviewer__points {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 0.8rem;
  max-width: 60ch;
}
.reviewer__points li { padding-left: 1.7rem; position: relative; font-size: 0.97rem; }
.reviewer__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  mask: radial-gradient(circle at center, transparent 36%, black 38%);
  -webkit-mask: radial-gradient(circle at center, transparent 36%, black 38%);
}
.reviewer__status {
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}

/* close */
.close { background: var(--navy); color: rgba(255,255,255,0.8); overflow: hidden; }
.close__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) var(--pad) clamp(2rem, 4vw, 3rem);
}
.close h2 { color: #fff; max-width: 26ch; }

.close__economics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.close__econ span:last-child {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  max-width: 30ch;
}
.close__econ-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  color: var(--green);
  letter-spacing: -0.02em;
}

.close__cta {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.close__cta p { font-size: 0.95rem; color: rgba(255,255,255,0.65); max-width: 34ch; }

.close__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(9rem, 28vw, 26rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--pad) 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer__logo { height: 3rem; width: auto; justify-self: start; }
.footer__fine { font-size: 0.74rem; max-width: 72ch; color: rgba(255,255,255,0.4); }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .field__grid { grid-template-columns: 1fr; }
  .field__phones { margin-top: 2rem; }
}
@media (max-width: 820px) {
  .stats, .cases, .quotes, .tags, .close__economics { grid-template-columns: 1fr; }
  .case__scale { grid-template-columns: repeat(2, 1fr); }
  .feat--pen { flex-direction: column; align-items: flex-start; }
  .journey__copy { max-width: none; }
  .journey__copy--left, .journey__copy--right { margin-left: var(--pad); margin-right: var(--pad); }
  .evidence__stamp { font-size: 1rem; }
}

/* ---------- reduced motion / fallbacks ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.no-js .reveal, .reduced .reveal,
.no-js .hero__eyebrow, .no-js .hero__line, .no-js .hero__tag, .no-js .hero__scrollcue,
.reduced .hero__eyebrow, .reduced .hero__line, .reduced .hero__tag, .reduced .hero__scrollcue {
  opacity: 1 !important;
  transform: none !important;
}
.no-js .journey__copy, .reduced .journey__copy { opacity: 1; transform: none; position: relative; min-height: 0; padding-top: 4rem; padding-bottom: 4rem; }
.no-js .journey__seg, .reduced .journey__seg { height: auto; }
.no-js .evidence__status, .reduced .evidence__status { border-color: var(--green); color: #fff; background: var(--green); }
.no-js .verdict__row, .reduced .verdict__row { opacity: 1 !important; transform: none !important; }
.no-webgl .world { display: none; }
.no-webgl body { background: linear-gradient(180deg, #f6fafd, var(--ice)); }

/* headless capture mode: only the world renders (visual QA screenshots) */
.shotmode .nav, .shotmode .steps, .shotmode main { visibility: hidden; }
/* ...except a single copy panel pinned over the world for readability checks */
.shotmode .shot-panel {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  position: fixed !important;
  inset: 0;
  z-index: 6;
}

/* ============ LEAD FORM (close section, navy background) ============ */
.lead-form { width: 100%; max-width: 560px; text-align: left; }
.lead-form__intro { font-size: 0.95rem; color: rgba(255,255,255,0.65); margin-bottom: 1.4rem; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; margin-bottom: 1.1rem; }
.lead-form__field { display: flex; flex-direction: column; gap: 0.35rem; }
.lead-form__field--wide { grid-column: 1 / -1; }
.lead-form__field span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.lead-form__field span em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; }
.lead-form__field input,
.lead-form__field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.lead-form__field input:focus,
.lead-form__field textarea:focus { border-color: var(--green); background: rgba(255,255,255,0.11); }
.lead-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lead-form__submit { width: 100%; border: 0; cursor: pointer; font-family: var(--font-display); }
.lead-form__submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.lead-form__status { min-height: 1.2em; margin-top: 0.7rem; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.lead-form__status--error { color: var(--amber); }
.lead-form__alt { margin-top: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.lead-form__alt a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 2px; }
.lead-form__alt a:hover { color: #fff; }
@media (max-width: 560px) { .lead-form__grid { grid-template-columns: 1fr; } }

/* ---------- demo request modal ---------- */

.demo-modal[hidden] { display: none !important; }
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 22, 40, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}
.demo-modal.is-open { opacity: 1; }
.demo-modal__card {
  background: var(--white);
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  max-width: 26rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(10, 22, 40, 0.35);
  transform: translateY(14px);
  transition: transform 0.25s;
}
.demo-modal.is-open .demo-modal__card { transform: none; }
.demo-modal__check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}
.demo-modal__check svg { width: 1.4rem; height: 1.4rem; }
.demo-modal__card h3 { font-size: 1.4rem; color: var(--body-dark); }
.demo-modal__card p { margin: 0.7rem 0 1.4rem; font-size: 0.95rem; color: var(--body); }
.demo-modal__close { min-width: 9rem; cursor: pointer; border: 0; justify-content: center; }
