/* Chrono site. A chronograph for YouTube: paper and ink, tabular numerals, and the
   extension's own red playhead as the only colour. Never YouTube's marks. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  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: "Geist";
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  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: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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 Serif";
  src: url("/assets/fonts/instrument-serif-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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 Serif";
  src: url("/assets/fonts/instrument-serif-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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 Serif";
  src: url("/assets/fonts/instrument-serif-latin-ext-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --canvas: #f6f3ed;
  --surface: #fffdf9;
  --sunken: #ede9e1;
  --ink: #15130f;
  --ink-2: #3b3730;
  --muted: #6d665c;
  --faint: #9d968b;
  --line: rgba(21, 19, 15, 0.09);
  --line-strong: rgba(21, 19, 15, 0.18);

  /* The playhead: YouTube's progress red, as the extension's icon wears it. */
  --red: #ff0033;
  --accent: #e0002d;
  --accent-ink: #b8001f;
  --accent-soft: rgba(255, 0, 51, 0.1);
  --accent-glow: rgba(255, 0, 51, 0.28);
  --on-accent: #fff;

  /* Sky stops the hero mixes between by finish hour. */
  --sky-a: #f7d9b8;
  --sky-b: #f1e6d4;

  --shadow-sm: 0 1px 2px rgba(21, 19, 15, 0.05), 0 4px 16px -8px rgba(21, 19, 15, 0.12);
  --shadow: 0 1px 2px rgba(21, 19, 15, 0.06), 0 16px 40px -16px rgba(21, 19, 15, 0.22);
  --shadow-lg: 0 2px 4px rgba(21, 19, 15, 0.05), 0 48px 96px -32px rgba(21, 19, 15, 0.38);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
  --spring: linear(0, 0.004 1%, 0.019 2.2%, 0.079 5%, 0.161 7.8%, 0.464 17%, 0.557 20.2%, 0.637 23.5%,
    0.706 26.8%, 0.767 30.2%, 0.817 33.8%, 0.86 37.5%, 0.899 42%, 0.929 46.8%, 0.953 52.2%, 0.971 58.5%,
    0.991 73.8%, 1);
  --bounce: linear(0, 0.672, 1.153, 1.221, 1.088, 0.977, 0.952, 0.977, 1.003, 1.01, 1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 68px;
}

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

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0f0e0d;
    --surface: #171514;
    --sunken: #201d1b;
    --ink: #f3efe8;
    --ink-2: #d6d0c6;
    --muted: #a39b90;
    --faint: #6f685f;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #ff2e55;
    --accent-ink: #ff6b86;
    --accent-soft: rgba(255, 46, 85, 0.14);
    --accent-glow: rgba(255, 46, 85, 0.32);
    --sky-a: #2a1f2e;
    --sky-b: #16141a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 16px -8px rgba(0, 0, 0, 0.5);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 48px 96px -32px rgba(0, 0, 0, 0.85);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0f0e0d;
  --surface: #171514;
  --sunken: #201d1b;
  --ink: #f3efe8;
  --ink-2: #d6d0c6;
  --muted: #a39b90;
  --faint: #6f685f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ff2e55;
  --accent-ink: #ff6b86;
  --accent-soft: rgba(255, 46, 85, 0.14);
  --accent-glow: rgba(255, 46, 85, 0.32);
  --sky-a: #2a1f2e;
  --sky-b: #16141a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 16px -8px rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 48px 96px -32px rgba(0, 0, 0, 0.85);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
  overflow-x: clip;
}

/* Paper grain, one layer, barely there. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
:root[data-resolved-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.35; }

main { flex: 1; position: relative; z-index: 1; }
.site-header, .site-footer { position: relative; z-index: 1; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif em, h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.num, .mono, time, kbd, code {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: -0.01em;
}
.tnum { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--canvas); border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-tight { padding: clamp(56px, 7vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 60ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.eyebrow.plain::before { display: none; }

.lede { color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; }

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

.btn {
  --lift: 0px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0.8rem 1.45rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 560; font-size: 1rem; line-height: 1.2; letter-spacing: -0.012em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translateY(var(--lift));
  transition: transform 0.5s var(--spring), box-shadow 0.3s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { --lift: -2px; }
.btn:active { --lift: 1px; transition-duration: 0.08s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-sm); overflow: clip; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  translate: -120% 0; transition: translate 0s;
}
.btn-primary:hover::after { translate: 120% 0; transition: translate 0.9s var(--ease); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-accent { background: var(--red); color: var(--on-accent); box-shadow: 0 12px 32px -14px var(--accent-glow); }
.btn-accent:hover { box-shadow: 0 18px 40px -14px var(--accent-glow); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding-inline: 1rem; }
.btn-quiet:hover { background: var(--sunken); }
.btn-sm { min-height: 42px; padding: 0.5rem 1.05rem; font-size: 0.92rem; }
.btn-lg { min-height: 58px; padding: 0.95rem 1.7rem; font-size: 1.06rem; }
.btn.is-soon, .btn[aria-disabled="true"] { background: var(--sunken); color: var(--muted); box-shadow: none; cursor: default; --lift: 0px; border-color: transparent; }
.btn.is-soon::after { display: none; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link { color: var(--accent-ink); font-weight: 520; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 540; text-decoration: none; color: var(--ink); }
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link:hover { color: var(--accent-ink); }

kbd {
  display: inline-block; min-width: 1.6em; padding: 0.1em 0.45em; border-radius: 6px;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--surface);
  font-size: 0.85em; line-height: 1.4; text-align: center;
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.spot { isolation: isolate; overflow: clip; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 62%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.spot:hover::after { opacity: 1; }
.hover-lift { transition: transform 0.5s var(--spring), box-shadow 0.4s var(--ease), border-color 0.3s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; }
.brand .mark { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: none; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 0.8rem; border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none !important; }
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.4s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--sunken); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }
.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; }
@media (max-width: 480px) { .header-actions .btn svg { display: none; } }
@media (max-width: 360px) { .brand span { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: color-mix(in oklab, var(--canvas) 92%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: grid; gap: 0.25rem;
  opacity: 0; translate: 0 -8px; visibility: hidden;
  transition: opacity 0.3s var(--ease), translate 0.4s var(--ease), visibility 0s 0.3s;
}
.mobile-menu.is-open { opacity: 1; translate: 0; visibility: visible; transition-delay: 0s; }
.mobile-menu a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1.1rem; }
.mobile-menu a:last-child { border: none; }
.menu-toggle .i-x { display: none; }
.menu-toggle[aria-expanded="true"] .i-x { display: block; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }

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

.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand .mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.footer-brand strong { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.footer-brand p { margin-top: 0.25rem; max-width: 34ch; }
.footer-col .footer-h { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-nav a { text-decoration: none; color: var(--ink-2); }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-clock { margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.6rem; color: var(--ink); }
.footer-clock .num { font-size: 1.6rem; letter-spacing: -0.03em; }
.footer-clock small { color: var(--muted); font-size: 0.9rem; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.88rem; }
.footer-legal a { color: inherit; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 7.5vw, 5.4rem); letter-spacing: -0.02em; line-height: 0.98; }
.page-hero .lede { margin-top: 1.25rem; max-width: 56ch; }
.page-hero .mark-big { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 1.5rem; box-shadow: var(--shadow); }

/* ---------- Prose ---------- */

.prose { font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-size: 1.55rem; margin: 2.4rem 0 0.8rem; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; font-weight: 560; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.3rem; margin: 0.8rem 0; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--accent-ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 560; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; }
.prose code { font-size: 0.88em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--sunken); }
.prose .muted { color: var(--muted); }

/* ---------- Forms ---------- */

.form-card { padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 0.4rem; }
.field + .field { margin-top: 1.1rem; }
.field label, .field .label { font-weight: 560; font-size: 0.95rem; }
.field .hint { color: var(--muted); font-weight: 400; font-size: 0.88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--canvas); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 7lh; resize: vertical; field-sizing: content; max-height: 18lh; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.field select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d665c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row .field + .field { margin-top: 0; } }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pill-radio span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 0.95rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--spring);
}
.pill-radio span:hover { border-color: var(--faint); }
.pill-radio input:checked + span { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.pill-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form-hint { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.form-hint svg { width: 18px; height: 18px; flex: none; margin-top: 0.15em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--sunken); border: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2);
}
.chip .num { font-size: 0.85rem; }
.chip b { font-weight: 560; color: var(--ink); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0.25rem; cursor: pointer; list-style: none; font-weight: 540; font-size: 1.08rem; letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq .plus { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.4s var(--ease), background-color 0.2s; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform 0.4s var(--ease); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--sunken); }
.faq .answer { padding: 0 0.25rem 1.4rem; color: var(--muted); max-width: 68ch; line-height: 1.65; }
.faq .answer a { color: var(--accent-ink); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .faq details { interpolate-size: allow-keywords; } }

/* ---------- Store cards / install ---------- */

.stores { display: grid; gap: 1rem; }
@media (min-width: 720px) { .stores { grid-template-columns: 1fr 1fr; } }
.store { padding: clamp(20px, 3vw, 28px); display: grid; gap: 0.9rem; align-content: start; }
.store-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.store-head h3 { font-size: 1.3rem; }
.store .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 0.3rem 0.6rem; border-radius: 999px; display: none; }
.store.is-detected { border-color: var(--ink); box-shadow: var(--shadow); }
.store.is-detected .tag { display: inline-block; }
.store p { color: var(--muted); font-size: 0.97rem; }
.store .btn { justify-self: start; white-space: normal; text-align: center; }
.store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 1.5rem; }
.store-badges img { height: 56px; width: auto; }
.store-badges a { display: inline-block; border-radius: 8px; }
.store-badges a[hidden] { display: none; }
.mobile-note { color: var(--muted); font-size: 0.92rem; margin-top: 1rem; }
.js:not(.is-mobile) .mobile-note { display: none; }

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-reveal="scale"] { transform: translateY(18px) scale(0.985); }
[data-d="1"] { --d: 1; } [data-d="2"] { --d: 2; } [data-d="3"] { --d: 3; } [data-d="4"] { --d: 4; }
[data-d="5"] { --d: 5; } [data-d="6"] { --d: 6; } [data-d="7"] { --d: 7; } [data-d="8"] { --d: 8; }

/* Looping demos sleep until their card is on screen. */
.js [data-reveal]:not(.is-visible) .demo, .js [data-reveal]:not(.is-visible) .demo * { animation-play-state: paused !important; }

/* ---------- Theme switch via View Transitions ---------- */

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal 0.6s var(--ease); }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vt-x, 95%) var(--vt-y, 5%)); } to { clip-path: circle(150% at var(--vt-x, 95%) var(--vt-y, 5%)); } }

/* ---------- Misc ---------- */

.divider { height: 1px; background: var(--line); }
.band {
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  text-align: center; display: grid; justify-items: center; gap: 1.25rem;
  background:
    radial-gradient(60% 80% at 50% 110%, var(--accent-soft), transparent 70%),
    var(--surface);
}
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.band p { color: var(--muted); max-width: 52ch; }

.notice { display: flex; gap: 0.75rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: 0.95rem; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 0.1em; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: clamp(20px, 3vw, 28px); counter-increment: step; display: grid; gap: 0.75rem; align-content: start; }
.step::before { content: "0" counter(step); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent-ink); }
.step h3 { font-size: 1.3rem; }
.step .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sunken); color: var(--ink); }
.step .ico svg { width: 22px; height: 22px; }
.step p { color: var(--muted); font-size: 0.98rem; }
.step .browser-only { display: none; }
html[data-browser="firefox"] .step .for-firefox, html:not([data-browser="firefox"]) .step .for-chromium { display: inline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-group(*) { animation-duration: 0s !important; }
}
