/* YouTube Transcript - public site design system
   Light is the default; [data-theme="dark"] is set on <html> by components/theme-head. */

:root {
    --bg: #ffffff;
    --bg-subtle: #f7f7f9;
    --surface: #ffffff;
    --surface-2: #f3f3f6;
    --border: #e7e7ec;
    --border-strong: #d4d4dc;
    --text: #111118;
    --text-2: #4a4a57;
    --muted: #6e6e7c;
    --brand: #e8004d;          /* #FF0055 darkened a touch for text contrast on white */
    --brand-hover: #c90043;
    --brand-soft: #fff0f4;
    --violet: #6C5CE7;
    --violet-soft: #f1effd;
    --success: #12805c;
    --success-soft: #e9f7f1;
    --danger: #d92d20;
    --danger-soft: #fdeceb;
    --warning: #b54708;
    --warning-soft: #fef4e6;
    --ring: rgba(232, 0, 77, .22);
    --shadow-sm: 0 1px 2px rgba(16, 16, 24, .05);
    --shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 4px 16px rgba(16, 16, 24, .06);
    --shadow-lg: 0 12px 40px rgba(16, 16, 24, .12);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --container: 1120px;
    --nav-h: 64px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --tt-border: var(--border);
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0c0c10;
    --bg-subtle: #111116;
    --surface: #15151b;
    --surface-2: #1c1c24;
    --border: #262630;
    --border-strong: #353541;
    --text: #ededf2;
    --text-2: #c2c2cc;
    --muted: #9191a0;
    --brand: #ff3d78;
    --brand-hover: #ff5a8c;
    --brand-soft: rgba(255, 0, 85, .12);
    --violet: #9a8ff2;
    --violet-soft: rgba(108, 92, 231, .16);
    --success: #3ccf91;
    --success-soft: rgba(60, 207, 145, .12);
    --danger: #ff6b61;
    --danger-soft: rgba(255, 107, 97, .12);
    --warning: #f5a524;
    --warning-soft: rgba(245, 165, 36, .12);
    --ring: rgba(255, 61, 120, .3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body.site {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.site h1, .site h2, .site h3, .site h4 { color: var(--text); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; }
.site p { margin: 0 0 1em; }
.site a { color: var(--brand); text-decoration: none; }
.site a:hover { color: var(--brand-hover); }
.site img { max-width: 100%; height: auto; }
.site ::selection { background: var(--brand-soft); color: var(--text); }
.site :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; }
.container-xs { max-width: 480px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px;
    font: 500 15px/1 var(--font);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.site .btn-primary, .btn-primary { background: var(--brand); color: #fff; }
.site .btn-primary:hover, .btn-primary:hover { background: var(--brand-hover); color: #fff; }
.site .btn-dark, .btn-dark { background: var(--text); color: var(--bg); }
.site .btn-dark:hover, .btn-dark:hover { opacity: .88; color: var(--bg); }
.site .btn-secondary, .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.site .btn-secondary:hover, .btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.site .btn-ghost, .btn-ghost { background: transparent; color: var(--text-2); }
.site .btn-ghost:hover, .btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 1000;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-nav.scrolled { border-bottom-color: var(--border); }
.site-nav .container { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 15px; font-weight: 450; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-menu-btn { display: none; }
.nav-mobile-only { display: none; }

@media (max-width: 900px) {
    .nav-menu-btn { display: inline-flex; }
    .nav-links {
        display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px; font-size: 16px; }
    .nav-actions .nav-desktop-only { display: none; }
    .nav-mobile-only { display: block; }
    .site-nav .container { padding: 0 16px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--brand); margin-bottom: 12px; }

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 32px; }
    .section-head p { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 700; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand); }
.hero-sub { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 600px; margin: 0 auto 36px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--surface); margin-bottom: 24px; }
.pill b { background: var(--brand-soft); color: var(--brand); font-weight: 600; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.site a.pill:hover { color: var(--text); border-color: var(--border-strong); }

.url-form {
    display: flex; gap: 8px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
    box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
    transition: border-color .15s, box-shadow .15s;
}
.url-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.url-form.error { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.url-form.success { border-color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.url-form .url-field { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 10px; min-width: 0; }
.url-form .url-field > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.url-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 16px var(--font); }
.url-form input::placeholder { color: var(--muted); }
.url-form .paste-btn { height: 44px; }
.url-form .btn-primary { height: 44px; }
.url-hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.url-error { display: none; margin: 12px 0 0; font-size: 14px; color: var(--danger); }
@media (max-width: 560px) {
    .url-form { flex-wrap: wrap; }
    .url-form .url-field { flex-basis: 100%; }
    .url-form .paste-btn, .url-form .btn-primary { flex: 1; }
}

/* Product preview under the hero */
.preview {
    margin: 64px auto 0; max-width: 920px; text-align: left;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.preview-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.preview-dots { display: flex; gap: 6px; }
.preview-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.preview-url { flex: 1; max-width: 360px; margin: 0 auto; padding: 4px 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-body { display: grid; grid-template-columns: 1fr 1.25fr; }
.preview-video { padding: 20px; border-right: 1px solid var(--border); }
.preview-thumb { aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(135deg, #1b1b25, #2b2440); display: grid; place-items: center; }
.preview-thumb span { width: 52px; height: 36px; border-radius: 10px; background: #FF0055; display: grid; place-items: center; }
.preview-thumb span::after { content: ""; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.preview-meta { margin-top: 14px; }
.preview-meta strong { display: block; font-size: 14px; }
.preview-meta small { color: var(--muted); font-size: 13px; }
.preview-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.preview-tools span { font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); }
.preview-text { padding: 12px 8px; max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.preview-line { display: flex; gap: 14px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.preview-line time { font-family: var(--mono); font-size: 12px; color: var(--brand); padding-top: 2px; flex: none; }
.preview-line.on { background: var(--brand-soft); color: var(--text); }
@media (max-width: 760px) {
    .preview { margin-top: 48px; }
    .preview-body { grid-template-columns: 1fr; }
    .preview-video { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* Logo strip / trust row */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--success); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.site a.card { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.site a.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--brand); }
.icon-box { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; font-size: 20px; line-height: 1; color: var(--text); }
.icon-box svg { width: 20px; height: 20px; }
.icon-box.brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.icon-box.violet { background: var(--violet-soft); border-color: transparent; color: var(--violet); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 4px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Features list */
.feature { display: flex; gap: 16px; padding: 4px 0; }
.feature .icon-box { flex: none; margin: 0; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* Stat / limits */
.stat-card { display: flex; flex-direction: column; }
.stat-num { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 8px 0 6px; color: var(--text); }
.stat-label { font-weight: 550; color: var(--text); }
.stat-card ul { margin: 16px 0 0; }
.stat-card .btn { margin-top: auto; }
.card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312805c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }
[data-theme="dark"] .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ccf91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }

/* ---------- Pricing ---------- */
.billing-switch { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-subtle); margin-bottom: 40px; }
.billing-switch button { height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 500 14px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing-switch button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.plan.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan-tag { position: absolute; top: -11px; left: 28px; }
.plan h3 { font-size: 17px; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: 14px; min-height: 42px; margin-bottom: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price strong { font-size: 38px; font-weight: 700; letter-spacing: -.03em; color: var(--text); line-height: 1.1; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-note { min-height: 22px; font-size: 13px; color: var(--success); margin-bottom: 20px; }
.plan .checklist { margin-bottom: 28px; }
.plan form, .plan > .btn { margin-top: auto; }
.price-yearly { display: none; }
.billing-yearly .price-monthly { display: none; }
.billing-yearly .price-yearly { display: block; }
.billing-yearly .plan-price.price-yearly { display: flex; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text-2); }
.table th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-subtle); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--text); font-weight: 500; }
.yes { color: var(--success); font-weight: 600; }
.no { color: var(--muted); }

/* ---------- Split / media block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: block; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- CTA ---------- */
.cta {
    text-align: center; padding: 56px 24px; border-radius: 20px;
    background: var(--text); color: var(--bg);
}
.cta h2 { color: var(--bg) !important; font-size: clamp(26px, 3.2vw, 36px); }
.cta p { color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 18px; max-width: 520px; margin: 0 auto 28px; }
.cta .btn-primary { background: #FF0055; }
.cta .btn-primary:hover { background: #e0004b; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.label { display: block; font-size: 14px; font-weight: 550; color: var(--text); margin-bottom: 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 13px; }
.input, .site textarea.input, .site select.input {
    width: 100%; height: 42px; padding: 0 12px;
    font: 400 15px var(--font); color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    outline: 0; transition: border-color .15s, box-shadow .15s;
}
.site textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 110px; }
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.input.is-invalid { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; }
.field-help { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.site altcha-widget { --altcha-max-width: 100%; --altcha-border-radius: 8px; --altcha-color-base: var(--surface); --altcha-color-border: var(--border-strong); --altcha-color-text: var(--text); --altcha-color-border-focus: var(--brand); --altcha-color-error-text: var(--danger); display: block; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-info { background: var(--violet-soft); color: var(--violet); }

/* ---------- Auth ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-subtle); }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 64px; }
@media (min-height: 760px) { .auth-main { align-items: center; padding-top: 0; } }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px 32px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.auth-card .auth-foot, .auth-foot { text-align: center; color: var(--muted); font-size: 14px; margin: 24px 0 0; }
.auth-legal { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 24px; }
.auth-legal a { color: var(--muted) !important; text-decoration: underline; }
.btn-google { background: var(--surface); color: var(--text) !important; border-color: var(--border-strong); }
.btn-google:hover { background: var(--surface-2); }
.btn-google svg { width: 18px; height: 18px; }
.auth-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: var(--brand-soft); color: var(--brand); }
.auth-icon svg { width: 24px; height: 24px; }
.auth-icon.success { background: var(--success-soft); color: var(--success); }
.code-input { letter-spacing: .5em; text-align: center; font-family: var(--mono); font-size: 22px !important; height: 52px !important; }
@media (max-width: 480px) { .auth-card { padding: 28px 20px; border-radius: var(--radius); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 0; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a, .footer-grid button.linklike { color: var(--muted); font-size: 14px; }
.footer-grid a:hover, .footer-grid button.linklike:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 300px; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 10001; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 10, 16, .55); backdrop-filter: blur(4px); }
.modal-backdrop.open { display: flex; }
.modal { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; }
.modal h2 { font-size: 20px; margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Prose (CMS pages, guides) ---------- */
.prose { color: var(--text-2); font-size: 17px; line-height: 1.75; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 .6em; }
.prose h2 { font-size: 26px; margin: 2em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 17px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); }
.prose blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; color: var(--text-2); font-style: italic; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
.prose pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-subtle); color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
/* CMS content may carry inline dark-theme colors from the old design */
.prose [style*="color: white"], .prose [style*="color:#fff"], .prose [style*="color: #fff"] { color: var(--text) !important; }

.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 10px; }
.page-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 16px; list-style: none; padding: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }

/* ---------- Misc ---------- */
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 18px; height: 18px; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Bootstrap-style helpers (for older page markup) ---------- */
.card:has(> .card-body), .card:has(> .card-header) { padding: 0; overflow: visible; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header h5, .card-header h6, .card-title { margin: 0; font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }
.card-body p { margin: 0 0 8px; }
.btn-outline-primary { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline-primary:hover { background: var(--surface-2); color: var(--text); }
.btn-outline-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-outline-danger:hover { background: var(--danger-soft); }
.btn-success { background: var(--success); color: #fff; border-color: transparent; }
.btn-close { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.btn-close::before { content: "\00d7"; }
.btn-close:hover { opacity: 1; }
.alert-dismissible { position: relative; padding-right: 40px; }
.alert-dismissible .btn-close { position: absolute; top: 8px; right: 8px; }
.alert-heading { font-weight: 600; margin: 0 0 4px; color: inherit; }
.form-label { display: block; font-size: 14px; font-weight: 550; color: var(--text); margin-bottom: 6px; }
.form-control, .form-select {
    display: block; width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 15px;
    color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.form-control { height: auto; padding: 10px 12px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.form-control::placeholder { color: var(--muted); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }
.invalid-feedback { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.form-check-input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--brand); flex: none; }
.form-check-label { font-size: 14px; color: var(--text-2); cursor: pointer; }
.table-responsive { overflow-x: auto; }
.table-borderless th, .table-borderless td { border: 0; padding: 8px 0; background: none; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.row > * { padding: 0 10px; width: 100%; }
@media (min-width: 768px) {
    .col-md-4 { width: 33.333%; } .col-md-6 { width: 50%; } .col-md-8 { width: 66.666%; }
}
@media (min-width: 992px) {
    .col-lg-4 { width: 33.333%; } .col-lg-6 { width: 50%; } .col-lg-8 { width: 66.666%; } .offset-lg-4 { margin-left: 33.333%; }
    .d-lg-none { display: none !important; }
}
.col-12 { width: 100%; }
.d-flex { display: flex !important; } .d-inline { display: inline !important; } .d-inline-flex { display: inline-flex !important; } .d-none { display: none !important; }
.flex-wrap { flex-wrap: wrap; } .align-items-center { align-items: center; } .align-items-start { align-items: flex-start; }
.justify-content-between { justify-content: space-between; } .justify-content-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 16px; } .w-100 { width: 100%; } .p-0 { padding: 0 !important; }
.m-0 { margin: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 4px !important; } .mb-2 { margin-bottom: 8px !important; } .mb-3 { margin-bottom: 16px !important; } .mb-4 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 8px !important; } .mt-3 { margin-top: 16px !important; } .mt-4 { margin-top: 24px !important; } .my-4 { margin: 24px 0 !important; } .me-2 { margin-right: 8px !important; }
.text-end { text-align: right; } .text-muted { color: var(--muted) !important; } .text-primary { color: var(--brand) !important; }
.text-success { color: var(--success) !important; } .text-danger { color: var(--danger) !important; } .text-warning { color: var(--warning) !important; }
.h5 { font-size: 18px; font-weight: 600; } .icon-sm { width: 16px; height: 16px; vertical-align: -3px; }
.fade:not(.show) { opacity: 0; }
code { font-family: var(--mono); font-size: .9em; }

/* App pages that use layout/public */
.app-main { flex: 1; width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 32px 24px 80px; }
@media (max-width: 600px) { .app-main { padding: 20px 16px 64px; } }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: clamp(26px, 3vw, 32px); margin: 0 0 6px; }
.page-header p { color: var(--muted); margin: 0; }

/* ---------- Pricing page extras ---------- */
.note-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 0; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-subtle); }
.note-card strong { display: block; color: var(--text); margin-bottom: 2px; }
.note-card span { color: var(--muted); font-size: 14px; }
.faq { max-width: 720px; margin: 80px auto 0; }
.faq h2 { font-size: 28px; margin-bottom: 20px; text-align: center; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--text); 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 details p { color: var(--text-2); margin: -4px 0 18px; line-height: 1.65; }
