/* Tandem website. One stylesheet, no build step. Colours are tokens; dark mode via prefers-color-scheme or [data-theme]. */
:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-soft: #f2f4f8;
  --bg-card: #ffffff;
  --fg: #16181d;
  --fg-soft: #3b3f48;
  --muted: #6b7079;
  --line: #e2e5eb;
  --accent: #1d4fb0;          /* Salamander directory-line blue */
  --accent-hover: #173f8f;
  --accent-fg: #ffffff;
  --accent-soft: #e8eefb;
  --marked: #d0161b;          /* Salamander marked-item red */
  --ok: #1f7a4d;
  --ok-soft: #e3f3ea;
  --warn: #8a5300;            /* preview builds */
  --warn-soft: #fdf3dc;
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 24px 60px -18px rgb(16 24 40 / .28);
  --shadow-sm: 0 1px 2px rgb(16 24 40 / .06), 0 6px 18px -8px rgb(16 24 40 / .18);
  --term-bg: #14161b;
  --term-fg: #d8dce4;
  --term-dim: #8a909c;
  --term-accent: #7fb0ff;
  --term-ok: #6fd39b;
  --term-warn: #f2c46d;
  --key-bg: #ffffff;
  --key-edge: #c9ced8;
  --radius: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0f13; --bg-soft: #14171d; --bg-card: #171a21; --fg: #f3f4f7; --fg-soft: #c9ccd4; --muted: #8e939e; --line: #262a33;
    --accent: #5b8cff; --accent-hover: #7aa2ff; --accent-fg: #0b1020; --accent-soft: #18233d; --marked: #ff6b6b; --ok: #5fcf93;
    --ok-soft: #13271d; --warn: #f2c46d; --warn-soft: #2a2213;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 30px 70px -20px rgb(0 0 0 / .7);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 8px 22px -10px rgb(0 0 0 / .6);
    --term-bg: #0a0c10; --key-bg: #1f232c; --key-edge: #333946;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f13; --bg-soft: #14171d; --bg-card: #171a21; --fg: #f3f4f7; --fg-soft: #c9ccd4; --muted: #8e939e; --line: #262a33;
  --accent: #5b8cff; --accent-hover: #7aa2ff; --accent-fg: #0b1020; --accent-soft: #18233d; --marked: #ff6b6b; --ok: #5fcf93;
  --ok-soft: #13271d; --warn: #f2c46d; --warn-soft: #2a2213;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 30px 70px -20px rgb(0 0 0 / .7);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 8px 22px -10px rgb(0 0 0 / .6);
  --term-bg: #0a0c10; --key-bg: #1f232c; --key-edge: #333946;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
.num, .price, time { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--fg-soft); max-width: 40em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--fg); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; }
.nav a { color: var(--fg-soft); }
.nav a:hover { color: var(--fg); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-card); color: var(--fg-soft); cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--fg); border-color: var(--muted); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .i-sun, .theme-toggle .i-moon, .theme-toggle .i-auto { display: none; }
.theme-toggle[data-mode="light"] .i-sun, .theme-toggle[data-mode="dark"] .i-moon, .theme-toggle[data-mode="auto"] .i-auto { display: block; }
@media (max-width: 760px) { .nav { display: none; } .header-actions { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 8px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--fg); border-color: var(--line); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 7px 14px; font-size: .9rem; border-radius: 9px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero-icon { width: 104px; height: 104px; margin: 0 auto 20px; filter: drop-shadow(0 12px 22px rgb(16 24 40 / .22)); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.035em; }
.hero .tagline { font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.018em; color: var(--fg-soft); margin: 14px auto 0; max-width: 22em; }
.hero .tagline span { color: var(--fg); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.cta-meta { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.cta-meta span + span::before { content: "·"; margin: 0 8px; }

/* Mac window frame around screenshots */
.window { position: relative; border-radius: 12px; overflow: hidden; background: var(--frame-bg, #ececec); box-shadow: var(--shadow); outline: 1px solid rgb(0 0 0 / .12); outline-offset: -1px; isolation: isolate; }
.window-bar { height: 28px; display: flex; align-items: center; justify-content: center; position: relative; background: var(--frame-bar, linear-gradient(#f4f4f4, #e9e9e9)); border-bottom: 1px solid var(--frame-line, #d6d6d6); color: var(--frame-title, #4b4f57); font-size: 12.5px; font-weight: 600; }
.window-bar::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #ff5f57; box-shadow: 19px 0 0 #febc2e, 38px 0 0 #28c840; }
.window[data-dark] { --frame-bg: #1e1f22; --frame-bar: linear-gradient(#323337, #2a2b2e); --frame-line: #111; --frame-title: #c7c9ce; outline-color: rgb(255 255 255 / .1); }
.window img { width: 100%; }
@media (max-width: 560px) { .window { border-radius: 8px; } .window-bar { height: 20px; font-size: 10px; } .window-bar::before { width: 8px; height: 8px; margin-top: -4px; left: 8px; box-shadow: 13px 0 0 #febc2e, 26px 0 0 #28c840; } }

.hero-shot { margin-top: 56px; }
.hero-shot .window img { transition: opacity .18s ease; }
.hero-shot .window.is-swapping img { opacity: .35; }
.theme-switch { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); flex-wrap: wrap; justify-content: center; }
.theme-switch button { font: inherit; font-size: .86rem; font-weight: 500; color: var(--fg-soft); background: none; border: 0; padding: 7px 12px 7px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.theme-switch button:hover { color: var(--fg); }
.theme-switch button[aria-pressed="true"] { background: var(--bg-card); color: var(--fg); box-shadow: var(--shadow-sm); }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.sw-salamander-classic { background: linear-gradient(135deg, #1d4fb0 50%, #ffffff 50%); }
.sw-salamander-dark { background: linear-gradient(135deg, #3d6fd6 50%, #1b1c1f 50%); }
.sw-norton-blue { background: linear-gradient(135deg, #19b3b3 50%, #0a0fb0 50%); }
.sw-graphite { background: linear-gradient(135deg, #8f949c 50%, #f4f4f5 50%); }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 46em; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Proof blocks */
.proofs { display: grid; gap: 96px; }
.proof { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.proof:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.proof:nth-child(even) .proof-text { order: 2; }
.proof-text p { color: var(--fg-soft); margin-top: 14px; }
.proof-text .facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: .95rem; color: var(--fg-soft); }
.proof-text .facts li { display: flex; gap: 10px; align-items: baseline; }
.proof-text .facts li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; transform: translateY(-2px); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; color: var(--fg-soft); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .l-cursor { background: #1d4fb0; }
.legend .l-marked { background: transparent; border: 2px solid #d0161b; }
.proof-media { position: relative; }
.proof-media .panel-shot { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; max-width: 480px; margin-left: auto; }
.inset { position: absolute; width: 50%; left: -32px; bottom: -48px; }
.inset .window { box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .08); }
.badge-inline { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
@media (max-width: 900px) {
  .proof, .proof:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .proof:nth-child(even) .proof-text { order: 0; }
  .proof-media .panel-shot { margin: 0 auto; }
  .inset { position: relative; width: 72%; left: auto; bottom: auto; margin: -16% auto 0 -4px; }
}

/* Built-in tools */
.tools { padding-top: 24px; }
.tools .wrap { display: grid; gap: 88px; }
.tools .section-head { margin-bottom: -24px; }
.tools .proof-text h3 { margin: 0; }
.proof-wide { display: grid; gap: 32px; }
.proof-wide .proof-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 56px; align-items: end; }
.proof-wide .proof-text > p { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; align-items: start; }
.tile { display: grid; gap: 28px; }
.tile .proof-text p:not(.eyebrow) { max-width: 30em; }
.sheet-shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); outline: 1px solid rgb(0 0 0 / .12); outline-offset: -1px; background: #ececec; }
.tile .sheet-shot { max-width: 480px; }
@media (max-width: 900px) {
  .tools .wrap { gap: 64px; }
  .proof-wide .proof-text, .tiles { grid-template-columns: 1fr; }
}

/* AI section */
.ai-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr; } }
.terminal { background: var(--term-bg); color: var(--term-fg); border-radius: 12px; box-shadow: var(--shadow); font: 13.5px/1.6 var(--mono); overflow: hidden; outline: 1px solid rgb(255 255 255 / .06); outline-offset: -1px; }
.terminal .window-bar { --frame-bar: linear-gradient(#24262c, #1d1f24); --frame-line: #000; --frame-title: #9aa0ab; font-family: var(--font); font-weight: 500; }
.terminal-body { padding: 16px 18px 20px; overflow-x: auto; }
.terminal-body p { margin: 0 0 10px; white-space: pre-wrap; }
.t-user { color: #fff; }
.t-user::before { content: "> "; color: var(--term-dim); }
.t-tool::before { content: "⏺ "; color: var(--term-ok); }
.t-say::before { content: "⏺ "; color: #fff; }
.t-tool b { color: var(--term-accent); font-weight: 600; }
.t-res { color: var(--term-dim); padding-left: 1.6em; }
.t-res::before { content: "⎿  "; }
.t-wait { color: var(--term-warn); }
.t-plan { padding-left: 1.6em; color: var(--term-fg); }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--term-warn); vertical-align: -2px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-shot { position: relative; }
.ai-stage { position: relative; margin-bottom: 6%; }
.ai-shot .sheet { position: absolute; right: -20px; top: 70%; width: 64%; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -18px rgb(0 0 0 / .5), 0 0 0 1px rgb(0 0 0 / .12); }
@media (max-width: 960px) { .ai-shot .sheet { right: -8px; } }
.ai-caption { margin-top: 14px; font-size: .92rem; color: var(--muted); text-align: left; max-width: 36%; }
@media (max-width: 560px) { .ai-stage { margin-bottom: 0; } .ai-shot .sheet { position: relative; right: auto; top: auto; width: 88%; margin: -12% -8px 0 auto; } .ai-caption { max-width: none; } }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; } }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.card p { margin-top: 8px; font-size: .95rem; color: var(--fg-soft); }
.install { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; text-align: center; }
.code { display: flex; align-items: center; gap: 4px; max-width: 100%; background: var(--term-bg); color: var(--term-fg); border-radius: 12px; padding: 6px 6px 6px 18px; font: 14px/1.5 var(--mono); box-shadow: var(--shadow-sm); }
.code code { min-width: 0; overflow-x: auto; white-space: nowrap; padding: 8px 0; scrollbar-width: thin; }
.code code .p { color: var(--term-dim); user-select: none; }
.code code .path { color: var(--term-dim); }
.copy { flex: none; font: 600 12.5px var(--font); color: var(--term-fg); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); border-radius: 8px; padding: 7px 11px; cursor: pointer; }
.copy:hover { background: rgb(255 255 255 / .14); }
.install p { font-size: .92rem; color: var(--muted); }
.create { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.create .sheet-shot { max-width: 560px; margin-left: auto; }
.modules-note { display: flex; gap: 16px; align-items: flex-start; margin: 64px auto 0; max-width: 46em; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.modules-note svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 1px; }
.modules-note p { font-size: .95rem; color: var(--fg-soft); }
.modules-note b { color: var(--fg); }
@media (max-width: 900px) { .create { margin-top: 56px; padding-top: 56px; } .create .sheet-shot { margin: 0 auto; } }

/* Keyboard */
.keys { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1060px) { .keys { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 420px) { .keys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.key { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 9px 8px 10px; min-width: 0; min-height: 66px; background: var(--key-bg); border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 9px; }
.key kbd { font: 600 .78rem var(--font); color: var(--muted); }
.key span { font-size: clamp(.74rem, .95vw, .86rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--fg); min-height: 1.15em; transition: color .12s; }
.keys[data-layer="shift"] .key { border-color: color-mix(in srgb, var(--accent) 55%, var(--key-edge)); }
.keys[data-layer="shift"] .key span { color: var(--accent); }
.keys-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.shift-btn { font: inherit; font-size: .9rem; font-weight: 600; color: var(--fg-soft); background: var(--key-bg); border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 9px; padding: 6px 14px; cursor: pointer; }
.shift-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 820px) { .combos { grid-template-columns: 1fr; } }
.combo { display: flex; gap: 16px; align-items: flex-start; }
.combo .chord { display: flex; gap: 4px; flex: none; }
.combo kbd, .k { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; font: 600 .85rem var(--font); color: var(--fg); background: var(--key-bg); border: 1px solid var(--key-edge); border-bottom-width: 2px; border-radius: 7px; }
.combo b { display: block; font-size: 1rem; }
.combo p { font-size: .93rem; color: var(--fg-soft); margin-top: 2px; }
.profiles { margin-top: 28px; font-size: .93rem; color: var(--muted); }

/* Themes strip */
.themes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.themes figure { margin: 0; }
.themes .thumb { border-radius: 7px; overflow: hidden; box-shadow: var(--shadow-sm); outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; aspect-ratio: 1180 / 720; background: var(--bg-soft); }
.themes figcaption { font-size: .82rem; color: var(--fg-soft); margin-top: 9px; text-align: center; }
@media (max-width: 1000px) {
  .themes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; scroll-padding: 0 24px; }
  .themes figure { scroll-snap-align: start; }
}
@media (max-width: 520px) { .themes { grid-auto-columns: 78%; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 26px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.plan h3 { font-size: 1.1rem; }
.plan .for { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; flex-wrap: wrap; }
.price .amount { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .unit { color: var(--muted); font-size: .95rem; }
.price s { color: var(--muted); font-size: 1.25rem; font-weight: 500; }
.launch-badge { position: absolute; top: -12px; left: 24px; background: var(--marked); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; letter-spacing: .01em; }
.launch-badge[hidden] { display: none; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: .95rem; color: var(--fg-soft); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { text-align: center; margin-top: 28px; color: var(--fg-soft); }
.plans-note b { color: var(--fg); }
.why { text-align: center; margin: 10px auto 0; color: var(--muted); max-width: 40em; font-size: .95rem; }

/* Final CTA */
.final { text-align: center; padding: 88px 0; }
.final img { width: 80px; height: 80px; margin: 0 auto 18px; }
.final .lead { margin: 14px auto 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--fg-soft); }
.promise { color: var(--fg); font-weight: 600; }
.fineprint { font-size: .8rem; }

/* Text pages */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -0.03em; }
.page .lead { margin-top: 14px; }
.prose { margin-top: 40px; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 10px; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { color: var(--fg-soft); margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .85em; overflow-wrap: anywhere; }
.note { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--fg); padding: 16px 18px; border-radius: 12px; font-size: .95rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.5rem; color: var(--muted); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--fg-soft); }
.faq details > div p + p { margin-top: 10px; }
.release { border-left: 3px solid var(--accent); padding-left: 22px; }
.release h2 { margin-top: 0; }
.release .date { color: var(--muted); font-size: .95rem; margin: 4px 0 18px; }
.legal .date { color: var(--muted); font-size: .92rem; }
.legal h2 { font-size: 1.2rem; margin-top: 34px; }
.notfound { text-align: center; padding: 120px 0; }
.notfound .code404 { font: 700 clamp(4rem, 14vw, 8rem)/1 var(--font); letter-spacing: -0.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.notfound .cta { margin-top: 26px; }
.h3-like { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.cta-meta { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 2px; }
.cta-meta span { white-space: nowrap; }
@media (max-width: 560px) { .code code .path { display: none; } }

/* Latest version under the hero download button (filled from versions.json) */
.cta-latest { margin-top: 6px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Versions page (rendered from versions.json by js/site.js) */
.versions { margin-top: 40px; display: grid; gap: 16px; }
.versions-status { color: var(--muted); }
.version { scroll-margin-top: 72px; }
.version > details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.version > details[open] { box-shadow: var(--shadow-sm); }
.version summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; border-radius: var(--radius); }
.version summary::-webkit-details-marker { display: none; }
.version summary::after { content: ""; position: absolute; right: 26px; top: 29px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.version details[open] > summary::after { transform: translateY(4px) rotate(225deg); }
.version summary:hover::after { border-color: var(--fg); }
.version-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.version-head h2 { font-size: 1.45rem; letter-spacing: -0.015em; }
.version-meta { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.version-meta span + span::before { content: "·"; margin: 0 7px; }
.version-title { color: var(--fg-soft); margin-top: 4px; font-size: .98rem; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .01em; line-height: 1.4; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.badge-latest { background: var(--accent-soft); color: var(--accent); }
.badge-preview { background: var(--warn-soft); color: var(--warn); }
.badge-release { background: var(--ok-soft); color: var(--ok); }
.version-body { border-top: 1px solid var(--line); padding: 22px 24px 24px; }
.preview-note { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; font-size: .93rem; color: var(--fg-soft); }
.preview-note svg { width: 20px; height: 20px; flex: none; color: var(--warn); margin-top: 1px; }
.preview-note b { display: block; color: var(--fg); }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 12px; align-items: baseline; color: var(--fg); }
.highlights li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; transform: translateY(-2px); }
.version-body h3 { font-size: 1.05rem; margin: 28px 0 0; }
.change-group h4 { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.change-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.change-list li { color: var(--fg-soft); font-size: .96rem; }
.area { display: inline-block; font-size: .74rem; font-weight: 600; line-height: 1.5; padding: 0 7px; margin-right: 8px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--fg-soft); white-space: nowrap; vertical-align: 1px; }
.download-card { margin-top: 28px; padding: 18px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 24px; align-items: center; }
.dl-facts { display: grid; gap: 5px; margin: 0; font-size: .88rem; }
.dl-facts > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.dl-facts dt { color: var(--muted); }
.dl-facts dd { margin: 0; color: var(--fg-soft); min-width: 0; }
.dl-sha dd { display: flex; gap: 8px; align-items: center; }
.dl-sha code { font-size: .78rem; color: var(--fg); overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.copy-sha { flex: none; font: 600 12px var(--font); color: var(--fg-soft); background: var(--bg-card); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; cursor: pointer; }
.copy-sha:hover { color: var(--fg); border-color: var(--muted); }
@media (max-width: 620px) {
  .version summary { padding: 18px 46px 18px 18px; }
  .version summary::after { right: 20px; }
  .version-body { padding: 18px; }
  .download-card { grid-template-columns: 1fr; }
  .download-card .btn { width: 100%; }
}
