/* Colours and type come from the iOS app (Cocktails/Views/Components.swift, enum Theme):
   chrome and paper are the two inks, every section sits on a cocktail tint the way a
   poster does, and the ink on it is picked by the same luminance rule (≤ 0.2 → paper).
   The layout is Puuunch's drawing: one 1200px column bounded by rules, numbered bands
   between sections, "+" marks where the lines cross — but drawn in the app's 2px ink. */
:root {
  --chrome: #0E0E0C;
  --paper: #F4F2EC;
  --orange: #FF6B35;   /* Theme.defaultTint */
  --lime: #D7F25C;     /* Theme.barTint */
  --pink: #FFB3CF;     /* Theme.favoritesTint */
  --rule: 2px;
  --col: 1200px;
  --gutter: 16px;
  --bg: var(--paper);   /* one fixed page colour; only the phone preview changes */
  --ink: var(--chrome);
  --poster: "Archivo", "SF Pro Display", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Surfaces: a section sets --bg/--ink, everything inside follows ---------- */
.surface { background: transparent; }

/* ---------- Type ---------- */
.poster {
  font-family: var(--poster);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
  margin: 0;
}
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
}
.lead { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 0; text-wrap: pretty; }
.body { font-size: 15.5px; font-weight: 500; line-height: 1.5; margin: 0; text-wrap: pretty; }
.muted { opacity: .72; }

/* ---------- The column and its rules ---------- */
.col {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
}
.ruled-top { border-top: var(--rule) solid var(--ink); }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 28px; } }


/* Numbered band between sections, like a sheet number */
.band { scroll-margin-top: 60px; padding-top: 64px; }
.band .col { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.band h2, .band p, .band span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.band span { opacity: .7; }

/* ---------- Controls, as in the app ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  border: var(--rule) solid var(--ink);
  background: var(--ink); color: var(--bg);
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .5s, color .5s, border-color .5s;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.98); }
.pill.ghost { background: transparent; color: var(--ink); }
.pill svg { width: 18px; height: 18px; fill: currentColor; }
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  border: var(--rule) solid color-mix(in srgb, var(--ink) 45%, transparent);
  background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:hover { border-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--bg); }
header.site .col { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-size: 30px; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.logo i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
nav.main { display: none; gap: 2px; margin-left: 8px; }
nav.main a { padding: 8px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; opacity: .8; }
nav.main a:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 14%, transparent); }
header.site .pill { margin-left: auto; height: 40px; padding: 0 16px; font-size: 12.5px; }
@media (min-width: 900px) { nav.main { display: flex; } }

/* ---------- Hero ---------- */
.hero .col { display: grid; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(68px, 12.5vw, 156px); }
.hero h1 span { display: block; }
.tag { border: var(--rule) solid var(--ink); border-radius: 999px; padding: 6px 12px; }
.hero .lead { max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-phone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px var(--gutter) 56px; }
@media (min-width: 960px) {
  .hero .col { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero-copy { padding-top: 96px; padding-bottom: 96px; justify-content: center; }
  .hero-phone { padding-top: 56px; }
}
.hero-hint { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 300px; }
.hero-hint::before, .hero-hint::after { content: ""; flex: 1; height: var(--rule); background: var(--ink); opacity: .35; }

/* The phone: the app's poster screen, drawn in HTML */
.phone {
  width: 300px; height: 620px; flex: none;
  border-radius: 50px; padding: 10px;
  background: var(--chrome);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper) 18%, transparent) inset, 0 40px 80px -30px rgba(0,0,0,.55);
  cursor: pointer; border: 0; font: inherit; text-align: left;
}
.screen {
  --bg: var(--orange); --ink: var(--chrome);
  position: relative; height: 100%; overflow: hidden;
  border-radius: 40px;
  background: var(--bg); color: var(--ink);
  transition: background-color .5s ease, color .5s ease;
  display: flex; flex-direction: column;
  padding: 0 14px;
}
.sb { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 12px; font-size: 13px; font-weight: 700; }
.sb .island { width: 84px; height: 24px; border-radius: 99px; background: var(--chrome); }
.app-head { display: flex; align-items: center; gap: 6px; }
.app-head .poster { font-size: 24px; margin-right: auto; }
.mini-circle { width: 28px; height: 28px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent); display: grid; place-items: center; }
.mini-circle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3; }
.mini-pill { height: 28px; padding: 0 9px; border-radius: 99px; border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent); font-size: 9.5px; font-weight: 800; display: flex; align-items: center; letter-spacing: .04em; }
.mini-chips { display: flex; gap: 4px; margin: 8px -14px 0; padding: 0 14px; overflow: hidden; }
.mini-chips span { flex: none; padding: 4px 8px; border-radius: 99px; border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent); font-size: 9px; font-weight: 800; letter-spacing: .03em; }
.mini-chips span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.poster-card { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 12px 0 76px; }
.poster-card .top { display: flex; justify-content: space-between; align-items: center; }
.poster-card .kicker { font-size: 9px; }
.badge { font-size: 9px; font-weight: 900; letter-spacing: .08em; padding: 3px 7px; border-radius: 99px; background: var(--ink); color: var(--bg); transition: background-color .5s, color .5s; }
.poster-card .p-name { font-size: 66px; margin-top: auto; overflow: hidden; }
.poster-card .tl { font-size: 13px; font-weight: 600; line-height: 1.3; }
.rows { border-top: 2px solid var(--ink); }
.rows .row-i { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; padding: 5px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.rows b { font-weight: 900; font-variant-numeric: tabular-nums; }
.poster-actions { display: flex; gap: 6px; }
.poster-actions .go { flex: 1; height: 38px; border-radius: 99px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 11px; font-weight: 900; letter-spacing: .06em; transition: background-color .5s, color .5s; }
.poster-actions .heart { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; }
.poster-actions .heart svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.tabbar { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; gap: 3px; padding: 4px; border-radius: 99px; background: var(--chrome); box-shadow: 0 8px 15px rgba(0,0,0,.3); }
.tabbar span { flex: 1; text-align: center; padding: 8px 0; border-radius: 99px; font-size: 9.5px; font-weight: 900; letter-spacing: .06em; color: var(--paper); }
.tabbar span.on { background: var(--paper); color: var(--chrome); }
.swap { transition: opacity .25s ease, transform .25s ease; }
.swap.out { opacity: 0; transform: translateY(8px); }

/* ---------- Section heading block (statement + aside), as on Puuunch ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; padding-top: 20px; padding-bottom: 40px; }
.head h2 { font-size: clamp(52px, 8vw, 96px); max-width: 760px; }
.head h2 em { font-style: normal; opacity: .45; }
.head p { max-width: 360px; }

/* Grid of cells divided by ink rules: gap over an ink ground */
.cells { display: grid; gap: 0 32px; padding: 0 var(--gutter); }
.cells > * { border-top: var(--rule) solid var(--ink); }
@media (min-width: 720px) { .cells.c3 { grid-template-columns: repeat(3, 1fr); } .cells.c2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cells.c3x { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .cells.c3x { grid-template-columns: repeat(2, 1fr); } }

/* 01 — steps */
.step { display: flex; flex-direction: column; gap: 14px; padding: 24px 0 40px; }
.step .num { font-size: 84px; }
.step h3 { font-size: 40px; }

/* 02 — bar demo */
.bar-grid { display: grid; }
@media (min-width: 960px) { .bar-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.bar-pick { padding: 0 var(--gutter) 24px; display: flex; flex-direction: column; gap: 22px; }
.chip-group { display: flex; flex-direction: column; gap: 8px; }
.chip-group .kicker { opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bar-out { padding: 24px var(--gutter) 24px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) { .bar-out { padding-top: 0; } }
.bar-out h3 { font-size: 46px; }
.bar-out .group { margin-bottom: 22px; }
.list { border-top: var(--rule) solid var(--ink); }
.row { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: var(--rule) solid var(--ink); }
.row .sw { width: 40px; height: 40px; flex: none; border-radius: 10px; border: var(--rule) solid var(--ink); }
.row .t { min-width: 0; flex: 1; display: block; }
.row .t > span { display: block; }
.row:hover .arrow { transform: translateX(4px); }
.row .arrow { transition: transform .15s; }
.row .n { font-size: 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .d { font-size: 13px; font-weight: 600; opacity: .75; margin-top: 3px; }
.row .arrow { font-weight: 900; font-size: 18px; }
.more { font-size: 13px; font-weight: 700; opacity: .75; padding-top: 10px; margin: 0; }
.empty { font-size: 16px; font-weight: 600; }

/* 03 — features on chrome */
.feat { display: flex; flex-direction: column; gap: 12px; padding: 22px 0 36px; }
.feat .top { display: flex; justify-content: space-between; align-items: center; }
.feat .dot { width: 22px; height: 22px; border-radius: 6px; border: var(--rule) solid var(--ink); }
.feat h3 { font-size: 40px; margin-top: 6px; }

/* 04 — library */
.lib-filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter) 22px; scrollbar-width: none; }
.lib-filters::-webkit-scrollbar { display: none; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0 var(--gutter); }
.tile { text-decoration: none; background: var(--bg); color: var(--ink); aspect-ratio: 3 / 4; padding: 12px; border-radius: 14px; box-shadow: 0 0 0 var(--rule) color-mix(in srgb, var(--chrome) 12%, transparent) inset; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; transition: transform .2s ease; }
.tile:hover { transform: scale(1.03); position: relative; z-index: 1; box-shadow: 0 18px 30px -12px rgba(0,0,0,.4); }
.tile .kicker { font-size: 10px; }
.tile .poster { font-size: 36px; }
.tile.end { grid-column: auto / -1; aspect-ratio: auto; min-height: 200px; background: transparent; border: var(--rule) solid currentColor; box-shadow: none; justify-content: center; align-items: flex-start; gap: 14px; padding: 20px; }
.tile.end:hover { transform: none; box-shadow: none; }
.tile.end .poster { font-size: 56px; }
.tile.end .pill { height: 44px; font-size: 13px; }
.tile.flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { transform: scale(1.06); box-shadow: 0 0 0 4px var(--chrome); position: relative; z-index: 2; } }
.tile h3 { white-space: normal; overflow: hidden; }
.tile .ing { font-size: 11px; font-weight: 600; line-height: 1.3; opacity: .8; }
.tile[hidden] { display: none; }

/* Facts strip */
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 64px var(--gutter) 0; }
.facts span { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: var(--rule) solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.facts i { width: 10px; height: 10px; border-radius: 3px; flex: none; border: 1.5px solid var(--ink); }

/* 05 — FAQ */
#faq-list { padding: 0 var(--gutter); }
.faq details { border-bottom: var(--rule) solid var(--ink); }
.faq details:first-child { border-top: var(--rule) solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .poster { font-size: clamp(28px, 3.4vw, 38px); }
.faq summary .plus { flex: none; width: 40px; height: 40px; border-radius: 50%; border: var(--rule) solid var(--ink); display: grid; place-items: center; font-size: 22px; font-weight: 800; transition: transform .2s ease, background-color .2s, color .2s; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--ink); color: var(--bg); }
.faq details p { max-width: 720px; padding: 0 0 26px; }

/* Final CTA */
.final { text-align: center; padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final h2 { font-size: clamp(64px, 11vw, 140px); max-width: 980px; }
.swatches { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 360px; }
.swatches i { width: 22px; height: 22px; border-radius: 6px; border: var(--rule) solid var(--ink); }

/* Footer */
footer .col { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 40px; }
footer .logo { font-size: 40px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; opacity: .75; }
footer nav a:hover { opacity: 1; }
footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; font-size: 13px; opacity: .7; }
@media (min-width: 820px) { footer .col { grid-template-columns: 1fr auto; align-items: end; } footer .legal { grid-column: 1 / -1; } }

/* Reveal on scroll — only when JS is on, never under reduced motion */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .screen, .swap, .tile, .pill { transition: none !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero link to the recipe on the phone ---------- */
.hero-recipe { height: 44px; font-size: 13px; }

/* ---------- Recipe pages (cocktails/<id>/), after CocktailDetailView ---------- */
.r-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; }
.r-nav .chip { text-decoration: none; }
.r-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
.r-title { font-size: clamp(76px, 15vw, 200px); width: 100%; overflow: hidden; }
/* The recipe page itself is in the cocktail's colour (set on <html> by build.py) */
.r-poster { padding: 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.r-poster .r-title { margin-top: 24px; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule) solid var(--ink); border-bottom: var(--rule) solid var(--ink); }
.fact { padding: 10px 0; min-width: 0; }
.fact + .fact { border-left: var(--rule) solid var(--ink); padding-left: 12px; }
.fact .kicker { font-size: 10.5px; opacity: .7; }
.fact .poster { font-size: clamp(22px, 3vw, 34px); white-space: nowrap; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tagpill { padding: 5px 12px; border-radius: 999px; border: var(--rule) solid var(--ink); font-size: 13px; font-weight: 700; }
.r-desc { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; line-height: 1.4; max-width: 820px; margin: 40px 0 0; text-wrap: pretty; }
.r-grid { display: grid; gap: 48px; padding-top: 48px; }
@media (min-width: 900px) { .r-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.r-grid > * { min-width: 0; }
.r-grid h2 { font-size: clamp(40px, 9vw, 52px); }
.r-ing { display: flex; flex-direction: column; gap: 16px; }
.r-ing-head { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.seg button { width: 54px; padding: 8px 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.servings { display: flex; align-items: center; gap: 8px; }
.servings .poster { font-size: 38px; margin-right: auto; }
.circle { width: 46px; height: 46px; border-radius: 50%; border: var(--rule) solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 22px; font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.circle:hover { background: var(--ink); color: var(--bg); }
.circle:disabled { opacity: .35; pointer-events: none; }
.ing-list, .step-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.ing-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: var(--rule) solid var(--ink); }
.ing-name { display: block; font-size: 17px; font-weight: 600; }
.opt { display: block; font-size: 12.5px; font-weight: 600; opacity: .7; }
.ing-row .q { font-size: 26px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.garnish { font-size: 16px; font-weight: 600; margin: 4px 0 0; }
.garnish b { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-right: 8px; opacity: .7; }
.r-steps { display: flex; flex-direction: column; gap: 16px; }
.r-steps h2 { padding-bottom: 4px; }
@media (min-width: 900px) { .r-steps h2 { padding-bottom: 72px; } }
.step-list li { display: flex; gap: 10px; align-items: baseline; padding: 15px 0; border-bottom: var(--rule) solid var(--ink); font-size: 17.5px; font-weight: 500; line-height: 1.45; }
.step-list .sn { flex: none; width: 54px; font-size: 36px; }
.r-app { margin-top: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: 28px; border: var(--rule) solid var(--ink); border-radius: 28px; }
.r-app > div { max-width: 600px; display: flex; flex-direction: column; gap: 10px; }
.r-app h2 { font-size: 48px; }
.r-more { padding-top: 72px; }
.r-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 16px; }
.r-more-head a { text-decoration: none; }
.r-more-head a:hover { text-decoration: underline; }
.r-group { padding-top: 48px; scroll-margin-top: 60px; }
.jump { padding: 6px 0 0; flex-wrap: wrap; overflow: visible; }
.jump .chip { text-decoration: none; }
.list-title { font-size: clamp(76px, 14vw, 180px); }
.r-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 72px; padding-bottom: 24px; }
.r-pn a { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: var(--rule) solid var(--ink); text-decoration: none; min-width: 0; }
.r-pn a.next { text-align: right; align-items: flex-end; }
.r-pn .poster { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.r-pn a:hover .poster { text-decoration: underline; text-decoration-thickness: 3px; }

/* Library cards: portrait, square corners, the closing "That's all" card included */
.tile { border-radius: 0; }
#lib .tile.end { grid-column: auto; aspect-ratio: 3 / 4; min-height: 0; padding: 12px; gap: 10px; justify-content: space-between; }
#lib .tile.end .poster { font-size: 36px; }
#lib .tile.end .body { font-size: 13.5px; line-height: 1.35; }
#lib .tile.end .pill { flex: none; height: 40px; padding: 0 12px; font-size: 11.5px; align-self: stretch; white-space: nowrap; }

/* Footer credit, as on Puuunch: "Made with ♥ by Wibeset in Quebec" with a beating heart */
.credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.credit a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.heartbeat { display: inline-flex; color: #fca5a5; transform-origin: center; animation: heartbeat 1.4s ease-in-out infinite; }
.heartbeat svg { width: 14px; height: 14px; }
@keyframes heartbeat {
  0%   { transform: scale(1);    color: #fca5a5; }
  15%  { transform: scale(1.25); color: #dc2626; }
  30%  { transform: scale(1);    color: #fca5a5; }
  45%  { transform: scale(1.18); color: #ef4444; }
  60%, 100% { transform: scale(1); color: #fca5a5; }
}
@media (prefers-reduced-motion: reduce) { .heartbeat { animation: none; color: #ef4444; } }

/* ---------- Hero preview: the top half of an iPhone, sliced flat at the hero's bottom edge ---------- */
.hero .col { align-items: end; }
.hero-phone { padding: 40px var(--gutter) 0; gap: 0; justify-content: flex-end; }
@media (min-width: 960px) { .hero-phone { padding-top: 72px; } }
.phone-clip { width: 100%; height: 470px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
@media (min-width: 960px) { .phone-clip { height: 560px; } }
.phone { width: 360px; height: 760px; border-radius: 60px; padding: 12px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper) 18%, transparent) inset, 0 30px 60px -20px rgba(0,0,0,.35); }
@media (max-width: 400px) { .phone { width: 330px; } }
.screen { border-radius: 48px; padding: 0 18px; }
.sb { height: 52px; font-size: 15px; padding: 0 14px; }
.sb .island { width: 100px; height: 30px; }
.app-head .poster { font-size: 30px; }
.mini-circle { width: 34px; height: 34px; } .mini-pill { height: 34px; font-size: 11px; padding: 0 11px; }
.mini-chips { margin: 10px -18px 0; padding: 0 18px; } .mini-chips span { font-size: 10.5px; padding: 5px 10px; }
.poster-card { flex: none; padding: 22px 0 0; gap: 12px; }
.poster-card .kicker { font-size: 10.5px; } .badge { font-size: 10.5px; padding: 4px 8px; }
.poster-card .p-name { display: block; font-size: 84px; margin-top: 18px; overflow: hidden; }
.poster-card .tl { font-size: 15px; }
.rows .row-i { font-size: 12.5px; padding: 7px 0; }
.now { display: inline-flex; align-items: baseline; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.now .kicker { opacity: .6; }
.now b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.now:hover b { text-decoration-thickness: 3px; }
/* Slice only the bottom edge, so the phone's shadow isn't boxed in at the sides */
.phone-clip { overflow: visible; clip-path: inset(-120px -120px 0 -120px); }
@media (max-width: 959px) { .hero-copy { padding-bottom: 8px; } .hero-phone { padding-top: 32px; } }
@media (max-width: 420px) { .hero-cta .pill { font-size: 13px; padding: 0 18px; letter-spacing: .04em; } }

/* Bigger preview on wide screens (×1.25, then ×1.5), resting on a black rule that closes the hero */
.hero { --z: 1; border-bottom: var(--rule) solid var(--chrome); }
.phone { zoom: var(--z); }
.phone-clip { height: calc(470px * var(--z)); }
@media (min-width: 960px) {
  .hero { --z: 1.25; }
  .hero .col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(68px, 10vw, 140px); }
  .phone-clip { height: calc(560px * var(--z)); }
}
@media (min-width: 1100px) {
  .hero { --z: 1.5; }
}

/* Desktop: the preview sits 30% of its width to the right, bleeding off the column */
@media (min-width: 960px) {
  .hero { overflow-x: clip; }
  .phone { transform: translateX(30%); }
  .phone-clip { clip-path: inset(-120px -100vw 0 -120px); }
}

/* Breathing room after the hero's black rule */
#how.band { padding-top: 96px; }
@media (min-width: 960px) { #how.band { padding-top: 144px; } }

/* Black rules open the recipe library and the FAQ, like the one closing the hero */
#recipes.band, #faq.band { margin-top: 72px; border-top: var(--rule) solid var(--chrome); padding-top: 96px; }
@media (min-width: 960px) { #recipes.band, #faq.band { margin-top: 96px; padding-top: 144px; } }
#faq.band { padding-bottom: 24px; }

/* Footer: copyright and credit side by side */
.legal-left { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }

/* Phone preview is built from spans (it lives inside a <button>) */
.sb .island, .tl, .rows, .poster-card .p-name { display: block; }
.rows .row-i { display: flex; justify-content: space-between; }

/* Skip link, language switch, the one-sentence answer on recipe pages */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none; }
.skip:focus { top: 10px; }
.langs { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; }
.langs a { text-decoration: none; opacity: .55; padding: 6px 2px; }
.langs a[aria-current], .langs a:hover { opacity: 1; }
.langs span { opacity: .35; }
header.site .langs + .pill { margin-left: 8px; }
.r-answer { font-size: 15.5px; font-weight: 700; line-height: 1.5; max-width: 820px; margin: 36px 0 0; padding-left: 14px; border-left: 4px solid var(--ink); }
.r-desc { margin-top: 18px; }
.faq summary h3 { margin: 0; }

/* French headline has longer words ("PARFAITEMENT"): scale it down so it never reaches the phone */
:lang(fr) .hero h1 { font-size: clamp(52px, 14vw, 156px); }
@media (min-width: 960px) { :lang(fr) .hero h1 { font-size: clamp(56px, 7.6vw, 110px); } }

/* Header fits both languages: nav only when there's room, never wrapped */
nav.main a, header.site .pill, .langs { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1179px) { nav.main { display: none; } }
@media (max-width: 479px) { header.site .pill { display: none; } }
/* Long CTA labels may wrap to two lines on narrow screens */
.pill { min-height: 52px; height: auto; padding-top: 8px; padding-bottom: 8px; text-align: center; }
header.site .pill { min-height: 40px; }
@media (max-width: 479px) { .tag { font-size: 10.5px; letter-spacing: .06em; } }

/* "Coming soon" store button: same pill, not a link */
.pill.soon { cursor: default; }
.pill.soon:hover { transform: none; }
