/* ==========================================================================
   ticketproof.co.uk — single stylesheet, no framework.
   Palette:  Ink #12151C · Mist #F5F6F8 · Asphalt #1C2333 · Signal #F0A63D
             Route #3DDC97 (success only) · Ticket #FF6B5B (pain point only)
   Type:     Space Grotesk (display) · Inter (body) · JetBrains Mono (readouts)
   ========================================================================== */

/* ---- Fonts (self-hosted variable woff2, latin subset) -------------------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-var-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --ink: #12151C;
  --mist: #F5F6F8;
  --asphalt: #1C2333;
  --asphalt-2: #242D42;   /* raised surface on dark */
  --asphalt-3: #10141D;   /* recessed surface on dark */
  --signal: #F0A63D;
  --signal-deep: #8A6110; /* amber legible at small sizes on light bg */
  --route: #3DDC97;
  --route-deep: #17835A;  /* mint legible as text on light bg */
  --ticket: #FF6B5B;
  --ticket-deep: #C43D2C; /* coral legible as text on light bg */

  --text-2: rgba(18, 21, 28, 0.68);
  --text-3: rgba(18, 21, 28, 0.5);
  --line: rgba(18, 21, 28, 0.1);
  --dark-text: rgba(255, 255, 255, 0.94);
  --dark-text-2: rgba(255, 255, 255, 0.72);
  --dark-line: rgba(255, 255, 255, 0.12);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 24px 60px -28px rgba(18, 21, 28, 0.3);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(240, 166, 61, 0.35); }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1.1rem; border-radius: 0 0 10px 10px;
  font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---- Type helpers -------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin: 0 0 0.9rem;
}
.on-dark .eyebrow { color: var(--signal); }
.mono-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}
.on-dark .mono-note { color: rgba(255, 255, 255, 0.5); }
.lede { font-size: 1.16rem; color: var(--text-2); max-width: 58ch; }
.on-dark .lede { color: var(--dark-text-2); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s;
}
.btn-primary {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 10px 26px -12px rgba(240, 166, 61, 0.55);
}
.btn-primary:hover { background: #F7B458; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.94rem; }
.btn-ghost-dark {
  background: transparent; color: var(--dark-text);
  border: 1px solid var(--dark-line);
}
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.3); }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: relative; z-index: 20; }
.site-header--dark { position: absolute; top: 0; left: 0; right: 0; }
.site-header--light {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.site-header--dark .wordmark { color: #fff; }
.wordmark-shield { width: 30px; height: 33px; flex: none; }
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.wordmark-text em { font-style: normal; color: var(--signal); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--dark-text-2);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  font-size: 0.95rem;
}
.site-footer .wordmark { color: #fff; }
.footer-top { max-width: 460px; }
.footer-tagline { margin-top: 1rem; color: rgba(255, 255, 255, 0.6); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem;
  margin: 2.2rem 0;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.75rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer-meta p { margin: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--asphalt);
  background-image: radial-gradient(90rem 50rem at 78% -10%, #273047 0%, rgba(28, 35, 51, 0) 55%);
  color: var(--dark-text);
  min-height: clamp(620px, 94vh, 900px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
/* Mobile: soft scrim so the route art never fights the headline */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(28, 35, 51, 0) 0%, rgba(28, 35, 51, 0.9) 60%);
  pointer-events: none;
  display: none;
}
.hero-art svg { width: 100%; height: 100%; }
.hero-route--mobile { display: none; }
.hero-content {
  position: relative; z-index: 5;
  padding-block: 7.5rem 5rem;
  max-width: 660px;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 0.45em;
}
.hero .lede { margin-bottom: 2.1rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F3C77F;
  border: 1px solid rgba(240, 166, 61, 0.4);
  border-radius: 999px;
  padding: 0.5em 1em;
  margin-bottom: 1.6rem;
}
.hero-chip::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* --- hero art pieces --- */
.hero-grid-lines { stroke: #2A3247; stroke-width: 1.5; opacity: 0.5; }
.hero-grid-roads { stroke: #232B3F; stroke-width: 5; opacity: 0.8; }
.route-line {
  stroke: var(--signal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 17 14;
  fill: none;
  filter: drop-shadow(0 0 14px rgba(240, 166, 61, 0.35));
}
.route-mask-path {
  stroke: #fff; stroke-width: 16; fill: none; stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: route-draw 1.9s var(--ease-out) 0.15s forwards;
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }

.hero-pin, .hero-ticket, .hero-check { transform-box: fill-box; transform-origin: 50% 100%; }
.hero-pin {
  opacity: 0;
  animation: pin-drop 0.55s var(--ease-out) 1.15s both;
}
@keyframes pin-drop {
  0% { opacity: 0; transform: translateY(-52px); }
  62% { opacity: 1; transform: translateY(5px); }
  82% { transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-pin-pulse {
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
  animation: pin-pulse 2.6s ease-out 2s infinite;
}
@keyframes pin-pulse {
  0% { opacity: 0.5; transform: scale(0.4); }
  70% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}
.hero-risk {
  opacity: 0;
  animation: soft-in 0.9s ease 1.7s forwards;
}
@keyframes soft-in { to { opacity: 1; } }
.hero-ticket {
  transform-origin: center;
  opacity: 0;
  animation:
    ticket-pop 0.5s var(--ease-out) 2.05s both,
    ticket-fade 0.65s ease-in 3.05s forwards;
}
@keyframes ticket-pop {
  0% { opacity: 0; transform: scale(0.55) rotate(-18deg); }
  65% { opacity: 1; transform: scale(1.07) rotate(-11deg); }
  100% { opacity: 1; transform: scale(1) rotate(-12deg); }
}
@keyframes ticket-fade {
  to { opacity: 0; transform: scale(0.9) rotate(-4deg); }
}
.hero-check {
  transform-origin: center;
  opacity: 0;
  animation: check-bloom 0.5s var(--ease-out) 3.35s forwards;
}
@keyframes check-bloom {
  0% { opacity: 0; transform: scale(0.4); }
  70% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.hero-fade {
  opacity: 0;
  animation: fade-up 0.75s var(--ease-out) forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-fade.d1 { animation-delay: 2.35s; }
.hero-fade.d2 { animation-delay: 2.5s; }
.hero-fade.d3 { animation-delay: 2.65s; }
.hero-fade.d4 { animation-delay: 2.82s; }

/* ==========================================================================
   ROUTE DIVIDER
   ========================================================================== */
.route-divider { line-height: 0; }
.route-divider svg { width: 100%; height: 56px; }
.route-divider-path {
  stroke: rgba(18, 21, 28, 0.18);
  stroke-width: 2;
  stroke-dasharray: 8 9;
  fill: none;
}
.on-dark .route-divider-path, .route-divider--dark .route-divider-path {
  stroke: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-dark {
  background: var(--asphalt);
  color: var(--dark-text);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -0.02em; }

/* --- Problem --- */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.problem-copy p { color: var(--text-2); max-width: 56ch; }
.problem-copy .kicker { color: var(--ink); font-weight: 600; }
.stat-stack { display: grid; gap: 1rem; }
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ticket);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ticket-deep);
  letter-spacing: -0.02em;
  display: block;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--text-2);
  margin: 0.3rem 0 0;
}

/* --- Feature rows --- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.feature.flip .feature-visual { order: -1; }
.feature h3 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.feature p { color: var(--text-2); }
.feature-facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.4rem; padding: 0; list-style: none;
}
.feature-facts li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42em 0.95em;
}

/* ==========================================================================
   MOCKUPS (hand-built product illustrations — no stock imagery)
   ========================================================================== */
.mock {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #fff;
}
.mock-map {
  position: relative;
  aspect-ratio: 5 / 4.1;
  background: #E8EBF0;
}
.mock-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* map markers */
.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.marker-p {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(18, 21, 28, 0.22);
}
.marker-p.risk-low { background: var(--route); }
.marker-p.risk-med { background: var(--signal); }
.marker-p.risk-high { background: var(--ticket); color: #fff; }
.marker-warden {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ticket);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 91, 0.5);
}
.marker-warden svg { width: 20px; height: 20px; }
.marker-you {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--signal);
  border: 3.5px solid #fff;
  box-shadow: 0 0 0 5px rgba(240, 166, 61, 0.25), 0 3px 8px rgba(18, 21, 28, 0.3);
}
.pulse-ring {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255, 107, 91, 0.65);
  transform: translate(-50%, -50%);
  animation: ring-pulse 1.9s ease-out infinite;
  pointer-events: none;
}
@keyframes ring-pulse {
  0% { transform: translate(-50%, -50%) scale(0.55); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
}

/* marker positions per mockup */
[data-pos='you'] { left: 28%; top: 64%; }
[data-pos='warden'] { left: 60%; top: 36%; }
[data-pos='p1'] { left: 22%; top: 28%; }
[data-pos='p2'] { left: 70%; top: 22%; }
[data-pos='p3'] { left: 42%; top: 60%; }
[data-pos='p4'], [data-pos='ring'] { left: 82%; top: 55%; }

/* hero ticket label */
.hero-ticket-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  fill: #12151C;
}
.hero-ticket-text--sm { font-size: 11.5px; }

/* overlay cards inside mockups */
.mock-card {
  position: absolute;
  left: 4.5%; right: 4.5%; bottom: 4.5%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 40px -14px rgba(18, 21, 28, 0.35);
  padding: 0.95rem 1.05rem;
}
.mock-card-row { display: flex; align-items: center; gap: 0.75rem; }
.mock-card-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
}
.mock-card-icon--warden { background: rgba(255, 107, 91, 0.14); color: var(--ticket-deep); }
.mock-card-icon svg { width: 20px; height: 20px; }
.mock-card-title {
  font-weight: 600; font-size: 0.95rem; line-height: 1.3;
  margin: 0; font-family: var(--font-body);
}
.mock-card-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin: 0.15rem 0 0;
}
.mock-chip-row { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.mock-chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.42em 1em;
  border-radius: 9px;
}
.mock-chip--amber { background: var(--signal); color: var(--ink); }
.mock-chip--ghost { background: rgba(18, 21, 28, 0.06); color: var(--text-2); }
.mock-badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4em 0.8em;
  border-radius: 7px;
}
.mock-badge--low { background: rgba(61, 220, 151, 0.16); color: var(--route-deep); }
.mock-badge--strong { background: rgba(61, 220, 151, 0.14); color: var(--route); }

/* nav mockup (dark) */
.mock-nav {
  aspect-ratio: 5 / 4.1;
  background: var(--asphalt);
  position: relative;
}
.mock-nav > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-nav-banner {
  position: absolute; top: 4.5%; left: 4.5%; right: 4.5%;
  background: var(--asphalt-2);
  border: 1px solid var(--dark-line);
  border-radius: 13px;
  padding: 0.85rem 1rem;
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--dark-text);
}
.mock-nav-banner svg { width: 26px; height: 26px; flex: none; color: var(--signal); }
.mock-nav-primary { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0; }
.mock-nav-secondary { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.55); margin: 0.1rem 0 0; }
.mock-nav-eta {
  position: absolute; bottom: 4.5%; left: 50%;
  transform: translateX(-50%);
  background: var(--asphalt-3);
  border: 1px solid var(--dark-line);
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  white-space: nowrap;
}
.mock-nav-eta em { font-style: normal; color: var(--route); }

/* appeal letter mockup */
.mock-doc { padding: 1.6rem 1.7rem 1.7rem; overflow: visible; }
.mock-doc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.1rem;
}
.mock-doc-ref { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: var(--text-3); letter-spacing: 0.06em; }
.mock-doc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin: 0 0 1rem; }
.doc-line { height: 9px; border-radius: 5px; background: rgba(18, 21, 28, 0.08); margin-bottom: 9px; }
.doc-line.w92 { width: 92%; } .doc-line.w100 { width: 100%; } .doc-line.w85 { width: 85%; }
.doc-line.w70 { width: 70%; } .doc-line.w45 { width: 45%; }
.mock-doc-attach {
  display: flex; gap: 0.7rem; margin: 1.25rem 0 1.35rem;
}
.attach-thumb {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px dashed rgba(18, 21, 28, 0.22);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
}
.attach-thumb svg { width: 15px; height: 15px; color: var(--text-3); }
.mock-doc-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mock-doc-pdf {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  background: var(--ink); color: #fff;
  padding: 0.55em 1.1em; border-radius: 10px;
}
.mock-doc-pdf svg { width: 15px; height: 15px; }
.ask-clara-pill {
  position: absolute; top: -16px; right: 22px;
  background: var(--signal); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(240, 166, 61, 0.7);
}
.feature-visual { position: relative; }

/* ==========================================================================
   CLARA DEMO
   ========================================================================== */
.clara-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.clara-copy p { color: var(--dark-text-2); max-width: 54ch; }
.clara-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.clara-points li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--dark-text-2); }
.clara-points svg { width: 19px; height: 19px; flex: none; margin-top: 0.22em; color: var(--route); }
.phone {
  background: var(--asphalt-3);
  border: 1px solid var(--dark-line);
  border-radius: 34px;
  padding: 1.1rem 1.1rem 1.25rem;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
}
.phone-header {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.35rem 0.4rem 1rem;
  border-bottom: 1px dashed var(--dark-line);
  margin-bottom: 1rem;
}
.clara-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  flex: none;
}
.phone-header-name { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: #fff; margin: 0; }
.phone-header-sub { font-family: var(--font-mono); font-size: 0.66rem; color: rgba(255,255,255,0.5); margin: 0.05rem 0 0; }
.chat-log { display: flex; flex-direction: column; gap: 0.7rem; min-height: 380px; }
.chat-msg {
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.chat-msg--clara {
  align-self: flex-start;
  background: var(--asphalt-2);
  color: var(--dark-text);
  border-bottom-left-radius: 5px;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--signal);
  color: var(--ink);
  border-bottom-right-radius: 5px;
}
.chat-typing {
  align-self: flex-start;
  display: inline-flex; gap: 5px;
  background: var(--asphalt-2);
  padding: 0.85rem 1rem;
  border-radius: 16px; border-bottom-left-radius: 5px;
}
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: typing-dot 1.1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.16s; }
.chat-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-outcome {
  align-self: center;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--route);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 999px;
  padding: 0.5em 1em;
  margin-top: 0.4rem;
}
.chat-outcome svg { width: 14px; height: 14px; }
.clara-replay {
  margin: 1.1rem auto 0; display: flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--dark-line);
  color: var(--dark-text-2);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55em 1.2em; border-radius: 999px; cursor: pointer;
}
.clara-replay:hover { border-color: rgba(255,255,255,0.35); color: #fff; }
.clara-disclaimer { margin-top: 1.4rem; text-align: center; }

/* ==========================================================================
   TRUST
   ========================================================================== */
.trust-intro { max-width: 60ch; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.trust-card h3 {
  font-size: 1.06rem;
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.trust-card h3 svg { width: 19px; height: 19px; flex: none; color: var(--route-deep); }
.trust-card p { font-size: 0.95rem; color: var(--text-2); margin: 0; }
.trust-foot { margin-top: 1.8rem; font-size: 0.95rem; color: var(--text-2); }
.trust-foot a { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   WAITLIST
   ========================================================================== */
.waitlist-section { position: relative; overflow: hidden; }
.waitlist-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.waitlist-bg svg { width: 100%; height: 100%; }
.waitlist-inner {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.waitlist-inner .lede { margin-inline: auto; }
.waitlist-form {
  display: flex; gap: 0.7rem;
  max-width: 480px;
  margin: 2.2rem auto 0;
}
.waitlist-form input[type='email'] {
  flex: 1; min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  transition: border-color 0.18s, background 0.18s;
}
.waitlist-form input[type='email']::placeholder { color: rgba(255, 255, 255, 0.4); }
.waitlist-form input[type='email']:focus {
  outline: none;
  border-color: var(--signal);
  background: rgba(255, 255, 255, 0.1);
}
.waitlist-form input[type='email']:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.waitlist-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-weight: 500;
}
.waitlist-status.is-success { color: var(--route); }
.waitlist-status.is-error { color: var(--ticket); }
.waitlist-note { margin-top: 0.5rem; }
.waitlist-android { margin-top: 2.2rem; }

/* ==========================================================================
   SUB-PAGES (help centre, legal, contact)
   ========================================================================== */
.page-hero {
  background: var(--asphalt);
  color: var(--dark-text);
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 0.25em;
}
.page-hero .lede { margin-bottom: 0; }
.page-hero .lede a { color: var(--signal); }
.page-hero-art {
  position: absolute; right: -4%; top: 0; bottom: 0;
  width: 46%;
  opacity: 0.6;
  pointer-events: none;
}
.crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.crumb a { color: var(--signal); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { color: rgba(255, 255, 255, 0.45); }

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.help-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), border-color 0.18s;
}
.help-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(240, 166, 61, 0.5);
}
.help-card h2 {
  font-size: 1.12rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 0.4rem;
}
.help-card h2::after {
  content: '\2192';
  font-family: var(--font-mono);
  color: var(--signal-deep);
  font-size: 1rem;
}
.help-card p { font-size: 0.94rem; color: var(--text-2); margin: 0; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); font-weight: 600; }
.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.prose-foot {
  margin-top: 3rem;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-2);
}
.prose-foot p { margin: 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--ink); }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  max-width: 620px;
}
.contact-email {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: var(--ink);
  word-break: break-all;
}
.contact-meta { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px dashed var(--line); font-size: 0.95rem; color: var(--text-2); }
.contact-meta p { margin-bottom: 0.5em; }

/* thanks page */
.thanks-wrap { max-width: 560px; text-align: center; margin-inline: auto; }
.thanks-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(61, 220, 151, 0.15);
  display: grid; place-items: center;
  margin: 0 auto 1.5rem;
}
.thanks-check svg { width: 30px; height: 30px; color: var(--route-deep); }

/* ==========================================================================
   SCROLL REVEAL (JS adds .reveal-ready; no-JS pages stay fully visible)
   ========================================================================== */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .problem-grid, .clara-grid { grid-template-columns: 1fr; }
  .clara-grid { gap: 3rem; }
  .phone { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 800px) {
  body { font-size: 1rem; }
  .feature { grid-template-columns: 1fr; gap: 2rem; }
  .feature.flip .feature-visual { order: 0; }
  .trust-grid, .help-grid { grid-template-columns: 1fr; }
  .hero-content { padding-block: 8.5rem 4rem; }
  .hero-route--desktop { display: none; }
  .hero-route--mobile { display: block; }
  .hero {
    align-items: end;
    background-image: radial-gradient(60rem 40rem at 50% -15%, #273047 0%, rgba(28, 35, 51, 0) 60%);
  }
  .hero::after { display: block; }
  .hero-content {
    padding-block: 0 3.25rem;
    margin-top: min(48vh, 430px);
  }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .footer-meta { flex-direction: column; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.35rem; }
  .container { padding-inline: 1.1rem; }
}

/* ==========================================================================
   REDUCED MOTION — static, fully-composed fallbacks
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* hero: final scene, no sequence */
  .route-mask-path { stroke-dashoffset: 0; animation: none; }
  .hero-pin, .hero-check, .hero-risk, .hero-fade { opacity: 1; animation: none; transform: none; }
  .hero-ticket { opacity: 0; animation: none; }
  .hero-pin-pulse, .pulse-ring { display: none; }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}
