/* History Barber — hand-written, mobile-first. Dark is the default theme;
   a light variant applies only when the user's system asks for it. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121212;
  --bg-deep: #0c0c0c;
  --surface: #1a1918;
  --surface-2: #23211f;
  --line: rgba(212, 175, 55, 0.22);
  --line-soft: rgba(242, 237, 228, 0.09);
  --text: #f2ede4;
  --muted: #b3aa9c;
  --gold: #d4af37;
  --gold-hi: #f0d58a;
  --gold-ink: #121212;
  --oxblood: #7d2421;
  --danger: #ff8a7a;
  --ok: #9fd39a;
  --focus: #f0d58a;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3eee5;
    --bg-deep: #e9e2d6;
    --surface: #fbf8f2;
    --surface-2: #efe8dc;
    --line: rgba(122, 90, 18, 0.28);
    --line-soft: rgba(27, 23, 18, 0.1);
    --text: #1b1712;
    --muted: #5a5146;
    --gold: #7a5a12;
    --gold-hi: #96701a;
    --gold-ink: #fbf8f2;
    --danger: #a3271b;
    --ok: #2f6b2a;
    --focus: #7a5a12;
    color-scheme: light;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg) var(--grain);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-text);
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font: 600 clamp(2.1rem, 8vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.01em; }
h3 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 1.4rem 0 0.4rem; }
p { margin: 0 0 0.8rem; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Containers focused from script (step titles, result panels) need no ring. */
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: calc(0.5rem + var(--safe-t)); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.7rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 650; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { min-height: 44px; padding: 0.5rem 1.05rem; font-size: 0.92rem; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; min-height: 44px; }
.link-arrow { color: var(--text); text-decoration-color: var(--gold); text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }

/* ── Top bar ─────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(0.55rem + var(--safe-t)) var(--gutter) 0.55rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; color: var(--gold); }
.brand-name { font: 600 1.15rem/1 var(--font-display); letter-spacing: 0.02em; }
.topnav { display: none; }
.topbar-call {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--gold);
}
.topbar-call svg { width: 20px; height: 20px; }

.notice { margin: 0; padding: 0.7rem var(--gutter); font-size: 0.9rem; border-bottom: 1px solid var(--line-soft); }
.notice-demo { background: var(--oxblood); color: #fff; }
.notice-offline { background: var(--surface-2); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  min-height: min(88svh, 760px);
  display: flex; align-items: flex-end;
  padding: 3rem var(--gutter) 3.2rem;
  background:
    radial-gradient(120% 70% at 85% 10%, rgba(212, 175, 55, 0.13), transparent 60%),
    linear-gradient(180deg, transparent 50%, var(--bg-deep));
  border-bottom: 1px solid var(--line);
}
.hero::before {
  /* Fine engraved rules, like an old shop sign. */
  content: ""; position: absolute; inset: 1.1rem var(--gutter) auto; height: 7px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-pole {
  position: absolute; right: calc(var(--gutter) - 0.2rem); top: 3.2rem; bottom: 3.2rem; width: 22px;
  border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line);
  background: var(--surface);
}
.hero-pole span {
  position: absolute; inset: -60px 0;
  background: repeating-linear-gradient(-45deg, var(--oxblood) 0 10px, var(--text) 10px 20px, var(--gold) 20px 26px, var(--text) 26px 36px);
  opacity: 0.85;
  animation: pole 6s linear infinite;
}
@keyframes pole { to { transform: translateY(51px); } }
.hero-inner { position: relative; max-width: 46rem; padding-right: 2.5rem; }
.hero-title { display: grid; gap: 0.2rem; margin-bottom: 1.1rem; }
.hero-line {
  font: 600 clamp(3.1rem, 15vw, 7.5rem)/0.88 var(--font-display);
  letter-spacing: -0.025em; text-transform: uppercase;
}
.hero-signature { font: italic 500 clamp(1.7rem, 7vw, 3rem)/1 var(--font-display); color: var(--gold); }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 30rem; }
.open-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 600; }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.open-status[data-open="true"]::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

/* ── Sections ────────────────────────────────────────────────────────── */

.section { padding: 3.6rem var(--gutter); max-width: 72rem; margin: 0 auto; scroll-margin-top: 64px; }
.section-alt { max-width: none; background: var(--bg-deep); border-block: 1px solid var(--line-soft); }
.section-alt > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 1.8rem; }
.section-head h2 + p { margin-top: 0.7rem; }

/* Services as a barber's menu board, with dotted leaders. */
.menu-board { display: grid; gap: 2.2rem; }
.menu-group h3 { margin-top: 0; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 0.95rem 0; border-bottom: 1px solid var(--line-soft); }
.menu-row { display: flex; align-items: baseline; gap: 0.6rem; }
.menu-name { font-weight: 650; font-size: 1.05rem; }
.menu-row::after { content: ""; order: 1; flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); }
.menu-price { order: 2; font: 600 1.25rem/1 var(--font-display); color: var(--gold); white-space: nowrap; }
.menu-meta { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--muted); }

.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.team-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.6rem/1 var(--font-display); color: var(--gold-ink);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
}
.team-name { font: 600 1.4rem/1.1 var(--font-display); margin: 0 0 0.2rem; }

/* ── Cards, notices ──────────────────────────────────────────────────── */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.repeat-card { display: grid; gap: 0.2rem; margin-bottom: 1.2rem; border-style: dashed; }
.repeat-title { font-weight: 700; margin: 0; }
.repeat-card .btn { justify-self: start; margin-top: 0.5rem; }

.outbox { display: grid; gap: 0.8rem; margin-bottom: 1.2rem; }
.outbox-item { border-left: 4px solid var(--gold); }
.outbox-item[data-status="conflict"], .outbox-item[data-status="rejected"] { border-left-color: var(--danger); }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid currentColor; }
.badge-wait { color: var(--gold); }
.badge-err { color: var(--danger); }
.badge-ok { color: var(--ok); }

/* ── Stepper ─────────────────────────────────────────────────────────── */

.stepper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--gold); transition: width 0.3s ease; }
.step-status { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0.8rem 0 0.2rem; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title { font: 600 1.7rem/1.15 var(--font-display); padding: 0; margin-bottom: 1rem; }

.choice-grid, .choice-list { display: grid; gap: 0.7rem; }
.choice-cat { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0.6rem 0 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.choice-body { cursor: pointer; }
.choice-body {
  display: flex; align-items: center; gap: 0.9rem; min-height: 60px;
  padding: 0.85rem 1rem; border: 1.5px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--surface-2); transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice-body .avatar { width: 44px; height: 44px; font-size: 1.15rem; }
.choice-main { flex: 1; min-width: 0; }
.choice-name { font-weight: 650; display: block; }
.choice-meta { font-size: 0.86rem; color: var(--muted); display: block; }
.choice-price { font: 600 1.15rem/1 var(--font-display); color: var(--gold); }
.choice input:checked + .choice-body { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface-2)); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:disabled + .choice-body { opacity: 0.45; }
.avatar-any { background: var(--surface); color: var(--gold); border: 1.5px dashed var(--gold); }

.date-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem 0.1rem 0.8rem; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.date-strip .choice { flex: none; scroll-snap-align: start; }
.date-strip .choice-body { flex-direction: column; justify-content: center; gap: 0; width: 64px; min-height: 74px; padding: 0.5rem 0.3rem; text-align: center; }
.date-dow { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.date-day { font: 600 1.5rem/1.1 var(--font-display); }
.date-month { font-size: 0.72rem; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; margin-top: 0.4rem; }
.slot-grid .choice-body { justify-content: center; min-height: 48px; padding: 0.5rem; font-variant-numeric: tabular-nums; font-weight: 650; }
.slot-group { grid-column: 1 / -1; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0.6rem 0 0; }

.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field label { font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem;
  background: var(--bg); border: 1.5px solid var(--line-soft); border-radius: var(--radius-sm);
  font-size: 1rem;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.88rem; font-weight: 600; margin: 0; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: 0.88rem; margin: 0; }
.field-hint:empty { display: none; }
.field-hint[data-tone="error"] { color: var(--danger); font-weight: 600; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.75rem; }
.field-check input { width: 24px; height: 24px; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--gold); }
.field-check label { font-weight: 400; }
.field-check .field-error { grid-column: 1 / -1; }

.summary { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; margin: 0 0 1rem; }
.summary dt { color: var(--muted); font-size: 0.9rem; }
.summary dd { margin: 0; font-weight: 600; }

.step-nav { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.step-nav .btn { flex: 1; }

.done { display: grid; gap: 0.6rem; }
.done h3 { margin: 0; font: 600 1.8rem/1.15 var(--font-display); color: var(--text); letter-spacing: 0; text-transform: none; }
.done-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.done-tick { width: 52px; height: 52px; color: var(--gold); }
.reminder-ask { margin-top: 0.6rem; padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); }

/* ── Contacts ────────────────────────────────────────────────────────── */

.contact-grid { display: grid; gap: 1.6rem; }
.contact-card h3:first-child { margin-top: 0; }
.address { font-style: normal; font-size: 1.05rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 1rem; }
.hours tr[data-today="true"] th, .hours tr[data-today="true"] td { color: var(--gold); }
.hours td.closed { color: var(--muted); }
.settings { margin-top: 2rem; }
.settings h3 { margin-top: 0; }

.footer { padding: 2rem var(--gutter) 2.4rem; text-align: center; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer a, .footer .linklike { color: var(--text); }

/* ── Bottom navigation ───────────────────────────────────────────────── */

.bottomnav {
  position: fixed; inset: auto 0 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding: 0 0.3rem var(--safe-b);
  background: color-mix(in srgb, var(--bg-deep) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  min-height: 44px; font-size: 0.7rem; font-weight: 600; text-decoration: none; color: var(--muted);
}
.bottomnav svg { width: 22px; height: 22px; }
.bottomnav a[aria-current="true"] { color: var(--text); }
.bottomnav a[aria-current="true"]:not(.bottomnav-cta) svg { color: var(--gold); }
.bottomnav .bottomnav-cta { color: var(--gold-ink); }
.bottomnav .bottomnav-cta svg {
  width: 50px; height: 50px; padding: 13px; margin-top: -26px; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink); border: 4px solid var(--bg-deep);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.bottomnav .bottomnav-cta span { color: var(--gold); }

/* ── Install banner, sheets, toasts ──────────────────────────────────── */

.install-banner {
  position: fixed; z-index: 50; left: 0.75rem; right: 0.75rem;
  bottom: calc(var(--nav-h) + var(--safe-b) + 0.75rem);
  display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 0.85rem; align-items: center;
  padding: 0.9rem; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.install-banner img { border-radius: 12px; }
.install-copy p { margin: 0; }
.install-title { font-weight: 700; }
.install-actions { grid-column: 1 / -1; display: flex; gap: 0.5rem; justify-content: flex-end; }

.sheet {
  width: min(32rem, calc(100% - 1.5rem)); max-height: calc(100svh - 2rem);
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.66); }
.sheet h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.2rem; }
.ios-steps { list-style: none; counter-reset: s; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.9rem; }
.ios-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 0.9rem; align-items: center; }
.ios-steps svg { width: 48px; height: 48px; color: var(--gold); padding: 6px; border-radius: 12px; background: var(--surface-2); }

.toasts {
  position: fixed; z-index: 60; left: 0.75rem; right: 0.75rem;
  bottom: calc(var(--nav-h) + var(--safe-b) + 0.75rem);
  display: grid; gap: 0.5rem; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg); font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.25s ease;
}
.toast .btn { min-height: 44px; background: var(--bg); color: var(--text); padding: 0.4rem 1rem; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ── Larger screens ──────────────────────────────────────────────────── */

@media (min-width: 720px) {
  .menu-board { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .menu-group:first-child { grid-row: span 2; }
  .team-list { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper { padding: 2rem; }
  .install-banner { left: auto; width: 26rem; grid-template-columns: auto 1fr; }
  .toasts { left: auto; width: 26rem; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topnav { display: flex; align-items: center; gap: 1.6rem; }
  .topnav a:not(.btn) { text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
  .topnav a:not(.btn):hover { color: var(--gold); }
  .topbar-call { display: none; }
  .install-banner, .toasts { bottom: 1.25rem; right: 1.25rem; }
  .booking { display: grid; grid-template-columns: 1fr 1.6fr; column-gap: 3rem; align-items: start; }
  .booking > .section-head { grid-row: span 4; position: sticky; top: 6rem; }
  .booking > :not(.section-head) { grid-column: 2; }
}

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

/* ── Standalone pages (offline, privacy) ─────────────────────────────── */

.page { max-width: 44rem; margin: 0 auto; padding: calc(2.5rem + var(--safe-t)) var(--gutter) 3rem; }
.page h1 { font: 600 clamp(2.2rem, 9vw, 3.4rem)/1 var(--font-display); margin-bottom: 1rem; }
.page h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.page-plain { padding-bottom: 0; }
.review-flag { border: 1.5px dashed var(--danger); color: var(--text); border-radius: var(--radius-sm); padding: 0.8rem 1rem; }
.offline-mark { width: 88px; height: 88px; color: var(--gold); margin-bottom: 1.5rem; }
