/*
 * Hushbench website pages (/pricing, /account). Values follow the owner's pricing design
 * (specs/features/pricing-account/). Fonts are the workbench's self-hosted Inter.
 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/css/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/css/fonts/inter-latin-600.woff2') format('woff2');
}

:root {
    color-scheme: dark;
    --hb-bg: #0d0e11;
    --hb-bg-soft: #111317;
    --hb-surface: #16181d;
    --hb-surface-2: #1e2128;
    --hb-featured: #171a2b;
    --hb-hover: rgba(255, 255, 255, .045);
    --hb-line: #23262e;
    --hb-line-strong: #31353f;
    --hb-text: #eef0f4;
    --hb-text-2: #b6bbc6;
    --hb-muted: #848b98;
    --hb-accent: #6366f1;
    --hb-accent-soft: #a5b4fc;
    --hb-accent-faint: #c7d2fe;
    --hb-accent-bg: rgba(99, 102, 241, .14);
    --hb-accent-line: rgba(129, 140, 248, .42);
    --hb-green: #4ade80;
    --hb-mint: #6ee7b7;
    --hb-mint-bg: rgba(110, 231, 183, .1);
    --hb-mint-line: rgba(110, 231, 183, .3);
    --hb-ok: #86efac;
    --hb-ok-bg: rgba(74, 222, 128, .12);
    --hb-warn: #fcd34d;
    --hb-warn-bg: rgba(251, 191, 36, .12);
    --hb-warn-line: rgba(251, 191, 36, .4);
    --hb-error: #fca5a5;
    --hb-error-bg: rgba(248, 113, 113, .13);
    --hb-error-line: rgba(248, 113, 113, .4);
    --hb-save-bg: #34d399;
    --hb-save-text: #062b20;
    --hb-inline-code: #f0abfc;
    --hb-glass: rgba(13, 14, 17, .72);
    --hb-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --hb-shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
    --hb-glow-1: rgba(99, 102, 241, .22);
    --hb-glow-2: rgba(16, 185, 129, .12);
    --hb-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Light theme: theme.js sets data-theme on <html> before the first paint (light, dark or system) */
:root[data-theme="light"] {
    color-scheme: light;
    --hb-bg: #ffffff;
    --hb-bg-soft: #fafafb;
    --hb-surface: #f6f7f9;
    --hb-surface-2: #eceef2;
    --hb-featured: #f5f5ff;
    --hb-hover: rgba(15, 17, 21, .045);
    --hb-line: #e7e9ee;
    --hb-line-strong: #d4d8df;
    --hb-text: #0f1115;
    --hb-text-2: #3d4350;
    --hb-muted: #6b7280;
    --hb-accent: #4f46e5;
    --hb-accent-soft: #4338ca;
    --hb-accent-faint: #3730a3;
    --hb-accent-bg: rgba(79, 70, 229, .08);
    --hb-accent-line: rgba(79, 70, 229, .32);
    --hb-green: #16a34a;
    --hb-mint: #047857;
    --hb-mint-bg: rgba(16, 185, 129, .08);
    --hb-mint-line: rgba(5, 150, 105, .28);
    --hb-ok: #15803d;
    --hb-ok-bg: rgba(22, 163, 74, .1);
    --hb-warn: #b45309;
    --hb-warn-bg: rgba(245, 158, 11, .1);
    --hb-warn-line: rgba(217, 119, 6, .35);
    --hb-error: #b91c1c;
    --hb-error-bg: rgba(220, 38, 38, .07);
    --hb-error-line: rgba(220, 38, 38, .3);
    --hb-save-bg: #10b981;
    --hb-save-text: #ffffff;
    --hb-inline-code: #a21caf;
    --hb-glass: rgba(255, 255, 255, .78);
    --hb-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .07);
    --hb-shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
    --hb-glow-1: rgba(99, 102, 241, .14);
    --hb-glow-2: rgba(16, 185, 129, .09);
}

* { box-sizing: border-box; }

/* In-page links (Get Pro → #plans, #faq) land below the sticky header */
html { scroll-padding-top: 76px; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--hb-bg);
    color: var(--hb-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s, color .2s;
}

a { color: var(--hb-accent-soft); }
a:hover { color: var(--hb-accent-faint); }
code { font-family: var(--hb-mono); font-size: 12.5px; color: var(--hb-inline-code); }

.hb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hb-wrap--narrow { max-width: 880px; }

/* Header */
.hb-header { border-bottom: 1px solid var(--hb-line); background: var(--hb-surface); }
.hb-header .hb-wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hb-text); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.hb-brand:hover { color: var(--hb-text); }
.hb-brand img { width: 30px; height: 30px; display: block; }
.hb-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.hb-nav a { color: var(--hb-text-2); text-decoration: none; }
.hb-nav a[aria-current="page"] { color: var(--hb-text); }
.hb-header-actions { display: flex; gap: 10px; align-items: center; }
.hb-header-actions a { color: var(--hb-text-2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 14px; }
.hb-header-actions a:hover { color: var(--hb-text); }
.hb-header-actions a[aria-current="page"] { color: var(--hb-text); }
.hb-header-actions .hb-header-cta, .hb-header-actions .hb-header-cta:hover { min-height: 36px; padding: 0 14px; font-size: 13px; color: #fff; }

/* Buttons */
.hb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 18px; border-radius: 9px;
    border: 1px solid var(--hb-line-strong); background: var(--hb-surface-2); color: var(--hb-text);
    font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.hb-btn:hover { filter: brightness(1.12); color: var(--hb-text); }
.hb-btn:focus-visible, .hb-seg:focus-visible, .hb-input:focus-visible { outline: 2px solid var(--hb-accent-soft); outline-offset: 2px; }
.hb-btn--primary { background: var(--hb-accent); border-color: var(--hb-accent); color: #fff; }
.hb-btn--primary:hover { color: #fff; }
.hb-btn--block { display: flex; width: 100%; }
.hb-btn img, .hb-btn svg { width: 18px; height: 18px; flex: none; }
.hb-btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }

/* Hero */
.hb-hero { padding: 88px 24px 40px; text-align: center; }
.hb-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--hb-mint-line); background: var(--hb-mint-bg); color: var(--hb-mint);
    font-size: 13px; font-weight: 600;
}
.hb-hero h1 { margin: 22px auto 0; font-size: 54px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; max-width: 820px; }
.hb-hero p { margin: 20px auto 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--hb-text-2); }

/* Segmented toggle */
.hb-toggle { margin-top: 36px; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: var(--hb-surface); border: 1px solid var(--hb-line); }
.hb-seg {
    min-height: 40px; padding: 0 18px; border: none; border-radius: 7px; background: transparent; color: var(--hb-muted);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.hb-seg[aria-pressed="true"] { background: var(--hb-bg); color: var(--hb-text); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.hb-save { font-size: 11px; font-weight: 600; color: var(--hb-save-text); background: var(--hb-save-bg); padding: 2px 7px; border-radius: 999px; }

/* Plan cards */
.hb-plans { padding: 24px 24px 72px; }
.hb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hb-card {
    position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px;
    border-radius: 14px; background: var(--hb-surface); border: 1px solid var(--hb-line);
}
.hb-card--featured { background: var(--hb-featured); border-color: var(--hb-accent); box-shadow: 0 0 0 4px var(--hb-accent-bg), var(--hb-shadow); }
.hb-ribbon {
    position: absolute; top: -13px; left: 28px; padding: 4px 10px; border-radius: 999px; background: var(--hb-accent);
    color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hb-card h2 { margin: 0; font-size: 18px; font-weight: 600; }
.hb-card-lead { margin: 6px 0 0; font-size: 14px; color: var(--hb-muted); line-height: 1.5; }
.hb-price { display: flex; align-items: baseline; gap: 6px; }
.hb-price strong { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.hb-price span { font-size: 14px; color: var(--hb-muted); }
.hb-price-note { margin-top: 4px; font-size: 13px; color: var(--hb-muted); min-height: 36px; line-height: 1.4; }
.hb-card--featured .hb-price-note { color: var(--hb-accent-soft); }
.hb-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; color: var(--hb-text-2); line-height: 1.45; }
.hb-features li { display: flex; gap: 10px; }
.hb-features li.hb-lead-item { color: var(--hb-text); font-weight: 600; }
.hb-features svg { flex: none; width: 18px; height: 18px; margin-top: 1px; stroke: var(--hb-green); }
.hb-card--featured .hb-features svg { stroke: var(--hb-accent-soft); }

/* Payment strip */
.hb-pay {
    margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 18px 24px; border-radius: 12px; background: var(--hb-surface); border: 1px solid var(--hb-line);
}
.hb-pay-methods { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hb-pay-label { font-size: 13px; color: var(--hb-muted); font-weight: 600; }
.hb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--hb-surface-2); font-size: 13px; font-weight: 600; }
.hb-chip svg, .hb-chip img { width: 18px; height: 18px; flex: none; }
.hb-pay p { margin: 0; font-size: 13px; color: var(--hb-muted); line-height: 1.5; max-width: 440px; }

/* Sections */
.hb-band { border-top: 1px solid var(--hb-line); border-bottom: 1px solid var(--hb-line); background: var(--hb-surface); }
.hb-section { padding: 72px 24px; }
.hb-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hb-accent-soft); }
.hb-section h2.hb-h2 { margin: 12px 0 0; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.hb-section .hb-intro { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--hb-text-2); max-width: 640px; }
.hb-steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hb-step { padding: 24px; border-radius: 12px; background: var(--hb-bg); border: 1px solid var(--hb-line); display: flex; flex-direction: column; gap: 12px; }
.hb-step-num { font-family: var(--hb-mono); font-size: 13px; color: var(--hb-mint); font-weight: 600; }
.hb-step h3 { margin: 0; font-size: 17px; font-weight: 600; }
.hb-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--hb-text-2); }
.hb-step strong { color: var(--hb-text); font-weight: 600; }

/* Comparison */
.hb-compare h2 { margin: 0 0 28px; font-size: 28px; letter-spacing: -0.02em; font-weight: 600; }
.hb-table-wrap { overflow-x: auto; border: 1px solid var(--hb-line); border-radius: 12px; background: var(--hb-surface); }
.hb-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.hb-table th, .hb-table td { padding: 14px 16px; border-bottom: 1px solid var(--hb-line); text-align: left; vertical-align: middle; }
.hb-table th { color: var(--hb-text); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.hb-table th.hb-pro { color: var(--hb-accent-faint); }
.hb-table td { color: var(--hb-text-2); }
.hb-table td:first-child { color: var(--hb-text); font-weight: 600; width: 40%; }
.hb-table td.c, .hb-table th.c { text-align: center; }
.hb-table td.no { color: var(--hb-muted); }
.hb-table tr:last-child td { border-bottom: none; }
.hb-table tbody tr:hover td { background: var(--hb-hover); }

/* FAQ */
.hb-faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; padding-bottom: 80px; }
.hb-faq-grid > :first-child { grid-column: span 4; }
.hb-faq-grid > :last-child { grid-column: span 8; }
.hb-faq-grid h2 { margin: 0; font-size: 28px; letter-spacing: -0.02em; font-weight: 600; }
.hb-faq-grid > :first-child p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--hb-text-2); }
.hb-faq details { border-top: 1px solid var(--hb-line); padding: 18px 0; }
.hb-faq details:last-child { border-bottom: 1px solid var(--hb-line); }
.hb-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--hb-text); font-weight: 600; font-size: 16px; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: "+"; color: var(--hb-muted); font-size: 22px; font-weight: 400; line-height: 1; }
.hb-faq details[open] summary::after { content: "–"; }
.hb-faq p { margin: 12px 0 0; color: var(--hb-text-2); font-size: 15px; line-height: 1.6; max-width: 720px; }

/* Footer */
.hb-footer { border-top: 1px solid var(--hb-line); background: var(--hb-surface); }
.hb-footer .hb-wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--hb-muted); }
.hb-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.hb-footer a { color: var(--hb-muted); text-decoration: none; }
.hb-footer a:hover { color: var(--hb-text-2); }

/* Account page */
.hb-account { padding: 56px 24px 80px; display: flex; flex-direction: column; gap: 20px; }
.hb-account h1 { margin: 0; font-size: 34px; letter-spacing: -0.02em; font-weight: 600; }
.hb-account .hb-intro { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--hb-text-2); }
.hb-panel { padding: 28px; border-radius: 14px; background: var(--hb-surface); border: 1px solid var(--hb-line); display: flex; flex-direction: column; gap: 18px; }
.hb-panel--featured { background: var(--hb-featured); border-color: var(--hb-accent); box-shadow: 0 0 0 4px var(--hb-accent-bg); }
.hb-panel h2 { margin: 0; font-size: 18px; font-weight: 600; }
.hb-panel p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--hb-text-2); }
.hb-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hb-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hb-stack { display: flex; flex-direction: column; gap: 12px; }
.hb-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--hb-surface-2); color: var(--hb-text-2); }
.hb-badge--active { background: var(--hb-ok-bg); color: var(--hb-ok); }
.hb-badge--warn { background: var(--hb-warn-bg); color: var(--hb-warn); }
.hb-badge--error { background: var(--hb-error-bg); color: var(--hb-error); }
.hb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.hb-facts div { padding: 14px 16px; border-radius: 10px; background: var(--hb-bg); border: 1px solid var(--hb-line); }
.hb-facts dt { font-size: 12px; color: var(--hb-muted); font-weight: 600; letter-spacing: .02em; }
.hb-facts dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--hb-text); }
.hb-alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border: 1px solid; }
.hb-alert svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.hb-alert-title { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.hb-alert p strong { color: var(--hb-text); }
.hb-alert p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--hb-text-2); }
.hb-alert .hb-row { margin-top: 12px; }
.hb-alert--warn { border-color: var(--hb-warn-line); background: var(--hb-warn-bg); }
.hb-alert--warn svg { stroke: var(--hb-warn); }
.hb-alert--error { border-color: var(--hb-error-line); background: var(--hb-error-bg); }
.hb-alert--error svg { stroke: var(--hb-error); }
.hb-alert--info { border-color: var(--hb-accent-line); background: var(--hb-accent-bg); }
.hb-alert--info svg { stroke: var(--hb-accent-soft); }
.hb-divider { display: flex; align-items: center; gap: 12px; color: var(--hb-muted); font-size: 13px; }
.hb-divider::before, .hb-divider::after { content: ""; flex: 1; height: 1px; background: var(--hb-line); }
.hb-input {
    min-height: 44px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--hb-line-strong);
    background: var(--hb-bg); color: var(--hb-text); font: inherit; font-size: 14px; flex: 1; min-width: 220px;
}
.hb-label { font-size: 13px; color: var(--hb-text-2); font-weight: 600; }
.hb-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hb-option {
    display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 12px; cursor: pointer; text-align: left;
    background: var(--hb-bg); border: 1px solid var(--hb-line); color: var(--hb-text); font: inherit;
}
.hb-option[aria-pressed="true"] { border-color: var(--hb-accent); box-shadow: 0 0 0 3px var(--hb-accent-bg); }
.hb-option strong { font-size: 16px; }
.hb-option span { font-size: 13px; color: var(--hb-muted); line-height: 1.45; }
.hb-option .hb-option-price { font-size: 22px; font-weight: 600; color: var(--hb-text); }
.hb-seats { display: inline-flex; align-items: center; border: 1px solid var(--hb-line-strong); border-radius: 9px; overflow: hidden; }
.hb-seats button { width: 40px; min-height: 40px; border: none; background: var(--hb-surface-2); color: var(--hb-text); font: inherit; font-size: 18px; cursor: pointer; }
.hb-seats output { min-width: 56px; text-align: center; font-weight: 600; }
.hb-total { font-size: 15px; color: var(--hb-text-2); }
.hb-total strong { color: var(--hb-text); font-size: 18px; }
.hb-status { min-height: 1.4em; margin: 0; font-size: 13px; color: var(--hb-text-2); }
.hb-status[data-kind="error"] { color: var(--hb-error); }
.hb-status[data-kind="success"] { color: var(--hb-ok); }
.hb-preview-banner { padding: 8px 24px; background: var(--hb-warn-bg); color: var(--hb-warn); font-size: 13px; text-align: center; }

.hb-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hb-toggle--inline { margin-top: 0; }
.hb-btn--danger { border-color: var(--hb-error-line); color: var(--hb-error); }
.hb-btn--danger:hover { color: var(--hb-error); }

/* Account: desktop app downloads */
.hb-btn-note { font-weight: 500; opacity: .75; }
.hb-downloads summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--hb-text); }
.hb-downloads ul, .hb-first-launch ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.hb-downloads ul { margin-top: 12px; }
.hb-downloads li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--hb-line); font-size: 14px; }
.hb-downloads li > span { color: var(--hb-muted); font-size: 13px; }
.hb-downloads li > code { grid-column: 1 / -1; font-size: 11.5px; color: var(--hb-muted); overflow-wrap: anywhere; }
.hb-first-launch { display: flex; flex-direction: column; gap: 8px; }
.hb-first-launch li { font-size: 13px; line-height: 1.6; color: var(--hb-text-2); }

.hb-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Responsive */
/* Legal pages (generated from docs/legal by scripts/build-legal-pages.js) */
.hb-legal { padding: 56px 24px 80px; }
.hb-legal h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -0.02em; font-weight: 600; }
.hb-legal h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.hb-legal h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; }
.hb-legal p, .hb-legal li { font-size: 15px; line-height: 1.7; color: var(--hb-text-2); }
.hb-legal p { margin: 0 0 12px; }
.hb-legal ul, .hb-legal ol { margin: 0 0 14px; padding-left: 22px; }
.hb-legal li { margin: 4px 0; }
.hb-legal strong { color: var(--hb-text); font-weight: 600; }
.hb-legal a { color: var(--hb-accent); overflow-wrap: anywhere; }
.hb-legal code { font-size: 13px; }
.hb-legal table { width: 100%; margin: 8px 0 18px; border-collapse: collapse; font-size: 14px; }
.hb-legal th, .hb-legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hb-line); color: var(--hb-text-2); }
.hb-legal th { color: var(--hb-text); font-weight: 600; background: var(--hb-surface); }

@media (max-width: 1100px) {
    .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .hb-faq-grid > :first-child, .hb-faq-grid > :last-child { grid-column: span 12; }
    .hb-facts, .hb-options { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hb-grid, .hb-steps { grid-template-columns: 1fr; }
    .hb-nav { display: none; }
    .hb-hero { padding-top: 56px; }
    .hb-hero h1 { font-size: 38px; }
    .hb-pay { flex-direction: column; align-items: flex-start; }
    .hb-section { padding: 56px 24px; }
}

/* Shared modern shell: glass sticky header, hero glow, theme switch */
.hb-header { position: sticky; top: 0; z-index: 50; background: var(--hb-glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.hb-header .hb-wrap { height: 60px; }
.hb-hero { position: relative; isolation: isolate; }
.hb-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(640px 300px at 30% 0%, var(--hb-glow-1), transparent 70%), radial-gradient(520px 280px at 75% 30%, var(--hb-glow-2), transparent 70%);
}
.hb-card, .hb-panel { transition: border-color .2s, box-shadow .2s; }
.hb-card:hover { box-shadow: var(--hb-shadow); }
.hb-btn { transition: filter .15s, border-color .15s; }
.hb-btn:not(.hb-btn--primary):hover { filter: none; border-color: var(--hb-accent-line); }
:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }

.hb-theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--hb-line-strong); background: var(--hb-surface); }
.hb-theme button { display: grid; place-items: center; width: 28px; height: 28px; border: none; border-radius: 7px; background: transparent; color: var(--hb-muted); cursor: pointer; }
.hb-theme button:hover { color: var(--hb-text); }
.hb-theme button[aria-pressed="true"] { background: var(--hb-bg); color: var(--hb-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.hb-theme svg { width: 15px; height: 15px; }
/* Monochrome light-gray brand marks (GitHub, PayPal) flip to dark on the light theme */
:root[data-theme="light"] img[src$="-light.svg"] { filter: invert(1) brightness(.35); }
@media (max-width: 640px) {
    .hb-header .hb-wrap { gap: 10px; padding: 0 14px; }
    .hb-header-cta { display: none; }
    .hb-theme button { width: 24px; height: 26px; }
    .hb-header-actions a { padding: 8px 6px; }
}
