/* ==========================================================================
   main.css — layout and components.

   RULE: no literal colours, fonts, radii or shadows in this file. Everything
   reads a token from theme.css. If you need a new value, add a token there.
   That rule is what makes a rebrand a one-file edit.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  letter-spacing: var(--body-tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-body); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--accent-line);
    text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--accent); }
img, svg, video { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--section-y) 0; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto;
        padding-inline: var(--gutter); }
.prose { max-width: var(--wrap-prose); }
.section { padding-block: var(--section-y); }
.section--sunken { background: var(--paper-2);
  border-block: 1px solid var(--rule); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- eyebrow / section label --------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; border-radius: 2px;
  background: var(--accent); flex: none;
}
.eyebrow--plain::before { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.16rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; flex: none;
}
.brand img { border-radius: var(--r-sm); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.site-nav__links { display: flex; align-items: center; gap: .25rem; }
.site-nav__links a {
  display: block; padding: .45rem .7rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.site-nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav__links a[aria-current="true"] { color: var(--ink); background: var(--accent-soft); }

.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--rule); border-radius: var(--r-sm);
  cursor: pointer; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 50%; width: 17px; height: 1.8px;
  background: var(--ink); border-radius: 2px;
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { top: 50%; translate: 0 -50%; }
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after  { content: ""; top:  6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; rotate: -45deg; }

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .site-nav__links {
    position: absolute; inset: 100% 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1rem; box-shadow: var(--shadow);
  }
  .site-nav__links[data-open] { display: flex; }
  .site-nav__links a { padding: .75rem .3rem; font-size: 1rem;
    border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav__links a:last-child { border-bottom: 0; }
  .site-header .btn--nav { display: none; }
}

/* ==========================================================================
   Buttons & App Store badge
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 650;
  letter-spacing: -.006em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--accent)); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--nav { padding: .5rem 1rem; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }

.appstore { display: inline-block; line-height: 0; transition: transform .18s var(--ease); }
.appstore:hover { transform: translateY(-1px); }
.appstore img { height: 52px; width: auto; }
.appstore--sm img { height: 42px; }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.15rem;
}

/* Rating, shown with its sample size. 22 ratings is small — hiding the count
   would read as a dodge, and the count is checked against app.md on rebuild. */
.rating { display: flex; align-items: center; gap: .5rem;
  font-size: var(--fs-sm); color: var(--muted); }
.rating__stars { color: var(--accent); letter-spacing: .08em; font-size: 1rem; }
.rating strong { color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(2.6rem, 1.4rem + 5vw, 5.5rem) var(--section-y); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(58% 46% at 78% 8%,  color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(46% 40% at 4% 88%,  color-mix(in srgb, var(--pro)    9%, transparent), transparent 72%);
}
.hero__grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
}
.hero h1 { font-size: var(--fs-display); margin-bottom: .3em; }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; }
.hero__cta { margin-top: 1.9rem; }
.hero__note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--muted); }

/* Phone frame. Drawn in CSS so there is no chrome PNG to ship or to go stale. */
.phone {
  --phone-w: min(300px, 76vw);
  width: var(--phone-w); margin-inline: auto; position: relative;
  border-radius: calc(var(--phone-w) * .132);
  padding: calc(var(--phone-w) * .031);
  background: linear-gradient(160deg, #3A3733, #14120F 42%, #2B2825);
  box-shadow: var(--shadow-lg);
}
.phone::after {
  content: ""; position: absolute; top: calc(var(--phone-w) * .058); left: 50%;
  translate: -50% 0; width: 31%; height: calc(var(--phone-w) * .057);
  background: #0B0A09; border-radius: var(--r-pill); z-index: 2;
}
.phone img {
  width: 100%; border-radius: calc(var(--phone-w) * .103); display: block;
  background: var(--paper-2);
}
.hero__phones { display: flex; align-items: center; justify-content: center; }

/* The hero graphic. Bottles blooming into the drinks they make — drawn from
   the same colour data the rest of the site uses, so it can never go stale
   the way a screenshot does. */
.hero__art { display: flex; align-items: center; justify-content: center; }
.hero-art { width: min(480px, 100%); height: auto; overflow: visible; }
/* Menu typography. Set in px because SVG text does not inherit the fluid rem
   scale, and the card is scaled as a whole by the viewBox instead. */
.hm-title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 30px; letter-spacing: .14em; text-transform: uppercase;
}
.hm-name {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 18px; letter-spacing: -.01em;
}
.hm-sec {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.hm-chip {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
}
.hm-foot {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase;
}
/* The glasses fade up in sequence on load. Purely decorative, and the
   reduced-motion block at the top of this file disables it wholesale. */
.hero-art .hm-row { animation: bloom .6s var(--ease) backwards; }
.hero-art .hm-row:nth-of-type(1) { animation-delay: .05s }
.hero-art .hm-row:nth-of-type(2) { animation-delay: .11s }
.hero-art .hm-row:nth-of-type(3) { animation-delay: .17s }
.hero-art .hm-row:nth-of-type(4) { animation-delay: .23s }
.hero-art .hm-row:nth-of-type(5) { animation-delay: .29s }
.hero-art .hm-row:nth-of-type(6) { animation-delay: .35s }
.hero-art .hm-row:nth-of-type(7) { animation-delay: .41s }
.hero-art .hm-row:nth-of-type(8) { animation-delay: .47s }
.hero-art .hm-row:nth-of-type(9) { animation-delay: .53s }
.hero-art .hm-row:nth-of-type(10) { animation-delay: .59s }
.hero-art .hm-row:nth-of-type(11) { animation-delay: .65s }
@keyframes bloom {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__phones, .hero__art { order: -1; }
  .phone { --phone-w: min(250px, 62vw); }
  .hero-art { width: min(420px, 96%); }
}

/* ==========================================================================
   Stat bar
   ========================================================================== */
.statbar { border-block: 1px solid var(--rule); background: var(--paper-2); }
.statbar__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--rule);
}
.stat { background: var(--paper-2); padding: 1.5rem 1.15rem; text-align: center; }
.stat__n {
  display: block; font-family: var(--font-display);
  font-weight: var(--display-weight); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  line-height: 1; color: var(--ink); letter-spacing: -.03em;
}
.stat__l { display: block; margin-top: .45rem; font-size: var(--fs-xs);
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.grid--tight { gap: .7rem; }

.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 1.3rem;
  transition: border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover { border-color: var(--accent-line); transform: translateY(-2px);
  box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .3rem; }
.card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* Drink card. The colour swatch is the drink's own hex — the only artwork
   the design needs, and it is already in the data. */
.dcard {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r); text-decoration: none; color: inherit; display: block;
  transition: border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.dcard:hover { border-color: var(--accent-line); transform: translateY(-2px);
  box-shadow: var(--shadow); }
.dcard__img {
  aspect-ratio: 1; width: 100%; object-fit: cover; display: block;
  background: var(--swatch, var(--paper-2));
  border-bottom: 1px solid var(--rule);
}
.dcard__ph { aspect-ratio: 1; display: grid; place-items: center;
  background: var(--swatch, var(--paper-2)); border-bottom: 1px solid var(--rule); }
.dcard__body { padding: .85rem .95rem 1rem; }
.dcard__name { font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.02rem; color: var(--ink); line-height: 1.22; margin: 0 0 .25rem; }
.dcard__meta { font-size: var(--fs-xs); color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.dcard__bar { height: 3px; background: var(--swatch, var(--accent)); }

/* Bottle / spirit tile */
.bottle {
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1.1rem; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r);
  text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s var(--ease);
}
.bottle:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.bottle__sw { width: 30px; height: 30px; border-radius: var(--r-sm); flex: none;
  background: var(--swatch, var(--accent)); border: 1px solid rgba(0,0,0,.09); }
.bottle__n { font-weight: 650; color: var(--ink); line-height: 1.2;
  font-size: var(--fs-sm); }
.bottle__c { font-size: var(--fs-xs); color: var(--muted); }

/* ==========================================================================
   Chips & pills
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0;
  list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .3rem .68rem; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--rule);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
a.chip:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.chip__dot { width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--swatch, var(--accent)); flex: none; }
.chip--pro { color: var(--pro); border-color: color-mix(in srgb, var(--pro) 35%, var(--rule));
  background: color-mix(in srgb, var(--pro) 9%, transparent); }
.chip--free { color: var(--free); border-color: color-mix(in srgb, var(--free) 35%, var(--rule));
  background: color-mix(in srgb, var(--free) 9%, transparent); }
.chip--accent { background: var(--accent-soft); border-color: var(--accent-line);
  color: var(--ink); }

/* ==========================================================================
   Breadcrumbs & page head
   ========================================================================== */
.crumbs { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 1.4rem;
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs__sep { opacity: .5; }

.phead { padding-block: clamp(1.8rem, 1.2rem + 2vw, 3rem) 0; }
.phead__rule { width: 3rem; height: 4px; border-radius: 4px;
  background: var(--accent); margin-bottom: 1.15rem; }
.phead__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch;
  margin-top: -.15em; }

/* ==========================================================================
   Recipe page
   ========================================================================== */
.recipe { display: grid; gap: clamp(1.6rem, 1rem + 2.5vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
@media (max-width: 880px) { .recipe { grid-template-columns: 1fr; } }

.recipe__hero {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg);
  border: 1px solid var(--rule); background: var(--swatch, var(--paper-2));
}
.recipe__ph { aspect-ratio: 1; border-radius: var(--r-lg);
  border: 1px solid var(--rule); background: var(--swatch, var(--paper-2));
  display: grid; place-items: center; }
.recipe__credit { font-size: var(--fs-xs); color: var(--muted); margin-top: .6rem; }

.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--r); overflow: hidden; margin: 1.5rem 0;
}
.meta-grid > div { background: var(--surface); padding: .85rem .7rem; text-align: center; }
.meta-grid dt { font-size: var(--fs-xs); letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.meta-grid dd { margin: 0; font-weight: 650; color: var(--ink); font-size: var(--fs-sm); }

.ing-list { list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--rule); }
.ing-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .68rem .2rem; border-bottom: 1px solid var(--rule);
}
.ing-list__n { flex: 1; color: var(--ink); font-weight: 550; }
.ing-list__n a { text-decoration: none; }
.ing-list__n a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ing-list__q { color: var(--muted); font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm); white-space: nowrap; }
.ing-list__g { font-size: var(--fs-xs); color: var(--muted); font-style: italic; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative;
  padding: 0 0 1.05rem 2.6rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.06em;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--ink); display: grid; place-items: center;
  font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps li:last-child { padding-bottom: 0; }

.related { list-style: none; margin: 0; padding: 0; }
.related li { display: flex; gap: 1rem; padding: .95rem 0;
  border-bottom: 1px solid var(--rule); align-items: center; }
.related__thumb { flex: none; line-height: 0; border-radius: var(--r);
  overflow: hidden; border: 1px solid var(--rule); display: block;
  width: 76px; height: 76px; background: var(--swatch, var(--paper-2)); }
.related__img, .related__img__ph {
  width: 76px; height: 76px; object-fit: cover; display: block;
  background: var(--swatch, var(--paper-2));
}
.related__body { min-width: 0; }
.related__n { font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.related__n:hover { text-decoration: underline;
  text-decoration-color: var(--accent); }
.related__d { font-size: var(--fs-sm); color: var(--muted); margin: .25rem 0 0; }
@media (max-width: 520px) {
  .related__thumb, .related__img, .related__img__ph { width: 58px; height: 58px; }
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-scroll { overflow-x: auto; margin: 1.4rem 0;
  border: 1px solid var(--rule); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: .78rem .95rem;
  border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 650; background: var(--paper-2);
  white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
.td-n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ==========================================================================
   Answer card — the lead block on substitution pages
   ========================================================================== */
.answer {
  border: 1px solid var(--accent-line); border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: var(--r);
  padding: 1.25rem 1.4rem; margin: 1.5rem 0;
}
.answer__l { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .5rem; font-weight: 650; }
.answer p { color: var(--ink); font-size: var(--fs-lead); line-height: 1.5; }

/* ==========================================================================
   CTA blocks
   ========================================================================== */
.cta {
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--surface); padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  margin: clamp(2rem, 1.4rem + 2vw, 3rem) 0; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--accent); }
.cta h2, .cta h3 { margin-bottom: .4rem; }
.cta p { color: var(--muted); max-width: 56ch; }
.cta .cta-row { margin-top: 1.2rem; }

.cta--band {
  border-radius: 0; border-inline: 0; border-color: var(--rule);
  background: var(--paper-2); margin: 0; padding-block: var(--section-y);
}
.cta--band::before { display: none; }
.cta--band .wrap { text-align: center; }
.cta--band h2 { font-size: var(--fs-h1); }
.cta--band p { margin-inline: auto; }
.cta--band .cta-row { justify-content: center; }

/* The closing CTA. Last thing on a content page, so it carries more weight
   than the inline one and drops the left accent bar for a full tint. */
.cta--close {
  background: var(--accent-soft); border-color: var(--accent-line);
  padding: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  margin-top: clamp(2.4rem, 1.6rem + 2.5vw, 3.6rem);
}
.cta--close::before { display: none; }
.cta--close h2 { font-size: var(--fs-h2); }
.cta--close p { color: var(--ink-2); }

/* ==========================================================================
   Explore hub
   ========================================================================== */
.explore-sec { padding-block: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  border-bottom: 1px solid var(--rule); }
.explore-sec:first-of-type { padding-top: 0; }
.explore-sec__head {
  display: flex; align-items: flex-end; gap: 1.5rem;
  margin-bottom: 1.4rem; flex-wrap: wrap;
}
.explore-sec__head h2 { margin-bottom: .3rem; }
.explore-sec__blurb { color: var(--muted); font-size: var(--fs-sm);
  max-width: 58ch; margin: 0; }
.explore-sec__more { margin-left: auto; flex: none; }
.explore-sec__foot {
  display: none; margin-top: 1.1rem; font-weight: 650;
  color: var(--ink); text-decoration: none;
}
.explore-sec h3 { margin-bottom: .5rem; }
.card__n { margin-top: .6rem !important; color: var(--accent);
  font-weight: 650; font-size: var(--fs-sm); }
@media (max-width: 620px) {
  .explore-sec__more { display: none; }
  .explore-sec__foot { display: inline-block; }
}

/* Sticky mobile bar. Desktop has the header button; phones do not. */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: none;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  align-items: center; gap: .85rem;
}
.sticky-cta__t { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; flex: 1; }
.sticky-cta__t strong { display: block; color: var(--ink); font-size: var(--fs-sm); }
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.6rem; }
}

/* ==========================================================================
   Steps / how it works
   ========================================================================== */
.hiw { display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: h; }
.hiw__i { counter-increment: h; }
.hiw__n {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font-weight: 700; font-size: var(--fs-sm); margin-bottom: .9rem;
}
.hiw__n::before { content: counter(h); }
.hiw h3 { margin-bottom: .35rem; }
.hiw p { font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   Screenshot scroller
   ========================================================================== */
.shots {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem var(--gutter) 1.6rem; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.shots > * { scroll-snap-align: center; flex: none; }
/* These screenshots already contain an iPhone. Framing them in .phone again
   produced a phone inside a phone, so they get a plain card instead. */
.shot { margin: 0; width: 246px; }
.shot img {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--rule); box-shadow: var(--shadow);
  background: var(--paper-2);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem .2rem;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-h3); color: var(--ink);
  display: flex; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none;
  width: .62rem; height: .62rem; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -.15rem;
  transition: rotate .25s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 .1rem; }
.faq__a { padding: 0 .2rem 1.3rem; max-width: var(--wrap-prose); }
.faq__a p { color: var(--ink-2); }

/* ==========================================================================
   Link lists & A–Z index
   ========================================================================== */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--rule); }
.linklist a {
  display: flex; align-items: baseline; gap: .8rem; padding: .8rem .2rem;
  text-decoration: none; color: var(--ink-2);
}
.linklist a:hover { color: var(--ink); }
.linklist a::before { content: "›"; color: var(--accent); font-weight: 700; flex: none; }
.linklist__n { margin-left: auto; font-size: var(--fs-xs); color: var(--muted);
  font-variant-numeric: tabular-nums; flex: none; }

.azbar { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.2rem 0 2rem; }
.azbar a {
  display: grid; place-items: center; min-width: 2rem; height: 2rem;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 650; text-decoration: none;
  color: var(--ink-2); background: var(--surface);
}
.azbar a:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* ==========================================================================
   Prose (guides)
   ========================================================================== */
.prose h2 { margin-top: 2.3em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.5em 0; padding: .2em 0 .2em 1.3em;
  border-left: 3px solid var(--accent); color: var(--muted); font-style: italic;
}
.prose code { font-family: var(--font-mono); font-size: .88em;
  background: var(--paper-2); padding: .12em .35em; border-radius: var(--r-sm); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--rule); background: var(--paper-2);
  padding-block: var(--section-y) 2rem; margin-top: var(--section-y);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 2.4rem;
}
.site-footer h4 { font-family: var(--font-body); font-size: var(--fs-xs);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .85rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal { border-top: 1px solid var(--rule); padding-top: 1.5rem;
  font-size: var(--fs-xs); color: var(--muted); }
.footer__legal p { margin-bottom: .7rem; max-width: 90ch; }

/* Required by the app's 17+ alcohol rating. Do not remove. */
.drink-responsibly {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .8rem; border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill); font-weight: 650; color: var(--ink-2);
  font-size: var(--fs-xs); margin-bottom: 1rem;
}

@media print {
  .site-header, .site-footer, .sticky-cta, .cta, .shots { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}
