/* Molt website. Light, soft cards; one radius scale (28 / 20 / 14 / pill) and one shadow scale. */

:root {
  color-scheme: light;
  --bg: #eef0f3;
  --card: #ffffff;
  --soft: #f4f5f7;
  --ink: #0e1014;
  --muted: #6f7681;
  --faint: #9aa0aa;
  --line: rgba(14, 16, 20, 0.08);
  --blue: #3478f6;
  --safe: #16a37f;
  --caution: #d97a14;
  --risky: #e0444b;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --max: 1160px;
  --gutter: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 1px var(--line);
  --shadow:
    0 0 0 1px rgba(14, 16, 20, 0.05),
    0 2px 6px rgba(16, 24, 40, 0.04),
    0 22px 50px -22px rgba(16, 24, 40, 0.22);
  --shadow-lg:
    0 0 0 1px rgba(14, 16, 20, 0.05),
    0 4px 12px rgba(16, 24, 40, 0.05),
    0 40px 80px -30px rgba(16, 24, 40, 0.3);
  --glow-1: #dde8fc;
  --glow-2: #e2f4ee;
  --btn-bg: #0e1014;
  --btn-ink: #ffffff;
  --quiet-bg: rgba(14, 16, 20, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.76);
  --nav-edge: rgba(255, 255, 255, 0.9);
  --track: #e9ecf1;
  --seg-used: #9aa3b2;
  --checked-bg: #eff4ff;
  --check-edge: #c5cad3;
  --footer-bg: #fbfbfc;
  --disabled-bg: #d9dce2;
  --disabled-ink: #ffffff;
  --chip-ink: #3b4048;
  --chip-bg: rgba(255, 255, 255, 0.8);
  --frame-bg: rgba(255, 255, 255, 0.85);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

/* Dark theme: chosen in the menu bar, or the system's when nothing was chosen. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d11;
  --card: #15181e;
  --soft: #1d2128;
  --ink: #f1f3f6;
  --muted: #9ba3ae;
  --faint: #6c7480;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #4d8bff;
  --safe: #2fc79a;
  --caution: #f0a03a;
  --risky: #ff6b6f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 50px -22px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  --glow-1: rgba(52, 120, 246, 0.18);
  --glow-2: rgba(22, 163, 127, 0.1);
  --btn-bg: #f1f3f6;
  --btn-ink: #0e1014;
  --quiet-bg: rgba(255, 255, 255, 0.07);
  --nav-bg: rgba(21, 24, 30, 0.74);
  --nav-edge: rgba(255, 255, 255, 0.06);
  --track: #262b33;
  --seg-used: #5d6675;
  --checked-bg: rgba(77, 139, 255, 0.16);
  --check-edge: #4a515c;
  --footer-bg: #12151a;
  --disabled-bg: #2a2f37;
  --disabled-ink: #6c7480;
  --chip-ink: #c9ced6;
  --chip-bg: rgba(255, 255, 255, 0.05);
  --frame-bg: rgba(255, 255, 255, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d11;
    --card: #15181e;
    --soft: #1d2128;
    --ink: #f1f3f6;
    --muted: #9ba3ae;
    --faint: #6c7480;
    --line: rgba(255, 255, 255, 0.08);
    --blue: #4d8bff;
    --safe: #2fc79a;
    --caution: #f0a03a;
    --risky: #ff6b6f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 50px -22px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.85);
    --glow-1: rgba(52, 120, 246, 0.18);
    --glow-2: rgba(22, 163, 127, 0.1);
    --btn-bg: #f1f3f6;
    --btn-ink: #0e1014;
    --quiet-bg: rgba(255, 255, 255, 0.07);
    --nav-bg: rgba(21, 24, 30, 0.74);
    --nav-edge: rgba(255, 255, 255, 0.06);
    --track: #262b33;
    --seg-used: #5d6675;
    --checked-bg: rgba(77, 139, 255, 0.16);
    --check-edge: #4a515c;
    --footer-bg: #12151a;
    --disabled-bg: #2a2f37;
    --disabled-ink: #6c7480;
    --chip-ink: #c9ced6;
    --chip-bg: rgba(255, 255, 255, 0.05);
    --frame-bg: rgba(255, 255, 255, 0.05);
  }
}

/* The crab artwork has a white background. On light cards it disappears; on dark ones it reads as a white tile. */
.mascot { border-radius: 14px; background: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1000px 640px at 88% -12%, var(--glow-1) 0%, transparent 62%),
    radial-gradient(760px 520px at -12% 18%, var(--glow-2) 0%, transparent 58%),
    var(--bg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.015em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid rgba(52, 120, 246, 0.45); outline-offset: 3px; border-radius: 10px; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  font: inherit; font-size: 0.95rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
}
.pill svg { width: 18px; height: 18px; stroke-width: 2.2; }
.pill-dark { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 8px 20px -10px rgba(14, 16, 20, 0.6); }
.pill-dark:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(14, 16, 20, 0.6); }
.pill-light { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.pill-light:hover { transform: translateY(-1px); }
.pill-quiet { height: 34px; padding: 0 12px; font-size: 0.82rem; color: var(--muted); background: var(--quiet-bg); }
.pill-quiet:hover { color: var(--ink); }
.theme-toggle { width: 34px; padding: 0; }
.theme-toggle svg { width: 17px; height: 17px; stroke-width: 2; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.pill-large { height: 52px; padding: 0 24px; font-size: 1rem; }
.is-disabled { opacity: 0.55; pointer-events: none; }

/* Navigation */
.nav-wrap { position: sticky; top: 12px; z-index: 20; padding: 0 16px; }
.nav {
  max-width: 980px; margin: 0 auto; padding: 7px 7px 7px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--nav-edge) inset, 0 10px 30px -18px rgba(16, 24, 40, 0.35), 0 0 0 1px var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; font-size: 0.93rem; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Layout */
.section { max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 0; }
/* Anchored sections stop below the floating navigation bar. */
section[id] { scroll-margin-top: 70px; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.12rem; color: var(--muted); }
.card { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); min-width: 0; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 84px var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.lead { margin: 22px 0 32px; max-width: 31rem; font-size: 1.18rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--faint); }

/* The demo window: a miniature Molt that checks, cleans and celebrates on a loop */
/* text-align: the hero centers its copy on small screens, but the window reads like the app: left aligned. */
.demo { position: relative; padding-bottom: 46px; text-align: left; }
.demo-window {
  max-width: 500px; margin-left: auto; overflow: hidden;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg);
}
.demo-titlebar { position: relative; display: flex; align-items: center; justify-content: center; height: 42px; border-bottom: 1px solid var(--line); }
.dots { position: absolute; left: 14px; display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.demo-title { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.demo-disk { padding: 16px 18px 6px; }
.demo-disk-head { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--muted); }
.demo-disk-head span:first-child { color: var(--ink); font-weight: 600; }
.demo-disk-head strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-bar { display: flex; height: 10px; margin-top: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.demo-bar span { height: 100%; transition: width 1.1s var(--ease); }
.seg-used { width: 87%; background: var(--seg-used); }
.seg-junk { width: 6%; background: linear-gradient(90deg, #ff8a5c, #f45f7c); }
.demo.is-clean .seg-junk { width: 0; }
.demo-list { position: relative; list-style: none; margin: 8px 0 0; padding: 0 10px; }
.demo-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  opacity: 0; transform: scale(0.96); transition: opacity 0.5s var(--ease) 0.35s, transform 0.5s var(--ease) 0.35s;
  pointer-events: none;
}
.demo-empty img { width: 104px; height: auto; }
.demo.is-clean .demo-empty { opacity: 1; transform: none; }
.demo-row {
  display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto 64px; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 12px; font-size: 0.9rem;
  transition: background 0.3s, opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.demo-row.is-checked { background: var(--checked-bg); }
.demo.is-clean .demo-row { opacity: 0; transform: translateX(-24px); }
.demo-check {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--check-edge); color: #fff; transition: background 0.2s, box-shadow 0.2s;
}
.demo-check svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s var(--ease); }
.is-checked .demo-check { background: var(--blue); box-shadow: none; }
.is-checked .demo-check svg { opacity: 1; transform: none; }
.demo-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%), var(--c);
}
.demo-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.demo-icon.small { width: 28px; height: 28px; border-radius: 8px; }
.demo-icon.small svg { width: 15px; height: 15px; }
.demo-name { display: grid; min-width: 0; font-weight: 600; }
.demo-name small { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-size { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding: 12px 14px 12px 18px; border-top: 1px solid var(--line); background: var(--footer-bg);
}
.demo-count { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-clean { height: 36px; padding: 0 16px; font-size: 0.88rem; min-width: 128px; }
.demo-clean.is-pressed { transform: scale(0.95); }
.demo-clean[aria-disabled="true"] { background: var(--disabled-bg); color: var(--disabled-ink); box-shadow: none; }
.demo-toast {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.demo-toast img { width: 64px; height: 64px; object-fit: contain; }
.demo-toast div { display: grid; }
.demo-toast strong { font-size: 0.95rem; }
.demo-toast span { font-size: 0.85rem; color: var(--safe); font-weight: 600; }
.demo.is-done .demo-toast { opacity: 1; transform: none; }

.tag { display: inline-block; flex: none; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.tag-safe { color: var(--safe); background: rgba(22, 163, 127, 0.11); }
.tag-caution { color: var(--caution); background: rgba(217, 122, 20, 0.12); }
.tag-risky { color: var(--risky); background: rgba(224, 68, 75, 0.11); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fact { padding: 30px; display: grid; gap: 8px; align-content: start; }
.fact strong { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.fact h3 { color: var(--ink); }
.fact p { color: var(--muted); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-number {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700; color: var(--btn-ink); background: var(--btn-bg);
}
.step > p { color: var(--muted); font-size: 0.95rem; }
.step-art { margin-top: auto; padding-top: 10px; }
.mini-line {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md);
  background: var(--soft); font-size: 0.9rem; font-weight: 600;
}
.mini-line + .mini-line { margin-top: 6px; }
.mini-line > span:nth-child(2) { flex: 1; }
.mini-line b { font-variant-numeric: tabular-nums; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--track); border-top-color: var(--blue); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.explain { padding: 14px 16px; border-radius: var(--r-md); background: var(--soft); display: grid; gap: 6px; }
.explain-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.explain p { font-size: 0.88rem; color: var(--muted); }
.explain .explain-back { display: flex; align-items: center; gap: 6px; color: var(--safe); font-weight: 600; }
.explain-back svg { width: 16px; height: 16px; stroke-width: 2.6; }
.freed {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px;
  border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-sm);
}
.freed img { width: 76px; height: 64px; object-fit: contain; }
.freed div { display: grid; }
.freed strong { font-size: 0.95rem; }
.freed span { color: var(--safe); font-weight: 600; font-size: 0.88rem; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category { padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.category:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.category .demo-icon { margin-bottom: 6px; }
.examples { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.examples li {
  padding: 2px 8px; border-radius: 7px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.6; color: var(--chip-ink); white-space: nowrap;
}
.back { flex: 1; font-size: 0.9rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* Safety */
.safety { padding: 44px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 44px; align-items: center; }
.safety-copy > p { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { margin-top: 2px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: var(--safe); stroke-width: 3; }
.levels { display: grid; gap: 10px; }
.level { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); background: var(--soft); }
.level .tag { margin-top: 2px; min-width: 64px; text-align: center; }
.level strong { display: block; font-size: 0.98rem; }
.level p { font-size: 0.9rem; color: var(--muted); }

/* App screenshots, one over the other */
.shots { position: relative; max-width: 980px; margin: 0 auto; padding-bottom: 110px; }
.frame { margin: 0; padding: 8px; border-radius: var(--r-xl); background: var(--frame-bg); box-shadow: var(--shadow-lg); }
.frame img { border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }
.shot-back { width: 82%; }
.shot-front { position: absolute; right: 0; bottom: 0; width: 56%; }
.highlights {
  list-style: none; margin: 40px auto 0; padding: 0; max-width: 820px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.highlights li { padding: 9px 16px; border-radius: 999px; background: var(--chip-bg); box-shadow: var(--shadow-sm); font-size: 0.92rem; }

/* Privacy and open source */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.duo-card { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.duo-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: 6px; background: var(--soft); box-shadow: var(--shadow-sm); }
.duo-card p { color: var(--muted); }
.text-link { margin-top: 6px; font-weight: 600; color: var(--blue); }
.text-link::after { content: " →"; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 820px; margin: 0 auto; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.plan-name { font-weight: 600; color: var(--muted); }
.plan-price { font-size: 2.9rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.plan p { flex: 1; margin-bottom: 14px; color: var(--muted); }
.plan .pill { width: 100%; height: 50px; }

/* Questions */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Closing */
.closing { padding: 32px 32px 52px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.closing img { width: min(560px, 100%); padding: 20px 28px; border-radius: 24px; }

.footer {
  max-width: var(--max); margin: 100px auto 0; padding: 26px var(--gutter) 44px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line);
}
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--ink); }

/* Entrances: each block rises once as it scrolls into view, staggered by --d */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.visible { opacity: 1; transform: none; }

/* Privacy and support pages */
.page { max-width: 720px; margin: 0 auto; padding: 80px var(--gutter) 0; }
.page h1 { font-size: clamp(2.3rem, 5vw, 3.1rem); margin-bottom: 20px; }
.page h2 { font-size: 1.35rem; margin: 40px 0 10px; letter-spacing: -0.02em; }
.page h3 { margin: 24px 0 6px; }
.page p, .page li { color: var(--muted); }
.page a:not(.pill) { color: var(--blue); }

/* Tablet */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 60px; text-align: center; }
  /* Two balanced lines instead of one long one when the hero is centered. */
  .hero h1 { max-width: 13em; margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .demo { max-width: 500px; width: 100%; margin: 0 auto; }
  .demo-window { margin: 0 auto; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: minmax(0, 1fr); padding: 34px; }
  .nav-links { display: none; }
}

/* Phone */
@media (max-width: 680px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 32px; }
  .hero { padding-top: 44px; }
  .lead { font-size: 1.06rem; }
  .hero-actions .pill { width: 100%; }
  .facts, .steps, .duo, .plans { grid-template-columns: minmax(0, 1fr); }
  .categories { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* Icon beside the text, so eight categories stay a short scroll. */
  .category { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 18px; }
  .category > * { grid-column: 2; }
  .category .demo-icon { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .demo { padding-bottom: 54px; }
  .demo-row { grid-template-columns: 20px 30px minmax(0, 1fr) 54px; gap: 8px; padding: 8px 6px; font-size: 0.84rem; }
  .demo-row .tag { display: none; }
  .demo-icon { width: 30px; height: 30px; }
  .demo-icon svg { width: 16px; height: 16px; }
  .demo-clean { min-width: 0; }
  .demo-toast { left: 50%; transform: translate(-50%, 14px) scale(0.96); white-space: nowrap; }
  .demo.is-done .demo-toast { transform: translate(-50%, 0); }
  .fact, .step, .duo-card, .plan { padding: 24px; }
  .safety { padding: 24px; gap: 28px; }
  .level { flex-direction: column; gap: 8px; }
  .level .tag { min-width: 0; }
  /* Side by side the two windows get too small to read, so they stack. */
  .shots { padding-bottom: 0; display: grid; gap: 14px; }
  .shot-back, .shot-front { position: static; width: 100%; }
  .frame { padding: 5px; border-radius: 18px; }
  .frame img { border-radius: 13px; }
  .closing { padding: 20px 20px 36px; }
  .closing .pill { width: 100%; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
  .nav { padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
