/* Sipp website. Same tokens and type as the app (apple/Sipp/Theme/Theme.swift, dark): gold on
   near-black; Bodoni 72 Book for headings, New York italic for the accent words, Inter Tight for text
   and caps labels, JetBrains Mono only for numbers. Bodoni 72 and New York are Apple system fonts
   (not licensed for the web), so Apple devices use their own copies and others get Bodoni Moda and
   Georgia italic. */
:root {
  --bg: #0f0e0d;
  --surface: #181614;
  --surface-2: #221f1c;
  --border: rgba(243, 231, 211, 0.12);
  --text: #efe8dc;
  --muted: #a89e90;
  --faint: #8f857a;
  --accent: #d9a55b;
  --accent-fill: #c98e43;
  --on-accent: #14100b;
  --outline: #6e665c;
  --glow: rgba(217, 165, 91, 0.16);
  --radius: 20px;
  --serif: "Bodoni 72", "Bodoni Moda", Didot, "Times New Roman", serif;
  --serif-italic: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 38%, transparent); color: var(--text); }
input, textarea { caret-color: var(--accent); }
html { scrollbar-color: var(--outline) var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
p, li, dd { text-wrap: pretty; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.label {
  font: 600 12px/1.2 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.accent, .num.accent { color: var(--accent); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.faint { color: var(--faint); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
/* The app sets Bodoni 10% larger than New York to even out their x-heights; this is the same ratio. */
h1 em, h2 em { font-family: var(--serif-italic); font-style: italic; font-weight: 400; font-size: 0.91em; letter-spacing: -0.01em; color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 15px/1 var(--sans); letter-spacing: 0.32em; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .menu-only { display: none; }
.header-cta { flex: 0 0 auto; }
.menu-toggle { display: none; }

/* Phones and small tablets: the links fold into a menu under the header. */
@media (max-width: 760px) {
  .site-header .wrap { gap: 10px; }
  .menu-toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; flex: 0 0 auto;
    background: transparent; border: 1px solid var(--border); border-radius: 12px; color: var(--text); cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
    max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a, .nav .menu-only { display: block; padding: 14px 4px; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--accent); }
}
@media (max-width: 400px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }

/* Buttons and form */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--accent-fill); color: var(--on-accent);
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 520px; }
.signup input[type="email"], .signup select {
  min-height: 52px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: 16px var(--sans);
}
.signup input[type="email"] { flex: 1 1 240px; }
.signup select { flex: 0 1 auto; }
.signup .button { min-height: 52px; flex: 0 0 auto; }
.signup input:focus-visible, .signup select:focus-visible, .button:focus-visible, .store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-note { margin: 10px 0 0; font-size: 14px; color: var(--faint); min-height: 1.4em; }
.signup-note.ok { color: var(--accent); }

/* The App Store badge: black, white type, Apple's two-line layout. */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 6px var(--glow); }
.store-badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; margin-top: -3px; }
.store-badge span { display: grid; line-height: 1; text-align: left; }
.store-badge small { font: 500 11px/1 var(--sans); letter-spacing: 0.02em; }
.store-badge b { font: 600 23px/1.05 var(--sans); letter-spacing: -0.02em; }
.store-badge.small { min-height: 40px; padding: 0 14px 0 12px; border-radius: 10px; gap: 7px; }
.store-badge.small svg { width: 17px; height: 17px; margin-top: -2px; }
.store-badge.small small { font-size: 8.5px; }
.store-badge.small b { font-size: 15px; }

/* Phone frames around the real screenshots */
.phone {
  position: relative; width: 280px; aspect-ratio: 1206 / 2622; padding: 7px;
  border-radius: 46px; background: linear-gradient(145deg, #2b2825, #0b0a09 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; background: var(--bg); }


.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; margin-top: 34px; }
.text-link { color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: border-color 0.2s; }
.text-link:hover { border-color: var(--accent); }
.store-note { margin: 14px 0 0; font-size: 14px; color: var(--faint); }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: var(--text); font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; translate: 0 -3px; }

/* ---- The cabinet: the page opens on a lit display case like the one in the app. Scrolling slides its glass doors
   apart, the shelf lights come on top to bottom, the bottles settle, then the phone rises out of it.
   site.js sets --c (copy, 1 → 0), --o (doors, 0 → 1) and --z (phone, 0 → 1) on .cab while html has .motion.
   Without it (no JavaScript, or reduced motion) the case simply stands open under the headline. ---- */
.cab { --c: 1; --o: 1; --z: 0; position: relative; padding: 0; }
.cab-pin { position: relative; padding: 28px 0 56px; }
.cab-case {
  position: relative; width: min(1040px, 100% - 32px); margin-inline: auto; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: #0a0908; box-shadow: 0 0 0 1px rgba(217, 165, 91, 0.45), 0 0 0 9px #16120e, 0 0 0 10px rgba(217, 165, 91, 0.3), 0 60px 120px rgba(0, 0, 0, 0.7);
}
.cab-inner {
  position: absolute; inset: 0; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); padding: 0 4%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.55)), #120e0b;
}
.shelf {
  --light: clamp(0, (var(--o) - 0.35 - var(--i) * 0.13) * 4, 1);
  position: relative; display: flex; align-items: flex-end; justify-content: space-evenly; padding-bottom: 12px;
  border-bottom: 12px solid #1d1711; box-shadow: 0 1px 0 rgba(217, 165, 91, 0.35);
}
.shelf::before { /* the strip light under the shelf above, and the warm cone it throws down the back panel */
  content: ""; position: absolute; inset: 0 2% 0; pointer-events: none; opacity: var(--light);
  background: linear-gradient(rgba(255, 214, 150, 0.95), rgba(255, 214, 150, 0.95)) top / 100% 2px no-repeat,
    radial-gradient(60% 120% at 50% 0%, rgba(232, 170, 90, 0.34), rgba(232, 170, 90, 0.08) 55%, transparent 80%);
  filter: drop-shadow(0 0 6px rgba(255, 200, 120, 0.6));
}
.bottle {
  --settle: clamp(0, (var(--o) - 0.4 - var(--i) * 0.1 - var(--j) * 0.025) * 5, 1);
  position: relative; height: 80%; width: auto; aspect-ratio: 60 / 160; overflow: visible;
  opacity: calc(0.25 + var(--settle) * 0.75); translate: 0 calc((1 - var(--settle)) * -14px);
  filter: brightness(calc(0.35 + var(--light) * 0.75));
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 35%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.01) 70%), rgba(12, 10, 9, 0.82);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 1px rgba(217, 165, 91, 0.28), inset 0 0 0 7px rgba(10, 9, 8, 0.9), inset 0 0 0 8px rgba(217, 165, 91, 0.18);
}
.door-l { left: 0; translate: calc(var(--o) * -100%) 0; }
.door-r { right: 0; translate: calc(var(--o) * 100%) 0; }
.handle { position: absolute; top: 7%; width: 6px; height: 15%; border-radius: 3px; background: linear-gradient(90deg, #8a6430, #f0c987 45%, #a87a3b); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); }
.door-l .handle { right: 22px; }
.door-r .handle { left: 22px; }
.cab-copy { position: relative; z-index: 3; text-align: center; padding: 0 0 36px; }
.cab-copy h1 { font-size: clamp(40px, 6.4vw, 86px); line-height: 1; margin: 0 auto 22px; max-width: 1000px; }
.cab-copy h1 em { display: block; }
.cab-copy .lede { font-size: clamp(17px, 1.9vw, 21px); color: var(--muted); max-width: 600px; margin: 0 auto; }
.cab-copy .cta-row { margin-top: 28px; }
.cab-dim, .cab-caption, .cab-phone, .cab-hint { display: none; }

/* With motion: the section is tall and the case is pinned while you scroll through it */
.motion .cab { --c: 1; --o: 0; height: 340vh; }
.motion .cab-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.motion .cab-case { position: absolute; left: 50%; top: calc(64px + 2.5vh); width: min(1080px, 100vw - 40px); height: calc(100svh - 64px - 5vh); aspect-ratio: auto; translate: -50% 0;
  scale: calc(1 - var(--z) * 0.08); }
.motion .cab-copy { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; opacity: var(--c); translate: 0 calc((1 - var(--c)) * -40px); }
.motion .cab-copy.gone { visibility: hidden; }
.motion .cab-hint { display: flex; position: absolute; left: 50%; bottom: calc(2.5vh + 22px); z-index: 4; translate: -50% 0; flex-direction: column; align-items: center; gap: 10px;
  font: 600 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); opacity: var(--c); pointer-events: none; }
.cab-hint span { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }
.motion .cab-dim { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: calc(var(--z) * 0.8);
  background: radial-gradient(70% 70% at 50% 60%, rgba(15, 14, 13, 0.55), rgba(15, 14, 13, 0.95)); }
.motion .cab-phone {
  display: block; position: absolute; left: 50%; top: 50%; z-index: 4; width: min(330px, 36svh, 64vw);
  translate: calc(-50% + var(--z) * var(--phone-x, 0px)) calc(-50% + 32px + (1 - var(--z)) * 100svh);
  rotate: calc((1 - var(--z)) * 8deg); scale: calc(0.86 + var(--z) * 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 120px rgba(0, 0, 0, 0.8), 0 0 120px rgba(217, 165, 91, calc(var(--z) * 0.25));
}
.motion .cab-caption {
  display: block; position: absolute; z-index: 4; left: max(20px, 50% - 540px); top: 50%; width: min(400px, 100% - 40px);
  opacity: clamp(0, (var(--z) - 0.55) * 3, 1); translate: 0 calc(-50% + (1 - var(--z)) * 60px);
}
.cab-caption h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; margin: 0 0 16px; }
.cab-caption h2 em { display: block; }
.cab-caption p { color: var(--muted); font-size: 18px; margin: 0; }
@media (min-width: 901px) { .motion .cab { --phone-x: 170px; } }
@media (max-width: 900px) {
  .motion .cab-dim { opacity: var(--z); background: linear-gradient(rgba(15, 14, 13, 0.97), rgba(15, 14, 13, 0.9) 40%, rgba(15, 14, 13, 0.55)); }
  .motion .cab-caption { left: 20px; right: 20px; top: 86px; width: auto; text-align: center; translate: 0 calc((1 - var(--z)) * 40px); }
  .motion .cab-caption h2 { font-size: 34px; margin-bottom: 8px; }
  .motion .cab-caption p { font-size: 16px; }
  .motion .cab-phone { top: auto; bottom: 0; width: min(300px, 30svh, 62vw); translate: -50% calc(30% + (1 - var(--z)) * 100svh); }
}
@media (max-width: 700px) {
  .bottle:nth-child(n + 5) { display: none; }
  .cab-case { aspect-ratio: 3 / 4; }
  .door-l .handle { right: 12px; }
  .door-r .handle { left: 12px; }
  .motion .cab-copy .lede { font-size: 16px; }
}
html.gated .cab-hint span { animation-play-state: paused; }

/* ---- The tour: the phone stays put while the features scroll past, and its screen changes with each one ---- */
.tour { padding: 40px 0 80px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.step { min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.step-phone { display: none; }
.step h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; margin: 0 0 22px; }
.step h2 em { display: block; }
.step p { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 0 14px; }
.step-copy { transition: opacity 0.6s var(--ease), translate 0.8s var(--ease); }
.js .step:not(.on) .step-copy { opacity: 0.28; }
.stamp {
  align-self: flex-start; margin-bottom: 26px; padding: 7px 12px 6px; border: 2px solid var(--accent); border-radius: 6px; rotate: -6deg;
  font: 700 18px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; color: var(--accent);
  transition: scale 0.5s cubic-bezier(0.2, 1.6, 0.4, 1), opacity 0.4s;
}
.js .step:not(.on) .stamp { scale: 1.7; opacity: 0; }
.tour-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.tour-glow { position: absolute; left: 50%; top: 50%; width: 620px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 165, 91, 0.2), transparent); pointer-events: none; }
.tour-phone { width: min(320px, 38svh); }
.tour-phone img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); opacity: 0; scale: 1.06; filter: blur(6px);
  transition: opacity 0.7s var(--ease), scale 0.9s var(--ease), filter 0.7s var(--ease); }
.tour-phone img.on { opacity: 1; scale: 1; filter: none; }
.tour-dots { position: absolute; right: 0; top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tour-dots li { width: 6px; height: 6px; border-radius: 3px; background: var(--outline); transition: height 0.5s var(--ease), background 0.3s; }
.tour-dots li.on { height: 26px; background: var(--accent); }
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-stick { display: none; }
  .step { min-height: 0; padding: 56px 0; align-items: center; text-align: center; }
  .step-phone { display: block; width: min(270px, 70vw); margin: 0 auto 34px; order: -1; }
  .stamp { align-self: center; }
  .step p { margin-inline: auto; }
  .step .ticks { justify-content: center; text-align: left; }
  .js .step:not(.on) .step-copy { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-phone img, .stamp, .step-copy { transition: none; }
}

/* ---- Your palate: pinned while three ratings come in, the six-flavour shape forms from them, then a match counts up.
   site.js sets --q (0 → 1) on .palate and redraws the shape; without it the finished state shows. ---- */
.palate { --q: 1; padding: 40px 0 96px; }
.palate-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.palate-copy h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; margin: 0 0 22px; }
.palate-copy h2 em { display: block; }
.palate-copy p { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 0 14px; }
.palate-copy .palate-note { font-size: 15px; color: var(--faint); margin-top: 22px; }
.palate-panel {
  position: relative; padding: 22px; border-radius: 24px; background: linear-gradient(#15110d, #0d0b09);
  box-shadow: 0 0 0 1px rgba(217, 165, 91, 0.35), 0 0 0 7px #120f0c, 0 0 0 8px rgba(217, 165, 91, 0.18), 0 50px 100px rgba(0, 0, 0, 0.6);
}
.palate-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 48%, rgba(217, 165, 91, calc(0.04 + var(--q) * 0.12)), transparent 75%); }
.rated { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rated li {
  --show: clamp(0, (var(--q) - 0.06 - var(--n) * 0.17) * 8, 1);
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
  opacity: var(--show); translate: 0 calc((1 - var(--show)) * 18px); scale: calc(0.94 + var(--show) * 0.06);
}
.rated svg { grid-row: span 2; width: 18px; height: 48px; overflow: visible; }
.rated b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rated small { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rated i { grid-column: 2; font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace; font-style: normal; color: var(--accent); margin-top: 6px; }
.radar { padding: 6px 0 0; }
.radar svg { display: block; width: 100%; max-width: 440px; margin: 0 auto; overflow: visible; }
.radar .ring { fill: none; stroke: var(--border); }
.radar .spoke { stroke: var(--border); }
.radar .shape { fill: rgba(217, 165, 91, 0.2); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(217, 165, 91, 0.35)); }
.radar text { font: 600 13px var(--sans); letter-spacing: 0.04em; fill: var(--muted); }
.radar text.hi { fill: var(--accent); }
.match {
  --show: clamp(0, (var(--q) - 0.62) * 6, 1);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 6px;
  padding: 14px 18px; border-radius: 16px; background: rgba(217, 165, 91, 0.08); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  opacity: var(--show); translate: 0 calc((1 - var(--show)) * 24px);
}
.match > svg { width: 22px; height: 58px; overflow: visible; }
.match small { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.match b { display: block; font: 400 26px/1.15 var(--serif); margin: 2px 0; }
.match div span { font-size: 14px; color: var(--muted); }
.match strong { font: 400 clamp(40px, 4.4vw, 56px)/1 var(--serif); color: var(--accent); text-align: right; }
.match strong small { color: var(--muted); text-align: right; margin-top: 4px; }
.motion .palate { --q: 0; }
@media (min-width: 901px) {
  .motion .palate { height: 300vh; padding: 0; }
  .motion .palate-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding-top: 64px; }
  .motion .palate-copy h2 em { opacity: clamp(0.25, var(--q) * 3, 1); }
}
@media (max-width: 900px) {
  .palate-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .palate-copy { text-align: center; }
  .palate-copy p { margin-inline: auto; }
  .rated { grid-template-columns: minmax(0, 1fr); }
  .rated li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rated i { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}

/* Also in the app: a plain two-column list under the heading, no boxes */
.more .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; align-items: start; }
.more h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.04; margin: 0; position: sticky; top: 104px; }
.more h2 em { display: block; }
.more-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.more-list div { padding: 22px 0 26px; border-top: 1px solid var(--border); }
.more-list dt { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.more h2, .more-list > div, #guides .section-head, .guide-card { --in: 1; opacity: var(--in); translate: 0 calc((1 - var(--in)) * 50px); }
.more-list > div:nth-child(even), .guide-card:nth-child(3n + 2) { translate: 0 calc((1 - var(--in)) * 90px); }
.guide-card:nth-child(3n) { translate: 0 calc((1 - var(--in)) * 130px); }
.more-list dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 900px) {
  .more .wrap { grid-template-columns: minmax(0, 1fr); }
  .more h2 { position: static; }
}
@media (max-width: 600px) { .more-list { grid-template-columns: minmax(0, 1fr); } }

/* Partner cards */
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Responsible note and the closing call to action */
/* The note warms up as it reaches the middle of the screen */
.callout { --p: 0; --in: 1; position: relative; overflow: hidden; scale: calc(0.94 + var(--in) * 0.06); opacity: var(--in);
  background: radial-gradient(60% 90% at calc(50% - var(--p) * 60%) 0%, rgba(217, 165, 91, 0.16), transparent 70%), var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.callout h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; margin: 0 0 16px; max-width: 820px; }
.callout p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.final { --p: 0; --in: 1; position: relative; padding-top: 40px; text-align: center; overflow: hidden; padding: 120px 0 128px; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -420px; width: 1100px; height: 800px; translate: -50% 0; background: radial-gradient(closest-side, rgba(217, 165, 91, 0.2), transparent); pointer-events: none; scale: calc(0.6 + var(--in) * 0.5); opacity: var(--in); }
.final .wrap { position: relative; }
.final-bottle { position: relative; width: min(220px, 44vw); margin: 0 auto 36px; }
.final-bottle svg { display: block; width: 100%; height: auto; position: relative; z-index: 1;
  translate: 0 calc((1 - var(--in)) * -90px); rotate: calc((1 - var(--in)) * -7deg); opacity: calc(0.2 + var(--in) * 0.8);
  filter: drop-shadow(0 0 calc(var(--in) * 40px) rgba(217, 165, 91, 0.35)); }
.final-shelf { position: absolute; left: 50%; bottom: -14px; width: min(560px, 90vw); height: 12px; translate: -50% 0; border-radius: 2px;
  background: linear-gradient(#3a2c1d, #1a140e); box-shadow: 0 1px 0 rgba(217, 165, 91, 0.5) inset, 0 18px 40px rgba(0, 0, 0, 0.6); }
.final-shelf::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 100%; height: 420px; pointer-events: none; opacity: var(--in);
  background: radial-gradient(50% 100% at 50% 100%, rgba(232, 170, 90, 0.3), transparent 75%); }
.final h2 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1; margin: 0 0 18px; opacity: var(--in); translate: 0 calc((1 - var(--in)) * 50px); }
.final p { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto; }
.final .signup { margin: 30px auto 0; justify-content: center; }
.final .signup-note { text-align: center; }

/* Prose pages (support, partners, privacy) */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.04; margin: 0 0 18px; }
.page h2 { font-size: 28px; margin: 44px 0 10px; padding-top: 28px; border-top: 1px solid var(--border); }
.page h3 { font-size: 19px; margin: 26px 0 6px; }
.page p, .page li { color: var(--text); }
.page .lede { color: var(--muted); font-size: 20px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page li::marker { color: var(--accent); }
.page mark { background: #ffe08a; color: #1e1812; padding: 0 3px; border-radius: 3px; }
details { border-top: 1px solid var(--border); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font: 600 20px/1 var(--sans); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; margin: 28px 0; }
.cards /* Also in the app: a plain two-column list under the heading, no boxes */
.more .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; align-items: start; }
.more h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.04; margin: 0; position: sticky; top: 104px; }
.more h2 em { display: block; }
.more-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.more-list div { padding: 22px 0 26px; border-top: 1px solid var(--border); }
.more-list dt { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.more-list dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 900px) {
  .more .wrap { grid-template-columns: minmax(0, 1fr); }
  .more h2 { position: static; }
}
@media (max-width: 600px) { .more-list { grid-template-columns: minmax(0, 1fr); } }

/* Partner cards */
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature h3 { font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; max-width: 520px; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.age-gate[hidden] { display: none; }
.age-box { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 32px; text-align: center; }
.age-box img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px; }
.age-box h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.1; }
.age-box p { color: var(--muted); margin: 0 0 22px; }
.age-box .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.age-box .row .button { flex: 1 1 140px; }
.age-box .small { font-size: 13px; color: var(--faint); margin: 18px 0 0; }

/* Guides: cards (home, index, related) and articles */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin: 18px 0 8px; }
.guide-card { display: grid; align-content: start; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.4s var(--ease); }
.guide-card:hover, .guide-card:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-3px); }
.guide-card b { font: 400 24px/1.15 var(--serif); }
.guide-card span:last-child { color: var(--muted); font-size: 15px; line-height: 1.45; }
.guides .wrap { max-width: 1120px; }
.guides .lede { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.byline { color: var(--faint); font-size: 15px; margin: 0 0 28px; }
.article p, .article li { font-size: 18px; line-height: 1.65; }
.article .lede { font-size: 21px; line-height: 1.5; }
.article h2 { font-size: 30px; }
.article table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 16px; }
.article th, .article td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); }
.article th { font: 600 12px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.article .note { background: var(--surface); border: 1px solid var(--border); border-color: color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.article .note p { margin: 0; font-size: 17px; }
.article .cta { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(22px, 4vw, 36px); margin: 48px 0 24px; }
.article .cta h2 { border: 0; padding: 0; margin: 10px 0 8px; font-size: 30px; }
.article .cta p { color: var(--muted); font-size: 17px; }
.author-note, .responsible { color: var(--muted); font-size: 15px !important; }
.related { padding-top: 24px; }
.related h2 { font-size: 28px; margin: 0 0 8px; }

/* Anchored sections land below the sticky header. */
[id] { scroll-margin-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Analytics choice: a small bar at the bottom, asked once after the age question */
.consent {
  position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 640px;
  display: flex; align-items: center; gap: 14px 20px; padding: 16px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 94%, transparent); border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.consent-row { display: flex; gap: 8px; flex: none; }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 600px) { .consent { flex-direction: column; align-items: stretch; } .consent-row > * { flex: 1; } }
