/* Shorts Flow website, in the Tideline brand (Shorts Flow docs/design/brand).
   The idea: one Pearl line low across a night sky. A Short plays along it, and
   when it reaches the end the feed rolls on by itself, like a tide.
   Night is for Auto-Scroll only (the stage), Pearl only for the line and the
   Auto-Scroll button, Tide for actions. Dawn Sand is a website-only accent,
   used once: the first light on the stage's horizon. Never text.
   Order: fonts, tokens (light, then dark), base, layout, header, buttons,
   hero and stage, home sections, other pages, footer, motion. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/assets/fonts/sora-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/assets/fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/assets/fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/assets/fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand constants */
  --abyss: #0b1220;
  --deep-tide: #16233f;
  --tide: #3b5bd9;
  --tide-light: #8fa8f5;
  --pearl-1: #e6f4fb;
  --pearl-2: #93cbe8;
  --sand: #e9c9a3;

  /* Light */
  --bg: #f6f7fa;
  --surface: #ffffff;
  --sunken: #eceef3;
  --ink: #111726;
  --muted: #5d6576;
  --line: rgba(17, 23, 38, 0.1);
  --line-strong: rgba(17, 23, 38, 0.18);
  --accent: var(--tide);
  --accent-ink: #ffffff;
  --accent-soft: rgba(59, 91, 217, 0.09);
  --ok: #2f8f72;
  --shadow-sm: 0 1px 2px rgba(17, 23, 38, 0.05), 0 4px 12px -6px rgba(17, 23, 38, 0.1);
  --shadow: 0 1px 2px rgba(17, 23, 38, 0.05), 0 12px 32px -16px rgba(17, 23, 38, 0.22);
  --stage-shadow: 0 50px 90px -50px rgba(11, 18, 32, 0.65), 0 20px 40px -30px rgba(11, 18, 32, 0.4);
  --header-bg: rgba(246, 247, 250, 0.84);

  --night: radial-gradient(120% 120% at 12% 0%, #24396b 0%, #142039 46%, var(--abyss) 100%);
  --pearl: linear-gradient(90deg, var(--pearl-1), var(--pearl-2));

  /* Type: Sora 600 for display, Instrument Sans for everything else. */
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --ui: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-lg: 1.125rem;
  --t-lede: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --t-h3: 1.1875rem;
  --t-h2: clamp(1.875rem, 1.3rem + 2.1vw, 2.875rem);
  --t-page: clamp(2.25rem, 1.55rem + 2.6vw, 3.375rem);
  --t-h1: clamp(2.5rem, 1.45rem + 3.9vw, 4.25rem);

  /* Space: 4 8 12 16 24 32 48 64 96, and one rhythm for sections. */
  --section: clamp(72px, 8.5vw, 120px);
  --head-gap: clamp(36px, 4.5vw, 64px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1200px;
  --gutter: max(20px, min(5vw, 40px), env(safe-area-inset-left, 0px));

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-tide: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d111a; --surface: #151b28; --sunken: #1d2534; --ink: #eef1f7; --muted: #99a1b3;
    --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16);
    --accent: var(--tide-light); --accent-ink: var(--abyss); --accent-soft: rgba(143, 168, 245, 0.11);
    --ok: #67cfa9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -6px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.65);
    --stage-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --header-bg: rgba(13, 17, 26, 0.82);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d111a; --surface: #151b28; --sunken: #1d2534; --ink: #eef1f7; --muted: #99a1b3;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16);
  --accent: var(--tide-light); --accent-ink: var(--abyss); --accent-soft: rgba(143, 168, 245, 0.11);
  --ok: #67cfa9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -6px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.65);
  --stage-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --header-bg: rgba(13, 17, 26, 0.82);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--ui); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
main { flex: 1; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: var(--t-h2); letter-spacing: -0.032em; }
h3 { font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.num, kbd { font-variant-numeric: tabular-nums; }
kbd {
  font-family: var(--mono); font-size: 0.85em; font-weight: 600; color: var(--ink);
  display: inline-grid; place-items: center; min-width: 1.85em; height: 1.85em; padding: 0 0.45em;
  background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 7px;
  vertical-align: 0.06em; line-height: 1;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section-rule { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 42rem; margin-bottom: var(--head-gap); }
.section-head > p:not(.overline) { color: var(--muted); font-size: var(--t-lede); }
.stack { display: grid; gap: 20px; }
.overline {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font: 600 0.75rem/1.2 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.overline::before { content: ""; width: 24px; height: 1.5px; flex: none; background: currentColor; opacity: 0.75; }
.lede { font-size: var(--t-lede); color: var(--muted); max-width: 36rem; line-height: 1.55; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; transition: background-color 0.2s, box-shadow 0.2s; }
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.0625rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; margin-left: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: var(--t-sm); padding: 8px 12px; border-radius: 9px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover { background: var(--sunken); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid transparent; padding: 0;
}
.icon-btn:hover { color: var(--ink); background: var(--sunken); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle { border-color: var(--line); }
.theme-toggle .i-moon { display: none; }
:root[data-resolved-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-resolved-theme="dark"] .theme-toggle .i-moon { display: block; }
.header-cta { margin-left: 6px; }
@media (max-width: 900px) { .nav { display: none; } }
/* On a phone there's nothing to install, and the hero says so: keep the name, drop the button. */
@media (max-width: 560px) { .header-actions .header-cta { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 1rem/1 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s, border-color 0.15s, filter 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: var(--t-sm); border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px -10px var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--sunken); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--sunken); }
.btn.is-soon, .btn[aria-disabled="true"] { background: var(--sunken); color: var(--muted); box-shadow: none; border-color: var(--line); cursor: default; filter: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.arrow-link svg { width: 17px; height: 17px; transition: transform 0.15s; }
.arrow-link:hover svg { transform: translateX(3px); }
.arrow-link[href^="#"]:hover svg { transform: translateY(2px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.hero h1 { font-size: clamp(2.5rem, 1.25rem + 3.3vw, 3.75rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy h1 .accent { display: block; color: var(--accent); }
.hero-copy .cta-row { margin-top: 8px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: var(--t-sm); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.hero-browsers { color: var(--muted); font-size: var(--t-sm); margin-top: -10px; }
.mobile-note { display: none; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: var(--t-sm); }
.is-mobile .mobile-note { display: block; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .stage-wrap { max-width: 680px; width: 100%; justify-self: center; }
}
@media (max-width: 480px) {
  .btn-lg { min-height: 50px; padding: 0 18px; font-size: 1rem; }
  .hero .cta-row > .btn { flex: 1 1 auto; }
}
.hero-in { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- The stage ----------
   A night sky with a desktop browser on youtube.com/shorts: one Short playing,
   YouTube's action rail with the Auto-Scroll button, and (in the hero) the
   toolbar popup. Neutral and illustrative: no YouTube logo, red or icons.
   Everything inside is in em, and 1em is 1/37.5 of the stage's width, so the
   picture scales as one piece. feed.js moves it; without JS it's a still. */
.stage-wrap { margin: 0; display: grid; gap: 14px; }
.stage {
  position: relative; aspect-ratio: 10 / 9; border-radius: clamp(18px, 2.4vw, 28px); overflow: hidden;
  background: var(--night); box-shadow: var(--stage-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  container-type: inline-size; isolation: isolate; color: #eef3fb;
}
.stage-in { position: absolute; inset: 0; font-size: 16px; font-size: calc(100cqw / 37.5); }
.stage::before { /* sheen from the top left, as on the icon tile */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 0% 0%, rgba(255, 255, 255, 0.09), transparent 70%);
}
.stage::after { /* first light on the horizon: the one Dawn Sand on the page */
  content: ""; position: absolute; z-index: 0; pointer-events: none; right: -10%; bottom: -16%; width: 70%; height: 38%;
  background: radial-gradient(closest-side, rgba(233, 201, 163, 0.2), transparent);
}
.tideline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 6.5em; z-index: 0; pointer-events: none; }
.tideline path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.browser {
  position: absolute; left: 1.75em; right: 1.75em; top: 1.75em; height: 26.25em; z-index: 1;
  border-radius: 0.85em; overflow: hidden; background: #0a0f19;
  box-shadow: 0 1.6em 3.2em -1.2em rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.browser-bar { position: relative; height: 2.1em; display: flex; align-items: center; gap: 0.38em; padding: 0 0.9em; background: #111826; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.browser-bar > i { width: 0.5em; height: 0.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.url {
  display: flex; align-items: center; gap: 0.4em; height: 1.35em; margin-left: 0.9em; padding: 0 0.75em; width: 15em;
  border-radius: 0.7em; background: rgba(255, 255, 255, 0.06); color: rgba(230, 240, 250, 0.72);
}
.url svg { width: 0.7em; height: 0.7em; flex: none; opacity: 0.8; }
.url span { font: 500 0.62em/1 var(--ui); letter-spacing: 0.01em; white-space: nowrap; }
.ext-icon { margin-left: auto; width: 1.25em; height: 1.25em; border-radius: 0.35em; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.ext-icon img { width: 0.95em; height: 0.95em; }
.screen { position: absolute; left: 0; right: 0; top: 2.1em; bottom: 0; }
.screen-side { position: absolute; left: 1em; top: 1.5em; display: grid; gap: 0.75em; }
.screen-side i { display: block; width: 3.6em; height: 0.42em; border-radius: 0.21em; background: rgba(255, 255, 255, 0.07); }
.screen-side i:nth-child(2) { width: 2.8em; }
.screen-side i:nth-child(4) { width: 3.1em; }
.screen-side i:nth-child(5) { width: 2.4em; }
.group { position: absolute; top: 1.5em; bottom: 1.5em; left: 6.5em; display: flex; align-items: flex-end; gap: 0.9em; }
.player { position: relative; width: 11.9em; height: 100%; border-radius: 0.8em; overflow: hidden; background: #05080f; transform: translateZ(0); }
.track { position: absolute; inset: 0; display: flex; flex-direction: column; }
.short { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.short img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(4, 7, 14, 0.78)); }
.short-meta { position: absolute; left: 0.75em; right: 0.75em; bottom: 1.05em; z-index: 1; display: grid; gap: 0.35em; }
.short-meta b { display: flex; align-items: center; gap: 0.4em; font: 600 0.6em/1.2 var(--ui); }
.short-meta b::before { content: ""; width: 1.55em; height: 1.55em; border-radius: 50%; flex: none; background: var(--av, var(--pearl)); }
.short-meta span { font: 400 0.55em/1.35 var(--ui); color: rgba(255, 255, 255, 0.85); }
.line { position: absolute; left: 0; right: 0; bottom: 0; height: 0.26em; z-index: 2; background: rgba(255, 255, 255, 0.24); }
.line > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0.62); background: var(--pearl); box-shadow: 0 0 0.6em rgba(147, 203, 232, 0.6); }
.rail { display: grid; gap: 0.62em; justify-items: center; padding-bottom: 0.2em; }
.rail > i { width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.rail-auto { display: grid; gap: 0.55em; justify-items: center; margin-top: 0.2em; }
.rail-btn { position: relative; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: #272c36; color: #fff; }
.rail-btn::before { /* one Pearl ring, on the thing being sold */
  content: ""; position: absolute; inset: -0.32em; border-radius: 50%; z-index: -1;
  background: var(--pearl); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 0.16em), #000 calc(100% - 0.15em)); mask: radial-gradient(closest-side, transparent calc(100% - 0.16em), #000 calc(100% - 0.15em));
}
.rail-btn svg { width: 1.2em; height: 1.2em; }
.rail-pulse { position: absolute; inset: -0.32em; border-radius: 50%; border: 0.14em solid var(--pearl-2); opacity: 0; pointer-events: none; }
.rail-auto small { font: 500 0.48em/1 var(--ui); color: rgba(255, 255, 255, 0.86); white-space: nowrap; }

/* The toolbar popup, open under its icon (the real strings). */
.popup {
  position: absolute; right: 0.7em; top: 0.35em; width: 11.2em; z-index: 3; padding: 0.55em;
  display: grid; gap: 0.5em; border-radius: 0.8em; background: #151b28;
  box-shadow: 0 1.2em 2.4em -0.8em rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.popup-top { display: flex; align-items: center; gap: 0.4em; padding: 0.1em 0.15em 0; }
.popup-top img { width: 1em; height: 1em; }
.popup-top b { font: 600 0.58em/1 var(--display); letter-spacing: -0.02em; }
.popup-top em { margin-left: auto; font: 500 0.46em/1 var(--ui); font-style: normal; color: #99a1b3; padding: 0.3em 0.6em; border-radius: 1em; background: #1d2534; }
.feat {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.15em 0.4em;
  padding: 0.65em 0.6em; border-radius: 0.6em; background: linear-gradient(135deg, #24396b, #131f3a 60%, #0f1a31);
}
.feat b { font: 600 0.72em/1.1 var(--display); letter-spacing: -0.02em; }
.feat small { grid-column: 1; font: 400 0.48em/1.3 var(--ui); color: #b5c2dc; }
.switch { position: relative; display: inline-block; width: 1.9em; height: 1.1em; border-radius: 0.55em; background: #3a4356; flex: none; }
.switch::after { content: ""; position: absolute; top: 0.15em; left: 0.15em; width: 0.8em; height: 0.8em; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.switch.is-on { background: var(--pearl); }
.switch.is-on::after { transform: translateX(0.8em); background: #16233f; }
.feat .switch { grid-row: 1 / span 2; grid-column: 2; }
.popup-status { display: flex; align-items: center; gap: 0.5em; padding: 0 0.2em; font: 400 0.47em/1.3 var(--ui); color: #99a1b3; white-space: nowrap; }
.popup-status::before { content: ""; width: 0.75em; height: 0.75em; border-radius: 50%; background: #67cfa9; flex: none; }
.popup-status b { color: #eef1f7; font-weight: 600; }
.popup-rows { display: grid; border-radius: 0.55em; background: #1d2534; }
.popup-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 0.4em; padding: 0.5em 0.55em; }
.popup-rows > div + div { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.popup-rows .lbl { font: 500 0.5em/1.2 var(--ui); color: #eef1f7; }
.popup-rows .switch { width: 1.6em; height: 0.95em; }
.popup-rows .switch::after { width: 0.65em; height: 0.65em; }
.popup-rows .switch.is-on::after { transform: translateX(0.65em); }
.popup-rows .val { display: flex; gap: 0.25em; align-items: center; }
.popup-rows .val i { font: 600 0.46em/1 var(--mono); font-style: normal; color: #e6f4fb; padding: 0.35em 0.5em; border-radius: 0.35em; background: #151b28; border: 1px solid rgba(255, 255, 255, 0.14); }

/* The comments panel in the Hold demo. */
.comments {
  position: absolute; top: 0; right: 0; bottom: 0; width: 13.4em; z-index: 2; padding: 1em 0.9em;
  display: grid; align-content: start; gap: 0.95em; background: #111826; border-left: 1px solid rgba(255, 255, 255, 0.07);
  transform: translateX(101%); transition: transform 0.7s var(--ease-tide) var(--panel-delay, 0ms);
}
.comments > b { font: 600 0.68em/1 var(--ui); }
.comments > i { display: grid; grid-template-columns: 1.5em 1fr; gap: 0.25em 0.55em; }
.comments > i::before { content: ""; grid-row: span 2; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.comments > i::after { content: ""; height: 0.4em; border-radius: 0.2em; background: rgba(255, 255, 255, 0.16); width: var(--w, 80%); grid-column: 2; }
.comments > i { --w: 80%; }
.comments > i:nth-of-type(2) { --w: 62%; }
.comments > i:nth-of-type(3) { --w: 88%; }
.comments > i:nth-of-type(4) { --w: 54%; }
.comments > i > s { grid-column: 2; height: 0.4em; width: 40%; border-radius: 0.2em; background: rgba(255, 255, 255, 0.09); }
.comments > u { position: absolute; left: 0.9em; right: 0.9em; bottom: 1em; height: 1.9em; border-radius: 0.95em; border: 1px solid rgba(255, 255, 255, 0.12); }
.stage-hold .group { left: 3.6em; transform: translateX(5.8em); transition: transform 0.7s var(--ease-tide) var(--panel-delay, 0ms); }
.stage-hold.is-holding .comments { transform: none; }
.stage-hold.is-holding .group { transform: none; }
.stage-hold .browser { top: 1.75em; height: 27.5em; }
.stage-hold .group { top: 1.6em; bottom: 1.6em; }
.stage-hold .player { width: 12.6em; }

/* Small stages: the popup text would be too small to read, so leave it out. */
@container (max-width: 470px) {
  .popup .popup-rows, .popup .popup-status { display: none; }
}

.stage-caption {
  display: flex; align-items: center; gap: 10px; min-height: 1.6em;
  color: var(--muted); font-size: var(--t-sm);
}
.stage-caption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stage-caption b { color: var(--ink); font-weight: 600; }
.stage-caption.is-fresh { animation: fresh 0.5s var(--ease); }
@keyframes fresh { from { opacity: 0.2; transform: translateY(3px); } }

/* ---------- How it works (Hold) ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.how-grid .stage-wrap { grid-column: 1; grid-row: 1; }
.how-copy { display: grid; gap: 22px; justify-items: start; }
.how-copy > p:not(.overline) { color: var(--muted); font-size: var(--t-lede); }
.holds { list-style: none; padding: 0; display: grid; width: 100%; border-top: 1px solid var(--line); }
.holds li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.holds li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; border: 1.5px solid var(--accent); }
.holds .is-demo::before { background: var(--accent); }
.holds-label { font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.demo-toggle {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 999px; cursor: pointer;
  font: 600 var(--t-sm)/1 var(--ui); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.demo-toggle:hover { background: var(--sunken); }
.demo-toggle .switch { font-size: 18px; background: var(--line-strong); }
.demo-toggle[aria-pressed="true"] .switch { background: var(--accent); }
.demo-toggle[aria-pressed="true"] .switch::after { transform: translateX(0.8em); background: var(--accent-ink); }
@media (max-width: 980px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-grid .stage-wrap { grid-row: 2; max-width: 680px; width: 100%; justify-self: center; }
}

/* ---------- Features: specimens, not icon cards ---------- */
.specimens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.specimen { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line); }
.specimen + .specimen { padding-left: 28px; border-left: 1px solid var(--line); }
.specimen:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.specimen p { color: var(--muted); }
.spec { height: 88px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.spec-big { font: 600 clamp(2.4rem, 2rem + 1.4vw, 3.2rem)/1 var(--display); letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.spec-big small { font-size: 0.5em; letter-spacing: -0.02em; color: var(--muted); margin-left: 0.1em; }
.spec-dash { width: 28px; height: 1.5px; background: var(--line-strong); }
.spec kbd { font-size: 1.35rem; min-width: 52px; height: 52px; border-radius: 12px; border-bottom-width: 3px; }
.spec-rail { display: grid; justify-items: center; gap: 6px; }
.spec-rail .btn-round { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #272c36; color: #fff; }
.spec-rail .btn-round::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); }
.spec-rail .btn-round svg { width: 26px; height: 26px; }
.spec-rail small { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.spec-meter { display: grid; gap: 8px; width: min(220px, 100%); }
.spec-meter .meter { height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.spec-meter .meter i { display: block; height: 100%; width: 37%; border-radius: inherit; background: var(--accent); }
.spec-meter small { color: var(--muted); font-size: var(--t-xs); }
.spec-toggle { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: var(--t-sm); color: var(--muted); }
.spec-toggle .switch { font-size: 22px; background: var(--line-strong); }
.spec-toast { display: inline-flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: 12px; background: #272c36; color: #f1f1f1; font-size: var(--t-xs); box-shadow: var(--shadow); }
.spec-toast b { color: #8fa8f5; font-weight: 600; }
.specimens-note { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; color: var(--muted); font-size: var(--t-sm); }
.specimens-note span { display: inline-flex; align-items: center; gap: 8px; }
.specimens-note svg { width: 16px; height: 16px; color: var(--ok); }
@media (max-width: 980px) {
  .specimens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specimen:nth-child(3n + 1) { padding-left: 28px; border-left: 1px solid var(--line); }
  .specimen:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 620px) {
  .specimens { grid-template-columns: 1fr; }
  .specimen, .specimen + .specimen, .specimen:nth-child(3n + 1) { padding: 24px 0 28px; border-left: 0; }
  .spec { height: auto; min-height: 56px; margin-bottom: 6px; }
}

/* ---------- Privacy ledger ---------- */
.ledger-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ledger-copy { display: grid; gap: 20px; justify-items: start; }
.ledger-copy > p:not(.overline) { color: var(--muted); font-size: var(--t-lede); }
.ledger { margin: 0; display: grid; border-top: 1px solid var(--line-strong); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger dt { color: var(--muted); font-size: var(--t-sm); }
.ledger dd { margin: 0; font: 600 1.0625rem/1.4 var(--display); letter-spacing: -0.015em; }
.ledger dd small { display: block; margin-top: 3px; font: 400 var(--t-sm)/1.45 var(--ui); letter-spacing: 0; color: var(--muted); }
.ledger code { font-family: var(--mono); font-size: 0.86em; font-weight: 500; padding: 1px 6px; border-radius: 6px; background: var(--sunken); }
@media (max-width: 860px) {
  .ledger-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .ledger > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Install ---------- */
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.store-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center;
  padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.store-card h3 { font-size: 1.3rem; }
.store-card p { color: var(--muted); font-size: var(--t-sm); grid-column: 1; }
.store-card .btn { grid-column: 2; grid-row: 1 / span 3; }
.store-card.is-detected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.store-card .badge { display: none; grid-column: 1; justify-self: start; margin-bottom: 4px; }
.store-card.is-detected .badge { display: inline-flex; }
.badge { white-space: nowrap; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.badge svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .stores { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .store-card { grid-template-columns: 1fr; padding: 22px; }
  .store-card .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
}
.steps { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; position: relative; }
.steps::before { /* the tideline the three steps sit on */
  content: ""; position: absolute; top: 15px; left: 15px; right: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--line-strong) 70%, transparent);
}
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 50px; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 0.875rem/1 var(--display); color: var(--accent); background: var(--bg); border: 1.5px solid var(--accent);
}
.steps p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 15px; bottom: 15px; left: 15px; right: auto; width: 1.5px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-strong)); }
  .steps li { padding: 4px 0 0 52px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin: 0; }
.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font: 600 1.0625rem/1.35 var(--display); letter-spacing: -0.015em; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { padding: 0 32px 22px 0; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (all other pages) ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.page-hero .wrap { display: grid; gap: 18px; justify-items: start; }
.page-hero h1 { font-size: var(--t-page); line-height: 1.06; }
.page-hero.is-centered .wrap { justify-items: center; text-align: center; }
.page-hero.is-centered .lede { margin-inline: auto; }
.page-hero.is-centered .overline::before { display: none; }
.page-hero .mark { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 18px 36px -18px rgba(11, 18, 32, 0.7); }
.page-section { padding-bottom: var(--section); }

/* Cards (forms, prose, guide) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Callout */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- Welcome ---------- */
.guide { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.guide > li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); padding: 32px 0; border-bottom: 1px solid var(--line); align-items: center; }
.guide .copy { display: grid; gap: 10px; }
.guide .copy p { color: var(--muted); }
.guide .copy h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.step-no { font: 600 0.75rem/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 680px) { .guide > li { grid-template-columns: 1fr; gap: 20px; } }
.tile { height: 160px; border-radius: 16px; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); }
.tile-night { background: var(--night); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #fff; }
.tile .rail-demo { display: grid; gap: 10px; justify-items: center; }
.rail-demo > i { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.rail-demo .btn-round { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #272c36; color: #fff; }
.rail-demo .btn-round::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--pearl-2); }
.rail-demo .btn-round svg { width: 20px; height: 20px; }
.rail-demo small { margin-top: -4px; font-size: 0.6875rem; font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.tile kbd { font-size: 1.4rem; min-width: 56px; height: 56px; border-radius: 13px; border-bottom-width: 3px; }
.tile .keys { display: flex; gap: 12px; }
.toolbar-demo { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--muted); }
.toolbar-demo svg { width: 20px; height: 20px; }
.toolbar-demo img { width: 24px; height: 24px; }
.toolbar-demo .pin { color: var(--accent); }
.whats-new { padding: clamp(24px, 4vw, 44px); display: grid; gap: 24px; position: relative; overflow: hidden; }
.whats-new::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pearl); }
.whats-new > .stack { gap: 12px; }
.whats-new > .stack p, .whats-new > p { color: var(--muted); }
.news { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.news li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news strong { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.news span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 680px) { .news { grid-template-columns: 1fr; } }
.closing { text-align: center; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { padding: clamp(22px, 4vw, 36px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
label, legend { font-weight: 600; font-size: var(--t-sm); }
.hint { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
input[type="text"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px; min-height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:hover, select:hover, textarea:hover { border-color: var(--muted); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
::placeholder { color: var(--muted); opacity: 0.8; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .paths { grid-template-columns: 1fr; } }
.path { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 14px; background: var(--sunken); }
.path strong { font-family: var(--display); letter-spacing: -0.01em; }
.path p { color: var(--muted); font-size: var(--t-sm); }
.path .btn { justify-self: start; margin-top: 8px; }
.form-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.875rem; }
.form-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--ok); }
.reasons { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reasons legend { margin-bottom: 14px; padding: 0; }
.reason { position: relative; }
.reason input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.reason span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; font-size: var(--t-sm); transition: background-color 0.15s, border-color 0.15s; }
.reason:hover span { border-color: var(--muted); }
.reason input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.reason input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Goodbye ---------- */
.goodbye h1 { font-size: clamp(2.125rem, 1.6rem + 2vw, 2.875rem); }
.goodbye .lede { max-width: 32rem; }
.goodbye-note { max-width: 30rem; color: var(--muted); font-size: var(--t-sm); }
.goodbye-note svg { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--ok); }
.change-mind { text-align: center; color: var(--muted); }

/* ---------- Support ---------- */
.ways { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line-strong); counter-reset: way; }
.way { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px 32px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.way::before { counter-increment: way; content: "0" counter(way); font: 600 0.875rem/1.9 var(--display); color: var(--accent); letter-spacing: 0.02em; }
.way h2 { font-size: 1.625rem; letter-spacing: -0.025em; }
.way-copy { display: grid; gap: 8px; }
.way-copy p { color: var(--muted); }
.way .cta-row { justify-content: flex-start; }
.share-text { padding: 14px 16px; border-radius: 12px; background: var(--sunken); font-size: var(--t-sm); color: var(--ink); border-left: 3px solid var(--accent); }
.way-actions { display: grid; gap: 14px; }
.stars { margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--sunken); color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.btn.is-copied { border-color: var(--ok); color: var(--ok); }
@media (max-width: 860px) {
  .way { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .way::before { line-height: 1; }
}

/* ---------- Prose (privacy) ---------- */
.policy-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.policy-aside { display: grid; gap: 18px; position: sticky; top: 104px; }
.policy-aside .ledger dd { font-size: 1rem; }
.prose { display: grid; gap: 14px; max-width: 42rem; }
.prose h2 { font-size: 1.3125rem; letter-spacing: -0.02em; margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { padding-left: 1.2em; display: grid; gap: 10px; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--sunken); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose p, .prose li { color: var(--ink); }
.prose .hint { font-size: var(--t-sm); }
.summary-list { list-style: none; padding: 20px 22px !important; margin: 0; display: grid; gap: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.summary-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.summary-list svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 3px; }
@media (max-width: 860px) {
  .policy-grid { grid-template-columns: 1fr; }
  .policy-aside { position: static; }
}

/* ---------- 404 ---------- */
.lost { min-height: 56vh; display: grid; place-items: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 36px; font-size: var(--t-sm); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 320px; }
.footer-brand img { width: 32px; height: 32px; flex: none; }
.footer-brand strong { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.footer-brand p { color: var(--muted); margin-top: 2px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 20px 64px; }
.footer-h { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-nav ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--muted); }
.footer-legal strong { color: var(--ink); }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr; } .footer-brand { max-width: none; } }
@media (max-width: 560px) { .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
