/* Bloom website. Tokens mirror BrewLog/Views/DesignSystem/BloomTokens.swift (see DESIGN.md). */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #F2F1EE;
  --surface: #FFFFFF;
  --fill: #E9E7E3;
  --fill-strong: #DCD9D4;
  --ink: #151413;
  --ink-2: #5F5B55;
  --ink-3: #8C877F;
  --hairline: rgb(21 20 19 / 0.08);
  --accent: #C4432B;
  --accent-ink: #B23A24;
  --on-accent: #FFFFFF;
  --night: #0E0D0C;
  --night-surface: #1A1917;
  --night-ink: #F4F2EE;
  --night-ink-2: #ADA79F;
  --under: #2F6BBF;
  --balanced: #1B7D52;
  --over: #B0530F;
  --under-fill: #4A8FEA;
  --balanced-fill: #38B27A;
  --over-fill: #F0883A;
  --focus: #2F6BBF;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Floating glass nav (the site's dock) ---------- */

.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(100% - 24px, 760px);
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: rgb(242 241 238 / 0.8);
  border: 1px solid rgb(255 255 255 / 0.6);
  box-shadow: 0 10px 30px -12px rgb(21 20 19 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.nav.is-scrolled { background: rgb(242 241 238 / 0.86); }
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  text-decoration: none; font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em;
  padding: 2px 6px 2px 0;
}
.nav__brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--hairline); }
.nav__link {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
  transition: color 160ms, background-color 160ms;
}
.nav__link:hover { color: var(--ink); background: rgb(21 20 19 / 0.05); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav .button { margin-left: 4px; }

/* ---------- Buttons ---------- */

.button {
  --btn-bg: var(--ink); --btn-fg: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color 160ms, opacity 160ms;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button--light { --btn-bg: var(--surface); --btn-fg: var(--ink); }
.button--quiet { --btn-bg: var(--fill); --btn-fg: var(--ink); }
.button--quiet:hover { --btn-bg: var(--fill-strong); }
.button[aria-disabled="true"] { cursor: default; }
.button[aria-disabled="true"]:active { transform: none; }
.button svg { width: 18px; height: 18px; flex: none; }

/* ---------- Phone frame ---------- */

.phone { container-type: inline-size; width: 100%; }
.phone__body {
  position: relative;
  padding: 3.4cqw;
  border-radius: 16.6cqw;
  background: linear-gradient(150deg, #3a3734, #1c1b19 40%, #2b2926);
  box-shadow:
    inset 0 0 0 0.5cqw #4a4642,
    inset 0 0 0 0.9cqw #121110,
    0 2px 2px rgb(21 20 19 / 0.12),
    0 40px 70px -28px rgb(21 20 19 / 0.5);
}
.phone__screen {
  position: relative; overflow: hidden;
  border-radius: 13.2cqw;
  aspect-ratio: 1206 / 2622;
  background: var(--bg);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__screen::after { /* Dynamic Island */
  content: ""; position: absolute; top: 2.9cqw; left: 50%; transform: translateX(-50%);
  width: 30%; height: 8.6cqw; border-radius: 99px; background: #000;
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--accent); color: var(--on-accent);
  padding: 132px 0 0;
  display: flex; flex-direction: column; min-height: min(100svh, 1000px);
}
.hero__grid {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 72px); align-items: end;
}
.hero__copy { align-self: center; padding-bottom: clamp(56px, 9vw, 120px); }
.hero h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 10.4vw, 148px); line-height: 0.9; letter-spacing: -0.025em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line > span { display: block; }
.hero__lede { margin: 28px 0 0; max-width: 31ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 34px; }
.text-link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.text-link:hover { text-decoration-thickness: 2px; }

.hero__device { position: relative; align-self: end; justify-self: center; width: min(100%, 360px); }
/* The phone runs off the bottom of the hero: about a sixth of its height (a third of its width) is cut off. */
.hero__device .phone { margin-bottom: -34%; transform: rotate(2deg); }

/* The dose ruler, lifted out of the New brew screen. */
.ruler-card {
  position: absolute; z-index: 2;
  left: -34%; bottom: 27%;
  width: min(112%, 400px);
  padding: 16px 0 18px;
  border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgb(21 20 19 / 0.08), 0 28px 50px -20px rgb(80 20 10 / 0.55);
  transform: rotate(-2deg);
}
.ruler-card__label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.ruler-card__label svg { width: 13px; height: 13px; }
.ruler-card__value {
  display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 2px;
  font-size: 56px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em;
}
.ruler-card__value small { font-size: 22px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.ruler-card__hint { margin: 10px 18px 0; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink-2); }

.ruler {
  position: relative; height: 62px; margin-top: 10px;
  overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.ruler.is-dragging { cursor: grabbing; }
.ruler:focus-visible { outline-offset: -2px; border-radius: 12px; }
.ruler__track { position: absolute; left: 50%; top: 0; height: 100%; will-change: transform; }
.ruler__tick {
  position: absolute; bottom: 22px; width: 2px; height: 14px; margin-left: -1px;
  border-radius: 2px; background: var(--ink-3); opacity: 0.55;
}
.ruler__tick--half { height: 20px; opacity: 0.75; }
.ruler__tick--whole { height: 28px; background: var(--ink-2); opacity: 1; }
.ruler__num {
  position: absolute; bottom: 0; transform: translateX(-50%);
  font-size: 12px; font-weight: 500; color: var(--ink-3);
}
.ruler__needle {
  position: absolute; left: 50%; bottom: 18px; width: 3px; height: 40px; margin-left: -1.5px;
  border-radius: 3px; background: var(--accent);
}
.ruler__needle::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--accent);
}

/* Page-load sequence (the one orchestrated moment). Skipped under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { transform: translateY(105%); }
  .js .hero__lede, .js .hero__actions { opacity: 0; transform: translateY(14px); }
  .js .hero__device .phone { opacity: 0; transform: translateY(30%) rotate(6deg); }
  .js .ruler-card { opacity: 0; transform: translateY(24px) rotate(-6deg) scale(0.96); }

  .is-loaded .hero h1 .line > span { transform: none; transition: transform 1000ms var(--ease-out); }
  .is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: 90ms; }
  .is-loaded .hero__lede, .is-loaded .hero__actions {
    opacity: 1; transform: none; transition: opacity 700ms ease, transform 800ms var(--ease-out);
  }
  .is-loaded .hero__lede { transition-delay: 260ms; }
  .is-loaded .hero__actions { transition-delay: 360ms; }
  .is-loaded .hero__device .phone {
    opacity: 1; transform: rotate(2deg);
    transition: opacity 600ms ease 200ms, transform 1300ms var(--ease-out) 200ms;
  }
  .is-loaded .ruler-card {
    opacity: 1; transform: rotate(-2deg);
    transition: opacity 500ms ease 700ms, transform 900ms var(--ease-out) 700ms;
  }
}

/* ---------- Section headings ---------- */

.section { padding: clamp(88px, 12vw, 160px) 0; }
.section__title {
  margin: 0; max-width: 14ch; text-wrap: balance;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px); line-height: 0.96; letter-spacing: -0.02em;
}
.section__lede { margin: 22px 0 0; max-width: 46ch; font-size: 19px; color: var(--ink-2); }

/* ---------- The ritual (sticky phone, scrolling steps) ---------- */

.ritual { padding-top: clamp(160px, 18vw, 240px); }
.ritual__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); margin-top: clamp(32px, 6vw, 72px);
}
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0; opacity: 0.32; transition: opacity 400ms ease;
}
.step.is-active { opacity: 1; }
.step__count {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1px var(--hairline);
  font-size: 15px; font-weight: 600;
}
.step.is-active .step__count { background: var(--ink); color: var(--surface); box-shadow: none; }
.step h3 {
  margin: 18px 0 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 3.8vw, 52px); line-height: 1; letter-spacing: -0.015em;
}
.step p { margin: 14px 0 0; max-width: 40ch; font-size: 18px; color: var(--ink-2); }
.step__shot { display: none; }

.ritual__stage { position: relative; }
.ritual__sticky {
  position: sticky; top: calc(50vh - min(37vh, 340px)); height: min(74vh, 680px);
  display: grid; place-items: center;
}
/* Body height is 2.094 × its width (screen ratio plus the bezel padding). */
.ritual__sticky .phone { width: calc(min(74vh, 680px) / 2.094); }
.ritual__sticky .phone__screen img {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.02);
  transition: opacity 450ms ease, transform 700ms var(--ease-out);
}
.ritual__sticky .phone__screen img.is-active { opacity: 1; transform: none; }

/* Demo cards inside the steps */
.demo {
  margin-top: 26px; max-width: 420px;
  border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 1px 2px rgb(21 20 19 / 0.05), 0 12px 32px -18px rgb(21 20 19 / 0.22);
}
.demo__overline {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.demo__note { margin: 10px 4px 0; font-size: 13px; color: var(--ink-3); }

/* Brew-along timer */
.timer { padding: 18px 18px 16px; }
.timer__head { display: flex; align-items: center; gap: 12px; }
.timer__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fill);
}
.timer__icon svg { width: 18px; height: 18px; }
.timer__step { font-size: 17px; font-weight: 600; line-height: 1.2; }
.timer__grams { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.timer__grams small { font-size: 22px; color: var(--ink-2); letter-spacing: 0; }
.timer__sub { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.bar { position: relative; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.bar__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--ink); border-radius: inherit; }
.timer__next { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--fill); font-size: 13px; font-weight: 500;
}
.timer__clock-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.timer__clock { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-right: auto; }
.timer__clock.is-running { color: var(--accent); }
.icon-button {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--fill); cursor: pointer; transition: background-color 160ms, transform 120ms var(--ease-out);
}
.icon-button:hover { background: var(--fill-strong); }
.icon-button:active { transform: scale(0.95); }
.icon-button svg { width: 18px; height: 18px; }
.timer .button { min-width: 116px; }

/* Taste scale */
.taste { padding: 18px; }
.taste__scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; border: 0; padding: 0; }
.taste__option { position: relative; }
.taste__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.taste__option label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 76px; padding: 12px 2px 10px; border-radius: 14px; background: var(--fill);
  font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--ink-2);
  cursor: pointer; transition: background-color 180ms, color 180ms, transform 120ms var(--ease-out);
}
.taste__option label::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dot);
  box-shadow: 0 0 0 3px var(--surface); transition: transform 220ms var(--ease-out);
}
/* nth-of-type, because the fieldset's legend is its first child. */
.taste__option:nth-of-type(1), .taste__option:nth-of-type(2) { --dot: var(--under-fill); }
.taste__option:nth-of-type(3) { --dot: var(--balanced-fill); }
.taste__option:nth-of-type(4), .taste__option:nth-of-type(5) { --dot: var(--over-fill); }
.taste__option:nth-of-type(2) label::before, .taste__option:nth-of-type(4) label::before { opacity: 0.65; }
.taste__option input:checked + label { background: var(--ink); color: var(--surface); }
.taste__option input:checked + label::before { transform: scale(1.25); box-shadow: 0 0 0 3px var(--ink); }
.taste__option input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.taste__option label:active { transform: scale(0.97); }
.taste__result {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 14px;
  border-radius: 14px; background: var(--bg); min-height: 74px;
}
.taste__result svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ink-2); }
.taste__word { display: block; font-size: 13px; font-weight: 600; }
.taste__word[data-tone="under"] { color: var(--under); }
.taste__word[data-tone="balanced"] { color: var(--balanced); }
.taste__word[data-tone="over"] { color: var(--over); }
.taste__message { display: block; margin-top: 2px; font-size: 16px; font-weight: 500; }
.taste__result.is-changing .taste__message { animation: swap 360ms var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

/* ---------- More features ---------- */

.more { background: var(--surface); }
.fan {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px); margin-top: clamp(48px, 7vw, 88px);
}
.fan__item { margin: 0; }
.fan__item .phone { width: min(100%, 300px); margin-inline: auto; transform-origin: 50% 110%; }
.fan__item:nth-child(1) .phone { transform: rotate(-4deg) translateY(28px); }
.fan__item:nth-child(3) .phone { transform: rotate(4deg) translateY(28px); }
.fan__item figcaption { max-width: 34ch; margin: 56px auto 0; text-align: center; }
.fan__item h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; letter-spacing: -0.01em; }
.fan__item p { margin: 10px 0 0; color: var(--ink-2); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fan__item:nth-child(1) .phone { animation: fan-left linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .fan__item:nth-child(3) .phone { animation: fan-right linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    @keyframes fan-left { from { transform: rotate(0) translate(18%, 0); } to { transform: rotate(-4deg) translateY(28px); } }
    @keyframes fan-right { from { transform: rotate(0) translate(-18%, 0); } to { transform: rotate(4deg) translateY(28px); } }
  }
}

.details {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px);
  margin: clamp(72px, 10vw, 128px) 0 0; padding: 0;
}
.details div { padding: 22px 0 26px; border-top: 1px solid var(--hairline); }
.details dt { font-size: 17px; font-weight: 600; }
.details dd { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Private (dark, like the Me tab) ---------- */

.private { background: var(--night); color: var(--night-ink); overflow: hidden; }
.private__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.private .phone { width: min(100%, 320px); margin-inline: auto; transform: rotate(-2deg); }
.private .phone__body { box-shadow: inset 0 0 0 0.5cqw #4a4642, inset 0 0 0 0.9cqw #121110, 0 40px 90px -30px rgb(0 0 0 / 0.9); }
.private .section__lede { color: var(--night-ink-2); }
.promises { list-style: none; margin: 40px 0 0; padding: 0; max-width: 560px; }
.promises li {
  display: flex; align-items: center; gap: 16px; padding: 18px 0;
  border-top: 1px solid rgb(244 242 238 / 0.1); font-size: 19px; font-weight: 500;
}
.promises li:last-child { border-bottom: 1px solid rgb(244 242 238 / 0.1); }
.promises svg { width: 22px; height: 22px; flex: none; color: var(--night-ink-2); }
.private .text-link { margin-top: 28px; }

/* ---------- Closing ---------- */

.closing { text-align: center; }
.closing__sticker {
  width: 128px; height: 128px; margin: 0 auto 40px; padding: 7px; border-radius: 36px;
  background: var(--surface); transform: rotate(-3deg);
  box-shadow: 0 2px 3px rgb(21 20 19 / 0.08), 0 18px 34px -16px rgb(21 20 19 / 0.4);
}
.closing__sticker img { border-radius: 29px; }
.closing .section__title { max-width: 17ch; margin-inline: auto; }
.closing .section__lede { margin-inline: auto; }
.closing .button { margin-top: 36px; }

/* ---------- Footer ---------- */

.footer { padding: 32px 0 48px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink-2); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 22px; }
.footer__brand img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 1px var(--hairline); }
.footer a:not(.footer__brand) { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer a:not(.footer__brand):hover { color: var(--ink); }

/* ---------- Text pages (support, privacy) ---------- */

.page-head { padding: 148px 0 0; }
.page-head h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.025em;
}
.page-head__lede { margin: 22px 0 0; max-width: 44ch; font-size: 20px; color: var(--ink-2); }
.page-head__meta { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); }

.page-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding: clamp(56px, 7vw, 88px) 0 clamp(88px, 10vw, 140px); }
.toc { position: sticky; top: 104px; align-self: start; }
.toc p { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--fill-strong); }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  text-decoration: none; font-size: 15px; color: var(--ink-2); line-height: 1.35;
}
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--ink); }

.prose { max-width: 680px; }
.prose h2 {
  margin: 56px 0 0; scroll-margin-top: 104px;
  font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 0; font-size: 17px; font-weight: 600; }
.prose p, .prose ul { margin: 14px 0 0; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; color: var(--accent-ink); }
.prose strong { font-weight: 600; }

.summary-card {
  margin: 0 0 8px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 1px 2px rgb(21 20 19 / 0.05);
}
.summary-card p { margin: 0; font-size: 19px; line-height: 1.5; }
.summary-card p + p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px;
  margin-top: 40px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--ink); color: var(--surface);
  max-width: 760px;
}
.contact h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.contact p { margin: 6px 0 0; color: rgb(255 255 255 / 0.72); font-size: 16px; }
.contact .button { --btn-bg: var(--surface); --btn-fg: var(--ink); }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { margin-bottom: 14px; }
.faq { border-top: 1px solid var(--hairline); }
.faq:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23151413' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 260ms var(--ease-out), background-color 160ms;
}
.faq[open] summary::after { transform: rotate(45deg); background-color: var(--fill-strong); }
.faq__body { padding: 0 44px 20px 0; color: var(--ink-2); }
.faq__body p { margin: 0; }
.faq__body p + p { margin-top: 10px; }
.faq[open] .faq__body { animation: swap 320ms var(--ease-out); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .ruler-card { left: -24%; }
}

@media (max-width: 900px) {
  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .hero__device { width: min(100%, 300px); margin-top: 40px; }
  .ruler-card { left: 50%; bottom: 12%; width: min(92vw, 380px); translate: -50% 0; }

  .ritual__layout { grid-template-columns: 1fr; }
  .ritual__stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 40px 0 24px; }
  .step + .step { border-top: 1px solid var(--hairline); }
  .step .step__count { background: var(--ink); color: var(--surface); box-shadow: none; }
  .step__shot { display: block; width: min(100%, 280px); margin: 36px auto 0; }

  .fan { grid-template-columns: 1fr; gap: 72px; }
  .fan__item .phone, .fan__item:nth-child(1) .phone, .fan__item:nth-child(3) .phone { transform: none; animation: none; width: min(100%, 280px); }
  .fan__item figcaption { margin-top: 32px; }
  .details { grid-template-columns: 1fr 1fr; }

  .private__grid { grid-template-columns: 1fr; }
  .private .phone { width: min(100%, 260px); order: 2; }

  .page-body { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 0; padding-left: 8px; }
  .nav__brand { font-size: 23px; gap: 8px; }
  .nav__link { padding: 10px; font-size: 14px; }
  .nav .button, .nav__link[href$="#ritual"] { display: none; }
  .hero__lede { font-size: 18px; }
  .details { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .faq__body { padding-right: 0; }
  .taste__option label { font-size: 11px; min-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
