/*
 * Eterna website. Tokens, type and shapes are the extension's (src/styles.css, PRD §14, after
 * DESIGN.md): grey canvas, white cards, one blue for actions, Instrument Serif only at 36 px and
 * up, Inter for the rest, pills, 22 px cards, 30 px panels. The hero is the one atmospheric
 * moment: Eterna's own first run, black dots.
 */
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-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: "Inter"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-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 Serif"; font-display: swap; src: url("/assets/fonts/instrument-serif-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 Serif"; font-display: swap; src: url("/assets/fonts/instrument-serif-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; }

:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --line: #e5e5e5;
  --ink: #000000;
  --graphite: #3e3e3e;
  --muted: #636363;
  --accent: #0069db;
  --on-accent: #ffffff;
  --accent-soft: #e8f1fe;
  --peach: #fde9e4;
  --mint: #e3f4df;
  --sky: #e5effd;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --card-shadow: 0 0 0 1px rgb(0 0 0 / 0.045), 0 1px 2px rgb(0 0 0 / 0.04);
  --float-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 18px 40px -14px rgb(0 0 0 / 0.24);
  --button-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 0 0 1px rgb(0 0 0 / 0.14), 0 3px 2px rgb(0 0 0 / 0.06);
  --glow: rgb(255 255 255 / 0.35);
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* The extension's dark palette, for the hero and anything that shows the dark product. */
.dark {
  --bg: #111112;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --line: #333336;
  --ink: #f5f5f7;
  --graphite: #d1d1d6;
  --muted: #a1a1a6;
  --accent: #409cff;
  --on-accent: #111112;
  --accent-soft: #10284a;
  --peach: #3d2420;
  --mint: #18321f;
  --sky: #142a46;
  --danger: #ffb4ab;
  --danger-soft: #45201c;
  --card-shadow: 0 0 0 1px rgb(255 255 255 / 0.06);
  --float-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 18px 40px -14px rgb(0 0 0 / 0.7);
  --button-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 0 0 1px rgb(0 0 0 / 0.4);
  --glow: rgb(255 255 255 / 0.1);
  background-color: var(--bg);
  color: var(--graphite);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--graphite);
  font: 400 1rem/1.55 var(--sans);
  font-feature-settings: "cv03", "cv04", "cv09", "cv11";
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2 { color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h3 { color: var(--ink); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); }
strong { color: var(--ink); font-weight: 600; }
kbd, code { border-radius: 7px; background: var(--surface-2); padding: 0.1em 0.4em; font: 500 0.875em var(--sans); color: var(--ink); }
kbd { box-shadow: inset 0 -1px 0 var(--line), 0 0 0 1px var(--line); }
mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a:focus-visible, summary:focus-visible { border-radius: 7px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.eyebrow svg { color: var(--accent); }
.lede { color: var(--graphite); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; }
.small { color: var(--muted); font-size: 0.875rem; }
.dots { background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.card { border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; border-radius: 9999px; background: var(--accent); color: var(--on-accent); padding: 10px 18px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* Buttons and links: full pills, one blue. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: 9999px; padding: 11px 22px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: opacity 150ms, background-color 150ms;
}
.button-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--button-shadow); }
.button-primary:hover { opacity: 0.9; }
.button-secondary { border: 1.5px solid var(--ink); color: var(--ink); padding: 9.5px 20.5px; }
.button-secondary:hover { background: var(--surface-2); }
.button-small { min-height: 36px; padding: 8px 14px; font-size: 0.875rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Brand lockup: the blue star and "Eterna" in the serif, 1.1x the star. */
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: 0; }
.brand svg { color: var(--accent); }
.brand-link { display: inline-flex; border-radius: 7px; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .site-header .brand svg { animation: twinkle 180ms ease-out 300ms backwards; }
}
@keyframes twinkle {
  from { opacity: 0.45; transform: scale(1); }
  55% { opacity: 1; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

/* Header: a floating white capsule. On Home it floats over the dark hero. */
.site-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: calc(100% - 32px); max-width: 1152px; margin: 16px auto 0;
  border-radius: 22px; background: #fff; padding: 8px 8px 8px 18px;
  box-shadow: var(--card-shadow), 0 0 0 5px var(--glow);
  --ink: #000; --accent: #0069db; --on-accent: #fff; --surface-2: #f0f0f0; --line: #e5e5e5;
}
.home-page .site-header { position: absolute; top: 0; left: 0; right: 0; }
#site-nav { display: flex; align-items: center; gap: 4px; }
#site-nav a:not(.button) { border-radius: 9999px; padding: 8px 12px; color: #000; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: opacity 150ms; }
#site-nav a:not(.button):hover { opacity: 0.6; }
#site-nav a[aria-current="page"] { color: var(--accent); }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 9999px; background: var(--surface-2); color: #000; cursor: pointer; }

@media (max-width: 700px) {
  .js .menu-toggle { display: grid; }
  .js #site-nav { display: none; }
  .js #site-nav.is-open {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch;
    border-radius: 22px; background: #fff; padding: 8px; box-shadow: var(--float-shadow);
  }
  .js #site-nav.is-open a:not(.button) { padding: 12px 14px; font-size: 1rem; }
  .js #site-nav.is-open .nav-cta { margin: 6px 0 0; }
  /* Without JavaScript the links wrap under the brand. */
  html:not(.js) .site-header { flex-wrap: wrap; }
  html:not(.js) #site-nav { flex-wrap: wrap; }
}

/* Home: hero */
.hero { position: relative; padding-top: clamp(120px, 16vw, 168px); padding-bottom: 0; text-align: center; }
.hero-copy { max-width: 860px; }
.hero .eyebrow { justify-content: center; margin-bottom: 20px; }
.hero h1 { margin-inline: auto; }
.hero .lede { max-width: 620px; margin: 24px auto 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 32px; }
.hero-visual { margin-top: clamp(48px, 7vw, 80px); margin-bottom: -120px; position: relative; }

/* Product previews: a browser window and the extension's own pieces, in its real labels. */
.browser { overflow: hidden; border-radius: 30px; background: var(--bg); box-shadow: 0 0 0 5px var(--glow), var(--float-shadow); text-align: left; letter-spacing: -0.02em; }
.browser-light { --glow: #fff; }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.8125rem; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser-tab { display: flex; align-items: center; gap: 7px; max-width: 220px; border-radius: 10px; background: var(--bg); padding: 6px 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-tab svg, .browser-ext svg { color: var(--accent); flex-shrink: 0; }
.browser-url { flex: 1; min-width: 0; border-radius: 9999px; background: var(--bg); padding: 6px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-ext { display: grid; place-items: center; }

.scene { display: grid; grid-template-columns: 1fr minmax(0, 404px); align-items: center; gap: 32px; min-height: 600px; padding: 32px; }
.scene-time { padding-left: 16px; }
.m-clock { color: var(--ink); font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.95; letter-spacing: 0; }
.m-greet { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--ink); font-family: var(--serif); font-size: clamp(2.25rem, 3.6vw, 3rem); line-height: 1; letter-spacing: 0; }
.m-date { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.m-focus { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; border-radius: 9999px; background: var(--surface); box-shadow: var(--card-shadow); padding: 7px 14px; color: var(--ink); font-size: 0.875rem; font-weight: 600; }

.m-panel { display: flex; flex-direction: column; gap: 8px; border-radius: 30px; background: var(--bg); padding: 14px; box-shadow: 0 0 0 5px var(--glow), var(--float-shadow); font-size: 0.875rem; color: var(--ink); }
.m-head { padding: 4px 4px 2px; }
.m-head .brand { font-size: 1.1rem; }
.m-tools { display: flex; align-items: center; gap: 12px; color: var(--graphite); }
.m-search { display: flex; flex: 1; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); padding: 7px 12px; color: var(--muted); font-size: 0.875rem; }
.m-card { border-radius: 18px; background: var(--surface); padding: 12px 14px; }
.m-title { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.m-label { margin-bottom: 4px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.m-scratch { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; color: var(--graphite); }
.m-due-label { margin-top: 10px; color: var(--danger); font-size: 0.75rem; font-weight: 600; }
.m-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; border-radius: 10px; padding: 5px 6px; color: var(--ink); }
.m-row svg { color: var(--muted); flex-shrink: 0; }
.m-row small { margin-left: auto; color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.m-due { background: var(--danger-soft); }
.m-due svg { color: var(--danger); }
.m-pills { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.m-pills span { display: inline-flex; align-items: center; gap: 5px; border-radius: 9999px; background: var(--surface); padding: 5px 11px; color: var(--graphite); font-size: 0.8125rem; }
.m-pills .on { background: var(--accent); color: var(--on-accent); }
.m-pills .m-plus { margin-left: auto; }
.m-new { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 10px 4px 2px; color: var(--graphite); }
.m-new span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }

.tile { display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.m-title .tile { width: 24px; height: 24px; }
.tile.mint { background: var(--mint); }
.tile.sky { background: var(--sky); }
.tile.peach { background: var(--peach); }

/* Home: what Eterna keeps */
.types { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding-top: 168px; color: var(--ink); font-weight: 500; }
.types > span { display: inline-flex; align-items: center; gap: 10px; }
.types .tile { width: 34px; height: 34px; background-color: var(--surface); box-shadow: var(--card-shadow); }
.types .tile.mint { background-color: var(--mint); }
.types .tile.sky { background-color: var(--sky); }
.types .tile.peach { background-color: var(--peach); }

/* Home: editorial blocks */
.editorial { max-width: 760px; margin-inline: auto; text-align: center; }
.editorial .eyebrow { justify-content: center; }
.editorial .lede { margin-top: 20px; }
#features { padding-top: clamp(80px, 11vw, 128px); scroll-margin-top: 24px; }

/* Home: side panel */
.capture { padding-top: clamp(80px, 11vw, 128px); }
.capture > .browser { margin-top: 48px; }
.split { display: grid; grid-template-columns: 1fr 360px; min-height: 560px; }
.m-page { position: relative; padding: 48px clamp(24px, 5vw, 72px); background: var(--surface); color: var(--graphite); font-size: 1rem; line-height: 1.65; }
.m-page p + p { margin-top: 14px; }
.m-kicker { color: var(--muted); font-size: 0.8125rem; }
.m-page .m-page-title { margin: 6px 0 22px; color: var(--ink); font-family: var(--serif); font-size: 2.5rem; line-height: 1.05; letter-spacing: 0; }
.m-menu { position: absolute; left: clamp(120px, 22vw, 300px); top: 300px; display: flex; flex-direction: column; min-width: 250px; border-radius: 14px; background: var(--surface); padding: 6px; box-shadow: var(--float-shadow); font-size: 0.8125rem; color: var(--ink); }
.m-menu > span, .m-submenu span { display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.m-menu .on { background: var(--accent); color: var(--on-accent); }
.m-menu > .on svg:last-child { margin-left: auto; }
.m-menu > .on svg:first-child { color: var(--on-accent); }
.m-submenu { position: absolute; left: calc(100% - 8px); top: 66px; min-width: 150px; border-radius: 14px; background: var(--surface); padding: 6px; box-shadow: var(--float-shadow); }
.m-side { display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line); background: var(--bg); padding: 14px; font-size: 0.875rem; color: var(--ink); }
.m-side .m-search { flex: none; }
.m-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; border-radius: 18px; background: var(--surface-2); padding: 4px; }
.m-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: 14px; padding: 6px 0; color: var(--graphite); font-size: 0.75rem; }
.m-tabs .on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.m-entry { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.m-entry .tile { width: 34px; height: 34px; }
.m-entry span:last-child { display: flex; min-width: 0; flex-direction: column; }
.m-entry strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-entry small, .m-event small, .m-person small { color: var(--muted); font-size: 0.8125rem; }
.m-quick { margin-top: auto; border: 1px solid var(--accent); border-radius: 9999px; background: var(--surface); padding: 10px 16px; color: var(--muted); box-shadow: 0 0 0 4px var(--accent-soft); }
.m-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--graphite); }
.m-foot span { display: flex; gap: 14px; margin-left: auto; }

.capture-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; padding: 0; list-style: none; }
.capture-points li { display: flex; gap: 14px; align-items: flex-start; }
.capture-points .tile { width: 36px; height: 36px; background-color: var(--surface); box-shadow: var(--card-shadow); }
.capture-points .tile.sky { background-color: var(--sky); }

/* Home: feature stories */
.stories { display: grid; gap: clamp(80px, 11vw, 128px); padding-top: clamp(80px, 11vw, 128px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.story.reverse .story-copy { order: 2; }
.story-copy { max-width: 500px; }
.story-copy .lede { margin-top: 20px; }
.ticks { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.paper { border-radius: 30px; background: var(--surface); padding: 28px; box-shadow: var(--card-shadow), 0 0 0 5px #fff; color: var(--ink); font-size: 0.9375rem; }
.paper ul { margin: 14px 0 0; padding-left: 1.3em; color: var(--graphite); line-height: 1.7; }
.paper li::marker { color: var(--muted); }
.m-crumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8125rem; }
.m-note-title { margin-top: 24px; font-family: var(--serif); font-size: 2.5rem; line-height: 1.05; letter-spacing: 0; }
.m-tags { display: flex; gap: 6px; margin-top: 12px; }
.m-tags span, .m-chip { border-radius: 9999px; background: var(--surface-2); padding: 3px 10px; color: var(--graphite); font-size: 0.8125rem; }
.m-typing { display: flex; align-items: center; margin-top: 10px; color: var(--graphite); }
.caret { width: 1.5px; height: 1.1em; margin-left: 1px; background: var(--accent); }
.m-slash { display: flex; flex-direction: column; width: 220px; margin-top: 8px; border-radius: 14px; background: var(--surface); padding: 6px; box-shadow: var(--float-shadow); font-size: 0.875rem; }
.m-slash span { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 7px 10px; color: var(--ink); }
.m-slash svg { color: var(--muted); }
.m-slash .on { background: var(--accent-soft); }

.stack > div { display: grid; gap: 16px; }
.stack .paper { padding: 20px 24px; }
.m-task { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--ink); }
.m-task svg { flex-shrink: 0; color: var(--muted); }
.m-task.done span { color: var(--muted); text-decoration: line-through; }
.m-task.done svg { color: var(--accent); }
.m-task small { margin-left: auto; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.m-event, .m-person { display: flex; align-items: center; gap: 14px; }
.m-event > span:nth-child(2), .m-person > span:nth-child(2) { display: flex; flex-direction: column; }
.m-event .tile, .m-person .tile { width: 36px; height: 36px; }
.m-chip { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; white-space: nowrap; }
.m-person .tile { margin-left: auto; align-self: flex-start; }
.m-avatar { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--peach); color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.m-nudge { align-self: flex-start; margin-top: 8px; border-radius: 9999px; background: var(--accent-soft); padding: 3px 10px; color: var(--accent); font-size: 0.8125rem; font-weight: 500; }

.m-greetings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; }
.m-greetings > span { display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 18px; padding: 12px 4px 14px; color: var(--ink); font-size: 0.8125rem; font-weight: 500; text-align: center; }
.m-greetings .dark { color: var(--ink); }
.m-options { display: grid; gap: 6px; }
.m-options .m-label:not(:first-child) { margin-top: 12px; }
.m-segment { display: inline-flex; justify-self: start; border-radius: 9999px; background: var(--surface-2); padding: 3px; }
.m-segment span { border-radius: 9999px; padding: 5px 14px; color: var(--graphite); font-size: 0.875rem; }
.m-segment .on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--card-shadow); }
.m-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m-swatches > span { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 72px; overflow: hidden; border-radius: 14px; padding: 8px; box-shadow: var(--card-shadow); font-size: 0.75rem; font-weight: 600; }
.m-swatches .on { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-swatches .dark { color: var(--ink); }
.m-photo { isolation: isolate; background: #5d6b84; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 0.5); }
.m-photo img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.m-swatches .m-own { flex-direction: column; align-items: center; justify-content: center; background: var(--surface-2); color: var(--graphite); }
.m-plain { background: var(--bg); color: var(--graphite); }

/* Home: privacy */
.privacy { padding-top: clamp(96px, 12vw, 144px); text-align: center; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 32px; text-align: left; }
.privacy-grid .card { padding: 28px; }
.privacy-grid .tile { width: 44px; height: 44px; margin-bottom: 20px; }
.privacy-grid p { margin-top: 8px; }

/* Home: questions */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 88px); padding-top: clamp(96px, 12vw, 144px); }
.faq h2 { margin-bottom: 16px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--ink); font-size: 1.0625rem; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary svg { flex-shrink: 0; color: var(--muted); transition: transform 150ms; }
details[open] summary svg { transform: rotate(45deg); }
.article details[open] summary svg { transform: rotate(90deg); }
details > p, details > div { padding: 0 0 20px; }
details > div > p + p { margin-top: 12px; }

/* Home: closing */
.closing { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: clamp(96px, 12vw, 160px); padding-bottom: 24px; text-align: center; }
.closing .lede { margin-top: -4px; }
.credits { padding-top: 64px; color: var(--muted); font-size: 0.8125rem; text-align: center; }
.credits a { color: inherit; }

/* Inner pages: guide, policies, availability, 404 */
.page-intro { padding-top: clamp(64px, 9vw, 112px); padding-bottom: 40px; }
.page-intro .lede { max-width: 640px; margin-top: 20px; }
.document-date { margin-top: 16px; color: var(--muted); font-size: 0.875rem; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(32px, 6vw, 80px); padding-bottom: 32px; }
.contents { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.contents nav { display: flex; flex-direction: column; margin-bottom: 16px; }
.contents nav a { border-radius: 9999px; padding: 6px 12px 6px 0; color: var(--graphite); font-size: 0.875rem; text-decoration: none; }
.contents nav a:hover { color: var(--accent); }
.article { color: var(--graphite); font-size: 1.0625rem; line-height: 1.65; }
.article section { padding-bottom: 48px; scroll-margin-top: 24px; }
.article h2 { margin-bottom: 20px; font-size: 2.25rem; }
.article h3 { margin: 24px 0 8px; }
.article p + p, .article p + ul, .article p + ol, .article ul + p, .article ol + p { margin-top: 14px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: 8px; }
.article li::marker { color: var(--muted); }
.article a:not(.text-link) { text-underline-offset: 2px; }
.callout { margin-bottom: 40px; border-radius: 22px; background: var(--accent-soft); padding: 16px 20px; color: var(--ink); }
.callout p { display: flex; gap: 10px; align-items: flex-start; }
.callout svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); }
.back-top { margin-top: 8px; }

.release-card { display: flex; flex-direction: column; align-items: center; gap: 16px; border-radius: 30px; background: var(--surface); padding: clamp(32px, 6vw, 56px) clamp(24px, 6vw, 56px); box-shadow: var(--card-shadow), 0 0 0 5px #fff; text-align: center; }
.release-card h2 { font-size: 2.25rem; }
.release-card .eyebrow { margin: 0; }
.release-card > p:not(.eyebrow, .small) { max-width: 520px; }
.release-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.get-details { padding-top: 80px; }
.get-details h2 { font-size: 2.25rem; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.guide-card { border-radius: 22px; background: var(--surface); padding: 24px; box-shadow: var(--card-shadow); }
.guide-card svg { color: var(--accent); }
.guide-card h3 { margin: 16px 0 6px; }
.get-policy-links { display: flex; flex-wrap: wrap; gap: 24px; }
.not-found { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.not-found .eyebrow { margin: 8px 0 0; }

/* Footer */
.site-footer { margin-top: 96px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-main p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-main nav a { color: var(--graphite); font-size: 0.9375rem; text-decoration: none; }
.footer-main nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; color: var(--muted); font-size: 0.8125rem; }

/* Narrow windows */
@media (max-width: 980px) {
  .scene { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .scene-time { padding: 16px 0 0; }
  .split { grid-template-columns: 1fr; }
  .m-side { border-left: 0; border-top: 1px solid var(--line); }
  .story, .faq { grid-template-columns: 1fr; }
  .story.reverse .story-copy { order: 0; }
  .story-copy { max-width: 640px; }
  .privacy-grid, .capture-points, .guide-cards { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .contents { position: static; }
}
@media (max-width: 600px) {
  .wrap, .narrow { padding-inline: 16px; }
  .browser { border-radius: 22px; }
  .browser-url { display: none; }
  .scene { padding: 16px; }
  .m-panel { padding: 10px; }
  .m-page { padding: 28px 20px; }
  .m-menu { left: 20px; right: 20px; top: auto; bottom: 20px; min-width: 0; }
  .m-menu > span:nth-child(2) { display: none; }
  .m-submenu { display: none; }
  .paper { padding: 20px; }
  .m-greetings, .m-swatches { grid-template-columns: repeat(2, 1fr); }
  .m-event { flex-wrap: wrap; }
  .m-chip { margin-left: 50px; }
  .hero-visual { margin-bottom: -64px; }
  .types { padding-top: 112px; }
}

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