/* SessionHUD — public pages (landing, auth, account, legal). Same tokens as the app theme. */
:root {
    --bg: #0a0b0f;
    --surface-1: #101217;
    --surface-2: #15181f;
    --surface-3: #1c2029;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #eceef2;
    --text-2: #b9bfca;
    --muted: #8d95a3;
    --purple: #9166d8;
    --accent: #7c4fd0;
    --accent-hover: #8a5ee0;
    --accent-soft: rgba(124, 79, 208, 0.14);
    --ok: #4ead7a;
    --danger: #e0605e;
    --radius: 12px;
    --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(124, 79, 208, 0.45); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 28px; height: 18px; color: #d7dae0; flex-shrink: 0; }
.brand-mark circle { fill: var(--purple); }
.brand-word { font-family: 'Orbitron', var(--font-ui); font-weight: 800; font-size: 16px; letter-spacing: 0.05em; }
.brand-word b { font-weight: 800; color: var(--purple); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.12s, border-color 0.12s; white-space: nowrap; }
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.24); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: #fff; }
.btn-danger { color: #f0908e; border-color: rgba(224, 96, 94, 0.4); background: transparent; }
.btn-danger:hover { background: rgba(224, 96, 94, 0.12); border-color: var(--danger); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 11, 15, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.link { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.site-nav a.link:hover { color: #fff; background: var(--surface-2); }
@media (max-width: 720px) { .site-nav a.link { display: none; } }

/* Hero */
.hero { padding: 84px 0 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 750; max-width: 860px; margin: 0 auto; text-wrap: balance; }
.hero p.lead { max-width: 640px; margin: 22px auto 0; font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.shot { margin: 56px auto 0; border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; background: var(--surface-1); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(145, 102, 216, 0.08); }
.shot img { width: 100%; height: auto; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } section { padding: 52px 0; } .hero { padding-top: 56px; } }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--text-2); }
.card .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--purple); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ico svg { width: 18px; height: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--purple); }
.steps h3 { font-size: 16px; font-weight: 650; }
.steps p { font-size: 14px; color: var(--text-2); margin-top: 2px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 16px; }
.plan { position: relative; background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(145, 102, 216, 0.6); background: linear-gradient(180deg, rgba(124, 79, 208, 0.1), var(--surface-1) 45%); }
.plan .tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan h3 { font-size: 15px; font-weight: 600; color: var(--text-2); }
.plan .price { font-size: 40px; font-weight: 750; letter-spacing: -0.02em; margin-top: 8px; line-height: 1.1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sub { font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; font-size: 14px; color: var(--text-2); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.plan li::before { content: ''; width: 14px; height: 8px; margin-top: 6px; border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg) scale(0.8); }
.plan .btn { margin-top: auto; }
.price-note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 18px; line-height: 1.2; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 0 16px; color: var(--text-2); font-size: 14.5px; }

.cta-band { text-align: center; background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; padding: 48px 24px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.cta-band p { color: var(--text-2); margin: 10px 0 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; margin-top: 32px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.disclaimer { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: 12px; color: #6d7482; padding: 0 24px; }

/* Auth pages */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; gap: 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.auth-card h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.auth-card .sub { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.auth-foot { font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--text); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

form { display: grid; gap: 14px; margin-top: 22px; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
input[type="email"], input[type="password"], input[type="text"] { height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; width: 100%; }
input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(145, 102, 216, 0.22); }
label.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; color: var(--text-2); align-items: start; cursor: pointer; }
label.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
label.check a, .inline-link { color: var(--text); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inline-link { font-size: 13px; text-decoration: none; color: var(--text-2); }
.inline-link:hover { color: #fff; text-decoration: underline; }

.msg { border-radius: 9px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; border: 1px solid; }
.msg.error { background: rgba(224, 96, 94, 0.1); border-color: rgba(224, 96, 94, 0.4); color: #f3aaa8; }
.msg.ok { background: rgba(78, 173, 122, 0.1); border-color: rgba(78, 173, 122, 0.4); color: #9fd8b8; }
.msg.info { background: var(--accent-soft); border-color: rgba(145, 102, 216, 0.4); color: #d5c5f3; }

/* Account page */
.page { padding: 40px 0 64px; }
.page h1 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }
.page .lead { color: var(--text-2); margin-top: 6px; }
.stack { display: grid; gap: 16px; margin-top: 28px; max-width: 760px; }
.panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 16px; font-weight: 650; }
.panel p.desc { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.panel form { max-width: 380px; }
.panel .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.status-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot.ok { background: var(--ok); } .dot.warn { background: #d9a441; } .dot.bad { background: var(--danger); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.plan-opt { text-align: left; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: 14px 16px; color: var(--text); font: inherit; cursor: pointer; }
.plan-opt:hover { border-color: var(--purple); }
.plan-opt .name { font-size: 13px; color: var(--text-2); font-weight: 600; }
.plan-opt .amt { font-size: 22px; font-weight: 700; margin-top: 2px; }
.plan-opt .amt small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-opt .go { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--purple); }

/* Legal */
.legal { max-width: 760px; padding: 48px 24px 72px; margin: 0 auto; }
.legal h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal .todo { background: rgba(217, 164, 65, 0.14); border: 1px dashed rgba(217, 164, 65, 0.6); color: #ecd08f; border-radius: 6px; padding: 1px 6px; font-size: 0.95em; }
.legal .draft { margin: 16px 0 28px; }

/* Legal links on pages without a full footer */
.legal-links { font-size: 12.5px; color: var(--muted); text-align: center; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; }
.legal a { color: var(--purple); }
