/* ═══════════════════════════════════════════════════════════════
   ASCEND — Loyalty & After-Sales Platform
   Aesthetic: "engineered ascent" — instrument-panel precision,
   Swiss grid discipline, forest green as the single signal colour.
   ═══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  /* Brand green — values from assets/logos/Ascend-Final-Logo.dc.html */
  --forest:        oklch(38% 0.08 148);
  --forest-deep:   oklch(30% 0.09 148);
  --forest-light:  oklch(58% 0.10 148);
  --forest-bright: oklch(72% 0.11 148);

  /* Ink & surfaces */
  --ink:            oklch(24% 0.02 90);
  --ink-deep:       oklch(20% 0.02 90);
  --ink-black:      oklch(16% 0.01 70);
  --surface:        oklch(97% 0.004 90);
  --surface-sunk:   oklch(98.5% 0.004 90);
  --surface-raised: oklch(100% 0 0);

  /* Text */
  --text:               var(--ink);
  --text-muted:         oklch(46% 0.01 90);
  --text-soft:          oklch(56% 0.01 90);
  --text-on-dark:       oklch(96% 0.004 90);
  --text-on-dark-muted: oklch(74% 0.006 90);

  /* Lines */
  --line:        oklch(91% 0.006 90);
  --line-strong: oklch(85% 0.01 90);
  --line-dark:   oklch(100% 0 0 / 0.12);
  --line-dark-soft: oklch(100% 0 0 / 0.08);

  /* Status (product panel only) */
  --amber:     oklch(78% 0.10 80);
  --amber-bg:  oklch(60% 0.09 80 / 0.18);
  --danger:    oklch(52% 0.17 27);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Space scale (4px base) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;  --s-5: 20px;
  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;  --s-9: 48px;  --s-10: 64px;
  --s-11: 80px; --s-12: 96px; --s-13: 112px; --s-14: 128px;

  /* Radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;

  /* Shadows */
  --shadow-card:  0 1px 2px oklch(30% 0.02 90 / 0.04), 0 12px 28px -16px oklch(30% 0.02 90 / 0.22);
  --shadow-panel: 0 32px 72px -28px oklch(0% 0 0 / 0.7), 0 0 0 1px oklch(100% 0 0 / 0.04);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.65s;

  /* Layout */
  --px: 20px;            /* responsive gutter, overridden below */
  --maxw: 1180px;
  --nav-h: 66px;
}

@media (min-width: 768px)  { :root { --px: 40px; } }
@media (min-width: 1024px) { :root { --px: 56px; --nav-h: 76px; } }

/* sRGB fallback for browsers without oklch() */
@supports not (color: oklch(0% 0 0)) {
  :root {
    --forest: #204E29;        --forest-deep: #003910;
    --forest-light: #4E8A58;  --forest-bright: #73B87D;
    --ink: #231F14;           --ink-deep: #1A160B;   --ink-black: #100D09;
    --surface: #F6F5F2;       --surface-sunk: #FAF9F7; --surface-raised: #FFFFFF;
    --text-muted: #5C5A53;    --text-soft: #78766F;
    --text-on-dark: #F3F2EF;  --text-on-dark-muted: #ABA9A5;
    --line: #E3E1DD;          --line-strong: #D0CEC7;
    --line-dark: rgba(255,255,255,0.12);
    --line-dark-soft: rgba(255,255,255,0.08);
    --amber: #D9A55A;         --amber-bg: rgba(190,140,60,0.18);
    --danger: #B3261E;
  }
}


/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-deep); }
button { font: inherit; color: inherit; }

::selection { background: oklch(58% 0.10 148 / 0.28); }


/* ─── A11Y UTILITIES ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--surface);
  padding: 11px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--surface); }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 3px; }
.hero :focus-visible,
.why :focus-visible,
.footer :focus-visible,
.nav-drawer :focus-visible,
.nav:not(.nav--solid) :focus-visible { outline-color: var(--forest-bright); }


/* ─── SHARED ELEMENTS ─── */
.mark { width: 22px; height: 22px; flex-shrink: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--forest);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: currentColor; opacity: 0.55;
}
/* On dark, small accent text uses --forest-bright: at 12.5px, --forest-light
   drops under 4.5:1 wherever a hero grid line passes behind it. Large display
   text (.hero-headline-accent) keeps --forest-light — it only needs 3:1. */
.eyebrow--bright { color: var(--forest-bright); }

.section-head { max-width: var(--maxw); margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head--center { max-width: 720px; text-align: center; }

.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.7vw, 44px);
  line-height: 1.12; letter-spacing: -0.025em;
  color: var(--ink-deep); margin-top: 16px;
  text-wrap: balance;
}
.section-title--dark { color: var(--text-on-dark); }

.section-sub {
  font-size: 16.5px; line-height: 1.65;
  color: var(--text-muted); margin-top: 14px;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 24px; border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn-arrow { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

.btn--ghost { color: var(--text-on-dark); border-color: oklch(100% 0 0 / 0.22); }
.btn--ghost:hover { color: var(--text-on-dark); border-color: oklch(100% 0 0 / 0.45); background: oklch(100% 0 0 / 0.05); }

.btn--dark { background: var(--ink); color: var(--surface); }
.btn--dark:hover { background: var(--ink-black); color: var(--surface); transform: translateY(-1px); box-shadow: var(--shadow-card); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }


/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Hero load choreography */
[data-rise] {
  opacity: 0;
  animation: rise 0.85s var(--ease) both;
  animation-delay: calc(140ms + var(--d, 0) * 85ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}


/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding-inline: var(--px);
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: var(--s-6);
}

.nav--solid {
  background: oklch(97% 0.004 90 / 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--line);
  color: var(--ink);
}

/* Scrolled, but the hero is still passing behind the bar. Base .nav already
   carries the light text and green mark, so this state only needs a backdrop.
   0.80 (not less) — the near-white hero headline passes directly behind, and
   .nav-link at opacity .72 falls under AA against a lighter tint. */
.nav--dark {
  background: oklch(16% 0.01 70 / 0.80);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line-dark-soft);
}

.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto; color: inherit;
}
.nav-brand:hover { color: inherit; }
.nav-brand .mark { color: var(--forest-light); transition: color var(--dur) var(--ease); }
.nav--solid .nav-brand .mark { color: var(--forest); }
.nav-word {
  font-family: var(--font-display); font-weight: 600;
  font-size: 19px; letter-spacing: 0.01em;
}

.nav-links { display: none; align-items: center; gap: 28px; }
.nav-link {
  position: relative; font-size: 14px; font-weight: 500;
  color: inherit; opacity: 0.72;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover { color: inherit; opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: none;
  font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-cta:hover { background: #fff; color: var(--ink); }
.nav--solid .nav-cta { background: var(--ink); color: var(--surface); }
.nav--solid .nav-cta:hover { background: var(--ink-black); color: var(--surface); }

.nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--ink-black);
  padding: 28px var(--px) 48px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px);
  /* visibility flips instantly on open (0s, no delay) and only after the
     fade on close — easing it would leave the panel computed `hidden`
     during the transition, and .focus() is a no-op in a hidden subtree. */
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility 0s linear var(--dur);
}
.nav-drawer.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility 0s linear 0s;
}
.nav-drawer a:not(.btn) {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 6vw, 30px); letter-spacing: -0.025em;
  color: var(--text-on-dark);
  padding: 18px 0; border-bottom: 1px solid var(--line-dark-soft);
}
.nav-drawer a:not(.btn):hover { color: var(--forest-bright); }
.nav-drawer .btn { margin-top: 32px; }
.nav-drawer-meta {
  margin-top: auto; padding-top: 40px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: oklch(100% 0 0 / 0.56);
}

/* Nav sits over the dark drawer while it's open */
body.nav-open .nav {
  background: var(--ink-black); color: var(--text-on-dark);
  border-bottom-color: var(--line-dark-soft);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.nav-open .nav-brand .mark { color: var(--forest-light); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta   { display: inline-flex; }
  .nav-toggle, .nav-drawer { display: none; }
}


/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-black); color: var(--text-on-dark);
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + clamp(36px, 6vh, 72px)) var(--px) 0;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

/* Alpha sits between the original (0.045/0.028, invisible on a dimmed
   screen) and the first brighter pass (0.10/0.07, too assertive).
   The mask holds full strength further down before it fades. */
.hero-rules {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to right,  oklch(100% 0 0 / 0.072) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(to bottom, oklch(100% 0 0 / 0.048) 0 1px, transparent 1px 92px);
  -webkit-mask-image: radial-gradient(135% 100% at 50% 0%, #000 32%, transparent 88%);
  mask-image: radial-gradient(135% 100% at 50% 0%, #000 32%, transparent 88%);
}

/* The Step Stack motif, blown up. Masked along its own diagonal so the
   climb stays strongest at the bottom-left and dissolves before it
   reaches the headline. */
.hero-stack {
  position: absolute; left: -8%; bottom: -22%;
  width: min(125vh, 1080px); aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(35deg, #000 8%, oklch(0% 0 0 / 0.4) 48%, transparent 82%);
  mask-image: linear-gradient(35deg, #000 8%, oklch(0% 0 0 / 0.4) 48%, transparent 82%);
}
.hero-stack span {
  position: absolute; width: 22%; aspect-ratio: 1;
  border-radius: clamp(8px, 1.6vw, 22px);
  background: var(--forest-light);
  opacity: calc(0.028 + var(--i) * 0.011);
  left:   calc(var(--i) * 19.5%);
  bottom: calc(var(--i) * 19.5%);
}

.hero-glow {
  position: absolute; right: -12%; top: 2%;
  width: min(78vw, 780px); aspect-ratio: 1;
  background: radial-gradient(circle, oklch(72% 0.11 148 / 0.22), transparent 62%);
  filter: blur(38px);
}

.hero-inner {
  flex: 1; width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1fr; align-items: center;
  gap: clamp(40px, 6vw, 64px);
  padding-block: clamp(28px, 5vh, 56px);
}

.hero-headline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.05; letter-spacing: -0.028em;
  color: var(--text-on-dark);
  margin: 20px 0 0;
}
.hero-headline-accent {
  background: linear-gradient(100deg,
    var(--forest-light) 42%, oklch(82% 0.09 146) 50%, var(--forest-light) 58%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: headline-sheen 8s ease-in-out infinite;
  animation-delay: 1.3s;
}
@keyframes headline-sheen {
  0%, 45% { background-position: 140% 0; }
  100%    { background-position: -140% 0; }
}

.hero-sub {
  font-size: clamp(15.5px, 1.35vw, 18px); line-height: 1.65;
  color: var(--text-on-dark-muted);
  max-width: 47ch; margin-top: 22px;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Product panel */
.hero-visual { min-width: 0; perspective: 1200px; }
.panel {
  width: 100%; max-width: 470px; margin-inline: auto;
  background: oklch(100% 0 0 / 0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  animation: panel-tilt 9s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes panel-tilt {
  0%, 40% { transform: rotateY(0deg); }
  50%     { transform: rotateY(-4deg); }
  65%     { transform: rotateY(4deg); }
  100%    { transform: rotateY(0deg); }
}
.panel-chrome {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line-dark-soft);
}
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 8px; height: 8px; border-radius: 50%; background: oklch(100% 0 0 / 0.18); }
.panel-label {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.02em; color: oklch(100% 0 0 / 0.64);
}
.panel-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--forest-bright);
}
.panel-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.panel-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.panel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: var(--r-sm);
  background: oklch(100% 0 0 / 0.045);
  border: 1px solid oklch(100% 0 0 / 0.05);
}
.panel-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.panel-row-title { font-size: 13px; font-weight: 600; color: oklch(94% 0.004 90); }
.panel-row-sub   { font-size: 11.5px; color: oklch(100% 0 0 / 0.58); }

.pill {
  flex-shrink: 0; font-size: 10.5px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill);
}
.pill--ok   { background: oklch(58% 0.10 148 / 0.20); color: var(--forest-bright); }
.pill--wait { background: var(--amber-bg); color: var(--amber); }
.pill--idle { background: oklch(100% 0 0 / 0.10); color: oklch(100% 0 0 / 0.66); }

.panel-chart { padding-top: 14px; border-top: 1px solid var(--line-dark-soft); }
.panel-chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(100% 0 0 / 0.58); margin-bottom: 10px;
}
.bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.bars span {
  flex: 1; height: var(--h);
  background: var(--forest-light); opacity: var(--o);
  border-radius: 3px 3px 1px 1px;
  transform-origin: bottom;
  animation: barGrow 0.7s var(--ease) both;
  animation-delay: calc(760ms + var(--i) * 70ms);
}
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Credibility strip, pinned to the fold */
.cred {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.cred-line {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px); letter-spacing: -0.012em;
  color: oklch(92% 0.004 90);
}
.cred-cats {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(100% 0 0 / 0.56);
}
.cred-cats span { position: relative; }
.cred-cats span + span::before { content: '·'; position: absolute; left: -13px; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; }
  .panel { margin-inline: 0 0 0 auto; }
}


/* ═══════════ THE GAP ═══════════ */
/* HIDDEN 2026-07-28 — sunk background + border-bottom added to replace the
   tonal break "How it works" used to provide between this section and
   .platform (both --surface). Un-hide "How it works": restore
   `background: var(--surface)` and drop the border-bottom here.
   grep -rn 'HIDDEN 2026-07-28' */
.gap {
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--line);
  padding: clamp(76px, 10vw, 124px) var(--px);
  text-align: center;
}
.gap > * { max-width: 840px; margin-inline: auto; }
.gap-statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(21px, 2.9vw, 32px); line-height: 1.42; letter-spacing: -0.018em;
  color: var(--text-soft); margin-top: 20px;
  text-wrap: balance;
}
.gap-statement em { font-style: normal; color: var(--ink-deep); }


/* ═══════════ HOW IT WORKS ═══════════ */
/* HIDDEN 2026-07-28 — section markup commented out in index.html; rules
   below are unmatched and inert. Left in place so un-hiding is a pure
   markup + menu change. grep -rn 'HIDDEN 2026-07-28' */
.how {
  background: var(--surface-sunk);
  border-block: 1px solid var(--line);
  padding: clamp(76px, 10vw, 124px) var(--px);
}
.how > * { max-width: var(--maxw); margin-inline: auto; }

.steps { display: grid; gap: 44px; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.step-index {
  position: absolute; top: 0; right: 0; transform: translateY(-50%);
  padding-left: 14px; background: var(--surface-sunk);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--forest);
}
.step-rule {
  position: absolute; top: -1px; left: 0; height: 2px; width: 0;
  background: var(--forest);
  transition: width 0.7s var(--ease) 0.15s;
}
.step.visible .step-rule { width: 52px; }
.step-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 21px; letter-spacing: -0.018em;
  color: var(--ink-deep); margin-bottom: 10px;
}
.step-body { font-size: 15px; line-height: 1.7; color: var(--text-muted); text-wrap: pretty; }

@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 52px); }
}


/* ═══════════ PLATFORM ═══════════ */
.platform { background: var(--surface); padding: clamp(76px, 10vw, 124px) var(--px); }
.platform > * { max-width: var(--maxw); margin-inline: auto; }

.cap-grid { display: grid; gap: 20px; }
.cap-card {
  position: relative; overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px 26px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.cap-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--forest), var(--forest-light));
  transition: width 0.45s var(--ease);
}
.cap-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.cap-card:hover::before { width: 100%; }

.cap-num {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--text-soft);
  /* No opacity here — at 0.5 this fell to 1.9:1 against the card. */
}
.cap-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: oklch(38% 0.08 148 / 0.1); color: var(--forest);
  margin-bottom: 20px;
}
.cap-icon svg { width: 21px; height: 21px; }
.cap-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.cap-body  { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }

@media (min-width: 640px)  { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cap-grid { grid-template-columns: repeat(4, 1fr); } }


/* ═══════════ WHO IT'S FOR ═══════════ */
.who {
  background: var(--surface-sunk);
  border-block: 1px solid var(--line);
  padding: clamp(76px, 10vw, 124px) var(--px);
}
.who > * { max-width: var(--maxw); margin-inline: auto; }

.who-grid { display: grid; }
.who-card { padding: 30px 0; border-top: 1px solid var(--line-strong); }
.who-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--forest); }
.who-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 23px; letter-spacing: -0.02em;
  color: var(--ink-deep); margin: 14px 0 10px;
}
.who-body { font-size: 15px; line-height: 1.7; color: var(--text-muted); max-width: 40ch; text-wrap: pretty; }

@media (min-width: 820px) {
  .who-grid { grid-template-columns: repeat(3, 1fr); }
  .who-card { padding: 30px clamp(24px, 3vw, 40px); border-left: 1px solid var(--line); }
  .who-card:first-child { border-left: none; padding-left: 0; }
  .who-card:last-child  { padding-right: 0; }
}


/* ═══════════ WHY IT'S DIFFERENT ═══════════ */
.why {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-black); color: var(--text-on-dark);
  padding: clamp(84px, 11vw, 136px) var(--px);
}
/* Two-stop flare: a bright core at the corner falling off into the forest
   mid-tone. Alpha sits between the original single-stop version (0.14,
   no bright core) and the brightened pass (0.20/0.26). */
.why-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 46% at 92% 6%, oklch(72% 0.11 148 / 0.13), transparent 70%),
    radial-gradient(88% 70% at 88% 12%, oklch(58% 0.10 148 / 0.20), transparent 68%),
    repeating-linear-gradient(115deg, oklch(100% 0 0 / 0.05) 0 1px, transparent 1px 15px);
}
.why-head { max-width: var(--maxw); margin: 0 auto clamp(44px, 6vw, 76px); }
.why-head .section-title { max-width: 700px; }
.why-grid { max-width: var(--maxw); margin-inline: auto; display: grid; gap: 38px; }
.why-item { position: relative; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.why-item::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 40px; height: 2px; background: var(--forest-bright);
}
.why-item-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18.5px; letter-spacing: -0.015em;
  color: var(--text-on-dark); margin-bottom: 10px;
}
.why-item-body { font-size: 14.5px; line-height: 1.7; color: var(--text-on-dark-muted); text-wrap: pretty; }

@media (min-width: 820px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
}


/* ═══════════ FAQ ═══════════ */
.faq { background: var(--surface); padding: clamp(76px, 10vw, 124px) var(--px); }
.faq > * { max-width: var(--maxw); margin-inline: auto; }

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-h { font-size: inherit; font-weight: inherit; }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; background: none; border: none; cursor: pointer; text-align: left;
}
.faq-q-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.35; letter-spacing: -0.015em;
  color: var(--ink-deep);
  transition: color var(--dur-fast) var(--ease);
}
.faq-q:hover .faq-q-text { color: var(--forest); }

.faq-icon {
  position: relative; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid var(--line-strong);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: var(--ink); border-radius: 1px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq-icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }

.faq-q[aria-expanded="true"] .faq-icon { background: var(--forest); border-color: var(--forest); }
.faq-q[aria-expanded="true"] .faq-icon::before { background: #fff; }
.faq-q[aria-expanded="true"] .faq-icon::after  { background: #fff; transform: translate(-50%, -50%) scaleY(0); }

.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding-bottom: 26px; max-width: 68ch;
  font-size: 15px; line-height: 1.75; color: var(--text-muted);
  text-wrap: pretty;
}


/* ═══════════ CONTACT ═══════════ */
.contact {
  background: var(--surface-sunk);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vw, 132px) var(--px);
}
.contact-grid {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; gap: clamp(40px, 6vw, 76px); align-items: start;
}
.contact-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -0.028em;
  color: var(--ink-deep); margin-top: 16px;
  text-wrap: balance;
}
.contact-body {
  font-size: 16.5px; line-height: 1.65; color: var(--text-muted);
  margin-top: 18px; max-width: 42ch;
}

.contact-ticks { display: grid; gap: 12px; margin-top: 30px; }
.contact-ticks li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink); }
.contact-ticks li::before {
  content: ''; position: absolute; left: 2px; top: 4px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--forest); border-bottom: 1.5px solid var(--forest);
  transform: rotate(-45deg);
}

.contact-mail {
  display: inline-block; margin-top: 30px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.contact-mail:hover { color: var(--forest); border-color: var(--forest); }

/* Form */
.contact-form {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  /* Grid items default to min-width:auto, so the Turnstile widget's 300px floor
     would otherwise push this column wider than a narrow viewport. */
  min-width: 0;
}
.form-title {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--ink-deep); padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.field { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.field label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-soft);
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-sunk); color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: oklch(72% 0.008 90); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--forest);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px oklch(38% 0.08 148 / 0.13);
}
.field textarea { resize: vertical; min-height: 100px; }

.field-error { display: none; font-size: 12.5px; color: var(--danger); }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus {
  box-shadow: 0 0 0 3px oklch(52% 0.17 27 / 0.13);
}

.contact-form .btn--block { margin-top: 24px; }
.form-status { margin-top: 14px; font-size: 13.5px; min-height: 1.2em; color: var(--text-muted); }
.form-status.is-ok  { color: var(--forest); font-weight: 500; }
.form-status.is-err { color: var(--danger); }
.form-note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-soft); }

/* Honeypot. Deliberately not display:none — some bots skip hidden inputs, and
   that would defeat the trap. Deliberately not .sr-only either: that keeps the
   field reachable by screen readers, whose users would then fill it in and be
   silently rejected. Off-screen plus aria-hidden and tabindex="-1" hides it
   from everyone who is actually a person. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile renders in a cross-origin iframe, so only this wrapper is
   styleable — appearance is controlled by the theme/size render options.
   size:'flexible' lets the widget track the container width, but it has a 300px
   floor; the clip here is a last-resort guard so a very narrow viewport can
   never turn into a sideways-scrolling page. */
.field--turnstile {
  gap: 0;
  max-width: 100%;
  overflow: hidden;
}
.field--turnstile .field-error { margin-top: 7px; }

@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }


/* ─── TOAST ─── */
/* Terminal contact-form outcomes only — busy states and validation summaries
   stay inline in .form-status, since they're tied to visible ongoing state
   (a disabled button, highlighted fields) rather than a one-off event. */
.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(20px, 4vw, 32px);
  z-index: 250; /* above everything else in the file (.skip-link tops out at 200) */
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 420px);
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.is-ok  { background: var(--forest-deep); }
.toast.is-err { background: var(--danger); }

.toast-msg { flex: 1; margin: 0; }

.toast-close {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: inherit; opacity: 0.7;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.toast-close:hover { opacity: 1; background: oklch(100% 0 0 / 0.12); }

@media (prefers-reduced-motion: reduce) {
  .toast {
    transform: none;
    transition: opacity var(--dur-fast) linear;
  }
  .toast.is-visible { transform: none; }
}


/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--ink-black); color: var(--text-on-dark);
  padding: clamp(52px, 6vw, 76px) var(--px) 30px;
}
.footer-inner { max-width: var(--maxw); margin-inline: auto; }
.footer-top {
  display: grid; gap: 36px;
  padding-bottom: 34px; border-bottom: 1px solid var(--line-dark-soft);
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.footer-brand:hover { color: inherit; }
.footer-brand .mark { color: var(--forest-light); }
.footer-word { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: 0.01em; }
.footer-tag {
  margin-top: 14px; max-width: 32ch;
  font-size: 14px; line-height: 1.6; color: var(--text-on-dark-muted);
}
.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: oklch(100% 0 0 / 0.56);
}
.footer-links { display: grid; gap: 11px; }
.footer-links a {
  font-size: 14px; color: var(--text-on-dark-muted);
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: var(--text-on-dark); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding-top: 24px; font-size: 12.5px; color: oklch(100% 0 0 / 0.58);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a {
  font-size: 12.5px; color: oklch(100% 0 0 / 0.58);
  transition: color var(--dur-fast) var(--ease);
}
.footer-legal a:hover { color: var(--text-on-dark); }

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
}


/* ═══════════ LEGAL PAGES ═══════════
   Shared by privacy-policy.html, terms-of-use.html, pdpa-notice.html.
   No .hero on these pages, so js/script.js keeps the nav solid from load —
   see the `if (!hero)` branch in navState(). */
.legal-page {
  background: var(--surface);
  padding-top: var(--nav-h);
  min-height: 100svh;
}
.legal-container {
  max-width: 720px; margin-inline: auto;
  padding: clamp(48px, 7vw, 76px) var(--px) clamp(64px, 8vw, 96px);
}
.legal-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 5.5vw, 46px); line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink-deep);
}
.legal-updated {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.05em; color: var(--text-soft);
}
.legal-container > p:first-of-type { margin-top: 32px; }
.legal-container > .faq-list { margin-top: 32px; }
.legal-container p {
  font-size: 15px; line-height: 1.75; color: var(--text-muted);
  margin-top: 16px;
}
.legal-container strong { color: var(--ink); font-weight: 600; }
.legal-container a {
  color: var(--forest); border-bottom: 1px solid oklch(38% 0.08 148 / 0.3);
  transition: border-color var(--dur-fast) var(--ease);
}
.legal-container a:hover { color: var(--forest-deep); border-color: var(--forest-deep); }

.legal-container h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 2.6vw, 23px); letter-spacing: -0.015em;
  color: var(--ink-deep);
  margin-top: 44px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.legal-container h3 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest);
  margin-top: 26px;
}

.legal-container ul {
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 16px;
}
.legal-container ul li {
  position: relative; padding-left: 20px;
  font-size: 15px; line-height: 1.65; color: var(--text-muted);
}
.legal-container ul li::before {
  content: '—'; position: absolute; left: 0; top: 0;
  color: var(--forest);
}


/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-rise] { opacity: 1 !important; animation: none !important; transform: none !important; }
  .reveal    { opacity: 1 !important; transform: none !important; }
  .bars span { animation: none !important; transform: none !important; }
  .step-rule { width: 52px !important; }
  .panel-live::before { animation: none !important; }
  .hero-headline-accent { animation: none !important; background-position: 50% 0 !important; }
  .panel { animation: none !important; transform: none !important; }
}
