/* eaux landing page. Plain CSS, no build step. Light only, like the page it grew from. */

/* Fonts: Gambetta for headings, Satoshi for everything else. The official files,
   unmodified and self-hosted (ITF Free Font License, assets/fonts/LICENSE-FFL.txt). */
@font-face { font-family: "Gambetta"; src: url("assets/fonts/Gambetta-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --parch: #FAF8F7;
  --tint: #F5F0EE;
  --night: #0E0E12;
  --ink: #1A1218;
  --ink2: rgba(26, 18, 24, .68);
  --ink3: rgba(26, 18, 24, .6);
  --rose: #C4847A;
  --rose-text: #A0584E;   /* rose for small text on the page colour */
  --rose-btn: #A8645A;    /* rose for a button that carries white text (AA contrast) */
  --line: rgba(196, 132, 122, .22);
  --serif: "Gambetta", Georgia, "Times New Roman", serif;
  --sans: "Satoshi", -apple-system, system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { background: var(--parch); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
main { overflow-x: clip; }   /* things that slide in from the side never widen the page */
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose-text); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 860px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-block; border: 0; cursor: pointer; font: 700 14px/1 var(--sans); color: #fff; text-decoration: none; text-align: center; white-space: nowrap; border-radius: 12px; padding: 13px 19px; transition: transform .16s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn.ink { background: var(--ink); }
.btn.ink:hover { background: #2c2128; }
.btn.rose { background: var(--rose-btn); }
.btn.rose:hover { background: #96574D; }
/* A sheen crosses every button once when it comes into view, and again on hover (motion block) */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%); translate: -120% 0; pointer-events: none; }

/* ── Header ───────────────────────────────────────────── */
/* The header stays at the top as you scroll, on a frosted ground the same colour as
   the page (so at the top it can't be seen). Once the page has moved it gets a hairline,
   and the link for the section you're reading is underlined (app.js). */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 247, .86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.top.stuck { box-shadow: 0 1px 0 var(--line), 0 10px 28px rgba(26, 18, 24, .05); }
.top-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; }
.brand img { height: 21px; width: auto; filter: brightness(0) invert(8%); }   /* the wordmark ships white; this makes it ink */
.top nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.top .link { position: relative; padding: 6px 0; color: var(--ink); font-weight: 500; text-decoration: none; }
.top .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 1px; background: var(--rose); transform: scaleX(0); transform-origin: right center; }
.top .link:hover, .top .link.is-current { color: var(--rose-text); }
.top .link:hover::after, .top .link.is-current::after { transform: scaleX(1); transform-origin: left center; }

/* ── Hero ─────────────────────────────────────────────── */
/* Desktop: copy on the left, the counter on the right. On a phone the matches come
   straight after the search, before the buttons, so you see the result of what you typed. */
.hero { max-width: 1240px; margin: 0 auto; padding: 60px 28px 64px; display: grid; grid-template-columns: 1.05fr .95fr;
        grid-template-areas: "intro stage" "after stage"; column-gap: 88px; align-content: center; min-height: 640px; }
.intro-block { grid-area: intro; align-self: end; }
.after-block { grid-area: after; align-self: start; }
.stage { grid-area: stage; align-self: center; position: relative; container-type: inline-size; }

.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-text); font-weight: 700; }
/* The line above the headline: a plain sentence, not a spaced-out label */
.strap { font-size: 16px; line-height: 1.4; color: var(--ink2); }
h1 { font: 400 clamp(42px, 5vw, 60px)/1.04 var(--serif); letter-spacing: -.012em; margin: 20px 0 24px; }
h1 em, h2 em { font-style: normal; color: var(--rose); }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink2); max-width: 460px; margin-bottom: 36px; }

/* The vibe search: the app's rose-rimmed glass, in its light form */
.rim { border-radius: 17px; padding: 1px; max-width: 500px; background: linear-gradient(135deg, rgba(196, 132, 122, .8), rgba(196, 132, 122, .3) 40%, rgba(196, 132, 122, .25) 70%, rgba(196, 132, 122, .65)); box-shadow: 0 8px 24px rgba(26, 18, 24, .08); }
.field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px; }
.field svg { flex: none; width: 17px; height: 17px; color: var(--ink3); }
.field input { flex: 1; min-width: 0; border: 0; outline: none; font: 500 15px var(--sans); color: var(--ink); background: transparent; }
.field input::placeholder { color: var(--ink3); }
.rim:focus-within { background: linear-gradient(135deg, rgba(196, 132, 122, 1), rgba(196, 132, 122, .55) 40%, rgba(196, 132, 122, .5) 70%, rgba(196, 132, 122, .95)); }

.tries { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 44px; font-size: 13px; color: var(--ink3); }
.tries button { font: 500 13px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.tries button[aria-pressed="true"] { background: rgba(196, 132, 122, .14); border-color: rgba(196, 132, 122, .6); color: var(--rose-text); }
.ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
/* Small links get a larger, invisible tap area, so a thumb finds them */
.top .brand, .ghost, .foot nav a { position: relative; }
.top .brand::before, .ghost::before { content: ""; position: absolute; inset: -12px -8px; }
.foot nav a::before { content: ""; position: absolute; inset: -5px -6px; }
.ghost { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }
.fine { font-size: 13px; color: var(--ink3); margin-top: 20px; }

/* ── Listing cards: the hero fan, the shelf and the seller pair all use these ── */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 22px 44px rgba(26, 18, 24, .13); }
.card .ph { position: relative; aspect-ratio: 210 / 230; background: linear-gradient(135deg, #efe6e6, #e4d6d8); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph.no-photo img { display: none; }   /* a photo that won't load leaves the soft tint, not a broken icon */
.card .tx { padding: 12px 14px 14px; }
.card small { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink3); }
.card b { display: block; font: 400 18px/1.2 var(--serif); margin: 3px 0 9px; }
.card .row { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
.card .row span { font-size: 12px; font-weight: 500; color: var(--ink3); }
.card .meter { height: 4px; margin-top: 11px; border-radius: 2px; background: rgba(196, 132, 122, .18); overflow: hidden; }
.card .meter i { display: block; height: 100%; width: var(--fill); border-radius: 2px; background: linear-gradient(90deg, #DCA396, var(--rose)); transform-origin: left center; }

/* The hero fan. Cards are sized from the column they sit in (cqw), so the three always fit it. */
.for { text-align: center; font-size: 13px; color: var(--ink3); margin-bottom: 10px; min-height: 20px; }
.for b { color: var(--ink); font-weight: 500; }
/* The box holds its cards at every width. Their text doesn't shrink with them, so on a
   phone they're taller for their width; a brand gets two lines at most to keep that in check. */
.fan { position: relative; height: max(calc(min(210px, 39cqw) * 2.1), calc(min(210px, 39cqw) * 1.4 + 148px)); }
/* Live matches are links to the listing. */
/* One or two live matches sit in the middle rather than in the first slots. */
.fan[data-count="1"] .card:nth-child(1) { transform: translateX(-50%) translateY(-28px) rotate(1deg); z-index: 3; }
.fan[data-count="2"] .card:nth-child(1) { transform: translateX(-92%) rotate(-5deg); }
.fan[data-count="2"] .card:nth-child(2) { transform: translateX(-8%) translateY(-14px) rotate(4deg); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:focus-visible { outline: 3px solid var(--rose, #C4847A); outline-offset: 3px; }
.fan .card small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fan .card { position: absolute; top: calc(min(210px, 39cqw) * .19); left: 50%; width: min(210px, 39cqw); transition: transform .55s var(--ease), opacity .35s var(--ease), scale .4s var(--ease), box-shadow .4s var(--ease); }
.fan .card:nth-child(1) { transform: translateX(-118%) rotate(-7deg); z-index: 1; }
.fan .card:nth-child(2) { transform: translateX(-50%) translateY(-28px) rotate(1deg); z-index: 3; }
.fan .card:nth-child(3) { transform: translateX(18%) rotate(7deg); z-index: 2; }
.fan.dealing .card { opacity: 0; transform: translateX(-50%) translateY(30px) rotate(0deg) scale(.94); }
.example { text-align: center; font-size: 13px; color: var(--ink3); margin-top: 8px; }

/* ── Sections ─────────────────────────────────────────── */
.band { padding: 96px 0; }
.band.tint { background: var(--tint); }
h2 { font: 400 clamp(32px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; margin: 10px 0 20px; max-width: 760px; }
h3 { font: 400 21px/1.25 var(--serif); margin-bottom: 8px; }
h1, h2, h3 { text-wrap: balance; }
h1 em { display: block; }
p, li, summary { text-wrap: pretty; }   /* no single word left alone on a last line */   /* its own block, so its two lines balance on a phone */
.intro { color: var(--ink2); max-width: 640px; margin-bottom: 38px; }
.band p { color: var(--ink2); }
.band .eyebrow { color: var(--rose-text); }

/* The hero and "Why eaux" share a background: a hairline with a small rose dot marks the change */
#why { padding-top: 0; }
#why .wrap::before { content: ""; display: block; height: 7px; margin-bottom: 72px;
  background: radial-gradient(circle, var(--rose) 0 3px, transparent 3.5px) center / 7px 7px no-repeat,
              linear-gradient(90deg, transparent, var(--line) 18%, var(--line) calc(50% - 22px), transparent calc(50% - 22px), transparent calc(50% + 22px), var(--line) calc(50% + 22px), var(--line) 82%, transparent) center / 100% 1px no-repeat; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.three > div { border-top: 1px solid var(--line); padding-top: 22px; }
/* The three share their rows: however a heading wraps, the headings start on one line
   and the paragraphs on another */
@supports (grid-template-rows: subgrid) {
  .three > div { grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: 0; }
}
.three p { font-size: 16px; }

.how-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; margin-bottom: 52px; }
.how-head h2 { margin-bottom: 0; }
.how-head .intro { margin: 0 0 8px; max-width: 420px; text-wrap: balance; }
/* How it works: three steps on one line. Each is a photo with one detail on it, a number
   on a rule that runs on to the next step, a title and a line or two. No boxes. */
.steps { --gap: 40px; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gap); }
.steps > li { min-width: 0; }
.frame { position: relative; margin: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #efe6e6, #e4d6d8); }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
/* a soft shade at the foot of each photo, so the three sit together and the detail on it reads */
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
                background: linear-gradient(180deg, rgba(26, 18, 24, 0) 55%, rgba(26, 18, 24, .14)); box-shadow: inset 0 0 0 1px rgba(26, 18, 24, .05); }
.frame.no-photo img { display: none; }
.detail { position: absolute; z-index: 1; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 11px 15px 13px; border-radius: 12px;
       background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(26, 18, 24, .12); }
.detail small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.detail b { display: block; font: 400 17px/1.25 var(--serif); color: var(--ink); margin-top: 4px; }
.detail .meter { display: block; width: 140px; max-width: 100%; height: 3px; margin-top: 10px; border-radius: 2px; background: rgba(196, 132, 122, .2); overflow: hidden; }
.detail .meter i { display: block; height: 100%; width: var(--fill); background: linear-gradient(90deg, #DCA396, var(--rose)); transform-origin: left center; }
.num { display: flex; align-items: center; gap: 16px; margin: 30px 0 16px; font: 400 15px/1 var(--serif); letter-spacing: .06em; color: var(--rose-text); }
.num::after { content: ""; flex: 1; height: 1px; background: rgba(196, 132, 122, .45); transform-origin: left center; }
.steps > li:not(:last-child) .num::after { margin-right: calc(-1 * var(--gap)); }   /* the rule runs on to the next number */
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { font-size: 16px; max-width: 34ch; }
.photo-note { margin-top: 44px; font-size: 13px; color: var(--ink3); }

.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards2 article { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.cards2 article::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--rose), #DCA396); transform: scaleX(0); transform-origin: left center; }
.cards2 p { font-size: 16px; }
.caveat { margin-top: 28px; border-left: 2px solid var(--rose); padding-left: 16px; font-size: 15px; max-width: 640px; }

.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (min-width: 1100px) { .shelf { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.shelf .card { box-shadow: 0 14px 30px rgba(26, 18, 24, .09); }
/* However the names wrap, every card's brand, name, price and fill bar sit on the
   same lines as its neighbours': the cards share the shelf's rows. */
@supports (grid-template-rows: subgrid) {
  .shelf .card { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .shelf .card .tx { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .shelf .card small { align-self: end; }
}
.shelf-note { text-align: left; margin-top: 22px; }

.fams { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fams li { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: 4px 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.fams .dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(26, 18, 24, .12); }
.fams b { font: 400 20px/1.2 var(--serif); }
.fams li > span:last-child { grid-column: 1 / -1; font-size: 14px; color: var(--ink2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 4px 0 32px; display: grid; gap: 14px; max-width: 500px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: rgba(196, 132, 122, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0584E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pair { position: relative; height: 380px; }
.pair .card { position: absolute; width: min(220px, 46%); }
.pair .card:nth-child(1) { left: 4%; top: 46px; transform: rotate(-4deg); }
.pair .card:nth-child(2) { left: 42%; top: 0; transform: rotate(3deg); }

.faq { border-top: 1px solid var(--line); margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 500 18px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 26px/1 var(--serif); color: var(--rose-text); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; max-width: 680px; }

/* ── Waitlist ─────────────────────────────────────────── */
.join { background: var(--night); color: #F5F0EE; padding: 104px 0 108px; text-align: center; }
.join h2 { margin-left: auto; margin-right: auto; font-size: clamp(36px, 5vw, 52px); }
.join .intro { color: rgba(245, 240, 238, .72); margin: 0 auto 34px; max-width: 520px; }
.join .rim { margin: 0 auto; background: linear-gradient(135deg, rgba(196, 132, 122, .65), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, .05) 70%, rgba(196, 132, 122, .45)); box-shadow: none; }
.join .rim:focus-within { background: linear-gradient(135deg, rgba(196, 132, 122, 1), rgba(196, 132, 122, .3) 40%, rgba(255, 255, 255, .08) 70%, rgba(196, 132, 122, .85)); }
.join .field { background: var(--night); }
.join .field input { color: #F5F0EE; }
.join .field input::placeholder { color: rgba(245, 240, 238, .5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 26px; margin-top: 18px; font-size: 15px; color: rgba(245, 240, 238, .8); }
.status.error { color: #F4B0A6; }
.status a, .consent a { color: inherit; }
/* Joined: the form gives way to a welcome */
.done { display: grid; justify-items: center; gap: 12px; padding-top: 6px; }
.done[hidden] { display: none; }
.done-mark { position: relative; width: 64px; height: 64px; margin-bottom: 6px; }
.done-mark svg { position: relative; display: block; width: 100%; height: 100%; }
.done-mark circle { fill: var(--rose-btn); }
.done-mark path { fill: none; stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.done-title { font: 400 clamp(36px, 5.5vw, 48px)/1.05 var(--serif); letter-spacing: -.01em; color: #F5F0EE; margin: 0; outline: none; }
.done-text { color: rgba(245, 240, 238, .78); max-width: 460px; margin: 0; }
.done-text b { color: #F5F0EE; font-weight: 500; overflow-wrap: anywhere; }
.done-again { margin-top: 2px; padding: 6px 4px; border: 0; background: none; cursor: pointer; font: 500 14px var(--sans); color: rgba(245, 240, 238, .62);
              text-decoration: underline; text-decoration-color: rgba(245, 240, 238, .3); text-underline-offset: 4px; }
.done-again:hover { color: #F5F0EE; text-decoration-color: currentColor; }
.spritz { position: absolute; inset: 0; pointer-events: none; }
.spritz i { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--rose); opacity: 0; }
.spritz i:nth-child(3n+1) { background: #F5F0EE; }
.spritz i:nth-child(3n+2) { background: #E2B59B; }
.consent { margin-top: 10px; font-size: 13px; color: rgba(245, 240, 238, .62); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── Footer ───────────────────────────────────────────── */
.foot { padding: 56px 0 44px; border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.foot img { height: 21px; width: auto; filter: brightness(0) invert(8%); }
.foot .tag { margin-top: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--ink2); align-content: flex-start; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .small { font-size: 13px; color: var(--ink3); max-width: 720px; }

/* ── Privacy and Terms (privacy.html, terms.html: generated by scripts/gen-legal-html.js) ── */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 28px 112px; }
.legal h1 { font: 400 clamp(38px, 5.5vw, 56px)/1.06 var(--serif); letter-spacing: -.012em; margin: 14px 0 10px; text-wrap: balance; }
.legal .updated { font-size: 14px; color: var(--ink3); margin-bottom: 30px; }
.legal .lede { max-width: none; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; max-width: none; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 44px; }
.legal p { color: var(--ink2); margin: 0 0 16px; white-space: pre-line; }
.legal h2 + p:last-child, .legal p:last-child { margin-bottom: 0; }
.legal .table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); background: var(--tint); }
.legal td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
.legal td { color: var(--ink2); }

/* ── Smaller screens ───────────────────────────────────── */
@media (max-width: 860px) {
  .top .link { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "intro" "stage" "after"; padding: 40px 28px 60px; min-height: 0; }
  html { scroll-padding-top: 76px; }
  .top-in { padding-block: 14px; }
  .tries { margin-bottom: 18px; }
  .after-block { margin-top: 26px; }
  .band { padding: 64px 0; }
  #why { padding-top: 0; }
  #why .wrap::before { margin-bottom: 52px; }
  .three, .steps, .cards2 { grid-template-columns: 1fr; gap: 18px; }
  .steps { gap: 56px; }
  .steps > li:not(:last-child) .num::after { margin-right: 0; }
  .frame { aspect-ratio: 5 / 4; }
  .num { margin-top: 24px; }
  .three { gap: 28px; }
  .fams { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .pair { height: 340px; }
  /* centred: the two cards keep their overlap, and the pair's middle meets the column's */
  .pair .card:nth-child(1) { left: calc((100% - min(220px, 46%)) / 2 - 19%); }
  .pair .card:nth-child(2) { left: calc((100% - min(220px, 46%)) / 2 + 19%); }
  .join { padding: 72px 0 76px; }
  .legal { padding: 40px 24px 80px; }
  .legal td:first-child { white-space: normal; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 480px) {
  .btn { padding: 12px 15px; }
  /* The search and the sign-up: the words get the whole width, and the button sits
     under them instead of covering the end. 16px text, because an iPhone zooms the
     page in when you tap into anything smaller. */
  .field { flex-wrap: wrap; padding: 6px; gap: 6px 10px; }
  .field svg { margin-left: 10px; }
  .field input { font-size: 16px; padding: 11px 10px; }
  .field svg ~ input { padding-left: 0; }
  .field .btn { flex: 1 0 100%; padding: 14px 16px; font-size: 15px; }
  /* The three suggestions fit on one line, stretched to the search box's width */
  .tries { gap: 6px; }
  .tries > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .tries button { flex: 1 1 auto; padding: 8px; }
  /* The hero's two actions stack at the full width, the same height, so they
     line up with the search box above instead of sitting ragged side by side.
     "See how it works" becomes an outlined button to match. */
  .ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .ctas .btn, .ctas .ghost { display: block; text-align: center; font-size: 15px; line-height: 1; padding: 15px 16px; border-radius: 12px; }
  .ctas .btn { border: 1.5px solid transparent; }   /* same box as the outlined one, so both are the same height */
  .ctas .ghost { border: 1.5px solid rgba(26, 18, 24, .16); background: #fff; }
  .ctas .ghost::before { inset: 0; }
  .after-block .fine { text-align: center; margin-top: 14px; }
  /* The sellers' button matches: full width, under the list it belongs to */
  #sellers .btn { display: block; padding: 15px 16px; font-size: 15px; }
  .fams li { padding: 14px; }
  .fams b { font-size: 19px; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .tx { padding: 10px 11px 12px; }
  .card b { font-size: 16px; }
  .detail { left: 12px; bottom: 12px; padding: 9px 13px 11px; }
  .detail b { font-size: 16px; }
  .card small, .detail small { font-size: 11px; }
}
@media (max-width: 340px) {
  .tries button { font-size: 12px; }
}
/* ── Motion ────────────────────────────────────────────────
   All of it sits in this block, so anyone who has asked their device for less
   motion gets none of it (a test checks nothing animates outside it). Only
   transform-like properties and opacity move, so it stays smooth. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; translate: 0 26px; } }
  @keyframes deal-in { from { opacity: 0; translate: 0 90px; scale: .9; } }
  @keyframes bob { 50% { translate: 0 -7px; } }
  @keyframes breathe { from { scale: .9; opacity: .65; } to { scale: 1.1; opacity: 1; } }
  @keyframes drift { from { translate: -62% -50%; scale: .9; } to { translate: -38% -46%; scale: 1.12; } }
  @keyframes pop { from { opacity: 0; translate: 0 8px; scale: .96; } }

  /* Page load: the header settles, then the hero copy rises line by line */
  /* The header: its pieces drop in one after another, a link's underline draws in from
     the left (and out to the right), the hairline fades in, and a sheen crosses the button */
  @keyframes drop { from { opacity: 0; translate: 0 -12px; } }
  @keyframes sheen { from { translate: -120% 0; } to { translate: 120% 0; } }
  .top-in > .brand, .top nav > * { animation: drop .7s var(--ease) backwards; }
  .top nav > :nth-child(1) { animation-delay: .08s; }
  .top nav > :nth-child(2) { animation-delay: .14s; }
  .top nav > :nth-child(3) { animation-delay: .2s; }
  .top nav > :nth-child(4) { animation-delay: .28s; }
  .top { transition: box-shadow .35s var(--ease); }
  .top .link { transition: color .3s var(--ease); }
  .top .link::after { transition: transform .45s var(--ease); }
  /* Every button: the sheen crosses once it's in view (app.js adds .shine, staggering
     buttons that arrive together), and on hover it lifts and the sheen crosses again */
  .btn.shine::after { animation: sheen 1.1s var(--sheen-delay, 1s) var(--ease); }
  @media (hover: hover) {
    .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26, 18, 24, .22); }
    .btn:hover::after { translate: 120% 0; transition: translate .9s var(--ease); }
  }
  .intro-block > *, .after-block > * { animation: rise .9s var(--ease) backwards; }
  .intro-block > :nth-child(1) { animation-delay: .10s; }
  .intro-block > :nth-child(2) { animation-delay: .20s; }
  .intro-block > :nth-child(3) { animation-delay: .32s; }
  .intro-block > :nth-child(4) { animation-delay: .42s; }
  .intro-block > :nth-child(5) { animation-delay: .50s; }
  .after-block > :nth-child(1) { animation-delay: .58s; }
  .after-block > :nth-child(2) { animation-delay: .66s; }
  h1 em { animation: fade 1.1s .55s var(--ease) backwards; }

  /* A slow glow behind the bottles */
  .stage { isolation: isolate; }
  .stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 82%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
                   background: radial-gradient(closest-side, rgba(196, 132, 122, .26), rgba(196, 132, 122, 0)); animation: breathe 9s ease-in-out infinite alternate; pointer-events: none; }

  /* The bottles are dealt onto the counter, then drift, each on its own beat */
  .fan .card.enter { animation: deal-in 1s var(--ease) backwards, bob 7s ease-in-out 1s infinite; }
  .fan .card.enter:nth-child(1) { animation-delay: .55s, 1.55s; }
  .fan .card.enter:nth-child(2) { animation-delay: .70s, 1.70s; }
  .fan .card.enter:nth-child(3) { animation-delay: .85s, 1.85s; }
  .fan .card:not(.enter) { animation: bob 7s ease-in-out infinite; }
  .fan .card:not(.enter):nth-child(1) { animation-delay: -1.5s; }
  .fan .card:not(.enter):nth-child(2) { animation-delay: -3.5s; }
  .fan .card:not(.enter):nth-child(3) { animation-delay: -5.5s; }
  .fan.paused .card { animation-play-state: paused; }   /* off screen: stop spending effort on it */
  @media (hover: hover) {
    .fan .card:hover { scale: 1.035; box-shadow: 0 30px 56px rgba(26, 18, 24, .2); }
    .pair .card { transition: scale .4s var(--ease), box-shadow .4s var(--ease); }
    .shelf .card.reveal { transition: opacity .8s var(--ease), translate .8s var(--ease), scale .4s var(--ease), box-shadow .4s var(--ease);
                          transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
    .shelf .card:hover { scale: 1.03; box-shadow: 0 22px 40px rgba(26, 18, 24, .16); }
  }

  /* Scrolling: sections fade up as they arrive. app.js adds these classes, so
     without scripting nothing is ever hidden. */
  .reveal { opacity: 0; translate: var(--dx, 0) var(--dy, 28px); scale: var(--s, 1);
            transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
  .reveal.in { opacity: 1; translate: 0 0; scale: 1; }
  /* each kind of thing arrives its own way */
  .band .eyebrow.reveal { --dx: -24px; --dy: 0px; }
  .band h2.reveal { --dy: 44px; }
  .three > div.reveal { --dy: 36px; }
  .steps > li.reveal { --dy: 40px; }
  .cards2 > article.reveal:nth-child(odd) { --dx: -60px; --dy: 0px; }
  .cards2 > article.reveal:nth-child(even) { --dx: 60px; --dy: 0px; }
  .fams li.reveal { --dy: 22px; --s: .8; }
  .ticks li.reveal { --dx: -34px; --dy: 0px; }
  .pair.reveal { --dx: 70px; --dy: 0px; --s: .94; }
  .faq details.reveal { --dx: -40px; --dy: 0px; }
  .faq.reveal { --dy: 0px; }
  .join form.reveal { --dy: 36px; --s: .94; }

  /* ...and each shelf bottle's meter fills to how full it really is */
  .shelf .card .meter i { transition: transform 1.2s var(--ease) .4s; }
  .shelf .card.reveal:not(.in) .meter i { transform: scaleX(0); }

  /* Good to know: the answer opens smoothly (where the browser can animate it),
     the question nudges toward you and its plus turns as it opens. */
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
  .faq details[open] > p { animation: faq-open .55s var(--ease) backwards; }
  .faq summary { transition: translate .3s var(--ease), color .3s var(--ease); }
  .faq details[open] summary { color: var(--rose-text); }
  .faq details[open] summary::after { transition-duration: .4s; }
  @media (hover: hover) { .faq summary:hover { translate: 8px 0; color: var(--rose-text); } }
  @keyframes faq-open { from { opacity: 0; translate: 0 -10px; } }

  /* How it works: each photo settles from a slight zoom, the rule draws on to the
     next number, then the detail on the photo lifts in */
  .frame img { transition: scale 1.6s var(--ease); }
  .steps > li.reveal:not(.in) .frame img { scale: 1.12; }
  .num::after { transition: transform 1.1s var(--ease) calc(.35s + var(--i, 0) * 110ms); }
  .steps > li.reveal:not(.in) .num::after { transform: scaleX(0); }
  .detail { transition: opacity .7s var(--ease) calc(.6s + var(--i, 0) * 110ms), translate .7s var(--ease) calc(.6s + var(--i, 0) * 110ms); }
  .steps > li.reveal:not(.in) .detail { opacity: 0; translate: 0 12px; }
  .detail .meter i { transition: transform 1.2s var(--ease) calc(1s + var(--i, 0) * 110ms); }
  .steps > li.reveal:not(.in) .detail .meter i { transform: scaleX(0); }
  @media (hover: hover) { .steps > li:hover .frame img { scale: 1.04; } }

  /* Trust: a block rises toward you on hover, and a rose rule draws across its top.
     It moves with transform, so it doesn't wait on the scroll-in's staggered translate. */
  @media (hover: hover) {
    .cards2 > article { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
    .cards2 > article.reveal { transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
                               transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s, 0s, 0s; }
    .cards2 > article::before { transition: transform .7s var(--ease) .05s; }
    .cards2 > article:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(26, 18, 24, .1); border-color: rgba(196, 132, 122, .5); }
    .cards2 > article:hover::before { transform: scaleX(1); }
  }

  /* Find your family: a tile lifts, its border and glow take that family's own colour,
     and the colour dot swells in a ring. Mouse only. */
  @media (hover: hover) {
    .fams li { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
    .fams li.reveal { transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
                      transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s, 0s, 0s; }
    .fams .dot { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
    .fams b { transition: translate .45s var(--ease); }
    .fams li:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 65%, transparent); box-shadow: 0 16px 32px color-mix(in srgb, var(--c) 26%, transparent); }
    .fams li:hover .dot { transform: scale(1.3); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 24%, transparent); }
    .fams li:hover b { translate: 3px 0; }
  }

  /* The sign-up: a glow drifts behind it, and success lands softly */
  .join { position: relative; overflow: hidden; isolation: isolate; }
  .join::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 32%; width: 780px; height: 780px; translate: -50% -50%; border-radius: 50%;
                  background: radial-gradient(closest-side, rgba(196, 132, 122, .22), rgba(196, 132, 122, 0)); animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
  .status.error { animation: pop .6s var(--ease); }

  /* The welcome: the circle pops in, its tick draws itself, a ring ripples out twice
     and the spritz drifts off it and fades; then the words rise in, one after another */
  @keyframes mark-pop { 0% { scale: .2; opacity: 0; } 55% { scale: 1.1; opacity: 1; } 100% { scale: 1; } }
  @keyframes tick { from { stroke-dashoffset: 36; } }
  @keyframes ripple { from { scale: 1; opacity: .7; } to { scale: 2.3; opacity: 0; } }
  @keyframes spritz {
    0% { opacity: 0; transform: rotate(var(--a)) translateY(-18px) scale(.4); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(1); translate: 0 -14px; }
  }
  .done-mark svg { animation: mark-pop .75s var(--ease) backwards; }
  .done-mark path { stroke-dasharray: 36; animation: tick .55s .4s var(--ease) backwards; }
  .done-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--rose); opacity: 0; animation: ripple 1.6s .3s var(--ease) 2; }
  .spritz i { animation: spritz 1.5s var(--t) cubic-bezier(.2, .75, .3, 1) both; }
  .done > :not(.done-mark) { animation: rise .8s var(--ease) backwards; }
  .done > .done-title { animation-delay: .35s; }
  .done > .done-text { animation-delay: .5s; }
  .done > .done-again { animation-delay: .65s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fan .card { transition: opacity .2s; }
  .btn, .faq summary::after { transition: none; }
}
