/* Till & Stack website: "Glass & Foil" house style.
   Colour values mirror packages/ui/src/tokens.ts (docs/DESIGN.md §3). Change them there first, then here.
   No inline styles anywhere: the Content-Security-Policy (site/src/index.ts) blocks them.
   Layout is mobile first. Breakpoints only ever ADD columns: 720 (tablet), 1024 (laptop), 1440 (large). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --canvas: #F5F3EE;
  --elevated: #FFFFFF;
  --sunken: #ECE9E2;
  --hairline: #DDD8CD;
  --strong: #8A8578;
  --t1: #14161C;
  --t2: #4B5162;
  --t3: #5F6677;
  --accent: #5443D6;
  --on-accent: #FFFFFF;
  --focus: #5443D6;
  --pending: #7A5A00;
  --zar: #0B7350;
  --glass: rgba(255, 255, 255, 0.88);
  --rim-top: rgba(255, 255, 255, 0.90);
  --rim-bottom: rgba(255, 255, 255, 0.35);
  --spec: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 10px 30px rgba(20, 22, 28, 0.10);
  --card-shadow: 0 14px 30px rgba(20, 22, 28, 0.18), 0 2px 6px rgba(20, 22, 28, 0.12);
  --phone-shadow: 0 40px 80px rgba(20, 22, 28, 0.22), 0 12px 24px rgba(20, 22, 28, 0.14);
  --aurora-opacity: 0.12;
  --foil: linear-gradient(120deg, #8B7BFF, #3FD0C9, #FFB547);
  /* The privacy band is always dark, in both themes. Values are the dark-theme tokens. */
  --band-bg: #0A0B0F;
  --band-t1: #F5F6F8;
  --band-t2: #B3B9C6;
  --band-accent: #A396FF;
  --band-line: #2A2E3A;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Fluid page frame: 16px gutter on a phone, growing to 80px on big screens. */
  --gutter: clamp(16px, 4.5vw, 80px);
  --max: 1760px;
  --radius-l: clamp(20px, 1.6vw, 28px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A0B0F;
    --elevated: #13151C;
    --sunken: #07080B;
    --hairline: #2A2E3A;
    --strong: #6B7385;
    --t1: #F5F6F8;
    --t2: #B3B9C6;
    --t3: #8F97A8;
    --accent: #A396FF;
    --on-accent: #0A0B0F;
    --focus: #A396FF;
    --pending: #F5C451;
    --zar: #47D7A0;
    --glass: rgba(22, 24, 31, 0.90);
    --rim-top: rgba(255, 255, 255, 0.22);
    --rim-bottom: rgba(255, 255, 255, 0.06);
    --spec: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
    --phone-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 12px 24px rgba(0, 0, 0, 0.4);
    --aurora-opacity: 0.18;
    --band-bg: #13151C;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--t1);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
@media (min-width: 1440px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--t1); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(38px, 1.4rem + 4.4vw, 104px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-weight: 700; font-size: clamp(28px, 1rem + 2.6vw, 60px); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-weight: 600; font-size: clamp(19px, 0.9rem + 0.4vw, 23px); line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Aurora: static foil blobs behind every page (decoration only) ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; opacity: var(--aurora-opacity); }
.aurora .b1 { width: 70vmax; height: 70vmax; left: -28vmax; top: -30vmax; background: radial-gradient(circle, #8B7BFF 0, #8B7BFF 25%, rgba(139, 123, 255, 0) 68%); }
.aurora .b2 { width: 75vmax; height: 75vmax; right: -34vmax; top: 18vh; background: radial-gradient(circle, #3FD0C9 0, #3FD0C9 25%, rgba(63, 208, 201, 0) 68%); }
.aurora .b3 { width: 70vmax; height: 70vmax; left: -24vmax; bottom: -36vmax; background: radial-gradient(circle, #FFB547 0, #FFB547 25%, rgba(255, 181, 71, 0) 68%); }

/* ---------- Glass (chrome and info panels only; never behind a barcode) ---------- */
.glass {
  position: relative;
  background-color: var(--glass);
  background-image: radial-gradient(130% 95% at 14% 0%, var(--spec) 0%, rgba(255, 255, 255, 0) 45%);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--glass-shadow);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--rim-top), var(--rim-bottom));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { background: var(--elevated); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--strong); }
  .glass::after { display: none; }
}

/* ---------- Header: floating glass capsule ---------- */
.site-header { position: sticky; top: 10px; z-index: 50; margin-top: 10px; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 4px 12px; min-height: 60px; padding: 6px 8px 6px 14px; border-radius: 30px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  color: var(--t1); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 24px;
  color: var(--t1); text-decoration: none; font-weight: 500; font-size: 16px;
}
.site-nav a:hover { background: rgba(127, 127, 127, 0.12); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav .nav-optional, .site-nav .nav-wide { display: none; }
@media (min-width: 560px) { .site-nav .nav-optional { display: list-item; } }
@media (min-width: 1024px) {
  .site-header .bar { padding: 6px 8px 6px 20px; }
  .site-nav .nav-wide { display: list-item; margin-left: 8px; }
  .site-nav a { padding: 0 16px; }
}
.nav-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px;
  background: var(--t1); color: var(--canvas); font-weight: 600; font-size: 15px;
}
.nav-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #47D7A0; flex: none; }

/* ---------- Buttons and pills ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 26px;
  font: 600 16px/1.2 var(--font); text-decoration: none; color: var(--t1);
}
.btn:hover { text-decoration: underline; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-glass { color: var(--t1); }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 26px;
  font-weight: 600; font-size: 16px; background: var(--t1); color: var(--canvas);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #47D7A0; flex: none; }
.small-note { margin-top: 16px; font-size: 15px; color: var(--t2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--t2); letter-spacing: 0.02em; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--foil); flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 140px) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 64px); }
.section-head p { margin-top: 16px; font-size: clamp(17px, 0.9rem + 0.35vw, 21px); color: var(--t2); }
@media (min-width: 1024px) {
  .section-head.split-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .section-head.split-head p { margin-top: 0; max-width: 36rem; }
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 48px; align-items: center; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 96px); }
.hero-copy { max-width: 46rem; }
.hero .lead { font-size: clamp(18px, 0.95rem + 0.5vw, 23px); line-height: 1.55; color: var(--t2); margin-top: 24px; max-width: 34em; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--t1); }
.hero-points svg { width: 18px; height: 18px; color: var(--zar); flex: none; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 5vw, 120px); min-height: min(940px, calc(100svh - 80px)); }
}

/* Hero scene: phone + floating ticket and reminder. Decoration; the wrapper has role="img" + label. */
.scene { position: relative; display: grid; place-items: center; padding: 24px 0 8px; --phone-w: min(300px, 74vw); }
@media (min-width: 720px) { .scene { --phone-w: 320px; padding: 32px 0; } }
/* On laptops the phone also fits the screen height, so the whole hero shows without scrolling. */
@media (min-width: 1024px) { .scene { --phone-w: clamp(280px, min(23vw, calc((100svh - 180px) * 0.47)), 420px); } }
.float {
  position: absolute; z-index: 2; border-radius: 18px;
  animation: drift 7s ease-in-out infinite alternate;
}
.float.reminder { display: none; right: 0; top: 64%; padding: 14px 16px; gap: 12px; align-items: center; animation-delay: -3s; }
.float.reminder .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sunken); color: var(--accent); flex: none; }
.float.reminder .ico svg { width: 20px; height: 20px; }
.float.reminder b { display: block; font-size: 15px; color: var(--t1); }
.float.reminder span { display: block; font-size: 13px; color: var(--t2); }
/* Barcode ticket: solid white, black bars, never glass. */
.float.ticket { display: none; left: 0; bottom: 16%; width: clamp(200px, 15vw, 260px); padding: 14px 16px 12px; background: #FFFFFF; color: #000000; box-shadow: var(--card-shadow); transform: rotate(-4deg); }
.float.ticket svg { width: 100%; height: 56px; }
.float.ticket .tnum { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.1em; text-align: center; margin-top: 6px; color: #000000; }
@media (min-width: 720px) { .float.reminder, .float.ticket { display: flex; } .float.ticket { display: block; } }
@media (min-width: 1024px) { .float.reminder { right: -2%; } .float.ticket { left: -4%; } }
@keyframes drift { from { translate: 0 -6px; } to { translate: 0 8px; } }

/* ---------- Phone mockup (CSS only; all sizes inside scale with the phone via container units) ---------- */
.phone {
  position: relative; z-index: 1; width: var(--phone-w); aspect-ratio: 9 / 19.2;
  padding: calc(var(--phone-w) * 0.032); border-radius: calc(var(--phone-w) * 0.15);
  background: linear-gradient(160deg, #3A3D47, #14161C 40%, #22252E); box-shadow: var(--phone-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--phone-w) * 0.12);
  background: var(--canvas); container-type: inline-size; color: var(--t1);
}
.phone-screen::before {
  /* Faint aurora inside the app screen, like the app's backdrop */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 10% 0%, rgba(139, 123, 255, 0.18), transparent 70%), radial-gradient(60% 40% at 100% 60%, rgba(63, 208, 201, 0.14), transparent 70%);
}
.ps-island { position: absolute; top: 3cqw; left: 50%; translate: -50% 0; width: 28cqw; height: 8cqw; border-radius: 4cqw; background: #000000; z-index: 3; }
.ps-status { position: relative; display: flex; justify-content: space-between; padding: 4cqw 8cqw 0; font-weight: 600; font-size: 4cqw; height: 13cqw; align-items: center; }
.ps-status .bars { display: flex; gap: 1.2cqw; align-items: flex-end; }
.ps-status .bars i { display: block; width: 1.2cqw; background: var(--t1); border-radius: 0.4cqw; }
.ps-status .bars i:nth-child(1) { height: 1.6cqw; } .ps-status .bars i:nth-child(2) { height: 2.4cqw; } .ps-status .bars i:nth-child(3) { height: 3.2cqw; }
.ps-head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 3cqw 5.5cqw 0; }
.ps-title { font-weight: 700; font-size: 9cqw; letter-spacing: -0.03em; }
.ps-plus { width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 6.4cqw; font-weight: 500; line-height: 1; }
.ps-chips { position: relative; display: flex; gap: 2cqw; padding: 4cqw 5.5cqw 0; }
.ps-chips span { padding: 1.6cqw 3.4cqw; border-radius: 4cqw; font-size: 3.4cqw; font-weight: 600; background: var(--glass); box-shadow: inset 0 0 0 0.3cqw var(--hairline); }
.ps-chips span:first-child { background: var(--t1); color: var(--canvas); box-shadow: none; }
.ps-stack { position: relative; padding: 5cqw 5cqw 0; }
.mcard {
  position: relative; aspect-ratio: 1.586; border-radius: 5cqw; padding: 4cqw 4.6cqw; overflow: hidden;
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.20), inset 0 0.3cqw 0 rgba(255, 255, 255, 0.25);
}
.mcard + .mcard { margin-top: -42.5cqw; }
.mcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.06) 100%); }
.mcard .row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 2cqw; }
.mcard .name { font-weight: 600; font-size: 4.2cqw; line-height: 1.25; }
.mcard .meta { font-weight: 500; font-size: 3cqw; opacity: 0.92; }
.mcard .pts { font-weight: 600; font-size: 3.6cqw; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mcard .mono-badge { width: 8cqw; height: 8cqw; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 3.6cqw; background: rgba(0, 0, 0, 0.18); flex: none; }
.mcard .bottom { position: absolute; z-index: 1; left: 4.6cqw; right: 4.6cqw; bottom: 3.6cqw; display: flex; justify-content: space-between; align-items: flex-end; }
.mcard .big { font-weight: 600; font-size: 7cqw; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: 1cqw; }
.mcard .cnum { font-family: var(--mono); font-weight: 500; font-size: 3.4cqw; letter-spacing: 0.1em; }
.ps-tabbar {
  position: absolute; left: 50%; translate: -50% 0; bottom: 5cqw; display: flex; gap: 2cqw; padding: 1.6cqw; border-radius: 9cqw; z-index: 2;
}
.ps-tabbar span { display: grid; justify-items: center; gap: 0.6cqw; padding: 1.8cqw 6cqw; border-radius: 7cqw; font-size: 2.8cqw; font-weight: 600; color: var(--t2); }
.ps-tabbar span.on { background: rgba(127, 127, 127, 0.14); color: var(--accent); }
.ps-tabbar svg { width: 5.6cqw; height: 5.6cqw; }
.ps-home { position: absolute; bottom: 1.8cqw; left: 50%; translate: -50% 0; width: 34cqw; height: 1.2cqw; border-radius: 1cqw; background: var(--t1); opacity: 0.5; z-index: 3; }

/* Card-detail screen: card header, then a solid white barcode panel (black on white, never glass) */
.ps-detail { position: relative; padding: 4cqw 5cqw 0; display: grid; gap: 4cqw; }
.ps-back { font-size: 3.8cqw; font-weight: 600; color: var(--accent); }
.ps-detail .mcard { aspect-ratio: auto; padding: 4.6cqw; }
.ps-detail .mcard .big { font-size: 6cqw; }
.ps-barcode { background: #FFFFFF; color: #000000; border-radius: 4cqw; padding: 5cqw 5cqw 4cqw; box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, 0.14); }
.ps-barcode svg { width: 100%; height: 26cqw; }
.ps-barcode .bnum { font-family: var(--mono); font-weight: 500; font-size: 4.4cqw; letter-spacing: 0.1em; text-align: center; margin-top: 3cqw; color: #000000; }
.ps-hint { display: flex; align-items: center; justify-content: center; gap: 2cqw; font-size: 3.4cqw; font-weight: 600; color: var(--t2); }
.ps-hint svg { width: 4.4cqw; height: 4.4cqw; color: var(--pending); }
.ps-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
.ps-history { border-radius: 4cqw; padding: 1cqw 4cqw; background: var(--elevated); box-shadow: inset 0 0 0 0.3cqw var(--hairline); }
.ps-history .cap { display: block; padding-top: 2.6cqw; font-size: 2.8cqw; font-weight: 600; letter-spacing: 0.06em; color: var(--t2); }
.ps-history div { display: flex; justify-content: space-between; padding: 2.6cqw 0; font-size: 3.4cqw; font-variant-numeric: tabular-nums; }
.ps-history div + div { border-top: 0.3cqw solid var(--hairline); }
.ps-history div span:last-child { color: var(--t2); }
.ps-actions span { display: grid; place-items: center; min-height: 11cqw; border-radius: 5.5cqw; font-size: 3.4cqw; font-weight: 600; background: var(--elevated); box-shadow: inset 0 0 0 0.3cqw var(--hairline); }

/* Card palette (tokens.ts cardPalette) with computed ink */
.c-indigo { background: #3B3FB6; color: #FFFFFF; }
.c-saffron { background: #F2B705; color: #0A0B0F; }
.c-plum { background: #7A2E8E; color: #FFFFFF; }
.c-graphite { background: #2B2F38; color: #FFFFFF; }
.c-ocean { background: #0A5DC2; color: #FFFFFF; }
.c-saffron .mono-badge { background: rgba(10, 11, 15, 0.10); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 18px 4px; font-weight: 600; font-size: 15px; }
.trust li svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
@media (min-width: 1024px) {
  .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust li { justify-content: center; padding: 26px 8px; font-size: 16px; }
  .trust li + li { border-left: 1px solid var(--hairline); }
}

/* ---------- How it works: three steps ---------- */
.steps-grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); } }
.step { border-radius: var(--radius-l); padding: clamp(24px, 2.4vw, 40px); counter-increment: how; }
.step::before {
  content: counter(how, decimal-leading-zero); display: block; margin-bottom: clamp(20px, 3vw, 56px);
  font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; color: var(--accent);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--t2); }

/* ---------- Feature bento ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .bento .wide-md { grid-column: span 2; }
}
@media (min-width: 1200px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 1.6vw, 28px); }
  .bento .wide-md { grid-column: auto; }
  .bento .wide-lg { grid-column: span 2; }
}
.panel { border-radius: var(--radius-l); padding: clamp(24px, 2.2vw, 36px); display: flex; flex-direction: column; }
.panel h3 { margin-bottom: 10px; }
.panel p, .panel li { color: var(--t2); }
.panel p + p { margin-top: 10px; }
.panel ul { margin: 10px 0 0; padding-left: 20px; }
.panel li + li { margin-top: 6px; }
.panel .icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; background: var(--sunken); color: var(--accent); flex: none; }
.panel .icon svg { width: 24px; height: 24px; }
.panel .visual { margin-top: auto; padding-top: 24px; }
@media (min-width: 1200px) {
  .panel.wide-lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: center; }
  .panel.wide-lg .visual { margin-top: 0; padding-top: 0; }
}
/* Mini barcode inside the barcode tile: solid white, never glass. */
.mini-barcode { background: #FFFFFF; color: #000000; border-radius: 14px; padding: 16px 16px 12px; box-shadow: var(--card-shadow); }
.mini-barcode svg { width: 100%; height: 72px; }
.mini-barcode .bnum { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; text-align: center; margin-top: 8px; color: #000000; }
/* Points mock rows */
.points-demo { border-radius: 18px; padding: 18px 20px; background: var(--elevated); box-shadow: inset 0 0 0 1px var(--hairline); }
.points-demo .line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.points-demo .line + .line { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.points-demo .label { color: var(--t2); font-size: 15px; }
.points-demo .value { font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--t1); }
.points-demo .value.small { font-size: 16px; }
/* Theme swatches in the comfort tile */
.swatches { display: flex; gap: 10px; }
.swatches span { flex: 1; height: 64px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 22px; box-shadow: inset 0 0 0 1px var(--hairline); }
.swatches .light { background: #F5F3EE; color: #14161C; }
.swatches .dark { background: #0A0B0F; color: #F5F6F8; }
.swatches .big { background: var(--elevated); color: var(--t1); font-size: 30px; }

/* ---------- Till moment: copy + card-detail phone ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 140px); } }
.split .copy { max-width: 40rem; }
.split .copy > p { color: var(--t2); margin-top: 18px; font-size: clamp(17px, 0.9rem + 0.35vw, 21px); }
.ticks, .panel ul.ticks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
/* Tick bullets drawn with borders (the CSP blocks data: images). */
.ticks li { position: relative; padding-left: 40px; color: var(--t1); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 8.5px; top: 6px; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; rotate: 45deg; }
.scene.detail { --phone-w: min(300px, 74vw); }
@media (min-width: 1024px) { .scene.detail { --phone-w: clamp(300px, 22vw, 400px); } .split .scene.detail { order: -1; } }

/* ---------- Privacy band: full-bleed, always dark ---------- */
.band { background: var(--band-bg); color: var(--band-t1); padding: clamp(64px, 8vw, 140px) 0; border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.band h2, .band h3 { color: var(--band-t1); }
.band .section-head p { color: var(--band-t2); }
.band a { color: var(--band-accent); }
.band .eyebrow { color: var(--band-t2); }
.pillars { display: grid; gap: 1px; background: var(--band-line); border: 1px solid var(--band-line); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { background: var(--band-bg); padding: clamp(24px, 2.6vw, 44px); }
.pillar .icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(163, 150, 255, 0.14); color: var(--band-accent); }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--band-t2); }
.band .after { margin-top: 28px; color: var(--band-t2); }

/* ---------- Foil (decoration only, never behind text that must be read) ---------- */
.foil-badge { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--foil); background-size: 200% 200%; animation: foil-shimmer 6s ease-in-out infinite alternate; }
.foil-badge > span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--canvas); color: var(--t1); font-weight: 700; font-size: 14px; letter-spacing: 0.03em; }
.foil-rule { height: 4px; border-radius: 2px; background: var(--foil); background-size: 200% 200%; animation: foil-shimmer 6s ease-in-out infinite alternate; margin-bottom: 24px; width: 72px; }
@keyframes foil-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Stack (coming later) ---------- */
.stack-panel { border-radius: calc(var(--radius-l) + 4px); padding: clamp(28px, 3.4vw, 64px); display: grid; gap: 28px; }
@media (min-width: 1024px) { .stack-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 96px); align-items: start; } }
.stack-panel .badge-row { margin-bottom: 18px; }
.stack-panel h2 { margin-bottom: 14px; }
.stack-panel .tagline { font-weight: 600; font-size: clamp(18px, 0.95rem + 0.3vw, 21px); color: var(--t1); margin-bottom: 14px; }
.stack-panel .intro > p:not(.tagline) { color: var(--t2); font-size: clamp(17px, 0.9rem + 0.3vw, 19px); }
.stack-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.stack-panel li { padding: 18px 20px; border-radius: 16px; background: var(--elevated); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--t2); }
.stack-panel li strong { color: var(--t1); }
.risk { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--elevated); border: 1px solid var(--strong); color: var(--t1); }
.risk p + p { margin-top: 6px; }
.risk strong { font-weight: 700; }

/* ---------- FAQ (home preview and help page) ---------- */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
  .faq-layout .section-head { position: sticky; top: 110px; margin-bottom: 0; }
}
.faq details { border-radius: 18px; margin-top: 12px; }
.faq details:first-child { margin-top: 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 22px; font-weight: 600; font-size: 17px; border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--accent); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 20px; }
.faq .answer p, .faq .answer li { color: var(--t2); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer ul, .faq .answer ol { margin: 10px 0 0; padding-left: 20px; }
.faq .answer li + li { margin-top: 6px; }

/* ---------- Get the app ---------- */
.cta { position: relative; border-radius: calc(var(--radius-l) + 8px); padding: clamp(40px, 6vw, 120px) clamp(24px, 4vw, 80px); text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--foil); background-size: 200% 200%; animation: foil-shimmer 6s ease-in-out infinite alternate; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta p { color: var(--t2); margin: 18px auto 0; max-width: 40em; font-size: clamp(17px, 0.9rem + 0.3vw, 19px); }
.cta .actions { justify-content: center; }

/* ---------- Docs layout for legal and help pages: sidebar on laptops, single column on phones ---------- */
.doc-layout { display: grid; grid-template-areas: "head" "nav" "body"; gap: 0; }
.doc-layout > .page-head { grid-area: head; }
.doc-layout > .doc-nav { grid-area: nav; }
.doc-layout > .prose { grid-area: body; }
@media (min-width: 1100px) {
  .doc-layout {
    grid-template-areas: "nav head" "nav body";
    grid-template-columns: clamp(240px, 18vw, 320px) minmax(0, 52rem);
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 140px);
  }
  .doc-layout > .doc-nav { align-self: start; position: sticky; top: 104px; margin-top: 64px; max-height: calc(100vh - 128px); overflow-y: auto; }
  .doc-layout > .doc-nav.toc { padding: 20px 22px; }
  .doc-layout > .doc-nav ol { columns: 1 !important; }
}
.page-head { padding: clamp(40px, 5vw, 72px) 0 8px; }
.page-head h1 { font-size: clamp(36px, 1.2rem + 3vw, 72px); }
.page-head p.sub { color: var(--t2); margin-top: 14px; font-size: clamp(17px, 0.9rem + 0.35vw, 21px); max-width: 40em; }
.prose { max-width: 52rem; padding-bottom: 80px; }
.prose h2 { font-size: clamp(22px, 1rem + 1vw, 32px); margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li, .prose dd { color: var(--t1); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 8px; }
.prose dl { margin: 14px 0 0; }
.prose dt { font-weight: 600; margin-top: 16px; }
.prose dd { margin: 4px 0 0; color: var(--t2); }
.prose .muted { color: var(--t2); }
.prose :is(ul, ol, dl, div) + p { margin-top: 14px; }
.prose.faq > h2:first-child { margin-top: 32px; }
.meta-line { color: var(--t2); font-size: 15px; margin-top: 10px; }
.callout { border-radius: 20px; padding: 20px 22px; margin-top: 24px; }
.callout p { color: var(--t1); }
.callout h2 { margin-top: 0 !important; }
.draft-banner { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--elevated); border: 2px solid var(--pending); color: var(--t1); max-width: 52rem; }
.draft-banner .tag { display: inline-block; font-weight: 700; letter-spacing: 0.06em; color: var(--pending); margin-right: 6px; }
.placeholder { font-weight: 600; color: var(--pending); }
.toc { margin-top: 24px; border-radius: 20px; padding: 18px 22px; }
.toc h2 { font-size: 14px !important; margin: 0 0 10px !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t2); }
.toc ol { margin: 0; padding-left: 22px; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc li { padding: 2px 0; }
.doc-nav a { text-decoration: none; }
.doc-nav a:hover { text-decoration: underline; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { position: relative; padding-left: 44px; min-height: 32px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--t1); color: var(--canvas);
}

/* ---------- 404 ---------- */
.notfound { padding: clamp(96px, 14vw, 200px) 0; text-align: center; }
.notfound h1 { max-width: 16ch; margin: 0 auto; }
.notfound p { color: var(--t2); margin-top: 16px; font-size: 18px; }
.notfound .actions { justify-content: center; }

/* ---------- Footer (trademark disclaimer + ECTA s43) ---------- */
.site-footer { margin-top: 24px; padding: clamp(48px, 5vw, 88px) 0 48px; background: var(--sunken); border-top: 1px solid var(--hairline); }
.site-footer .cols { display: grid; gap: 36px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .company { grid-column: span 2; } }
@media (min-width: 1100px) {
  .site-footer .cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.6fr); gap: 48px; }
  .site-footer .company { grid-column: auto; }
}
.site-footer .about p { margin-top: 12px; max-width: 26em; }
.site-footer .brand { font-size: 20px; }
.site-footer h2 { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t2); margin-bottom: 10px; }
.site-footer p, .site-footer dd, .site-footer dt, .site-footer li { font-size: 15px; color: var(--t2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--t1); text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.site-footer dt { font-weight: 600; color: var(--t1); }
.site-footer dd { margin: 0; min-width: 0; }
@media (max-width: 480px) {
  .site-footer dl { grid-template-columns: 1fr; gap: 0; }
  .site-footer dd + dt { margin-top: 10px; }
}
.site-footer .disclaimer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline); display: grid; gap: 8px; }
@media (min-width: 1100px) { .site-footer .disclaimer { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px; } }

/* ---------- Motion preferences: shimmer and drift off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .foil-badge, .foil-rule, .cta::before, .float { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Print: legal pages print cleanly ---------- */
@media print {
  .aurora, .site-header, .skip-link, .doc-nav { display: none; }
  .glass { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body { background: #FFFFFF; color: #000000; }
  .doc-layout { display: block; }
}
