/* ==========================================================================
   MarketGini — public site design system
   Themes: dark (default) and light via <html data-theme>. Use the variables;
   never hard-code colours in templates.
   ========================================================================== */

:root, :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #070d1a;
    --bg-soft: #0a1222;
    --surface: #0f1a2f;
    --surface-2: #142139;
    --surface-3: #1a2a47;
    --line: rgba(148, 170, 205, .14);
    --line-strong: rgba(148, 170, 205, .26);
    --text: #eaf0f9;
    --muted: #9aa9c2;
    --subtle: #6f7f9b;
    --accent: #5b9dff;
    --accent-strong: #3d84f5;
    --accent-2: #8b7bff;
    --on-accent: #ffffff;
    --green: #34c77b;
    --red: #ff6070;
    --amber: #f2b04a;
    --glow: rgba(91, 157, 255, .22);
    --glow-2: rgba(139, 123, 255, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
    --header-bg: rgba(7, 13, 26, .72);
    --grid-line: rgba(148, 170, 205, .06);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f9fd;
    --bg-soft: #eef3fa;
    --surface: #ffffff;
    --surface-2: #f4f7fc;
    --surface-3: #e9eff8;
    --line: #e1e8f2;
    --line-strong: #cdd7e6;
    --text: #0b1a30;
    --muted: #4d5d77;
    --subtle: #75849c;
    --accent: #1f6feb;
    --accent-strong: #1559c9;
    --accent-2: #6a5af9;
    --on-accent: #ffffff;
    --green: #12884f;
    --red: #d42f43;
    --amber: #b26b00;
    --glow: rgba(31, 111, 235, .14);
    --glow-2: rgba(106, 90, 249, .10);
    --shadow-sm: 0 1px 2px rgba(15, 30, 60, .06);
    --shadow: 0 12px 32px -14px rgba(15, 30, 60, .18);
    --shadow-lg: 0 30px 80px -24px rgba(15, 30, 60, .25);
    --header-bg: rgba(247, 249, 253, .8);
    --grid-line: rgba(15, 40, 80, .05);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color .2s, color .2s;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.icon { flex-shrink: 0; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: 12px; }
:root[data-theme="light"] .logo-on-dark, :root:not([data-theme="light"]) .logo-on-light { display: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
    cursor: pointer; text-decoration: none !important; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary {
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 8px 22px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 12px 30px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .22); transform: translateY(-1px); }
.btn-secondary { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
:root[data-theme="light"] .theme-icon-light, :root:not([data-theme="light"]) .theme-icon-dark { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.text-link .icon { transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo-mark { height: 28px; width: auto; }
.logo-text { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.section-title { font-size: clamp(30px, 4vw, 44px); }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section-foot { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.gradient-text {
    background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 12% 10%, var(--glow), transparent 70%),
        radial-gradient(700px 500px at 88% 20%, var(--glow-2), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 24px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
    font-size: 14px; color: var(--muted); box-shadow: var(--shadow-sm);
}
.hero-badge b { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -0.035em; line-height: 1.05; }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--green); }

/* Product preview (decorative) */
.preview { position: relative; }
.preview-stage { position: relative; }
.preview-window {
    position: relative; border-radius: 20px; border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.preview-bar span { margin-left: 10px; font-size: 12px; color: var(--subtle); }
.preview-body { padding: 20px 22px 22px; }
.preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.preview-name { font-weight: 700; font-size: 17px; }
.preview-ticker { font-size: 13px; color: var(--subtle); }
.preview-price { text-align: right; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.preview-price small { display: block; font-size: 13px; font-weight: 600; color: var(--green); }
.preview-chart { margin: 14px -4px 8px; height: 150px; }
.preview-chart svg { width: 100%; height: 100%; }
.preview-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); }
.tag.up { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 9%, transparent); }
.tag.info { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.preview-gauge { margin-top: 16px; }
.preview-gauge-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.preview-gauge-label b { color: var(--green); }
.gauge-track { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--amber) 50%, var(--green)); opacity: .85; }
.gauge-track i { position: absolute; top: -4px; left: 71%; width: 4px; height: 16px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.preview-chat {
    position: absolute; right: -18px; bottom: -62px; width: min(330px, 78%);
    padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-strong);
    background: var(--surface); box-shadow: var(--shadow-lg); font-size: 13px;
}
.preview-chat-q { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 8px; }
.preview-chat-q .icon { color: var(--accent); }
.preview-chat p { color: var(--text); line-height: 1.5; }
.preview-caption { margin-top: 80px; text-align: center; font-size: 12px; color: var(--subtle); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 26px 24px; background: var(--surface); }
.stat dd { margin: 0; }
.stats-section { padding-top: 0; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 2px; color: var(--muted); font-size: 14px; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    position: relative; padding: 28px; border-radius: 18px; border: 1px solid var(--line);
    background: var(--surface); box-shadow: var(--shadow-sm);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card-hover:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 19px; letter-spacing: -0.015em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 20px;
    border-radius: 12px; color: var(--accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.feature-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.feature-list .icon { color: var(--green); margin-top: 3px; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { padding-top: 24px; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 16px;
    border-radius: 50%; font-weight: 700; font-size: 15px; color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ---------- Market cards ---------- */
.market-card { display: flex; flex-direction: column; }
.market-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.market-code {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px;
    font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--text);
    background: var(--surface-3); border: 1px solid var(--line-strong); flex: none;
}
.market-top h3 { font-size: 20px; }
.market-sub { font-size: 14px; color: var(--muted); }
.market-summary { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.market-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 18px; font-size: 13px; color: var(--subtle); }
.market-meta b { color: var(--text); font-weight: 600; }
.ticker-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.ticker-chip { display: inline-flex; flex-direction: column; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); line-height: 1.25; }
.ticker-chip b { font-size: 13px; font-variant-numeric: tabular-nums; }
.ticker-chip span { font-size: 11.5px; color: var(--subtle); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-card .text-link { margin-top: auto; }
.market-extend { margin: -6px 0 18px; font-size: 13px; color: var(--subtle); display: flex; gap: 6px; align-items: flex-start; }
.market-extend .icon { color: var(--amber); margin-top: 2px; flex: none; }

/* ---------- Spotlight: extend screeners with your watchlist ---------- */
.spotlight-section { border-bottom: 1px solid var(--line); background: radial-gradient(700px 360px at 85% 30%, var(--glow), transparent 70%); }
.spotlight { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.spotlight .section-lead { max-width: 600px; }
.spotlight .hero-cta { margin-top: 28px; }
.spotlight-list { margin-top: 26px; gap: 14px; }
.spotlight-list li { font-size: 15px; }
.spotlight-list strong { color: var(--text); }
.spotlight-demo { margin: 0; padding: 22px; }
.spotlight-demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 14px; }
.spotlight-demo-head span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.spotlight-demo-head .icon { color: var(--accent); }
.spotlight-demo-head small { font-size: 12px; color: var(--subtle); }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-list li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.rank-list li.is-yours { border-color: color-mix(in srgb, var(--amber) 55%, transparent); background: color-mix(in srgb, var(--amber) 9%, var(--surface-2)); }
.rank-num { font-weight: 700; color: var(--subtle); font-variant-numeric: tabular-nums; }
.rank-name { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; line-height: 1.3; }
.rank-name small { font-weight: 400; font-size: 12px; color: var(--subtle); }
.rank-name small b { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--amber); }
.rank-score { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--green); }
.spotlight-demo .preview-caption { margin-top: 12px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; }
.plan.featured {
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(140deg, var(--accent), var(--accent-2)) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 30px 70px -30px var(--accent);
}
@media (min-width: 961px) { .plan.featured { transform: translateY(-10px); } .plan.featured.card-hover:hover { transform: translateY(-12px); } }
.plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); white-space: nowrap;
}
.plan-badge-inline { position: static; transform: none; display: inline-block; margin-bottom: 8px; font-size: 10.5px; padding: 3px 10px; }
.plan-name { font-size: 20px; }
.plan-tagline { margin-top: 6px; min-height: 48px; font-size: 14.5px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 6px; }
.plan-price strong { color: var(--text); font-size: 46px; letter-spacing: -0.04em; font-weight: 750; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-note { font-size: 13px; color: var(--subtle); min-height: 20px; }
.plan .btn { margin: 24px 0 26px; }
.plan .feature-list { margin-top: 0; gap: 12px; }
.plan .feature-list li { font-size: 15px; color: var(--text); }
.plan-ai { font-weight: 700; }
.pricing-foot { margin-top: 36px; text-align: center; color: var(--muted); font-size: 14px; }
.pricing-foot a { font-weight: 600; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare th, .compare td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; padding-top: 24px; padding-bottom: 20px; vertical-align: bottom; }
.compare thead th:first-child, .compare td:first-child, .compare th[scope="row"] { text-align: left; }
.compare th[scope="row"] { font-weight: 500; }
.compare .col-plan { width: 19%; }
.compare .plan-col-name { display: block; font-size: 17px; font-weight: 700; }
.compare .plan-col-price { display: block; margin: 2px 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.compare .featured-col { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.compare thead .featured-col { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: inset 0 3px 0 var(--accent); }
.compare .group-row th { text-align: left; padding-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: transparent; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare .yes { color: var(--green); display: inline-flex; }
.compare .no { color: var(--subtle); display: inline-flex; }
.compare .hint { display: block; margin-top: 2px; font-size: 13px; color: var(--subtle); font-weight: 400; }
.compare .value { font-weight: 500; font-variant-numeric: tabular-nums; }
.compare .value-strong { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 4px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-answer { padding: 0 22px 22px; color: var(--muted); }
.faq-answer p + p { margin-top: 10px; }
.faq-answer a { font-weight: 500; }
.faq-groups { display: grid; gap: 56px; }
.faq-group h2 { font-size: 24px; margin-bottom: 20px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.faq-toc a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.faq-toc a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.contact-grid > *, .form-grid > *, .auth-shell > * { min-width: 0; }
.contact-points { display: grid; gap: 22px; margin-top: 32px; }
.contact-point { display: flex; gap: 16px; }
.contact-point .feature-icon { margin: 0; width: 42px; height: 42px; }
.contact-point h2, .contact-point h3 { font-size: 16px; }
.contact-point p { margin-top: 2px; color: var(--muted); font-size: 15px; }
.form-card { padding: 32px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--subtle); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-strong);
    background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; line-height: 1.4;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--surface); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field-error { margin-top: 6px; font-size: 13.5px; color: var(--red); }
.field-help { margin-top: 6px; font-size: 13px; color: var(--subtle); display: flex; justify-content: space-between; gap: 10px; }
.human-check { padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface-2); }
.human-check .label { display: flex; align-items: center; gap: 8px; }
.human-check .label .icon { color: var(--green); }
.cf-turnstile { max-width: 100%; }
.human-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.human-row .question { font-weight: 600; font-variant-numeric: tabular-nums; }
.human-row input { max-width: 120px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.form-foot p { font-size: 13px; color: var(--subtle); max-width: 360px; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 15px; border: 1px solid; }
.alert .icon { margin-top: 2px; }
.alert-error { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 8%, transparent); }
.alert-success { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.alert-info { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.site-notice { padding-top: 24px; }
.site-notice .alert { margin-bottom: 0; }
.alert p { color: var(--text); }
.alert strong { display: block; color: inherit; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; padding: 64px 56px; border-radius: 28px; text-align: center;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(500px 260px at 15% 0%, var(--glow), transparent 70%),
        radial-gradient(500px 260px at 85% 100%, var(--glow-2), transparent 70%),
        var(--surface);
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 72px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 300px at 50% -10%, var(--glow), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.03em; }
.page-hero .section-lead { max-width: 680px; }
.page-hero.center { text-align: center; }
.page-hero.center .section-lead { margin-left: auto; margin-right: auto; }
.breadcrumbs { margin-bottom: 22px; font-size: 14px; color: var(--subtle); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.page-hero.center .breadcrumbs ol { justify-content: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--text); }

/* ---------- Market detail ---------- */
.market-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.market-stat { padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.market-stat b { display: block; font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.market-extend-note { max-width: 680px; margin: 20px 0 0; }
.market-extend-note .icon { flex: none; }
.share-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.share-search { position: relative; flex: 1 1 320px; max-width: 420px; }
.share-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.share-search input { padding-left: 44px; }
.share-count { color: var(--muted); font-size: 14px; }
.sector-group + .sector-group { margin-top: 36px; }
.sector-group h2 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; margin-bottom: 14px; }
.sector-group h2 span { font-size: 14px; font-weight: 500; color: var(--subtle); }
.share-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.share-table th, .share-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.share-table thead th { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--subtle); background: var(--surface-2); }
.share-table tbody tr:last-child td, .share-table tbody tr:last-child th { border-bottom: 0; }
.share-table tbody tr:hover { background: var(--surface-2); }
.share-table th[scope="row"] { font-weight: 600; }
.share-table .ticker { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); white-space: nowrap; }
.share-table .yahoo { color: var(--subtle); white-space: nowrap; font-size: 14px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.share-table thead th:first-child { width: 52%; }
.share-table .col-symbol { width: 22%; }
.share-table th, .share-table td { overflow-wrap: anywhere; }
.disclaimer-note { margin-top: 32px; font-size: 13.5px; color: var(--subtle); }
.empty-state { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 14px; }

/* ---------- Legal / prose ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: 14px; }
.legal-toc h2 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.prose { max-width: 760px; color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.prose h2 { margin: 48px 0 14px; color: var(--text); font-size: 24px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; color: var(--text); font-size: 18px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text); background: var(--surface-2); }
.prose .callout { margin: 0 0 18px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout { padding: 18px 20px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); background: color-mix(in srgb, var(--amber) 8%, transparent); color: var(--text); }
.updated { margin-top: 18px; font-size: 14px; color: var(--subtle); }

/* ---------- Auth pages ---------- */
.auth-page { position: relative; min-height: calc(100vh - 72px); padding: 64px 0 96px; overflow: hidden; }
.auth-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 50% 0%, var(--glow), transparent 70%); }
.auth-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; max-width: 980px; margin: 0 auto; align-items: center; }
.auth-shell.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth-card { padding: 36px; }
.auth-card h1 { font-size: 28px; }
.auth-card .section-lead { font-size: 15.5px; margin-top: 8px; }
.auth-form { display: grid; gap: 18px; margin-top: 28px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 68px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.password-toggle:hover { color: var(--text); background: var(--surface-3); }
.auth-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.auth-card .selected-plan + .auth-note { margin-bottom: -6px; }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--subtle); }
.auth-switch { margin-top: 22px; text-align: center; font-size: 15px; color: var(--muted); }
.auth-legal { font-size: 13px; color: var(--subtle); text-align: center; }
.auth-aside h2 { font-size: 26px; }
.auth-aside .feature-list li { color: var(--text); font-size: 15.5px; }
.selected-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); margin-top: 22px; }
.selected-plan b { font-size: 16px; }
.selected-plan span { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 16px 0 14px; max-width: 340px; color: var(--muted); font-size: 15px; }
.footer-email { font-weight: 600; }
.footer-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: var(--text); }
.footer-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); line-height: 1.7; }
.footer-legal strong { color: var(--muted); }
.footer-copy { margin-top: 14px; }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); }
.error-page .section-lead { margin-left: auto; margin-right: auto; max-width: 560px; }
.error-actions { justify-content: center; margin-top: 32px; }
.error-code { font-size: clamp(72px, 12vw, 128px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav-links a { padding: 8px 10px; }
}
@media (max-width: 960px) {
    .section { padding: 80px 0; }
    .hero { padding: 56px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 72px; }
    .preview { max-width: 560px; margin: 0 auto; width: 100%; }
    .grid-3, .pricing-grid { grid-template-columns: 1fr; }
    .spotlight { grid-template-columns: 1fr; gap: 40px; }
    .pricing-grid { max-width: 480px; margin: 0 auto; gap: 28px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .legal-toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
    .auth-aside { order: 2; }

    /* Mobile navigation */
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: 72px 0 auto 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        max-height: calc(100vh - 72px); overflow-y: auto;
        visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s;
    }
    .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
    .nav-links { flex-direction: column; margin: 0; gap: 2px; }
    .nav-links a { padding: 12px 14px; font-size: 16px; }
    .nav-actions { flex-wrap: wrap; }
    .nav-actions .btn { flex: 1; padding: 12px 16px; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .nav-bar { height: 64px; }
    .site-nav { inset: 64px 0 auto 0; max-height: calc(100vh - 64px); }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 40px; }
    .section-lead { font-size: 16.5px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .preview-chat { position: relative; right: auto; bottom: auto; width: auto; margin: 12px 12px 0; }
    .preview-caption { margin-top: 16px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 20px 18px; }
    .stat-value { font-size: 24px; }
    .grid-2, .form-grid { grid-template-columns: minmax(0, 1fr); }
    .card, .form-card, .auth-card { padding: 22px; }
    /* Turnstile needs at least 300px; drop the box chrome so it fits on phones. */
    .human-check.is-turnstile { padding: 0; border: 0; background: transparent; }
    .cta-band { padding: 44px 22px; border-radius: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .share-table th, .share-table td { padding: 10px 12px; }
    .share-table .col-symbol { display: none; }
    .field input, .field select, .field textarea { font-size: 16px; }
    .page-hero { padding: 48px 0 40px; }
}
@media (max-width: 380px) {
    .container { padding: 0 14px; }
    .form-card, .auth-card { padding: 16px; }
}

/* ---------- Reviews (carousel, /reviews, write form) ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .star { fill: var(--line-strong); }
.stars .star.on { fill: var(--amber); }
.review-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.review-summary strong { color: var(--text); }
.review-carousel { --per-view: 3; --gap: 20px; position: relative; }
.review-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 12px; margin: -6px -4px -12px; border-radius: 20px; }
.review-viewport::-webkit-scrollbar { display: none; }
.review-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-track { display: flex; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.review-slide { display: flex; flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); scroll-snap-align: start; }
.review-carousel.is-ready .review-viewport { overflow: hidden; scroll-snap-type: none; }
.review-carousel.is-ready .review-track { transition: transform .7s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.review-carousel.is-ready .review-track.is-jumping { transition: none; }
.review-carousel.is-static .review-track { justify-content: center; }
.review-controls { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.review-controls[hidden] { display: none; }
.review-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0;
    border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer;
    transition: border-color .15s, color .15s;
}
.review-btn:hover { border-color: var(--accent); color: var(--accent); }
.review-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-card { display: flex; flex-direction: column; width: 100%; margin: 0; padding: 26px; }
.review-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-quote-mark { color: color-mix(in srgb, var(--accent) 45%, transparent); }
.review-text { flex: 1; margin: 14px 0 0; }
.review-card .review-text p { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-avatar {
    display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.review-author strong { display: block; font-size: 15px; }
.review-author small { display: block; font-size: 13px; color: var(--subtle); }

.review-overview { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; max-width: 560px; margin: 32px auto 0; text-align: left; }
.review-score { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.review-score-value { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.review-score-count { font-size: 14px; color: var(--muted); }
.review-bars { display: grid; gap: 8px; margin: 0; }
.review-bar { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 14px; }
.review-bar dt { color: var(--muted); white-space: nowrap; }
.review-bar dd { display: flex; align-items: center; gap: 10px; margin: 0; }
.review-bar-track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.review-bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--amber); }
.review-bar-count { min-width: 24px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.review-grid > li { display: flex; }
.review-policy { max-width: 720px; margin: 36px auto 0; text-align: center; font-size: 13.5px; color: var(--subtle); }
.site-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.site-pager-info { font-size: 15px; color: var(--muted); }

.auth-shell.single.review-write-shell { grid-template-columns: minmax(0, 560px); }
.review-state-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.review-state-icon.ok { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.review-state-icon.warn { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.review-mine { margin-top: 20px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.review-mine p { margin: 8px 0 4px; color: var(--text); font-style: italic; overflow-wrap: anywhere; }
.review-mine small { color: var(--subtle); }
.star-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.star-field legend { padding: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field .star-input label { display: block; margin: 0; padding: 3px; border-radius: 8px; cursor: pointer; }
.star-input svg { fill: var(--line-strong); transition: fill .12s, transform .12s; }
.star-input input:checked ~ label svg { fill: var(--amber); }
.star-input:hover label svg { fill: var(--line-strong); }
.star-input:hover label:hover svg, .star-input:hover label:hover ~ label svg { fill: var(--amber); }
.star-input label:hover svg { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
.field label.check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); cursor: pointer; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.field.has-error label.check { color: var(--text); }

.auth-quote { margin: 28px 0 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.auth-quote p { margin: 8px 0 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.auth-quote blockquote { margin: 0; }
.auth-quote figcaption { margin-top: 8px; font-size: 13px; color: var(--subtle); }

@media (max-width: 960px) {
    .review-carousel { --per-view: 2; }
    .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .review-carousel { --per-view: 1; --gap: 14px; }
    .review-card { padding: 22px; }
    .review-grid { grid-template-columns: minmax(0, 1fr); }
    .review-overview { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .star-input svg { width: 40px; height: 40px; }
}
