/*
 * One stylesheet for the whole site. The tokens below are the same ones the
 * extension's dashboard uses (extension/dashboard/dashboard.css), so the site
 * and the product read as one thing.
 */

:root {
    --bg: #F5F5F7;
    --surface: #FFFFFF;
    --surface-alt: #FAFAFB;
    --border: #E4E4E7;
    --text: #27272A;
    --muted: #71717A;
    --accent: #ED303C;
    --accent-hover: #D0212D;
    --accent-soft: #FDECEE;
    --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 8px 24px rgba(24, 24, 27, .06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #18181B;
        --surface: #212124;
        --surface-alt: #1D1D20;
        --border: #34343A;
        --text: #E8E8EA;
        --muted: #9A9AA3;
        --accent-soft: #331A1D;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

img { max-width: 100%; }

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 16px;
}

.narrow { max-width: 760px; }

/* ---------- header ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface); /* fallback where color-mix is unsupported */
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}

/*
 * Two logo files rather than a CSS filter: the dark variant is its own artwork
 * (white wordmark), not the light one inverted. <picture> is inline by default,
 * so it sits on the text baseline and reserves descender space under it — both
 * wrappers have to be block, not just the img.
 */
.logo,
.logo picture,
.logo img {
    display: block;
}

.logo img {
    width: 168px;
    height: 32px;
    object-fit: contain;
    object-position: left center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
}

.nav a:hover { color: var(--text); }

@media (max-width: 720px) {
    .nav .hide-sm { display: none; }
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover { border-color: var(--muted); }

.btn-sm { padding: 8px 14px; font-size: 14px; }

.btn svg { flex: none; }

/* ---------- hero ---------- */

.hero {
    text-align: center;
    padding: 72px 0 8px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 800;
    margin: 0 0 18px;
}

.hero .lede {
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.fineprint {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 20px;
}

/* ---------- dashboard mock ---------- */

/*
 * A replica of the extension's own dashboard rather than a screenshot: it can't
 * go stale when the product changes, and it stays sharp on every display.
 */
.mock {
    margin: 48px auto 0;
    max-width: 760px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mock-url {
    margin-left: 8px;
    font-size: 12px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mock-body { padding: 18px 20px 22px; }

.mock-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mock-head h3 { font-size: 16px; margin: 0; }

.mock-head span { font-size: 13px; color: var(--muted); }

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tab {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    white-space: nowrap;
    color: var(--muted);
}

.tab.active {
    border-color: var(--text);
    color: var(--text);
    font-weight: 600;
}

.tab .badge { color: var(--muted); margin-left: 6px; font-size: 12px; font-weight: 400; }

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 2px;
    border-top: 1px solid var(--border);
    font-size: 15px;
}

.row:first-of-type { border-top: 0; }

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex: none;
    background: linear-gradient(135deg, #FF9C5B, #ED303C);
}

.row .handle { font-weight: 600; }

.row .since { margin-left: auto; font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */

section { padding: 64px 0; }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

h2 {
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.2;
    letter-spacing: -.02em;
    font-weight: 700;
    margin: 0 0 12px;
}

.section-head p { color: var(--muted); margin: 0; }

.band { background: var(--surface); border-block: 1px solid var(--border); }

/* ---------- grids ---------- */

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}

.band .card { background: var(--surface-alt); }

.card .ico { font-size: 24px; line-height: 1; }

.card h3 {
    font-size: 17px;
    margin: 12px 0 6px;
}

.card p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.steps { counter-reset: step; }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* ---------- faq ---------- */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 20px;
    margin-bottom: 10px;
}

.band .faq details { background: var(--surface-alt); }

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    color: var(--muted);
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
}

.faq details[open] summary::after { content: "\2212"; }

.faq p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
}

/* ---------- cta band ---------- */

.cta {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 24px;
    box-shadow: var(--shadow);
}

.cta h2 { margin-bottom: 10px; }

.cta p { color: var(--muted); margin: 0 0 22px; }

/* ---------- footer ---------- */

footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 32px;
}

footer h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text);
    margin: 0 0 12px;
}

footer ul { list-style: none; margin: 0; padding: 0; }

footer li { margin-bottom: 8px; }

footer ul a {
    color: var(--muted);
    text-decoration: none;
}

footer ul a:hover { color: var(--text); text-decoration: underline; }

.colophon {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.colophon img { width: 32px; margin-bottom: 10px; }

.disclaimer { max-width: 560px; margin: 8px auto 0; font-size: 13px; }

/* ---------- legal pages ---------- */

.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 16px 72px;
}

.prose h1 {
    font-size: clamp(30px, 4.6vw, 40px);
    letter-spacing: -.02em;
    margin: 0 0 6px;
}

.prose .updated {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 36px;
}

.prose h2 {
    font-size: 22px;
    margin: 40px 0 10px;
}

.prose h3 {
    font-size: 17px;
    margin: 26px 0 8px;
}

.prose p, .prose li { color: var(--text); font-size: 16px; }

.prose ul { padding-left: 22px; }

.prose li { margin-bottom: 8px; }

.callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 24px 0;
}

.callout p { margin: 0; font-size: 16px; }

.callout p + p { margin-top: 10px; }

/* ---------- 404 ---------- */

.center-page {
    min-height: 64vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 16px;
}

.center-page h1 {
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -.02em;
    margin: 0 0 12px;
}

.center-page p {
    color: var(--muted);
    max-width: 420px;
    margin: 0 0 26px;
}

.copyline { margin-top: 10px; }
