/* Shutterbook site — the app's "Field Instrument" design system, at product-page scale.
   Rich black, ink-white, cherry-red signal used sparingly, sharp UI corners,
   corner-bracket viewfinder marks; Geist / Inter / Geist Mono (self-hosted subsets).
   Motion: transform/opacity only; everything off under prefers-reduced-motion;
   all content readable without JS. */

@font-face { font-family: "Geist"; src: url("fonts/Geist_600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist_700Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_400Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_500Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono_400Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono_500Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Dark theme — identical to the app's src/theme/palettes.ts `dark`. */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-alt: #1f1f1f;
  --text: #f5f5f5;
  --soft: #c9c9c9;
  --muted: #9a9a9a;
  --accent: #ff453a;
  --border: #2a2a2a;
  --overlay: #0a0a0ae6;
  --hero-ink: #f5f5f5;
  --img-filter: saturate(1);

  --display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 16px;
  --max: 1200px;
  --head: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

/* Red night-vision theme — identical to the app's `red` palette. One hue only;
   illustrations are pushed into the same red so nothing breaks dark adaptation. */
:root[data-theme="red"] {
  --bg: #0a0000;
  --surface: #1a0000;
  --surface-alt: #2a0000;
  --text: #ff6666;
  --soft: #e05555;
  --muted: #b84a4a;
  --accent: #ff8888;
  --border: #330000;
  --overlay: #0a0000e6;
  --hero-ink: #ff6666;
  --img-filter: grayscale(1) brightness(0.7) sepia(1) hue-rotate(-45deg) saturate(5) brightness(0.75);
}

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--head); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

/* The theme shift (toggle or the night section) fades colours instead of snapping. */
:where(html.js) body, :where(html.js) body * {
  transition: background-color 0.7s ease, color 0.7s ease, border-color 0.7s ease, filter 0.7s ease;
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ─────────────────────────────────────────────────────────── */
.kicker {
  font: 400 11px/14px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.kicker b { font-weight: 500; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.03em; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); margin: 0; max-width: 32em; }
.lead strong { color: var(--text); font-weight: 500; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ── Corner brackets — the viewfinder signature ─────────────────── */
.bk {
  --c: var(--accent);
  --s: 20px;
  --t: 1.5px;
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--s) no-repeat;
}
.bk--sm { --s: 12px; inset: 4px; }
.bk--lg { --s: 32px; --t: 2px; inset: 0; }

/* ── Header — translucent bar ─────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { display: block; height: 22px; width: auto; }
.sb-fg { fill: currentColor; }
.sb-ac { fill: var(--accent); transition: fill .6s; }
.brand:hover { color: var(--text); }
.top-nav { display: flex; align-items: center; gap: 28px; }
.top-nav a { display: none; font-size: 13px; color: var(--soft); text-decoration: none; }
.top-nav a:hover { color: var(--text); }
@media (min-width: 820px) { .top-nav a { display: inline; } }

.night {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 0;
  font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}
.night:hover { border-color: var(--accent); }
.night i { width: 8px; height: 8px; border: 1.5px solid var(--accent); display: block; }
.night[aria-pressed="true"] i { background: var(--accent); }
.night[hidden] { display: none; }

/* ── Reveal on scroll ─────────────────────────────────────────────
   Visible by default. With JS: scroll-driven CSS animation where the
   browser supports it, otherwise IntersectionObserver toggles .in. */
@media (prefers-reduced-motion: no-preference) {
  html.io .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  html.io .reveal.in { opacity: 1; transform: none; }
  html.sda .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ── Phone — a generic device frame drawn in CSS ─────────────────── */
.phone {
  --ph: 600px;
  position: relative;
  height: var(--ph);
  aspect-ratio: 9 / 19.5;
  padding: calc(var(--ph) * 0.014);
  border-radius: calc(var(--ph) * 0.09);
  background: #1b1b1c;
  box-shadow:
    inset 0 0 0 1px #3b3b3d,
    inset 0 0 0 calc(var(--ph) * 0.006) #0c0c0c,
    0 0 0 1px #050505,
    0 calc(var(--ph) * 0.06) calc(var(--ph) * 0.16) calc(var(--ph) * -0.03) rgba(0, 0, 0, 0.85);
  flex: none;
}
.screen {
  --u: calc(100cqw / 390);
  position: relative;
  width: 100%; height: 100%;
  border-radius: calc(var(--ph) * 0.077);
  overflow: hidden;
  background: var(--bg);
  container-type: size;
  isolation: isolate;
}
.island {
  position: absolute; z-index: 20; left: 50%; top: calc(11 * var(--u));
  width: calc(122 * var(--u)); height: calc(36 * var(--u));
  transform: translateX(-50%);
  background: #000; border-radius: 999px;
}
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sbar { height: calc(54 * var(--u)); flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(6 * var(--u)) calc(32 * var(--u)) 0; font: 600 calc(16 * var(--u))/1 var(--body); color: var(--text); }
.batt { width: calc(25 * var(--u)); height: calc(12 * var(--u)); border: calc(1.5 * var(--u)) solid var(--muted); border-radius: calc(3 * var(--u)); padding: calc(1.5 * var(--u)); }
.batt::before { content: ""; display: block; height: 100%; width: 70%; background: var(--text); border-radius: calc(1 * var(--u)); }
.appnav { flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(4 * var(--u)) calc(20 * var(--u)) calc(12 * var(--u)); font: 500 calc(15 * var(--u))/1 var(--body); color: var(--accent); }
.appnav .t { font: 400 calc(11 * var(--u))/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Card detail screen */
.c-hero { position: relative; aspect-ratio: 5 / 3; flex: none; overflow: hidden; background: var(--surface-alt); }
.c-hero img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.c-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, var(--overlay), transparent); }
.c-hero .bk { --s: calc(20 * var(--u)); inset: calc(8 * var(--u)); }
.c-title { position: absolute; z-index: 3; left: calc(20 * var(--u)); right: calc(20 * var(--u)); bottom: calc(16 * var(--u)); }
.c-kick { margin: 0 0 calc(4 * var(--u)); font: 400 calc(11 * var(--u))/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hero-ink); opacity: 0.8; }
.c-name { margin: 0; font: 700 calc(32 * var(--u))/1.1 var(--display); letter-spacing: -0.03em; color: var(--hero-ink); }
.c-body { padding: calc(16 * var(--u)) calc(16 * var(--u)) 0; display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.c-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); }
.c-tile { background: var(--surface); border: 1px solid var(--border); padding: calc(12 * var(--u)) calc(14 * var(--u)); }
.c-tile b { display: block; font: 600 calc(12 * var(--u))/1.3 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.c-tile span { display: block; margin-top: calc(4 * var(--u)); font: 500 calc(22 * var(--u))/1.2 var(--mono); letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.c-sum { margin: 0; font: 400 calc(16 * var(--u))/1.5 var(--body); color: var(--soft); }
.c-tip { position: relative; background: color-mix(in srgb, var(--accent) 14%, var(--bg)); padding: calc(16 * var(--u)) calc(18 * var(--u)); }
.c-tip .bk { --s: calc(12 * var(--u)); inset: calc(4 * var(--u)); }
.c-tip p { margin: 0; font: 500 calc(15 * var(--u))/1.5 var(--body); color: var(--text); }
.c-tip p.k { margin-bottom: calc(6 * var(--u)); font: 400 calc(11 * var(--u))/1 var(--mono); letter-spacing: 0.14em; color: var(--accent); }

/* Wizard screen */
.w-body { padding: calc(8 * var(--u)) calc(20 * var(--u)); display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.w-step { font: 400 calc(11 * var(--u))/1 var(--mono); letter-spacing: 0.14em; color: var(--accent); margin: 0; }
.w-title { margin: calc(4 * var(--u)) 0 0; font: 700 calc(30 * var(--u))/1.1 var(--display); letter-spacing: -0.03em; color: var(--text); }
.w-sub { margin: 0 0 calc(12 * var(--u)); font: 400 calc(16 * var(--u))/1.4 var(--body); color: var(--muted); }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); }
.w-grid span { position: relative; display: flex; align-items: center; height: calc(58 * var(--u)); padding: 0 calc(16 * var(--u)); background: var(--surface); border: 1px solid var(--border); font: 600 calc(16 * var(--u))/1 var(--body); color: var(--text); }
.w-grid span.on { border-color: var(--accent); }
.w-grid span.on .bk { --s: calc(10 * var(--u)); inset: calc(-5 * var(--u)); }

/* Live Shoot screen — laid out in landscape inside the portrait screen */
.scr-live {
  inset: auto; left: 50%; top: 50%;
  width: 100cqh; height: 100cqw;
  transform: translate(-50%, -50%) rotate(90deg);
  padding: calc(18 * var(--u)) calc(60 * var(--u)) calc(14 * var(--u));
  gap: calc(14 * var(--u));
}
.l-head { display: flex; align-items: center; gap: calc(14 * var(--u)); font: 600 calc(17 * var(--u))/1 var(--body); color: var(--text); }
.l-head .x { font: 400 calc(18 * var(--u))/1 var(--mono); color: var(--muted); }
.l-head .m { margin-left: auto; font: 500 calc(13 * var(--u))/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); }
.l-tiles { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(10 * var(--u)); }
.l-tile { position: relative; display: flex; flex-direction: column; justify-content: center; gap: calc(8 * var(--u)); padding: calc(14 * var(--u)); background: var(--surface); border: 1px solid var(--border); }
.l-tile b { font: 600 calc(12 * var(--u))/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.l-tile span { font: 500 calc(40 * var(--u))/1 var(--mono); letter-spacing: -0.04em; color: var(--text); white-space: nowrap; }
.l-tile.adj { border-color: var(--accent); }
.l-tile.adj .bk { --s: calc(12 * var(--u)); inset: calc(-6 * var(--u)); }
.l-step { display: flex; justify-content: space-between; margin-top: calc(6 * var(--u)); }
.l-step i { font-style: normal; display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(30 * var(--u)); border: 1px solid var(--border); font: 400 calc(18 * var(--u))/1 var(--mono); color: var(--text); }
.l-dots { display: flex; justify-content: center; gap: calc(8 * var(--u)); }
.l-dots i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); background: var(--border); }
.l-dots i:first-child { background: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; margin-top: calc(-1 * var(--head)); padding-top: var(--head); }
.hero-bg { position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%; filter: var(--img-filter); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 30%, transparent 45%, var(--bg) 92%),
    radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--bg) 55%, transparent), transparent 70%);
}
.hero-in { display: grid; gap: 48px; padding-top: 56px; padding-bottom: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-size: clamp(50px, 8vw, 116px); line-height: 0.92; letter-spacing: -0.055em; }
.hero h1 span { display: block; }
.hero h1 .dim { color: color-mix(in srgb, var(--text) 55%, transparent); }
.hero .lead { color: var(--soft); max-width: 27em; }
.badge { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px; background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.badge img { width: 34px; height: 34px; filter: var(--img-filter); }
.badge strong { display: block; font: 600 16px/1.2 var(--display); letter-spacing: -0.01em; }
.badge small { display: block; font: 400 11px/14px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.hero-device { display: flex; justify-content: center; padding-bottom: 0; height: 520px; overflow: hidden; }
.hero-device .phone { --ph: 640px; }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); align-items: center; gap: 32px; padding-top: 64px; padding-bottom: 96px; min-height: calc(100svh - var(--head)); }
  .hero-device { height: auto; overflow: visible; }
  .hero-device .phone { --ph: min(720px, calc(100svh - 120px)); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-bg img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-device .phone { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
  .intro .hero-copy > * { opacity: 0; transform: translateY(18px); animation: enter 1s var(--ease) forwards; }
  .intro .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .intro .hero-copy > :nth-child(3) { animation-delay: 0.22s; }
  .intro .hero-copy > :nth-child(4) { animation-delay: 0.32s; }
  .intro .hero-device { opacity: 0; transform: translateY(60px); animation: enter 1.4s var(--ease) 0.2s forwards; }
}
@keyframes drift { to { transform: translateY(12%); } }
@keyframes lift { to { transform: translateY(-60px); } }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
@media (min-width: 1000px) { .section { padding: 160px 0; } }
.statement { text-align: center; display: grid; justify-items: center; gap: 20px; }
.statement .big { font: 700 clamp(54px, 10vw, 150px)/0.9 var(--display); letter-spacing: -0.06em; margin: 0; }
.statement .lead { margin: 0 auto; text-align: center; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ── Story — pinned phone, scrolling steps ────────────────────────── */
.story { position: relative; padding: 96px 0 40px; }
.story-head { text-align: center; display: grid; gap: 16px; justify-items: center; margin-bottom: 24px; }
.story-grid { display: grid; }
.stage {
  position: sticky; top: calc(var(--head) + 12px); z-index: 1;
  height: min(52svh, 440px);
  display: grid; place-items: center;
}
.stage .phone { --ph: min(52svh, 440px); --rot: 0.8; transition: transform 1s var(--ease); }
.steps { position: relative; z-index: 2; }
.step { min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6svh; }
.step-card { display: grid; gap: 12px; padding: 22px 0 8px; background: linear-gradient(to bottom, transparent, var(--bg) 22px); }
.step .num { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 30em; }
.step p strong { color: var(--text); font-weight: 500; }
.notation { display: inline-block; font: 500 0.92em/1 var(--mono); color: var(--text); background: var(--surface-alt); padding: 3px 6px; white-space: nowrap; }
@media (min-width: 900px) {
  .story { padding: 160px 0 80px; }
  .story-head { margin-bottom: 0; }
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .stage { order: 2; top: calc(var(--head) + (100svh - var(--head) - min(76svh, 700px)) / 2); height: min(76svh, 700px); }
  .stage .phone { --ph: min(76svh, 700px); --rot: 0.82; }
  .steps { order: 1; }
  .step { min-height: 100svh; justify-content: center; padding-bottom: 0; }
  .step-card { background: none; padding: 0; gap: 16px; }
  .step p { font-size: 19px; }
}
.scr { transition: opacity 0.6s ease; }
.story .scr { opacity: 0; }
.story[data-active="1"] .scr-wizard,
.story[data-active="2"] .scr-card,
.story[data-active="3"] .scr-live { opacity: 1; }
.story[data-active="3"] .stage .phone { transform: rotate(-90deg) scale(var(--rot)); }
@media (prefers-reduced-motion: no-preference) {
  html.js .step-card { opacity: 0.25; transition: opacity 0.5s ease; }
  html.js .step.is-active .step-card { opacity: 1; }
}

/* ── Gallery — horizontal, scroll-snapping ───────────────────────── */
.gallery-head { display: grid; gap: 20px; justify-items: center; text-align: center; margin-bottom: 56px; }
.gallery { position: relative; }
.g-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 400px); gap: 16px;
  margin: 0; padding: 8px max(var(--gutter), calc((100% - var(--max)) / 2)) 24px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  scrollbar-width: none;
}
.g-track::-webkit-scrollbar { display: none; }
.g-card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.g-img { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--surface-alt); }
.g-img img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform 1.2s var(--ease), filter 0.7s ease; }
.g-card:hover .g-img img { transform: scale(1.04); }
.g-img .bk { --s: 16px; }
.g-meta { padding: 16px 16px 4px; display: grid; gap: 6px; }
.g-meta h3 { font-size: 19px; }
.g-read { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); margin: 12px 0 0; border-top: 1px solid var(--border); }
.g-read div { padding: 10px 8px 14px 12px; border-right: 1px solid var(--border); min-width: 0; }
.g-read div:last-child { border-right: 0; }
.g-read dt { font: 600 10px/14px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.g-read dd { margin: 4px 0 0; font: 500 13px/1.2 var(--mono); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ctrl { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.g-ctrl[hidden] { display: none; }
.g-ctrl button { width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); color: var(--text); font: 400 18px/1 var(--mono); cursor: pointer; border-radius: 0; }
.g-ctrl button:hover { border-color: var(--accent); color: var(--accent); }
.g-ctrl button:disabled { opacity: 0.35; cursor: default; border-color: var(--border); color: var(--text); }

/* ── Offline readout ──────────────────────────────────────────────── */
.readout { position: relative; width: min(100%, 560px); margin: 24px auto 0; background: var(--surface); padding: 12px 28px; text-align: left; }
.readout dl { margin: 0; }
.readout div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.readout div:last-child { border-bottom: 0; }
.readout dt { font: 400 11px/14px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 0; font: 500 15px/1.2 var(--mono); text-align: right; }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; vertical-align: middle; margin-right: 10px; }
.bars i { width: 4px; border: 1px solid var(--muted); }
.bars i:nth-child(1) { height: 25%; } .bars i:nth-child(2) { height: 50%; } .bars i:nth-child(3) { height: 75%; } .bars i:nth-child(4) { height: 100%; }
.ok::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* ── Notation ─────────────────────────────────────────────────────── */
.dials { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); width: 100%; max-width: 980px; margin: 32px auto 0; }
.dial { background: var(--bg); padding: 28px 20px; display: grid; gap: 10px; justify-items: center; }
.dial .v { font: 500 clamp(44px, 5.4vw, 72px)/1 var(--mono); letter-spacing: -0.06em; white-space: nowrap; }
.dial .v .sl { color: var(--accent); margin: 0 0.12em; }
@media (min-width: 720px) { .dials { grid-template-columns: repeat(3, 1fr); } .dial { padding: 48px 20px; } }

/* ── Night showpiece ──────────────────────────────────────────────── */
.night-show { position: relative; padding: 120px 0 0; overflow: hidden; isolation: isolate; }
.night-show .wrap { display: grid; gap: 56px; justify-items: center; text-align: center; }
.night-show .copy { display: grid; gap: 20px; justify-items: center; }
.night-show .phone { --ph: 600px; }
.night-show .glow { position: absolute; left: 50%; top: 70%; width: 1000px; height: 1000px; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%); pointer-events: none; z-index: -1; opacity: 0; transition: opacity 1s ease; }
:root[data-theme="red"] .night-show .glow { opacity: 1; }
.night-show .phone-crop { height: 440px; overflow: hidden; display: flex; justify-content: center; width: 100%; }
@media (min-width: 1000px) {
  .night-show { padding: 180px 0 0; }
  .night-show .phone-crop { height: 560px; }
  .night-show .phone { --ph: 720px; }
}
.night-note { font: 400 12px/18px var(--mono); color: var(--muted); letter-spacing: 0.04em; margin: 0; }

/* ── Pricing ──────────────────────────────────────────────────────── */
.plans { display: grid; gap: 16px; width: 100%; max-width: 900px; margin: 40px auto 0; text-align: left; }
.plan { position: relative; padding: 32px 28px; background: var(--surface); display: grid; gap: 10px; align-content: start; }
.plan h3 { font-size: 28px; letter-spacing: -0.03em; }
.plan p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } .plan { padding: 44px 40px; } }

/* ── Closing ──────────────────────────────────────────────────────── */
.closing { text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 24px; }
.closing .mark { position: relative; padding: 22px; }
.closing .mark img { width: 112px; height: 112px; filter: var(--img-filter); }
.closing h2 { font-size: clamp(40px, 7vw, 96px); letter-spacing: -0.05em; line-height: 0.95; }
.closing p { margin: 0; color: var(--muted); font-size: 17px; }

/* ── Text pages (privacy, support, imprint) ──────────────────────── */
.doc { padding: 72px 0 104px; }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.95; letter-spacing: -0.05em; margin: 14px 0 18px; }
.doc .updated { font: 400 12px/18px var(--mono); color: var(--muted); margin: 0 0 48px; }
.doc h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 56px 0 14px; }
.doc h3 { font-size: 17px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--text); font-weight: 600; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 3px; background: var(--accent); }
.doc .callout { position: relative; background: var(--surface); padding: 24px 26px; margin: 24px 0; }
.doc .callout p:last-child { margin-bottom: 0; }

.legal { margin: 0; border-top: 1px solid var(--border); }
.legal > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.legal dt { font: 400 11px/18px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legal dd { margin: 0; font-size: 18px; }
@media (min-width: 720px) { .legal > div { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; } }

.faq { border-top: 1px solid var(--border); margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 17px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 20px/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { font: 400 11px/18px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--accent); }
.foot p { margin: 0; }
.foot p a { white-space: nowrap; }
@media (min-width: 860px) {
  .foot .wrap { grid-template-columns: auto 1fr; align-items: center; }
  .foot .wrap > p { justify-self: end; text-align: right; }
}

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.gallery-head .lead, .night-show .lead { text-align: center; }
.c-h { margin: calc(4 * var(--u)) 0 0; font: 600 calc(20 * var(--u))/1.3 var(--body); color: var(--text); }
.c-list { margin: 0; padding: 0; list-style: none; display: grid; gap: calc(10 * var(--u)); }
.c-list li { position: relative; padding-left: calc(18 * var(--u)); font: 400 calc(15 * var(--u))/1.5 var(--body); color: var(--soft); }
.c-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: calc(8 * var(--u)); height: calc(3 * var(--u)); background: var(--accent); }
.tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); padding: calc(14 * var(--u)) 0 calc(34 * var(--u)); background: var(--bg); }
.tabbar span { text-align: center; font: 400 calc(11 * var(--u))/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tabbar span.on { color: var(--accent); }
.screen { text-align: left; }
@media (min-width: 1000px) {
  .hero h1 { font-size: clamp(64px, 6.6vw, 100px); }
  .hero h1 span { white-space: nowrap; }
}
