/* ZenStack site: shared styles for every page in public/.
   Tokens mirror the extension (css/global.css) and its store kit (store/design/theme.css).
   Fonts are self-hosted Onest (UI) + Geist Mono (numbers), SIL OFL: see /fonts/*-OFL.txt */

@font-face {
    font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/fonts/onest-latin-wght.woff2') format('woff2-variations');
}
@font-face {
    font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/fonts/geist-mono-wght.woff2') format('woff2-variations');
}

:root {
    color-scheme: dark; /* native controls and scrollbars follow the page theme, not the OS */
    --bg: #07080d;
    --bg-raised: #0d0e12;
    --surface: #111217;
    --surface-2: #171920;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f5f8;
    --text-2: #aeb6c8;
    --text-3: #8a91a0;
    --teal: #7fd3cf;
    --indigo: #828fff;
    --accent-text: linear-gradient(92deg, #8fe1dc, #9aa6ff);
    --up: #3ddc97;
    --down: #ff6b7a;
    --warn: #f5b301;
    --up-soft: rgba(61, 220, 151, 0.12);
    --down-soft: rgba(255, 107, 122, 0.12);
    --warn-soft: rgba(245, 179, 1, 0.12);
    --btn-bg: #f4f5f8;
    --btn-bg-hover: #ffffff;
    --btn-fg: #0a0b0f;
    --chip-bg: rgba(255, 255, 255, 0.06);
    --chip-bg-hover: rgba(255, 255, 255, 0.1);
    --teal-soft: rgba(127, 211, 207, 0.14);
    --teal-line: rgba(127, 211, 207, 0.38);
    --indigo-soft: rgba(130, 143, 255, 0.14);
    --dot: rgba(255, 255, 255, 0.075);
    --glow-teal: rgba(127, 211, 207, 0.30);
    --glow-indigo: rgba(130, 143, 255, 0.30);
    --glow-blue: rgba(58, 111, 184, 0.30);
    --nav-bg: rgba(7, 8, 13, 0.72);
    --shot-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.5);
    --star: #f5b301;
    --font-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --wrap: 1160px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f9f8f9;
    --bg-raised: #f1f0f3;
    --surface: #ffffff;
    --surface-2: #f5f5f8;
    --line: rgba(15, 23, 42, 0.09);
    --line-strong: rgba(15, 23, 42, 0.16);
    --text: #1c1e24;
    --text-2: #4f5563;
    --text-3: #6b7180;
    --teal: #12857e;
    --indigo: #5e6ad2;
    --accent-text: linear-gradient(92deg, #0f8f87, #5e6ad2);
    --up: #17804f;
    --down: #d13438;
    --warn: #a56a00;
    --up-soft: rgba(31, 157, 97, 0.12);
    --down-soft: rgba(229, 72, 77, 0.10);
    --warn-soft: rgba(217, 154, 0, 0.14);
    --btn-bg: #1c1e24;
    --btn-bg-hover: #2c2f38;
    --btn-fg: #ffffff;
    --chip-bg: rgba(15, 23, 42, 0.04);
    --chip-bg-hover: rgba(15, 23, 42, 0.08);
    --teal-soft: rgba(18, 133, 126, 0.10);
    --teal-line: rgba(18, 133, 126, 0.30);
    --indigo-soft: rgba(94, 106, 210, 0.12);
    --dot: rgba(15, 23, 42, 0.09);
    --glow-teal: rgba(127, 211, 207, 0.42);
    --glow-indigo: rgba(130, 143, 255, 0.30);
    --glow-blue: rgba(160, 120, 255, 0.16);
    --nav-bg: rgba(249, 248, 249, 0.78);
    --shot-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
    --star: #d99a00;
}

/* GetFullPage pages keep the same shell with the product's teal accent */
:root[data-product="getfullpage"] {
    --teal: #5eead4;
    --indigo: #38bdf8;
    --accent-text: linear-gradient(92deg, #5eead4, #7dd3fc);
    --teal-soft: rgba(94, 234, 212, 0.13);
    --teal-line: rgba(94, 234, 212, 0.36);
    --indigo-soft: rgba(56, 189, 248, 0.14);
    --glow-teal: rgba(45, 212, 191, 0.28);
    --glow-indigo: rgba(56, 189, 248, 0.20);
    --glow-blue: rgba(13, 148, 136, 0.26);
}
:root[data-product="getfullpage"][data-theme="light"] {
    --teal: #0d9488;
    --indigo: #0284c7;
    --accent-text: linear-gradient(92deg, #0d9488, #0284c7);
    --teal-soft: rgba(13, 148, 136, 0.10);
    --teal-line: rgba(13, 148, 136, 0.30);
    --indigo-soft: rgba(2, 132, 199, 0.10);
    --glow-teal: rgba(94, 234, 212, 0.45);
    --glow-indigo: rgba(125, 211, 252, 0.34);
    --glow-blue: rgba(45, 212, 191, 0.20);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { color: var(--text); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.acc { background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 808px; }
.wrap.slim { max-width: 648px; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

a.skip-link { position: absolute; left: -999px; top: 0; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 3000; font-weight: 700; }
a.skip-link:focus { left: 0; }

/* --- BUTTONS (flat) --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
    font: 700 14px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: var(--chip-bg); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--chip-bg-hover); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: 0.55; cursor: default; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- NAV --- */
.nav { position: sticky; top: 0; z-index: 1000; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; background: #fff; padding: 3px; border: 1px solid var(--line); }
.brand .t { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; transition: color 0.12s, background-color 0.12s; }
.nav-link:hover { color: var(--text); background: var(--chip-bg); }
.nav-link[aria-current="page"] { color: var(--text); background: var(--chip-bg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); cursor: pointer; transition: background-color 0.12s, color 0.12s; }
.icon-btn:hover { background: var(--chip-bg); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }
.menu-btn { display: none; }

/* --- BACKDROP (store-kit canvas: glows + dot grid + grain) --- */
.backdrop { position: absolute; left: 0; right: 0; top: 0; height: 1080px; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.backdrop.short { height: 620px; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow.teal { background: var(--glow-teal); left: -12%; top: -260px; width: 56%; height: 520px; }
.glow.indigo { background: var(--glow-indigo); right: -12%; top: -200px; width: 56%; height: 520px; }
.glow.blue { background: var(--glow-blue); left: 24%; top: 560px; width: 56%; height: 420px; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 100%); }
.grain { position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme="light"] .grain { display: none; }
main, footer { position: relative; z-index: 1; }
main { flex: 1; }

/* --- SHARED TYPE --- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--chip-bg); border: 1px solid var(--line-strong); }
.chip b { color: var(--text); font-weight: 700; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.kbd { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--chip-bg); border: 1px solid var(--line-strong); font: 600 12px var(--font-mono); color: var(--text); white-space: nowrap; }
.text-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--teal); }
.section { padding: 112px 0 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.section-head p { font-size: 18px; }

/* --- HERO (product pages) --- */
.hero { padding: 72px 0 0; text-align: center; overflow-x: clip; }
.hero h1 { font-size: clamp(42px, 7vw, 78px); letter-spacing: -0.045em; line-height: 1; margin: 22px auto 20px; max-width: 900px; }
.hero .sub { font-size: clamp(17px, 1.9vw, 20px); max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; gap: 10px 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: var(--text-3); font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust b { color: var(--text); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 14px; height: 14px; }

/* --- PAGE HEAD (support, help, legal) --- */
.page-head { padding: 64px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.04em; margin: 16px 0 14px; }
.page-head p { font-size: 18px; max-width: 620px; margin: 0 auto; }

/* --- PRODUCT WINDOW --- */
.stage { position: relative; margin: 64px auto 0; max-width: 1120px; }
.stage::before { content: ""; position: absolute; inset: -30px -40px; z-index: 0; filter: blur(40px); background: radial-gradient(60% 50% at 30% 20%, var(--glow-teal), transparent 60%), radial-gradient(50% 50% at 85% 80%, var(--glow-indigo), transparent 60%); }
.window { position: relative; z-index: 1; border-radius: 14px; overflow: hidden; background: var(--bg-raised); border: 1px solid var(--line-strong); box-shadow: var(--shot-shadow); }
.window-bar { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 7px; margin-right: 4px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.window-tab { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; }
.window-tab img { width: 14px; height: 14px; border-radius: 4px; background: #fff; }
.window-addr { flex: 1; min-width: 0; height: 26px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; font: 500 12px var(--font-mono); color: var(--text-3); }
.window img.shot { width: 100%; height: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); margin-left: auto; }
.seg button { height: 26px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font: 700 12px var(--font-sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.caption { margin-top: 16px; font-size: 13px; color: var(--text-3); text-align: center; position: relative; z-index: 1; }

/* --- FEATURE BLOCKS --- */
.rows { display: grid; gap: 112px; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
/* Screenshot features: copy on top, capture at full width so the UI stays readable */
.feature { display: grid; gap: 40px; }
.feature-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.feature-head .row-copy > p { margin-bottom: 0; }
.feature .window img.shot { aspect-ratio: 16 / 9; object-fit: cover; object-position: 0 0; }
.row-copy .num { font: 600 13px var(--font-mono); color: var(--teal); letter-spacing: 0.04em; display: block; margin-bottom: 14px; }
.row-copy h3 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.row-copy > p { font-size: 17px; margin-bottom: 22px; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; color: var(--text); line-height: 1.45; }
.ck { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); border: 1px solid var(--teal-line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--teal); }
.ck svg { width: 11px; height: 11px; }
.pro-tag { display: inline-block; vertical-align: 1px; margin-left: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 999px; background: rgba(139, 92, 246, 0.16); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.4); }
[data-theme="light"] .pro-tag { color: #6d28d9; }

/* --- CARDS --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--teal-soft); border: 1px solid var(--teal-line); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--teal); }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 6px; }
.card p { font-size: 14.5px; line-height: 1.5; }
.card.pad-lg { padding: 40px; }

/* --- PROSE (legal pages, help articles, guides) --- */
.prose { font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; margin: 28px 0 8px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--teal-line); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--teal); }
.prose code { font: 500 0.88em var(--font-mono); padding: 1px 6px; border-radius: 6px; background: var(--chip-bg); border: 1px solid var(--line); color: var(--text); }
.prose .meta { font-size: 14px; color: var(--text-3); }
.note { border-left: 3px solid var(--teal); background: var(--teal-soft); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 18px 0; font-size: 15px; color: var(--text); }
.note.warn { border-left-color: var(--warn); background: var(--warn-soft); }

/* --- FORMS --- */
.field { margin-bottom: 20px; }
.field > label, .field > legend { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.field .optional { color: var(--text-3); font-weight: 500; }
fieldset.field { border: 0; }
.input, select.input, textarea.input {
    width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong);
    background: var(--bg); color: var(--text); font: 500 15px var(--font-sans); transition: border-color 0.12s, box-shadow 0.12s;
}
textarea.input { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a91a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select.input option { background: var(--surface); color: var(--text); }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color 0.12s, background-color 0.12s; }
.choice:hover { border-color: var(--teal-line); }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0; }
.form-msg { text-align: center; margin-top: 14px; font-size: 14.5px; font-weight: 600; min-height: 22px; }
.form-msg.success { color: var(--up); }
.form-msg.error { color: var(--down); }
.form-note { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* --- DOCS (help center) --- */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.docs-nav { position: sticky; top: 88px; padding: 16px; }
.docs-nav h2 { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 6px 10px; line-height: 1.4; }
.docs-nav h2:first-child { margin-top: 4px; }
.docs-link { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); text-decoration: none; transition: color 0.12s, background-color 0.12s; }
.docs-link:hover { color: var(--text); background: var(--chip-bg); }
.docs-link.active { color: var(--text); background: var(--indigo-soft); box-shadow: inset 3px 0 0 var(--indigo); }
.docs-body { min-height: 480px; }
.help-section { display: none; }
.help-section.active { display: block; }
.help-section > h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* --- CTA BANDS --- */
.also { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; }
.also h3 { font-size: 22px; letter-spacing: -0.02em; margin: 8px 0 6px; }
.also p { font-size: 15px; max-width: 560px; }
.final { position: relative; overflow: hidden; text-align: center; border-radius: 24px; border: 1px solid var(--line-strong); background: var(--bg-raised); padding: 80px 24px; }
.final .glow.teal { left: -10%; top: -220px; width: 60%; height: 380px; }
.final .glow.indigo { right: -10%; top: auto; bottom: -240px; width: 60%; height: 380px; }
.final > :not(.glow) { position: relative; }
.final h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 14px; }
.final p { font-size: 18px; max-width: 540px; margin: 0 auto 30px; }

/* --- STATUS PAGES (checkout success / cancel) --- */
.status { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 16px; position: relative; z-index: 1; }
.status .card { width: 100%; max-width: 480px; padding: 44px 36px; text-align: center; }
.status h1 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 12px; }
.status p { font-size: 15.5px; margin-bottom: 20px; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; background: var(--up-soft); color: var(--up); border: 1px solid currentColor; }
.status-icon.muted { background: var(--chip-bg); color: var(--text-3); }
.status-icon svg { width: 32px; height: 32px; }
.status .note { text-align: left; }
.status .fine { font-size: 13px; color: var(--text-3); margin: 18px 0 0; }

/* --- FOOTER --- */
footer { margin-top: 112px; border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; }
.foot { display: flex; gap: 24px 48px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.foot p { margin-top: 12px; color: var(--text-3); max-width: 340px; }
.foot-links { display: flex; gap: 10px 24px; flex-wrap: wrap; max-width: 520px; }
.foot-links a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* --- INSTALL DIALOG (built by site.js) --- */
dialog { margin: auto; width: min(480px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--text-2); padding: 28px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
dialog::backdrop { background: rgba(5, 6, 10, 0.62); backdrop-filter: blur(4px); }
dialog h2 { font-size: 24px; margin-bottom: 6px; }
.browser-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 18px; }
.browser-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--chip-bg); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; transition: background-color 0.12s, border-color 0.12s; }
a.browser-item:hover { background: var(--chip-bg-hover); border-color: var(--teal-line); }
.browser-item img { width: 44px; height: 44px; object-fit: contain; }
.browser-item.soon { opacity: 0.55; }
.browser-item.soon img { filter: grayscale(1); }
.browser-item small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

@media (max-width: 960px) {
    .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
    .nav.open .nav-links { display: flex; }
    .nav-link { padding: 12px; font-size: 16px; }
    .nav-inner { gap: 12px; }
    .nav-actions { margin-left: auto; }
    .menu-btn { display: inline-flex; }
    .section { padding-top: 80px; }
    .rows { gap: 72px; }
    .row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .feature { gap: 28px; }
    .feature-head { grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .docs-nav { position: static; }
    footer { margin-top: 80px; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hero { padding-top: 48px; }
    .hero-cta .btn { width: 100%; }
    .page-head { padding: 44px 0 28px; }
    .stage { margin-top: 44px; }
    .stage::before { inset: -10px 0; }
    .window-addr { display: none; }
    /* Phone: zoom the desktop captures and pan to the content side so the UI stays legible */
    .window img.shot, .feature .window img.shot { width: 170%; max-width: none; aspect-ratio: auto; margin-left: var(--pan, -70%); }
    .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .card.pad-lg { padding: 26px 20px; }
    .also { padding: 24px 20px; }
    .final { padding: 56px 20px; }
    .status .card { padding: 36px 22px; }
    .nav .btn-primary { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
