/* The Reserve — marketing page, direction 3C. Tokens mirror src/theme/tokens.ts. */

@font-face { font-family: 'Fraunces Display'; src: url(fonts/Fraunces-Display.ttf) format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Fraunces Section'; src: url(fonts/Fraunces-Section.ttf) format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(fonts/IBMPlexMono-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/InstrumentSans-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/InstrumentSans-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/InstrumentSans-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --cream: #F1EBDD;
  --white: #FFFFFF;
  --ink: #1F1A15;
  --tomato: #E2462B;
  --agave: #F2D78A;
  --rule: 1px solid var(--ink);

  --display: 'Fraunces Display', Georgia, serif;
  --section: 'Fraunces Section', Georgia, serif;
  --mono: 'Plex Mono', ui-monospace, monospace;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --out: cubic-bezier(0.22, 1, 0.36, 1);

  --margin: 40px;      /* page margin (glyph sits on it) */
  --head-h: 66px;
}
@media (max-width: 759px) { :root { --margin: 20px; --head-h: 52px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--tomato);
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.feat-ink :focus-visible { outline-color: var(--cream); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .tag, .ef-label, .card-credit, .snap figcaption {
  font-family: var(--mono); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.wordmark { font-family: var(--section); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.wordmark-sm { font-size: 18px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--head-h);
  display: flex; align-items: stretch;
  background: var(--cream);
  border-bottom: var(--rule);
}
.brand { display: flex; align-items: center; gap: 9px; padding-left: var(--margin); text-decoration: none; }
.glyph { display: block; width: 21px; height: 30px; flex: none; position: relative; top: 1px; } /* the app icon's coupe */
.glyph path { stroke-width: 1.6; }
/* Optical centring: the wordmark's lowercase sits low in its box, so it rides 1 px up and the glass and tag 1 px down. */
.brand .wordmark { position: relative; top: -1px; }
.tag { align-self: center; position: relative; top: 1px; margin-left: 12px; border: var(--rule); border-radius: 999px; padding: 4px 10px; font-size: 10px; line-height: 1.4; }
.top-cta {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 0 32px;
  background: var(--ink); color: var(--cream);
  font-size: 16px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: opacity 200ms var(--out), transform 250ms var(--out);
}
.top-cta:focus-visible { outline-color: var(--tomato); outline-offset: -4px; }
.cta-short { display: none; }
/* One primary action in view: the header's cell waits until the hero form has scrolled away. */
.js .top.hero-in .top-cta { opacity: 0; transform: translateX(16px); pointer-events: none; visibility: hidden; transition: opacity 150ms, transform 150ms, visibility 0s 150ms; }

@media (max-width: 759px) {
  .brand { gap: 7px; }
  .glyph { width: 18px; height: 25px; }
  .glyph path { stroke-width: 1.4; }
  .wordmark { font-size: 20px; }
  .wordmark-sm { font-size: 18px; }
  .tag { display: none; }
  .top-cta { padding: 0 18px; gap: 10px; font-size: 15px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* ---------- Email row (hero + invite): one ruled component ---------- */
.ef { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 520px; max-width: 100%; }
.ef-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  width: 100%; height: 62px;
  border: var(--rule); background: var(--white);
  text-align: left;
}
.ef-cell { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 18px; min-width: 0; cursor: text; }
.ef-label { font-size: 9px; line-height: 1.2; opacity: 0.6; }
.ef-cell input {
  width: 100%; min-width: 0; padding: 0; border: 0; background: none;
  font: 400 16px/1.2 var(--sans); color: var(--ink);
  outline: none;
}
.ef-cell input::placeholder { color: rgba(31, 26, 21, 0.45); opacity: 1; }
.ef-row:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.ef-go {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; margin: 0; border: 0; border-radius: 0;
  background: var(--ink); color: var(--cream);
  font: 600 16px/1 var(--sans); white-space: nowrap; cursor: pointer;
}
.ef-go:focus-visible { outline: 2px solid var(--tomato); outline-offset: -4px; }
.ef-go:disabled { cursor: default; }
.ef-note { font-size: 13px; line-height: 1.45; color: rgba(31, 26, 21, 0.72); text-align: center; }
.ef-note:empty { display: none; }
.ef.has-error .ef-row { border-color: var(--tomato); box-shadow: inset 0 0 0 1px var(--tomato); }
.ef.has-error .ef-note { color: var(--ink); font-weight: 500; }
.ef.has-error .ef-note::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--tomato); vertical-align: 1px; }
.ef.is-done .ef-cell input { color: rgba(31, 26, 21, 0.72); }
.ef.is-done .ef-note { color: var(--ink); }
@media (max-width: 759px) {
  .ef { width: 100%; }
  .ef-cell { padding: 0 14px; }
  .ef-go { padding: 0 16px; }
}

/* ---------- Hero ---------- */
.hero {
  /* Tighter on short windows, so the phone starts higher. */
  padding: clamp(36px, 6svh, 72px) 64px clamp(28px, 4.5svh, 56px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2.6svh, 24px);
  text-align: center;
}
.headline {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(30px, min(7.08vw, 10.6svh), 102px);
  line-height: 0.9; letter-spacing: -0.025em;
  display: flex; flex-direction: column; align-items: center;
}
.hl-line { display: block; white-space: nowrap; }

/* The rotating drink: one strip, one animation, so it can't drift. */
.rot {
  display: block; height: 1.32em; margin: -0.07em 0 -0.2em;
  color: var(--tomato);
  clip-path: inset(0 -100vw);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 .14em, #000 1.24em, transparent 1.32em);
          mask-image: linear-gradient(to bottom, transparent 0, #000 .14em, #000 1.24em, transparent 1.32em);
}
.strip { display: flex; flex-direction: column; align-items: center; }
.ri { display: flex; align-items: center; justify-content: center; height: 1.32em; line-height: 1; white-space: nowrap; padding-bottom: 0.08em; }
.gi {
  flex: none; width: 1.615em; height: 0.808em; margin-right: 0.21em;
  border: var(--rule); border-radius: 999px; overflow: hidden;
}
.gi img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.gi-high img { object-position: 50% 18%; }
@keyframes rot {
  0%, 16.667%     { transform: translateY(0); }
  20%, 36.667%    { transform: translateY(-16.6667%); }
  40%, 56.667%    { transform: translateY(-33.3333%); }
  60%, 76.667%    { transform: translateY(-50%); }
  80%, 96.667%    { transform: translateY(-66.6667%); }
  100%            { transform: translateY(-83.3333%); }
}
@media (prefers-reduced-motion: no-preference) {
  .strip { animation: rot 15s cubic-bezier(.65, 0, .35, 1) infinite; }
}
.lede { font-size: 20px; line-height: 1.5; }

@media (max-width: 759px) {
  .hero { padding: 30px var(--margin) 24px; gap: 16px; }
  .headline { font-size: clamp(30px, 9.6vw, 44px); } /* sized by "from what you have.", the widest line now the drinks are short */
  .gi { width: 1.69em; height: 0.875em; margin-right: 0.25em; }
  .lede { font-size: 16px; }
}

/* ---------- Hero stage: phone on an agave arch ---------- */
/* --u is one design pixel. The stage scales as a unit to the window: the whole phone fits below the
   header (it grows on big screens, shrinks on short laptops), and it narrows with the window below ~1180 px. */
.stage {
  --u: clamp(0.6px, min(100vw / 1180, (100svh - var(--head-h) - 48px) / 920), 1.3px);
  position: relative;
  height: calc(960 * var(--u));
  border-bottom: var(--rule);
  overflow: hidden;
}
.arch {
  position: absolute; left: 50%; top: calc(70 * var(--u));
  width: calc(660 * var(--u)); height: calc(930 * var(--u));
  transform: translateX(-50%);
  border-radius: calc(330 * var(--u)) calc(330 * var(--u)) 0 0;
  background: var(--agave);
}
.stage-phone { position: absolute; left: 50%; top: calc(28 * var(--u)); transform: translateX(-50%); }
.phone {
  --bezel: calc(8 * var(--u));
  width: calc(420 * var(--u));
  border: var(--bezel) solid var(--ink);
  border-radius: calc(46 * var(--u));
  background: var(--ink);
  overflow: hidden;
}
.screen {
  position: relative; aspect-ratio: 390 / 844; overflow: hidden; background: var(--cream);
  container-type: inline-size;
  --pt: calc(100cqw / 390); /* one app point: overlays are laid out in the screen's own 390 × 844 */
  isolation: isolate; /* the loop's frames stack inside the screen, under the icon tile */
}

/* ---------- Hero loop (main.js): real app frames stacked, the motion drawn over them ---------- */
.fr { position: absolute; inset: 0; visibility: hidden; }
.fr.is-on { visibility: visible; }
/* With motion, the phone shows the loop's first frame from the first paint (no jump from the still to the loop);
   reduced motion and no JS keep the still, Pour Mode at 2×. main.js hands over to its own .is-on. */
@media (prefers-reduced-motion: no-preference) {
  .js .fr-still { visibility: hidden; }
  .js .fr-first { visibility: visible; }
}
.fr > img, .fr > noscript > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fr > span { position: absolute; }

/* Search: the typed words appear a letter at a time (a cream mask over the field, with a caret), the faint headline after. */
.ty-mask { left: calc(44 * var(--pt)); top: calc(10 * var(--pt)); width: calc(288 * var(--pt)); height: calc(44 * var(--pt)); background: var(--cream); border-left: calc(1.5 * var(--pt)) solid var(--ink); }
.ty-hide { left: 0; right: 0; top: calc(66 * var(--pt)); height: calc(128 * var(--pt)); background: var(--cream); }

/* Scan: the camera, the boxes and tags, the tray. */
.cam > span { pointer-events: none; }
.cam-corners { inset: calc(64 * var(--pt)) calc(24 * var(--pt)) calc(164 * var(--pt)); --c: calc(22 * var(--pt)); --s: calc(2 * var(--pt));
  background:
    linear-gradient(var(--tomato), var(--tomato)) 0 0 / var(--c) var(--s), linear-gradient(var(--tomato), var(--tomato)) 0 0 / var(--s) var(--c),
    linear-gradient(var(--tomato), var(--tomato)) 100% 0 / var(--c) var(--s), linear-gradient(var(--tomato), var(--tomato)) 100% 0 / var(--s) var(--c),
    linear-gradient(var(--tomato), var(--tomato)) 0 100% / var(--c) var(--s), linear-gradient(var(--tomato), var(--tomato)) 0 100% / var(--s) var(--c),
    linear-gradient(var(--tomato), var(--tomato)) 100% 100% / var(--c) var(--s), linear-gradient(var(--tomato), var(--tomato)) 100% 100% / var(--s) var(--c);
  background-repeat: no-repeat; }
.cam-box, .cam-tag { opacity: 0; transition: opacity 200ms var(--out), transform 200ms var(--out); }
.cam-box { left: calc(var(--x) * var(--pt)); top: calc(var(--y) * var(--pt)); width: calc(var(--w) * var(--pt)); height: calc(var(--h) * var(--pt)); border: calc(2 * var(--pt)) solid var(--tomato); transform: scale(1.06); }
.cam-tag {
  left: calc(var(--x) * var(--pt)); top: calc(var(--y) * var(--pt)); transform: translateY(6px);
  padding: 0.25em 0.7em; border-radius: 999px; background: var(--tomato); color: #fff; white-space: nowrap;
  font: 500 max(10px, calc(15 * var(--pt)))/1.3 var(--sans);
}
.cam-tag::before { content: '✓ '; }
.cam-tag-r { left: auto; right: calc((390 - var(--x)) * var(--pt)); }
.cam.tagged-1 .cam-box:nth-of-type(2), .cam.tagged-1 .cam-tag:nth-of-type(5),
.cam.tagged-2 .cam-box:nth-of-type(3), .cam.tagged-2 .cam-tag:nth-of-type(6),
.cam.tagged-3 .cam-box:nth-of-type(4), .cam.tagged-3 .cam-tag:nth-of-type(7) { opacity: 1; transform: none; }
.cam-line { left: 0; right: 0; top: calc(64 * var(--pt)); height: calc(2 * var(--pt)); background: var(--tomato); opacity: 0; }
.cam.reading .cam-line { opacity: 1; animation: sweep 1.5s ease-in-out infinite alternate; }
@keyframes sweep { to { transform: translateY(calc(616 * var(--pt))); } }
.cam-pill {
  left: 50%; top: calc(20 * var(--pt)); transform: translate(-50%, -6px); opacity: 0; transition: opacity 200ms var(--out), transform 200ms var(--out);
  padding: 0.5em 1em; border-radius: 999px; background: rgba(31, 26, 21, 0.75); color: var(--cream); white-space: nowrap;
  font: 500 max(9px, calc(13 * var(--pt)))/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.cam.reading .cam-pill { opacity: 1; transform: translate(-50%, 0); }
.cam-bar { left: 0; right: 0; bottom: 0; height: calc(140 * var(--pt)); background: var(--ink); display: grid; place-items: center; }
.cam-shutter { width: calc(66 * var(--pt)); height: calc(66 * var(--pt)); border-radius: 50%; background: var(--cream); outline: calc(2 * var(--pt)) solid var(--cream); outline-offset: calc(4 * var(--pt)); }
.cam-flash { inset: 0; background: #fff; opacity: 0; }
.cam-tray {
  left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  padding: calc(18 * var(--pt)) calc(16 * var(--pt)) calc(34 * var(--pt));
  background: var(--cream); border-top: 1px solid var(--ink);
  transform: translateY(100%); transition: transform 320ms var(--out);
  font: 500 max(9px, calc(17 * var(--pt)))/1.3 var(--sans);
}
.cam.found .cam-tray { transform: none; }
.cam-found { font: 500 max(7px, calc(11 * var(--pt)))/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: calc(10 * var(--pt)); }
.cam-row { display: flex; justify-content: space-between; align-items: baseline; padding: calc(7 * var(--pt)) 0; border-top: 1px solid rgba(31, 26, 21, 0.2); }
.cam-row em { font: 500 max(7px, calc(10 * var(--pt)))/1 var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.cam-go {
  display: flex; justify-content: space-between; align-items: center; margin-top: calc(14 * var(--pt));
  height: calc(52 * var(--pt)); padding: 0 calc(22 * var(--pt)); border-radius: 999px; background: var(--ink); color: var(--cream);
}
.cam-go svg { width: calc(20 * var(--pt)); height: calc(20 * var(--pt)); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* The app's own motion, redrawn: a piece of a frame (its rect in app points) moves over a cover that hides the original. */
.pc { left: calc(var(--x) * var(--pt)); top: calc(var(--y) * var(--pt)); width: calc(var(--w) * var(--pt)); height: calc(var(--h) * var(--pt)); }
.pc-img { background-size: calc(390 * var(--pt)) calc(844 * var(--pt)); background-position: calc(var(--x) * -1 * var(--pt)) calc(var(--y) * -1 * var(--pt)); }
.pc-clip { overflow: hidden; }
.pc-clip > .pc-img { position: absolute; inset: 0; background-position: calc(var(--x) * -1 * var(--pt)) calc(var(--y) * -1 * var(--pt)); }

/* Pause / play for the loop (WCAG 2.2.2 asks for a way to stop it; an icon with an accessible name is enough).
   Anchored to the stage's bottom-right corner, so it sits at the window's edge at any width. */
.loop-btn {
  position: absolute; z-index: 3; right: var(--margin); bottom: 16px;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: var(--rule); border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer;
}
.loop-btn svg { width: 14px; height: 14px; fill: currentColor; }
.loop-btn .i-play, .loop-btn.is-paused .i-pause { display: none; }
.loop-btn.is-paused .i-play { display: block; }
.loop-btn:hover { background: var(--white); }

/* A tap: tomato ring, a light fill, a thin cream ring outside; presses in, then grows as it fades. */
.tap {
  position: absolute; z-index: 9999; left: 0; top: 0; width: calc(46 * var(--pt)); height: calc(46 * var(--pt)); margin: calc(-23 * var(--pt)) 0 0 calc(-23 * var(--pt));
  border-radius: 50%; border: 2px solid var(--tomato); background: rgba(226, 70, 43, 0.32); outline: 1.5px solid rgba(241, 235, 221, 0.9);
  opacity: 0; pointer-events: none;
}
.icon-tile { overflow: hidden; border: var(--rule); background: var(--cream); }
.icon-tile svg { display: block; width: 100%; height: 100%; }
.stage .icon-tile {
  position: absolute; z-index: 2; left: calc(360 * var(--u)); top: calc(-20 * var(--u)); /* over the phone */
  width: calc(120 * var(--u)); height: calc(120 * var(--u));
  border-radius: calc(27 * var(--u));
}

/* Callouts: one at a time, each with a leader and a tomato dot pointing at the phone. */
.co {
  position: absolute; top: calc(var(--top) * var(--u)); width: calc(300 * var(--u));
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 250ms var(--out), transform 250ms var(--out), visibility 0s 250ms;
}
.co.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 250ms var(--out), transform 250ms var(--out); }
.co-l { right: calc(50% + 250 * var(--u)); text-align: right; align-items: flex-end; transform: translateX(12px); }
.co-r { left: calc(50% + 250 * var(--u)); text-align: left; align-items: flex-start; transform: translateX(-12px); }
.co-head { font-family: var(--section); font-weight: 900; font-size: max(22px, calc(34 * var(--u))); line-height: 0.95; letter-spacing: -0.02em; }
.co-body { font-size: 15px; line-height: 1.45; opacity: 0.85; }
.co-lead { position: absolute; top: 18px; width: calc(96 * var(--u)); height: 1px; background: var(--ink); }
.co-lead::after { content: ''; position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); }
.co-l .co-lead { right: calc(-96 * var(--u)); }
.co-l .co-lead::after { right: -5px; }
.co-r .co-lead { left: calc(-96 * var(--u)); }
.co-r .co-lead::after { left: -5px; }

/* Mobile one-liner under the phone (same beats). */
.mco { display: none; }

@media (max-width: 759px) {
  .stage { height: 530px; }
  .arch { top: 40px; width: 300px; height: 530px; border-radius: 150px 150px 0 0; }
  .stage-phone { top: 24px; }
  .phone { --bezel: 5px; width: 230px; border-radius: 25px; }
  .stage .icon-tile { left: 186px; top: -14px; width: 66px; height: 66px; border-radius: 15px; }
  .loop-btn { bottom: 12px; width: 34px; height: 34px; }
  .callouts { display: none; }
  /* The caption band: a leader drops from the stage's rule (dot at the phone end, like the desktop callouts),
     the line is centred under it, and a rule closes the module. */
  .mco { display: block; position: relative; height: 76px; border-bottom: var(--rule); }
  .mco::before { content: ''; position: absolute; left: calc(50% - 0.5px); top: 0; width: 1px; height: 22px; background: var(--ink); }
  .mco::after { content: ''; position: absolute; z-index: 1; left: calc(50% - 4.5px); top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); }
  .mco p {
    position: absolute; inset: 28px var(--margin) auto; display: flex; justify-content: center; text-align: center; line-height: 1.1;
    font-family: var(--section); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; white-space: nowrap;
    opacity: 0; transform: translateY(10px);
    transition: opacity 250ms var(--out), transform 250ms var(--out);
  }
  .mco p.is-on { opacity: 1; transform: none; }
  .mco p.is-out { opacity: 0; transform: translateY(-10px); }
  .mco i { display: none; }
}

/* ---------- Three features: one grid, subgrid rows keep them aligned ---------- */
.feats {
  --u: min(1px, calc(100vw / 1440));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto;
  border-bottom: var(--rule);
}
.feat {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px;
  justify-items: center; text-align: center;
  padding: 56px clamp(16px, 1.7vw, 24px) 0;
  border-left: var(--rule);
  min-width: 0;
}
.feat:first-child { border-left: 0; }
.feat-ink { background: var(--ink); color: var(--cream); }
.feat-head {
  align-self: end;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(26px, 2.78vw, 40px); line-height: 0.92; letter-spacing: -0.025em;
  text-wrap: balance;
}
.feat-body { font-size: 16px; line-height: 1.5; opacity: 0.85; max-width: 340px; text-wrap: balance; }
.feat-body .short { display: none; }
.feat-shot { position: relative; padding-top: 18px; align-self: end; }
.fphone {
  width: calc(300 * var(--u)); height: calc(470 * var(--u));
  overflow: hidden;
  border: calc(8 * var(--u)) solid var(--ink); border-bottom: 0;
  border-radius: calc(33 * var(--u)) calc(33 * var(--u)) 0 0;
  background: var(--ink);
}
.fphone img { width: 100%; height: auto; }
.feat-ink .fphone { outline: 1px solid rgba(241, 235, 221, 0.35); }

/* Column 3: the snapshot card over the phone's right edge, beside the header's empty space. */
.snap {
  position: absolute; z-index: 2;
  right: calc(-80 * var(--u) + 6px); top: calc(18px + 168 * var(--u)); /* below "Order the Sunny Side." */
  width: calc(160 * var(--u));
  background: var(--cream); border: var(--rule);
  padding: calc(7 * var(--u)) calc(7 * var(--u)) 0;
}
.snap img { width: 100%; height: auto; aspect-ratio: 146 / 172; object-fit: cover; object-position: 52% 58%; }
.snap figcaption { display: flex; justify-content: space-between; font-size: 9px; padding: 9px 0 8px; }
.snap-dot { color: var(--tomato); }

@media (max-width: 899px) {
  .feats { grid-template-columns: 1fr; grid-template-rows: none; }
  .feat { grid-row: auto; grid-template-rows: none; border-left: 0; border-top: var(--rule); padding: 28px var(--margin) 0; }
  .feat:first-child { border-top: 0; }
  .feat-head { font-size: 30px; }
  .feat-body { font-size: 15px; }
  .feat-body .long { display: none; }
  .feat-body .short { display: inline; }
  .feat-shot { padding-top: 8px; }
  .fphone { width: 200px; height: 230px; border-width: 5px; border-bottom: 0; border-radius: 25px 25px 0 0; } /* the hero phone's bezel */
  .snap { right: -72px; top: calc(8px + 58px); width: 88px; padding: 5px 5px 0; }
  .snap figcaption { font-size: 7px; padding: 7px 0 6px; }
}

/* ---------- Library carousel ---------- */
.library { padding-top: 56px; }
.lib-head {
  max-width: 980px; margin: 0 auto; padding: 0 64px 32px; text-align: center;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(28px, 3.9vw, 56px); line-height: 0.92; letter-spacing: -0.025em;
  text-wrap: balance;
}
.car {
  overflow: hidden;
  border-top: var(--rule); border-bottom: var(--rule);
  cursor: grab;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.car:focus-visible { outline-offset: -3px; }
.car.drag { cursor: grabbing; }
/* The DRAG circle: over the row, the mouse's cursor is hidden and this follows it. The outer layer only moves (set
   straight from the pointer, no transition, so it never trails); the inner circle grows and shrinks in place. */
@media (hover: hover) and (pointer: fine) { .js .car { cursor: none; } }
.car-cur { position: fixed; z-index: 100; left: 0; top: 0; pointer-events: none; will-change: transform; }
.car-cur span {
  position: absolute; left: -42px; top: -42px; width: 84px; height: 84px;
  display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--cream);
  font: 600 12px/1 var(--mono); letter-spacing: 0.12em;
  transform: scale(0); opacity: 0; transition: transform 220ms var(--out), opacity 160ms var(--out);
}
.car-cur.is-on span { transform: scale(1); opacity: 1; }
.car-cur.is-on.is-down span { transform: scale(0.86); }

.car img { pointer-events: none; -webkit-user-drag: none; }
.tr { display: flex; width: max-content; will-change: transform; }
.card { flex: none; width: 240px; border-right: var(--rule); }
.card img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 30%; }
.card-txt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; align-items: end;
  min-width: 0; padding: 12px 14px 16px; border-top: var(--rule);
}
.card-txt p { grid-column: 1; }
/* The drink's glass, drawn like the app's (scripts/site-glasses.mjs): tomato line, 1.5 px at any size. */
.card-glass { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 45px; fill: none; stroke: var(--tomato); stroke-linecap: round; stroke-linejoin: round; }
.card-glass path { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.card-name, .card-credit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name { font-family: var(--section); font-weight: 900; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; }
.card-credit { font-size: 10px; line-height: 1.4; opacity: 0.72; }
@media (max-width: 759px) {
  .library { padding-top: 28px; }
  .lib-head { padding: 0 var(--margin) 16px; }
  .card { width: 170px; }
  .card img { height: 170px; }
  .card-txt { row-gap: 4px; padding: 10px 12px; }
  .card-glass { width: 29px; height: 36px; }
  .card-name { font-size: 18px; }
  .card-credit { font-size: 9px; }
}

/* ---------- Invite ---------- */
.invite {
  padding: 96px 64px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
}
.icon-lg { width: 150px; height: 150px; border-radius: 34px; }
.inv-head { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6.1vw, 88px); line-height: 0.92; letter-spacing: -0.025em; }
.inv-line { font-size: 17px; line-height: 1.5; max-width: 520px; }
@media (max-width: 759px) {
  .invite { padding: 40px var(--margin); gap: 16px; }
  .icon-lg { width: 88px; height: 88px; border-radius: 20px; }
}

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 20px var(--margin); border-top: var(--rule); }
.foot .mono { font-size: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { text-underline-offset: 3px; }
.foot-note { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: rgba(31, 26, 21, 0.72); }
.ef-note a { color: inherit; text-underline-offset: 2px; }

/* ---------- Privacy page ---------- */
.doc { max-width: 680px; margin: 0 auto; padding: 56px var(--margin) 72px; }
.doc-kicker { font-size: 11px; opacity: 0.72; }
.doc h1 { margin: 10px 0 16px; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 72px); line-height: 0.92; letter-spacing: -0.025em; }
.doc-lede { font-size: 20px; line-height: 1.45; }
.doc h2 { margin: 36px 0 8px; font-family: var(--section); font-weight: 900; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.doc p + p { margin-top: 10px; }
.doc a { text-underline-offset: 3px; }
.doc-home { margin-top: 28px; font-size: 18px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .co, .mco p, .top-cta { transition: none !important; }
  .cam-line { animation: none !important; }
}
