/* ============================================================
   SeeYouSoon.se — shared stylesheet (redesign 2026)
   Palette: 6 values, plus three darker steps of the same hues for text
   on paper and for hover (H25). Paper appears ONLY on the receipt.
   ============================================================ */

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

@font-face {
  font-family: 'Readex Pro';
  src: url('/assets/fonts/readex-pro-arabic-var.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB;
}
@font-face {
  font-family: 'Readex Pro';
  src: url('/assets/fonts/readex-pro-latin-var.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---- */
:root {
  --ink:      #050510;
  --ink-2:    #0F0F22;
  --paper:    #FAF9F6;
  --purple:   #A855F7;
  --blue:     #3B82F6;
  --kr-green: #00C896;

  /* On paper (#FAF9F6) the screen purple and green fail AA as text (3.3:1 and
     2.9:1); these darker steps pass (5.2:1 and 5.1:1). Hover is one step lighter. */
  --purple-on-paper:   #8B3FD9;
  --kr-green-on-paper: #007A58;
  --purple-hover:      #B96BF9;

  /* Derived (opacity variants of the six, nothing new) */
  --text:       rgba(250, 249, 246, 0.92);
  --text-mute:  rgba(250, 249, 246, 0.62);
  --text-dim:   rgba(250, 249, 246, 0.40);
  --line:       rgba(250, 249, 246, 0.10);
  --line-soft:  rgba(250, 249, 246, 0.06);
  --ink-on-paper:      #050510;
  --ink-on-paper-mute: rgba(5, 5, 16, 0.55);

  --display: 'Schibsted Grotesk', 'Inter', system-ui, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Type scale: 14 / 16 / 20 / 28 / 40 / 64 / 96 */
  --t-1: 0.875rem;
  --t-2: 1rem;
  --t-3: 1.25rem;
  --t-4: 1.75rem;
  --t-5: 2.5rem;
  --t-6: 4rem;
  --t-7: 6rem;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 140px;

  --r: 10px;
  --wrap: 1120px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--purple); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink-on-paper);
  padding: var(--s-3) var(--s-4); z-index: 100; border-radius: 0 0 var(--r) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: var(--s-5);
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: var(--t-3);
  letter-spacing: -0.03em;
}
.brand .tld { color: var(--purple); }
.nav-cta {
  font-size: var(--t-1); font-weight: 600; color: var(--text) !important;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-2) var(--s-4); white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.nav-cta:hover { border-color: var(--purple); background: rgba(168, 85, 247, 0.10); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-weight: 600; font-size: var(--t-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r); border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: var(--paper); }
.btn-primary:hover { background: var(--purple-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple); }

/* ---- Hero ---- */
.hero { padding: var(--s-9) 0 var(--s-9); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s-8); align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: var(--t-1); font-weight: 500;
  color: var(--text-mute); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.hero h1 {
  font-size: clamp(var(--t-5), 8.5vw, var(--t-7));
  font-weight: 800; letter-spacing: -0.035em;
}
.hero h1 .pct { color: var(--purple); }
.hero h1 .strike {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-thickness: 0.06em;
  text-decoration-color: var(--purple);
}
.hero-sub {
  margin-top: var(--s-5);
  font-size: var(--t-3); line-height: 1.55; color: var(--text-mute);
  max-width: 34ch;
}
.hero-sub strong { color: var(--kr-green); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-terms {
  margin-top: var(--s-5);
  font-family: var(--mono); font-size: var(--t-1); color: var(--text-dim);
}

/* ---- The receipt ---- */
.receipt-holder { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.receipt {
  width: min(400px, 100%);
  background: var(--paper);
  color: var(--ink-on-paper);
  font-family: var(--mono);
  font-size: var(--t-2);
  padding: var(--s-6) var(--s-5) var(--s-7);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 24px 60px rgba(5, 5, 16, 0.6), 0 2px 8px rgba(5, 5, 16, 0.4);
  /* torn bottom edge */
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 10px),
    97.5% 100%, 95% calc(100% - 10px), 92.5% 100%, 90% calc(100% - 10px),
    87.5% 100%, 85% calc(100% - 10px), 82.5% 100%, 80% calc(100% - 10px),
    77.5% 100%, 75% calc(100% - 10px), 72.5% 100%, 70% calc(100% - 10px),
    67.5% 100%, 65% calc(100% - 10px), 62.5% 100%, 60% calc(100% - 10px),
    57.5% 100%, 55% calc(100% - 10px), 52.5% 100%, 50% calc(100% - 10px),
    47.5% 100%, 45% calc(100% - 10px), 42.5% 100%, 40% calc(100% - 10px),
    37.5% 100%, 35% calc(100% - 10px), 32.5% 100%, 30% calc(100% - 10px),
    27.5% 100%, 25% calc(100% - 10px), 22.5% 100%, 20% calc(100% - 10px),
    17.5% 100%, 15% calc(100% - 10px), 12.5% 100%, 10% calc(100% - 10px),
    7.5% 100%, 5% calc(100% - 10px), 2.5% 100%, 0 calc(100% - 10px)
  );
}
.receipt-head { text-align: center; margin-bottom: var(--s-4); }
.receipt-brand { font-weight: 700; letter-spacing: 0.14em; }
.receipt-venue { color: var(--ink-on-paper-mute); font-size: var(--t-1); margin-top: var(--s-1); }
.receipt-rule {
  border: none; border-top: 1.5px dashed rgba(5, 5, 16, 0.25);
  margin: var(--s-3) 0;
}
.receipt-line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-4); padding: var(--s-1) 0;
  font-variant-numeric: tabular-nums;
}
.receipt-line .amt { font-weight: 500; white-space: nowrap; }
.receipt-line.is-keep { font-weight: 700; font-size: var(--t-3); }
.receipt-line.is-keep .amt { color: var(--kr-green-on-paper); font-weight: 700; }
.receipt-line.is-them { color: var(--ink-on-paper-mute); font-size: var(--t-1); }
.receipt-line.is-them .amt { text-decoration: line-through; }
.receipt-line.is-diff { font-weight: 700; }
.receipt-line.is-diff .amt { color: var(--purple-on-paper); }

/* print-in animation */
.receipt [data-print] { opacity: 0; transform: translateY(6px); }
.receipt.is-printed [data-print],
.receipt.no-anim [data-print] { opacity: 1; transform: none; }
.receipt.is-printing [data-print] {
  animation: printline .35s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes printline {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .receipt [data-print] { opacity: 1 !important; transform: none !important; animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* slider */
.receipt-slider { width: min(400px, 100%); }
.receipt-slider label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: var(--t-1); color: var(--text-mute);
  margin-bottom: var(--s-2);
}
.receipt-slider output { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--purple) var(--fill, 27%), var(--line) var(--fill, 27%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--purple); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  border-radius: 50%; background: var(--paper);
  border: 3px solid var(--purple);
  box-shadow: 0 2px 10px rgba(5, 5, 16, 0.5);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--purple);
  cursor: grab;
}
input[type="range"]:focus-visible { outline: 2px solid var(--purple); outline-offset: 6px; }

/* ---- Sections ---- */
.section { padding: var(--s-10) 0; border-top: 1px solid var(--line-soft); }
.section-eyebrow {
  font-family: var(--mono); font-size: var(--t-1); color: var(--purple);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s-3);
}
.section h2 {
  font-size: clamp(var(--t-4), 4.5vw, var(--t-5));
  font-weight: 800; letter-spacing: -0.03em;
  max-width: 22ch;
}
.section-lead { margin-top: var(--s-4); color: var(--text-mute); max-width: 52ch; font-size: var(--t-3); }

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5); margin-top: var(--s-7);
}
.step {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: var(--s-6);
}
.step-num {
  font-family: var(--mono); font-size: var(--t-1); color: var(--purple);
  margin-bottom: var(--s-4);
}
.step h3 { font-size: var(--t-3); font-weight: 700; margin-bottom: var(--s-2); }
.step p { color: var(--text-mute); font-size: var(--t-1); line-height: 1.6; }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4); margin-top: var(--s-7);
}
.service {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: var(--s-5);
  transition: border-color .15s, transform .15s;
}
.service:hover { border-color: var(--purple); transform: translateY(-2px); }
.service h3::before { content: ""; display: block; width: 20px; height: 2px; background: var(--purple); margin-bottom: var(--s-4); }
.service h3 { font-size: var(--t-2); font-weight: 700; }
.service p { margin-top: var(--s-1); color: var(--text-mute); font-size: var(--t-1); }
.service .go {
  display: inline-block; margin-top: var(--s-3);
  font-family: var(--mono); font-size: var(--t-1); color: var(--purple);
}

/* Partner CTA */
.partner {
  margin-top: 0;
  text-align: left;
}
.partner .math {
  font-family: var(--mono);
  font-size: var(--t-3);
  margin-top: var(--s-5);
  color: var(--text-mute);
}
.partner .math .keep { color: var(--kr-green); font-weight: 700; }

/* ---- Footer (base padding; the footer itself is styled in Stage 6) ---- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: var(--s-8) 0 var(--s-7);
  color: var(--text-dim); font-size: var(--t-1);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .steps { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--s-9) 0; }
}
@media (max-width: 720px) {
  .nav-cta { text-align: center; }
  .hero { padding: var(--s-7) 0 var(--s-8); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 var(--s-4); }
}

/* ============================================================
   Stage 2 — menu overlay, page templates, forms, interactive
   ============================================================ */

/* ---- Header (menu-button era) ---- */
.nav-right { display: flex; align-items: center; gap: var(--s-3); }
.menu-btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); padding: 10px var(--s-4);
  font-weight: 600; font-size: var(--t-1);
  transition: border-color .2s, background .2s;
}
.menu-btn:hover { border-color: var(--purple); }
.menu-btn .burger { position: relative; width: 18px; height: 12px; }
.menu-btn .burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .35s cubic-bezier(.7,0,.3,1), top .35s cubic-bezier(.7,0,.3,1), opacity .2s;
}
.menu-btn .burger span:nth-child(1) { top: 0; }
.menu-btn .burger span:nth-child(2) { top: 5px; }
.menu-btn .burger span:nth-child(3) { top: 10px; }
body.menu-open .menu-btn .burger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-btn .burger span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn .burger span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---- The menu overlay ---- */
.menu {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(168,85,247,0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(59,130,246,0.08), transparent 60%),
    var(--ink-2);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .6s cubic-bezier(.76,0,.24,1), visibility 0s linear .6s;
  overflow-y: auto;
}
body.menu-open .menu {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path .6s cubic-bezier(.76,0,.24,1);
}
body.menu-open { overflow: hidden; }

.menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: 0 0 var(--s-6); }
.menu-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: 0 var(--s-5);
  max-width: var(--wrap); margin: 0 auto; width: 100%;
}

.menu-grid {
  flex: 1;
  max-width: var(--wrap); margin: 0 auto; width: 100%;
  padding: var(--s-6) var(--s-5) var(--s-5);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--s-7) var(--s-8);
  align-items: start;
}

/* --- primary: the six things we actually want people to do --- */
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { overflow: hidden; }
.m-link {
  display: flex; align-items: baseline; gap: var(--s-4);
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(var(--t-3), 4.2vw, 3.1rem);
  line-height: 1.2;
  color: var(--text-mute);
  padding: 2px 0;
  transform: translateY(110%);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), color .2s, padding-left .3s cubic-bezier(.2,.8,.2,1);
}
body.menu-open .m-link { transform: translateY(0); transition-delay: calc(.12s + var(--i) * 50ms), 0s, 0s; }
.m-link .idx {
  font-family: var(--mono); font-weight: 400; letter-spacing: 0;
  font-size: var(--t-1); color: var(--text-dim);
  transition: color .2s;
}
.m-link:hover, .m-link:focus-visible, .m-link.is-active { color: var(--paper); padding-left: var(--s-4); }
.m-link:hover .idx, .m-link.is-active .idx { color: var(--purple); }
.m-link .arrow {
  font-family: var(--mono); font-size: 0.42em; color: var(--purple);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .25s, transform .25s;
}
.m-link:hover .arrow { opacity: 1; transform: translateX(0); }
.m-note {
  display: block; margin: 2px 0 0 calc(var(--s-4) + 22px);
  font-family: var(--body); font-size: var(--t-1); font-weight: 400;
  letter-spacing: 0; color: var(--text-dim);
}

/* --- right rail: receipt + live strip --- */
.menu-rail { display: grid; gap: var(--s-5); justify-items: center; }

/* --- secondary: grouped link columns --- */
.menu-cols {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
  padding-top: var(--s-6); margin-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.menu-col h3 {
  font-family: var(--mono); font-size: var(--t-1); font-weight: 500;
  color: var(--purple); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.menu-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.menu-col a {
  color: var(--text-mute); font-size: var(--t-2);
  display: inline-block;
  transition: color .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1);
}
.menu-col a:hover { color: var(--paper); transform: translateX(5px); }

/* --- mini receipt in the rail --- */
.menu-receipt {
  width: min(300px, 100%);
  background: var(--paper); color: var(--ink-on-paper);
  font-family: var(--mono); font-size: var(--t-1);
  padding: var(--s-5) var(--s-4) var(--s-6);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 20px 50px rgba(5,5,16,.55);
  clip-path: polygon(0 0,100% 0,100% calc(100% - 8px),96% 100%,92% calc(100% - 8px),88% 100%,84% calc(100% - 8px),80% 100%,76% calc(100% - 8px),72% 100%,68% calc(100% - 8px),64% 100%,60% calc(100% - 8px),56% 100%,52% calc(100% - 8px),48% 100%,44% calc(100% - 8px),40% 100%,36% calc(100% - 8px),32% 100%,28% calc(100% - 8px),24% 100%,20% calc(100% - 8px),16% 100%,12% calc(100% - 8px),8% 100%,4% calc(100% - 8px),0 100%);
  transform: rotate(1.6deg);
  opacity: 0; translate: 0 16px;
  transition: opacity .5s .35s, translate .5s .35s;
}
body.menu-open .menu-receipt { opacity: 1; translate: 0 0; }
.menu-receipt .mr-title { text-align: center; font-weight: 700; letter-spacing: .12em; margin-bottom: var(--s-3); }
.menu-receipt .mr-line {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: 3px 0; font-variant-numeric: tabular-nums;
}
.menu-receipt .mr-line .v { font-weight: 700; }
.menu-receipt .mr-line.hl .v { color: var(--kr-green-on-paper); }
.menu-receipt hr { border: none; border-top: 1.5px dashed rgba(5,5,16,.22); margin: var(--s-2) 0; }


/* ---------- menu preview panel ---------- */
.menu-preview {
  display: grid;
  grid-template-areas: "stack";
  width: min(340px, 100%);
  opacity: 0; translate: 0 14px;
  transition: opacity .5s .3s, translate .5s .3s;
}
body.menu-open .menu-preview { opacity: 1; translate: 0 0; }

.mp {
  grid-area: stack;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s cubic-bezier(.2,.8,.2,1), transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s;
  display: grid; gap: var(--s-4); align-content: start;
}
.mp.is-on {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .3s cubic-bezier(.2,.8,.2,1), transform .3s cubic-bezier(.2,.8,.2,1);
}
.mp-h {
  font-family: var(--mono); font-size: var(--t-1); color: var(--text-dim);
  letter-spacing: .1em; text-transform: uppercase;
}
.mp-note { font-size: var(--t-1); color: var(--text-dim); line-height: 1.5; max-width: 32ch; }

/* the 13 services, browsable straight from the menu */
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mp-svc {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px var(--s-3);
  font-size: var(--t-1); color: var(--text-mute);
  transition: border-color .18s, color .18s, background .18s, transform .18s;
}
.mp-svc:hover { border-color: var(--purple); color: var(--paper); background: rgba(168,85,247,.13); transform: translateY(-1px); }

/* the receipt no longer animates in on its own — the panel handles it */
.menu-preview .menu-receipt { opacity: 1; translate: none; transform: rotate(1.4deg); transition: none; }

@media (max-width: 980px) {
  .menu-preview { width: 100%; }
  .mp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .mp-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .menu-preview, .mp { transition: none !important; }
}

/* --- live strip: clock + weather --- */
.live-strip {
  width: min(300px, 100%);
  display: grid; gap: var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  background: rgba(250,249,246,.02);
  opacity: 0; translate: 0 12px;
  transition: opacity .5s .45s, translate .5s .45s;
}
body.menu-open .live-strip { opacity: 1; translate: 0 0; }
.live-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.live-k {
  font-family: var(--mono); font-size: var(--t-1); color: var(--text-dim);
  letter-spacing: .06em; text-transform: uppercase;
}
.live-v { font-family: var(--mono); font-size: var(--t-3); font-weight: 700; color: var(--paper); font-variant-numeric: tabular-nums; }
.live-v .sec { color: var(--text-dim); font-size: .62em; }
.live-w { display: flex; align-items: center; gap: var(--s-3); }
.live-w svg { width: 24px; height: 24px; flex: none; color: var(--purple); }
.live-tip {
  border-top: 1px dashed var(--line); padding-top: var(--s-3);
  font-size: var(--t-1); color: var(--text-mute);
}
.live-tip a { color: var(--purple); }
.live-tip a:hover { text-decoration: underline; }
.live-src { font-family: var(--mono); font-size: .72rem; color: var(--text-dim); }

/* header chip */
.hdr-live {
  display: none; align-items: center; gap: var(--s-3);
  font-family: var(--mono); font-size: var(--t-1); color: var(--text-mute);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px var(--s-4); margin-right: var(--s-1);
  white-space: nowrap;
}
.hdr-live.is-on { display: inline-flex; }
.hdr-live .sep { color: var(--text-dim); }
.hdr-live .t { color: var(--text); font-variant-numeric: tabular-nums; }
.hdr-live svg { width: 15px; height: 15px; color: var(--purple); }
@media (min-width: 1040px) { .hdr-live.is-on { display: inline-flex; } }
@media (max-width: 1039px) { .hdr-live.is-on { display: none; } }

.menu-foot {
  max-width: var(--wrap); margin: 0 auto; width: 100%;
  padding: var(--s-5) var(--s-5) 0;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  font-family: var(--mono); font-size: var(--t-1);
}
.menu-foot .lbl { color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; }
.menu-foot a { color: var(--text-mute); transition: color .2s; }
.menu-foot a:hover { color: var(--purple); }

@media (max-width: 980px) {
  .menu-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .menu-rail { justify-items: stretch; }
  .menu-cols { grid-template-columns: 1fr 1fr; }
  .m-link { font-size: clamp(var(--t-3), 7vw, 2.2rem); }
  .live-strip { width: 100%; }
}
@media (max-width: 560px) {
  .menu-cols { grid-template-columns: 1fr; gap: var(--s-5); }
  .m-note { margin-left: calc(var(--s-4) + 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .m-link, .menu-receipt, .live-strip { transition: none !important; }
}

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: var(--s-8) 0 var(--s-7); }
.crumb {
  font-family: var(--mono); font-size: var(--t-1); color: var(--text-dim);
  margin-bottom: var(--s-5); display: flex; gap: var(--s-2); flex-wrap: wrap;
}
.crumb a:hover { color: var(--text); }
.page-hero h1 {
  font-size: clamp(var(--t-5), 6.5vw, var(--t-6));
  font-weight: 800; letter-spacing: -0.03em; max-width: 16ch;
}
.page-hero .lead { margin-top: var(--s-4); font-size: var(--t-3); color: var(--text-mute); max-width: 48ch; line-height: 1.55; }

/* ---- Forms ---- */
.form-card {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: var(--s-6);
  max-width: 640px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-1); font-weight: 600; }
.field .hint { font-size: var(--t-1); color: var(--text-dim); font-weight: 400; }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--text);
  padding: var(--s-3) var(--s-4); font: inherit; font-size: var(--t-2);
  transition: border-color .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-actions { margin-top: var(--s-5); display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.form-note { font-size: var(--t-1); color: var(--text-dim); }
.form-status { margin-top: var(--s-4); font-size: var(--t-2); display: none; }
.form-status.ok { display: block; color: var(--kr-green); }
.form-status.fail { display: block; color: var(--text); }
.form-status a { color: var(--purple); text-decoration: underline; }
.btn[disabled] { opacity: .55; cursor: wait; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---- FAQ accordion ---- */
.faq-list { margin-top: var(--s-7); max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  text-align: left; padding: var(--s-5) 0;
  font-family: var(--display); font-weight: 700; font-size: var(--t-3);
  letter-spacing: -0.01em;
}
.faq-q .pm {
  font-family: var(--mono); color: var(--purple); font-weight: 400; font-size: var(--t-3);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--text-mute); padding-bottom: var(--s-5); max-width: 62ch; }

/* ---- Price tables ---- */
.price-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-7); }
.price-card {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: var(--s-6);
}
.price-card h3 { font-size: var(--t-3); margin-bottom: var(--s-2); }
.price-card .big {
  font-family: var(--mono); font-size: var(--t-5); font-weight: 700;
  color: var(--purple); margin: var(--s-3) 0;
}
.price-card ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.price-card li {
  padding: var(--s-3) 0; border-top: 1px solid var(--line-soft);
  color: var(--text-mute); font-size: var(--t-1);
  display: flex; justify-content: space-between; gap: var(--s-4);
}
.price-card li strong { color: var(--text); font-weight: 600; }
.price-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .price-cols, .price-cols.cols-3 { grid-template-columns: 1fr; } }

/* ---- Misc ---- */
.notice {
  margin-top: var(--s-6); max-width: 640px;
  border-left: 2px solid var(--purple);
  padding: var(--s-3) var(--s-5);
  color: var(--text-mute); font-size: var(--t-1);
}
.prose { max-width: 68ch; margin-top: var(--s-6); }
.prose h2 { font-size: var(--t-4); margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: var(--s-3); color: var(--text-mute); }
.prose strong { color: var(--text); }
.areas { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.area {
  font-family: var(--mono); font-size: var(--t-1);
  border: 1px solid var(--line); border-radius: 999px;
  padding: var(--s-2) var(--s-4); color: var(--text-mute);
}
.center-cta { margin-top: var(--s-7); }

/* ============================================================
   Stage 3 — price checker, driver calc, app page, misc
   ============================================================ */

/* ---- Price checker ---- */
.pk { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,420px); gap: var(--s-8); align-items: start; }
.pk-panel {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: var(--s-6);
}
.pk-step { margin-bottom: var(--s-6); }
.pk-step:last-child { margin-bottom: 0; }
.pk-step > h3 {
  font-family: var(--body); font-size: var(--t-1); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: var(--s-4);
}
.pk-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pk-chip {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-mute); padding: 10px var(--s-4);
  font-size: var(--t-1); font-weight: 500;
  transition: border-color .18s, color .18s, background .18s, transform .18s;
}
.pk-chip:hover { border-color: var(--purple); color: var(--text); transform: translateY(-1px); }
.pk-chip.is-on { border-color: var(--purple); background: rgba(168,85,247,.16); color: var(--paper); }

/* result card = paper, reuses receipt language */
.pk-result {
  position: sticky; top: 88px;
  background: var(--paper); color: var(--ink-on-paper);
  font-family: var(--mono);
  padding: var(--s-6) var(--s-5) var(--s-7);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 24px 60px rgba(5,5,16,.6);
  clip-path: polygon(0 0,100% 0,100% calc(100% - 10px),97.5% 100%,95% calc(100% - 10px),92.5% 100%,90% calc(100% - 10px),87.5% 100%,85% calc(100% - 10px),82.5% 100%,80% calc(100% - 10px),77.5% 100%,75% calc(100% - 10px),72.5% 100%,70% calc(100% - 10px),67.5% 100%,65% calc(100% - 10px),62.5% 100%,60% calc(100% - 10px),57.5% 100%,55% calc(100% - 10px),52.5% 100%,50% calc(100% - 10px),47.5% 100%,45% calc(100% - 10px),42.5% 100%,40% calc(100% - 10px),37.5% 100%,35% calc(100% - 10px),32.5% 100%,30% calc(100% - 10px),27.5% 100%,25% calc(100% - 10px),22.5% 100%,20% calc(100% - 10px),17.5% 100%,15% calc(100% - 10px),12.5% 100%,10% calc(100% - 10px),7.5% 100%,5% calc(100% - 10px),2.5% 100%,0 calc(100% - 10px));
}
.pk-result .r-head { text-align: center; margin-bottom: var(--s-4); }
.pk-result .r-brand { font-weight: 700; letter-spacing: .14em; }
.pk-result .r-what { color: var(--ink-on-paper-mute); font-size: var(--t-1); margin-top: var(--s-1); min-height: 1.3em; }
.pk-result hr { border: none; border-top: 1.5px dashed rgba(5,5,16,.25); margin: var(--s-3) 0; }
.pk-line {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-1) 0; font-size: var(--t-1); font-variant-numeric: tabular-nums;
  color: var(--ink-on-paper-mute);
}
.pk-line .v { color: var(--ink-on-paper); font-weight: 500; }
.pk-total { padding: var(--s-3) 0 var(--s-2); }
.pk-total .l { display: block; font-size: var(--t-1); color: var(--ink-on-paper-mute); }
.pk-total .v {
  display: block; margin-top: var(--s-1);
  font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 1.85rem);
  font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.02em;
}
.pk-total .v.flash { animation: pkflash .45s ease; }
@keyframes pkflash { 0% { color: var(--purple-on-paper); transform: translateY(-3px); } 100% { color: inherit; transform: none; } }
.pk-moms { margin-top: var(--s-3); font-size: 0.8rem; color: var(--ink-on-paper-mute); line-height: 1.5; }
.pk-cta { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.pk-cta .btn { width: 100%; }
.pk-empty { color: var(--ink-on-paper-mute); font-size: var(--t-1); padding: var(--s-4) 0; text-align: center; }
@media (max-width: 900px) {
  .pk { grid-template-columns: 1fr; }
  .pk-result { position: static; }
}
@media (prefers-reduced-motion: reduce) { .pk-total .v.flash { animation: none; } }

/* ---- Split feature rows (app page) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; margin-top: var(--s-7); }
.split + .split { margin-top: var(--s-8); }
.split.flip > :first-child { order: 2; }
.split h3 { font-size: var(--t-4); margin-bottom: var(--s-3); }
.split p { color: var(--text-mute); }
.split-visual {
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: var(--s-7); display: grid; gap: var(--s-3);
}
.split-visual .kv {
  display: flex; justify-content: space-between; gap: var(--s-4);
  font-family: var(--mono); font-size: var(--t-1);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft);
}
.split-visual .kv:last-child { border-bottom: none; }
.split-visual .kv strong { color: var(--kr-green); font-weight: 700; }
@media (max-width: 860px) { .split, .split.flip > :first-child { grid-template-columns: 1fr; order: 0; } }

/* ---- Stat strip built from verifiable terms ---- */
.terms-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.term {
  border-top: 2px solid var(--purple); padding-top: var(--s-4);
}
.term .n { font-family: var(--mono); font-size: var(--t-4); font-weight: 700; }
.term .l { color: var(--text-mute); font-size: var(--t-1); margin-top: var(--s-1); }
@media (max-width: 720px) { .terms-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Timeline (press / om) ---- */
.tl { margin-top: var(--s-7); border-left: 1px solid var(--line); padding-left: var(--s-6); }
.tl-item { padding-bottom: var(--s-6); position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: calc(var(--s-6) * -1 - 5px); top: 8px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--purple);
}
.tl-item .when { font-family: var(--mono); font-size: var(--t-1); color: var(--purple); }
.tl-item h3 { font-size: var(--t-3); margin: var(--s-2) 0; }
.tl-item p { color: var(--text-mute); font-size: var(--t-1); max-width: 60ch; }

/* ---- Job list ---- */
.jobs { margin-top: var(--s-7); }
.job {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: var(--s-5) 0; border-top: 1px solid var(--line-soft);
  transition: padding-left .25s cubic-bezier(.2,.8,.2,1);
}
.job:hover { padding-left: var(--s-3); }
.job:last-child { border-bottom: 1px solid var(--line-soft); }
.job h3 { font-size: var(--t-3); }
.job .meta { font-family: var(--mono); font-size: var(--t-1); color: var(--text-dim); margin-top: var(--s-1); }
.job .go { font-family: var(--mono); font-size: var(--t-1); color: var(--purple); white-space: nowrap; }

/* ============================================================
   Stage 4 — comparison table, articles, support, cities
   ============================================================ */

/* ---- Comparison table ---- */
.cmp-wrap { margin-top: var(--s-7); overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { padding: var(--s-4) var(--s-4); text-align: left; border-bottom: 1px solid var(--line-soft); }
.cmp thead th {
  font-family: var(--mono); font-size: var(--t-1); font-weight: 500;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em;
  border-bottom-color: var(--line);
}
.cmp thead th.us { color: var(--paper); }
.cmp tbody th { font-weight: 500; color: var(--text-mute); font-size: var(--t-1); }
.cmp td { font-family: var(--mono); font-size: var(--t-1); font-variant-numeric: tabular-nums; }
.cmp td.us { color: var(--paper); font-weight: 700; background: rgba(168,85,247,.07); }
.cmp td.us .g { color: var(--kr-green); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: rgba(250,249,246,.03); }
.cmp tbody tr:hover td.us { background: rgba(168,85,247,.12); }
.cmp-note { margin-top: var(--s-4); font-size: var(--t-1); color: var(--text-dim); max-width: 60ch; }

/* ---- Article ---- */
.article { max-width: 68ch; margin-top: var(--s-6); }
.article p { margin-top: var(--s-4); color: var(--text-mute); font-size: 1.05rem; line-height: 1.75; }
.article h2 { font-size: var(--t-4); margin-top: var(--s-7); }
.article ul { margin: var(--s-4) 0 0; padding-left: var(--s-5); color: var(--text-mute); }
.article li { margin-bottom: var(--s-2); line-height: 1.7; }
.article strong { color: var(--text); }
.article .pull {
  margin: var(--s-6) 0; padding-left: var(--s-5);
  border-left: 2px solid var(--purple);
  font-family: var(--display); font-size: var(--t-3); font-weight: 700;
  letter-spacing: -0.02em; color: var(--text); line-height: 1.35;
}
.byline { font-family: var(--mono); font-size: var(--t-1); color: var(--text-dim); margin-top: var(--s-4); }

/* ---- Article cards ---- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.post {
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color .18s, transform .18s;
}
.post:hover { border-color: var(--purple); transform: translateY(-2px); }
.post .when { font-family: var(--mono); font-size: var(--t-1); color: var(--purple); }
.post h3 { font-size: var(--t-3); line-height: 1.2; }
.post p { color: var(--text-mute); font-size: var(--t-1); flex: 1; }
.post .go { font-family: var(--mono); font-size: var(--t-1); color: var(--purple); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

/* ---- Support hub ---- */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.hub-card {
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: var(--s-5); transition: border-color .18s;
}
.hub-card:hover { border-color: var(--purple); }
.hub-card h3 { font-size: var(--t-2); margin-bottom: var(--s-2); }
.hub-card p { color: var(--text-mute); font-size: var(--t-1); }
.hub-card .go { display: inline-block; margin-top: var(--s-3); font-family: var(--mono); font-size: var(--t-1); color: var(--purple); }
@media (max-width: 860px) { .hub { grid-template-columns: 1fr; } }

/* ============================================================
   Stage 5 — login routing
   ============================================================ */

/* ---- Login routing ---- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.door {
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color .2s, transform .2s;
}
.door:hover { border-color: var(--purple); transform: translateY(-2px); }
.door .who { font-family: var(--mono); font-size: var(--t-1); color: var(--purple); }
.door h3 { font-size: var(--t-3); }
.door p { color: var(--text-mute); font-size: var(--t-1); flex: 1; }
.door .go { font-family: var(--mono); font-size: var(--t-1); color: var(--text); }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* ============================================================
   Stage 6 — new footer, scroll reveals, product pages
   ============================================================ */

/* ---- Scroll reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  margin-top: var(--s-10);
  border-top: 1px solid var(--line-soft);
  /* same near-black as the rest of the site; the glow only grazes the top */
  background:
    radial-gradient(900px 380px at 72% -8%, rgba(168,85,247,.055), transparent 68%),
    var(--ink);
  color: var(--text-mute); font-size: var(--t-1);
  overflow: hidden;
}
/* hairline that catches the light along the top edge */
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.38) 32%, rgba(59,130,246,.20) 64%, transparent);
}

/* ---- opening band: statement + the 3D receipt ---- */
.f-top { position: relative; padding: var(--s-10) 0 var(--s-9); }
.f-top-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--s-8); align-items: center;
}
.f-eyebrow {
  font-family: var(--mono); font-size: var(--t-1);
  color: var(--purple); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.f-top h2 {
  font-size: clamp(var(--t-4), 5.2vw, var(--t-6));
  font-weight: 800; letter-spacing: -0.035em; color: var(--paper);
  max-width: 14ch; line-height: 1.02;
}
.f-top h2 .zero { color: var(--purple); }
.f-top p { margin-top: var(--s-5); max-width: 42ch; font-size: var(--t-2); line-height: 1.6; }
.f-top-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* the canvas stage */
.f-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 470px;
  display: flex; align-items: center; justify-content: center;
}
.f-stage canvas {
  display: block; width: 100%; height: 100%;
  opacity: 0; transition: opacity .9s ease;
}
.f-stage.is-ready canvas { opacity: 1; }
/* flat fallback: the same receipt in CSS, shown until (or instead of) WebGL */
.f-flat {
  position: absolute; inset: 0; margin: auto;
  width: min(320px, 88%); height: fit-content;
  background: var(--paper); color: var(--ink-on-paper);
  font-family: var(--mono); font-size: var(--t-1);
  padding: var(--s-5) var(--s-4) var(--s-6);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 26px 60px rgba(5,5,16,.6);
  transform: rotate(-2deg);
  clip-path: polygon(0 0,100% 0,100% calc(100% - 8px),96% 100%,92% calc(100% - 8px),88% 100%,84% calc(100% - 8px),80% 100%,76% calc(100% - 8px),72% 100%,68% calc(100% - 8px),64% 100%,60% calc(100% - 8px),56% 100%,52% calc(100% - 8px),48% 100%,44% calc(100% - 8px),40% 100%,36% calc(100% - 8px),32% 100%,28% calc(100% - 8px),24% 100%,20% calc(100% - 8px),16% 100%,12% calc(100% - 8px),8% 100%,4% calc(100% - 8px),0 100%);
  transition: opacity .5s ease;
}
.f-stage.is-ready .f-flat { opacity: 0; pointer-events: none; }
.f-flat .t { text-align: center; font-weight: 700; letter-spacing: .12em; margin-bottom: var(--s-3); }
.f-flat .r {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-4); padding: 4px 0; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.f-flat .r b { font-weight: 700; }
.f-flat .r.g b { color: var(--kr-green-on-paper); }
.f-flat hr { border: none; border-top: 1.5px dashed rgba(5,5,16,.22); margin: var(--s-2) 0; }


/* caption + a matching glow for the non-WebGL fallback */
.f-stage-wrap { display: grid; gap: var(--s-4); }
.f-stage-cap {
  text-align: center; max-width: 34ch; margin: 0 auto;
  font-family: var(--mono); font-size: var(--t-1); line-height: 1.6;
  color: var(--text-dim);
}
.f-stage-cap a { color: var(--purple); }
.f-stage-cap a:hover { text-decoration: underline; }
/* the flat receipt is clipped by clip-path, so the glow lives on the stage */
.f-stage::after {
  content: ""; position: absolute; left: 50%; top: 62%;
  width: min(340px, 92%); height: 150px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(168,85,247,.34), transparent 74%),
    radial-gradient(closest-side at 32% 58%, rgba(59,130,246,.22), transparent 72%);
  filter: blur(14px);
  pointer-events: none;
  transition: opacity .5s ease;
}
.f-stage.is-ready::after { opacity: 0; }

/* ---- link columns ---- */
.f-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-7) var(--s-5);
  padding: var(--s-8) 0;
}
.f-mid { position: relative; background: rgba(250,249,246,.014); }
.f-mid::before, .f-mid::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line-soft);
}
.f-mid::before { top: 0; }
.f-mid::after { bottom: 0; }
.f-brand .brand { font-size: var(--t-4); }
.f-tag { margin-top: var(--s-4); max-width: 30ch; line-height: 1.6; }
.f-badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-5);
  font-family: var(--mono); font-size: var(--t-1); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: var(--s-2) var(--s-4);
}
.f-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--kr-green);
  animation: fpulse 2.6s ease-out infinite;
}
@keyframes fpulse {
  0% { box-shadow: 0 0 0 0 rgba(0,200,150,.5); }
  70% { box-shadow: 0 0 0 9px rgba(0,200,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,200,150,0); }
}

.f-col h3 {
  font-family: var(--mono); font-size: var(--t-1); font-weight: 500;
  color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-soft);
}
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.f-col a {
  color: var(--text-mute); position: relative; display: inline-block;
  transition: color .25s cubic-bezier(.2,.8,.2,1), transform .25s cubic-bezier(.2,.8,.2,1);
}
.f-col a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--purple); transform: scaleX(0); transform-origin: right;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.f-col a:hover { color: var(--paper); transform: translateX(5px); }
.f-col a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- bottom bar ---- */
.f-bottom {
  border-top: 1px solid var(--line-soft);
  padding: var(--s-5) 0 var(--s-6);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--s-4) var(--s-5); align-items: center;
}
.f-legal { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); }
.f-legal a { color: var(--text-dim); transition: color .2s; }
.f-legal a:hover { color: var(--text); }
.f-meta { font-family: var(--mono); color: var(--text-dim); }

/* ---- wordmark, bleeding off the base ---- */
.f-word {
  position: relative;
  font-family: var(--display); font-weight: 800;
  /* sized so the ten letters of "seeyousoon" span the page, as "seeusoon"'s eight did at 25.5vw */
  font-size: clamp(3.6rem, 20.4vw, 16rem);
  line-height: .74; letter-spacing: -0.055em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250,249,246,.09);
  user-select: none; pointer-events: none;
  margin: var(--s-6) 0 -0.2em;
  transition: -webkit-text-stroke-color .6s ease;
}
.site-footer:hover .f-word { -webkit-text-stroke-color: rgba(168,85,247,.26); }

@media (max-width: 980px) {
  .f-top-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .f-stage { min-height: 300px; max-width: 380px; margin: 0 auto; }
  .f-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .f-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-4); }
  .f-top { padding: var(--s-8) 0 var(--s-7); }
}
@media (prefers-reduced-motion: reduce) {
  .f-badge .dot { animation: none; }
  .f-stage canvas { display: none; }
  .f-stage.is-ready .f-flat { opacity: 1; }
}

/* ---- Feature grid (app page, sector pages) ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.feat {
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: var(--s-5); transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--purple); transform: translateY(-2px); }
.feat h3 { font-size: var(--t-2); margin-bottom: var(--s-2); }
.feat h3::before {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--purple); margin-bottom: var(--s-4);
}
.feat p { color: var(--text-mute); font-size: var(--t-1); line-height: 1.6; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Stage 7 — homepage chips, price factors, audience tabs, finder
   ============================================================ */

/* ---------- chips (the finder's situation buttons) ---------- */
.sc-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sc-chip {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-mute); padding: 9px var(--s-4);
  font-size: var(--t-1); font-weight: 500;
  transition: border-color .18s, color .18s, background .18s, transform .18s;
}
.sc-chip:hover { border-color: var(--purple); color: var(--text); transform: translateY(-1px); }
.sc-chip.is-on { border-color: var(--purple); background: rgba(168,85,247,.16); color: var(--paper); }

/* ---------- small mono note (price cards) ---------- */
.sc-note { font-size: .78rem; color: var(--text-dim); line-height: 1.5; font-family: var(--mono); }

/* ---------- price factors ---------- */
.factors { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.factor {
  border-left: 2px solid var(--purple);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
}
.factor h3 { font-size: var(--t-2); margin-bottom: var(--s-2); }
.factor p { color: var(--text-mute); font-size: var(--t-1); line-height: 1.65; }
.factor:only-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .factors { grid-template-columns: 1fr; } }

/* ---------- homepage: audience tabs ---------- */
.aud-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.aud-tab {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-mute); padding: 10px var(--s-5);
  font-size: var(--t-2); font-weight: 600;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.aud-tab:hover { border-color: var(--purple); color: var(--text); transform: translateY(-1px); }
.aud-tab.is-on { border-color: var(--purple); background: rgba(168,85,247,.16); color: var(--paper); }
.aud-panel { display: none; margin-top: var(--s-6); }
.aud-panel.is-on { display: block; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aud-panel .steps { margin-top: 0; }
.aud-lead { color: var(--text-mute); font-size: var(--t-3); max-width: 54ch; margin-bottom: var(--s-6); }

/* ---------- homepage: needs finder ---------- */
.finder { margin-top: var(--s-7); }
.finder-q { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.finder-out {
  margin-top: var(--s-6);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
  min-height: 10px;
}
@media (max-width: 900px) { .finder-out { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .finder-out { grid-template-columns: 1fr; } }
.finder-out .service { animation: fadein .35s ease both; }
.finder-out .service:nth-child(2) { animation-delay: 60ms; }
.finder-out .service:nth-child(3) { animation-delay: 120ms; }

/* ============================================================
   Stage 8 — the light theme, the theme button, the language
   switcher and right-to-left (docs/WEBSITE-PLAN.md §3.8, §3.9)
   ============================================================ */

/* ---- Light theme: tokens only. Dark is the default for everyone; the visitor's choice is stored
   by assets/theme.js before first paint. Paper stays paper: the light ground is a different, warmer
   grey, so the receipt still reads as a separate sheet. ---- */
:root[data-theme="light"] {
  --ink:      #F4F3EE;
  --ink-2:    #FFFFFF;
  --purple:   #8B3FD9;
  --blue:     #1D4ED8;
  --kr-green: #007A58;
  --text:       rgba(5, 5, 16, 0.92);
  --text-mute:  rgba(5, 5, 16, 0.66);
  --text-dim:   rgba(5, 5, 16, 0.48);
  --line:       rgba(5, 5, 16, 0.14);
  --line-soft:  rgba(5, 5, 16, 0.08);
  color-scheme: light;
}
:root[data-theme="light"] ::selection { background: var(--purple); color: #FFFFFF; }
:root[data-theme="light"] .site-header { background: rgba(244, 243, 238, 0.85); }
:root[data-theme="light"] .menu {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139,63,217,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(29,78,216,0.07), transparent 60%),
    var(--ink-2);
}
:root[data-theme="light"] .m-link:hover, :root[data-theme="light"] .m-link:focus-visible, :root[data-theme="light"] .m-link.is-active,
:root[data-theme="light"] .menu-col a:hover, :root[data-theme="light"] .f-col a:hover { color: var(--text); }
:root[data-theme="light"] .mp-svc:hover { color: var(--text); background: rgba(139,63,217,.10); }
:root[data-theme="light"] .sc-chip.is-on, :root[data-theme="light"] .aud-tab.is-on, :root[data-theme="light"] .pk-chip.is-on { color: var(--text); background: rgba(139,63,217,.12); }
:root[data-theme="light"] .btn-primary { color: #FFFFFF; }
:root[data-theme="light"] .btn-primary:hover { background: #7A31C7; }
:root[data-theme="light"] .nav-cta:hover { background: rgba(139,63,217,.08); }
:root[data-theme="light"] .receipt, :root[data-theme="light"] .menu-receipt, :root[data-theme="light"] .f-flat, :root[data-theme="light"] .pk-result {
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(5, 5, 16, 0.14), 0 2px 6px rgba(5, 5, 16, 0.08);
}
:root[data-theme="light"] .f-top h2, :root[data-theme="light"] .hero h1 .pct { color: var(--purple); }
:root[data-theme="light"] .f-top h2 { color: var(--text); }
:root[data-theme="light"] .site-footer {
  background: radial-gradient(900px 380px at 72% -8%, rgba(139,63,217,.06), transparent 68%), var(--ink);
}
:root[data-theme="light"] .f-word { -webkit-text-stroke-color: rgba(5,5,16,.10); }
:root[data-theme="light"] .site-footer:hover .f-word { -webkit-text-stroke-color: rgba(139,63,217,.28); }
:root[data-theme="light"] .f-stage canvas { display: none; }            /* the WebGL sheet is lit for ink; the flat receipt stands in */
:root[data-theme="light"] .f-stage.is-ready .f-flat { opacity: 1; pointer-events: auto; }
:root[data-theme="light"] .f-stage::after { opacity: .5; }
:root[data-theme="light"] input[type="range"]::-webkit-slider-thumb { background: #FFFFFF; box-shadow: 0 2px 8px rgba(5,5,16,.18); }
:root[data-theme="light"] .skip-link { background: var(--text); color: var(--ink); }
:root[data-theme="light"] .hero-sub strong { color: var(--kr-green); }
:root[data-theme="light"] .menu-btn, :root[data-theme="light"] .theme-btn, :root[data-theme="light"] .nav-cta { color: var(--text); }

/* ---- The theme button (header) ---- */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); padding: 0;
  transition: border-color .2s, background .2s;
}
.theme-btn:hover { border-color: var(--purple); }
@media (max-width: 480px) {
  .menu-btn .menu-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { padding: 10px 12px; gap: 0; }
  .nav-right { gap: var(--s-2); }
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ic-moon { display: none; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }

/* ---- The language switcher (header; rendered only when more than one language is published) ---- */
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang a {
  font-family: var(--mono); font-size: var(--t-1); color: var(--text-mute);
  padding: 7px 9px; border-radius: 8px; line-height: 1;
  transition: color .15s, background .15s;
}
.lang a:hover { color: var(--text); background: rgba(168,85,247,.10); }
.lang a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lang a[aria-current="page"] { pointer-events: none; }
/* Narrow screens: the header keeps brand, theme, login and menu; the languages sit in the menu. */
@media (max-width: 720px) { .site-header .lang { display: none; } }
.menu-lang { max-width: var(--wrap); margin: 0 auto; width: 100%; padding: var(--s-5) var(--s-5) 0; border-top: 1px solid var(--line-soft); }
.menu-lang:empty { display: none; }
.menu-lang .lang { gap: var(--s-2); }
.menu-lang .lang a { font-size: var(--t0); padding: 8px 12px; }
.menu-lang + .menu-foot { border-top: 0; padding-top: var(--s-4); }
/* Small phones (360): the header tightens rather than wraps */
@media (max-width: 380px) { .brand { font-size: 1.1rem; } .nav-cta { padding: var(--s-2) var(--s-3); } .theme-btn { width: 36px; } .nav-right { gap: var(--s-1); } }
/* Forms: the spam trap is hidden in place, never off-screen (off-screen scrolls in right-to-left pages). */
main:focus { outline: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- Right to left: Arabic pages get dir="rtl" on <html>. The layout uses logical properties
   where the direction matters; what is listed here is what the base stylesheet wrote with left/right. ---- */
[dir="rtl"] { font-family: 'Readex Pro', var(--body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .brand, [dir="rtl"] .f-word, [dir="rtl"] .m-link, [dir="rtl"] .sd-big { font-family: 'Readex Pro', var(--display); letter-spacing: 0; }
[dir="rtl"] .hero h1, [dir="rtl"] .section h2, [dir="rtl"] .page-hero h1, [dir="rtl"] .f-top h2 { letter-spacing: 0; line-height: 1.2; }
[dir="rtl"] .brand, [dir="rtl"] .f-word, [dir="rtl"] .receipt, [dir="rtl"] .menu-receipt, [dir="rtl"] .f-flat, [dir="rtl"] .amt, [dir="rtl"] [data-out], [dir="rtl"] .live-v, [dir="rtl"] .hdr-live { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .receipt, [dir="rtl"] .menu-receipt, [dir="rtl"] .f-flat { direction: ltr; }
/* Inside the LTR receipts the labels are still Arabic: each label is its own right-to-left run, the amounts stay LTR. */
[dir="rtl"] .receipt-line > span:first-child, [dir="rtl"] .receipt-brand, [dir="rtl"] .receipt-venue, [dir="rtl"] .mr-line .k, [dir="rtl"] .mr-title, [dir="rtl"] .f-flat .r > span, [dir="rtl"] .f-flat .t, [dir="rtl"] .receipt-slider label { direction: rtl; unicode-bidi: isolate; }
/* The mono labels (receipt rows, eyebrows, crumbs) carry Arabic text too: Readex Pro draws it; the amounts,
   the clock and the counters stay in JetBrains Mono so the digits keep their tabular width. */
[dir="rtl"] { --mono: 'Readex Pro', 'JetBrains Mono', ui-monospace, monospace; }
[dir="rtl"] .amt, [dir="rtl"] [data-out], [dir="rtl"] .live-v, [dir="rtl"] .hdr-live, [dir="rtl"] .mr-line .v, [dir="rtl"] .f-flat b, [dir="rtl"] .pk-line .v, [dir="rtl"] .pk-total .v, [dir="rtl"] output { font-family: 'JetBrains Mono', ui-monospace, monospace; }
/* Arabic script is never letter-spaced (the Latin wordmarks keep theirs). */
[dir="rtl"] :not(.brand, .brand *, .f-word) { letter-spacing: 0; }
[dir="rtl"] .m-link .arrow, [dir="rtl"] .service .go::after, [dir="rtl"] .f-col a:hover { transform: scaleX(-1); } /* the crumb's › mirrors itself (bidi) */
[dir="rtl"] .f-col a:hover { transform: translateX(-5px); }
[dir="rtl"] .f-col a::after { transform-origin: left; }
[dir="rtl"] .f-col a:hover::after { transform-origin: right; }
[dir="rtl"] .factor { border-left: none; border-right: 2px solid var(--purple); padding-left: 0; padding-right: var(--s-5); }
[dir="rtl"] .m-note { margin-left: 0; margin-right: calc(var(--s-4) + 22px); }
[dir="rtl"] .skip-link { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { right: 0; left: auto; }
[dir="rtl"] .menu-btn .burger { transform: scaleX(-1); }
[dir="rtl"] .receipt-slider label, [dir="rtl"] .live-row { direction: rtl; }
[dir="rtl"] .pk-chip, [dir="rtl"] .sc-chip, [dir="rtl"] .aud-tab { font-family: 'Readex Pro', var(--body); }
