/* ============================================================
   RESTREAMER 24/7 — marketing site
   Soft-dark by default, tuned light theme via prefers-color-scheme.
   No frameworks. Tokens first; everything below consumes them.
   ============================================================ */

:root {
    color-scheme: dark;

    /* surfaces — warm charcoal, never pure black */
    --bg-0: #141316;
    --bg-1: #1a191d;
    --bg-2: #201f24;
    --bg-3: #27262c;
    --surface: rgba(255, 255, 255, 0.028);
    --surface-2: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(26, 25, 29, 0.78);

    /* text — warm off-white */
    --text-0: #f3f1ec;
    --text-1: #b9b5ad;
    --text-2: #817d76;

    /* accent */
    --gold: #f0c24a;
    --gold-2: #f7d06a;
    --gold-ink: #1a1403;            /* text on gold */
    --gold-text: #f0c24a;           /* gold used as text */
    --gold-soft: rgba(240, 194, 74, 0.10);
    --gold-line: rgba(240, 194, 74, 0.30);
    --gold-line-strong: rgba(240, 194, 74, 0.6);

    --live: #ff5470;
    --ok: #4ade80;
    --twitch: #9146ff;
    --youtube: #ff3b30;
    --kick: #53fc18;
    --rumble: #85c742;
    --facebook: #1877f2;
    --x: #e7e9ea;

    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);

    /* terminal panel */
    --term-bg: #101013;
    --term-fg: #d8d5cd;
    --term-dim: #6f6b64;
    --term-cyan: #7cc7e8;
    --term-green: #5fd38a;
    --term-yellow: #f0c24a;
    --term-red: #ff6b6b;

    --font-display: 'Manrope', 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    --r-s: 6px;
    --r-m: 12px;
    --r-l: 18px;
    --r-xl: 26px;
    --r-pill: 999px;

    --shadow-0: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.25);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --container: 1180px;
}

/* ---- Light theme (respects the OS preference) ---- */
@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --bg-0: #f7f5f0;
        --bg-1: #ffffff;
        --bg-2: #f1eee7;
        --bg-3: #e9e5dc;
        --surface: rgba(255, 255, 255, 0.7);
        --surface-2: #ffffff;
        --nav-bg: rgba(255, 255, 255, 0.8);

        --text-0: #1b1a1d;
        --text-1: #4f4c48;
        --text-2: #7b776f;

        --gold: #e8b63a;
        --gold-2: #f2c650;
        --gold-ink: #1a1403;
        --gold-text: #9a6f08;
        --gold-soft: rgba(232, 182, 58, 0.14);
        --gold-line: rgba(200, 150, 30, 0.35);
        --gold-line-strong: rgba(200, 150, 30, 0.65);

        --live: #e0284a;
        --ok: #15803d;
        --x: #0f1419;

        --line: rgba(20, 18, 12, 0.09);
        --line-2: rgba(20, 18, 12, 0.16);

        --term-bg: #1b1a1f;           /* the terminal stays dark in light mode — it's a terminal */
        --shadow-0: 0 14px 40px rgba(40, 30, 10, 0.12);
        --shadow-1: 0 2px 10px rgba(40, 30, 10, 0.08);
    }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-0);
    background: var(--bg-0);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--gold-ink); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; z-index: 10000; border-radius: var(--r-s); font-weight: 700; }
.skip-link:focus { left: 16px; top: 12px; }
.mobile-only { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; color: var(--text-0); }
h1 { font-size: clamp(2.5rem, 4.6vw, 3.7rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p  { color: var(--text-1); }
strong { color: var(--text-0); font-weight: 700; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--gold-text); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-1); max-width: 60ch; }
.accent { color: var(--gold-text); }
.mono { font-family: var(--font-mono); }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
/* Grid children must be allowed to shrink below their content width (the <pre> dashboard, long URLs). */
.hero-grid > *, .problem-grid > *, .about-grid > *, .pricing-grid > *, .contact-grid > *, .tile, .tile.row > div { min-width: 0; }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin: 14px 0 18px; }
.section.alt { background: var(--bg-1); border-block: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border-radius: var(--r-pill);
    font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
    position: relative;
}
.btn-primary { background: var(--gold); color: var(--gold-ink); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(240, 194, 74, 0.28); }
.btn-ghost { color: var(--text-0); border: 1px solid var(--line-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--gold-line-strong); background: var(--gold-soft); transform: translateY(-1px); }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none !important; }

/* ---------- Island nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 1000; pointer-events: none; }
.nav-inner {
    pointer-events: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    height: 62px; padding: 0 10px 0 16px;
    background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-2); border-radius: var(--r-pill);
    box-shadow: var(--shadow-1);
    transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.nav.scrolled .nav-inner { box-shadow: var(--shadow-0); border-color: var(--gold-line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; display: inline-flex; align-items: center; gap: 8px; }
.brand-tag { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold-text); border: 1px solid var(--gold-line-strong); border-radius: var(--r-s); padding: 3px 6px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 0.88rem; font-weight: 600; color: var(--text-1); padding: 8px 12px; border-radius: var(--r-pill); transition: color .2s ease, background .2s ease; }
.nav-links a:hover { color: var(--text-0); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-login { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text-1); padding: 9px 14px; border-radius: var(--r-pill); transition: color .2s ease, background .2s ease; }
.nav-login svg { width: 16px; height: 16px; }
.nav-login:hover { color: var(--text-0); background: var(--surface-2); }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--r-pill); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-0); position: relative; transition: transform .3s ease, background .3s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text-0); transition: transform .3s ease, top .3s ease; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(76px + clamp(64px, 9vw, 120px)) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 70vh; pointer-events: none; background: radial-gradient(ellipse 900px 520px at 50% -10%, var(--gold-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 72px); align-items: center; position: relative; }
.hero-copy h1 { margin: 22px 0 22px; }
.hero-copy h1 .line { display: block; }
.hero-copy h1 .dim { color: var(--text-2); }
.hero-copy .lede { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); letter-spacing: 0.02em; }
.hero-note .ok { color: var(--ok); }
.platform-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px; }
.platform-row span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.platform-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--gold)); }

/* ---------- Terminal dashboard (hero visual) ---------- */
.term-wrap { position: relative; }
.term {
    border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--term-bg);
    box-shadow: var(--shadow-0); overflow: hidden; color: var(--term-fg);
    font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.6;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a393f; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; color: var(--term-dim); font-size: 0.68rem; letter-spacing: 0.04em; }
.term pre { margin: 0; padding: 14px 16px 16px; white-space: pre; overflow-x: auto; font: inherit; color: inherit; }
.term .b { color: #fff; font-weight: 700; }
.term .rule { display: block; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.term .rule.foot { padding: 8px 0 0; margin: 8px 0 0; border-bottom: 0; border-top: 1px solid rgba(255,255,255,0.1); }
.term .d { color: var(--term-dim); }
.term .c { color: var(--term-cyan); }
.term .g { color: var(--term-green); }
.term .y { color: var(--term-yellow); }
.term .r { color: var(--term-red); }
.term .pbar { display: inline-block; width: 28ch; height: 0.75em; vertical-align: -0.02em; border-radius: 2px; background: linear-gradient(90deg, var(--term-yellow) var(--p, 38%), #2b2a30 var(--p, 38%)); }
.term-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-2); letter-spacing: 0.02em; }
.term-caption a { color: var(--gold-text); display: inline-flex; align-items: center; gap: 6px; }
.term-caption a i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
.term-caption a[hidden] { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,84,112,0.5); } 70% { box-shadow: 0 0 0 7px rgba(255,84,112,0); } 100% { box-shadow: 0 0 0 0 rgba(255,84,112,0); } }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(48px, 6vw, 80px); }
.stat { padding: 24px 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s ease, background .3s ease; }
.stat:hover { border-color: var(--line-2); background: var(--surface-2); }
.stat .num { font-family: var(--font-mono); font-weight: 700; font-size: 2.3rem; color: var(--gold-text); letter-spacing: -0.04em; line-height: 1; }
.stat .num sup { font-size: 1rem; vertical-align: top; margin-left: 2px; }
.stat .cap { margin-top: 8px; font-size: 0.85rem; color: var(--text-2); }

/* Corner brackets — reserved for the pricing card (the one family signature we keep) */
.corners { position: relative; }
.corners::before, .corners::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); opacity: .7; pointer-events: none; }
.corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-s); }
.corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-s); }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.week { border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 22px; background: var(--bg-1); box-shadow: var(--shadow-0); }
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.week-head .label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 3px; background: var(--surface); }
.seg button { padding: 7px 14px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); transition: all .25s ease; }
.seg button.active { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.week-grid { display: grid; grid-template-columns: 36px 1fr; gap: 6px 10px; }
.week-grid .day { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-2); align-self: center; letter-spacing: 0.08em; }
.week-grid .hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.week-grid .h { aspect-ratio: 1 / 1; border-radius: 3px; background: var(--bg-3); transition: background .5s ease; }
.week-grid .h.on { background: var(--gold); }
.week-grid .h.on.dim { background: var(--gold); opacity: .45; }
.week-axis { display: grid; grid-template-columns: 36px 1fr; margin-top: 8px; }
.week-axis div { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-2); }
.week-foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.week-foot .big { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; color: var(--gold-text); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.week-foot .big small { font-size: 0.8rem; color: var(--text-2); font-weight: 400; letter-spacing: 0.04em; margin-left: 6px; }
.week-foot .desc { font-size: 0.85rem; color: var(--text-1); text-align: right; max-width: 26ch; }

.pain-list { display: grid; gap: 12px; margin-top: 28px; }
.pain { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); transition: border-color .3s ease, background .3s ease; }
.pain:hover { border-color: var(--line-2); background: var(--surface-2); }
.pain .ico { width: 44px; height: 44px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); }
.pain .ico svg { width: 22px; height: 22px; }
.pain h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pain p { font-size: 0.93rem; }
.callout { margin-top: 30px; padding: 22px 26px; border-radius: var(--r-m); border: 1px solid var(--gold-line); background: var(--gold-soft); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.4; }
.callout .accent { font-weight: 800; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 28px 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s ease, background .3s ease; }
.step:hover { border-color: var(--line-2); background: var(--surface-2); }
.step .n { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--gold-text); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.step .n::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.step h3 { margin-bottom: 10px; font-size: 1.3rem; }
.step p { font-size: 0.95rem; }
.step .art { margin: 22px 0 0; height: 96px; border-radius: var(--r-m); border: 1px dashed var(--line-2); display: grid; place-items: center; background: var(--bg-1); overflow: hidden; }
.step .art svg { width: 100%; height: 100%; }

/* ---------- Features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { grid-column: span 2; padding: 26px 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: border-color .3s ease, background .3s ease; }
.tile:hover { border-color: var(--line-2); background: var(--surface-2); }
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }
.tile.span-6 { grid-column: span 6; }
.tile.feature-hero { background: linear-gradient(135deg, var(--gold-soft), var(--surface) 60%); }
.tile .ico { width: 40px; height: 40px; border-radius: var(--r-s); display: grid; place-items: center; color: var(--gold-text); background: var(--gold-soft); margin-bottom: 10px; }
.tile .ico svg { width: 20px; height: 20px; }
.tile h3 { font-size: 1.08rem; }
.tile p { font-size: 0.92rem; }
.tile .art { margin-top: auto; padding-top: 18px; }
.tile.row { flex-direction: row; align-items: center; gap: 28px; }
.tile.row > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tile.row .art { flex: 1; padding-top: 0; margin-top: 0; }
.ladder { display: grid; gap: 8px; }
.ladder .rung { display: grid; grid-template-columns: 52px 1fr 66px; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-2); }
.ladder .rung b { color: var(--text-0); font-weight: 700; }
.ladder .bar { height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.ladder .bar i { display: block; height: 100%; width: var(--w); background: var(--gold); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.in-view .ladder .bar i, .tile:hover .ladder .bar i { transform: scaleX(1); }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.dots span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-1); }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.meta-demo { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 0.7rem; }
.meta-demo div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 7px 10px; border-radius: var(--r-s); background: var(--bg-1); border: 1px solid var(--line); }
.meta-demo span:first-child { color: var(--text-2); letter-spacing: 0.08em; text-transform: uppercase; }
.meta-demo span:last-child { color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-demo b.g { color: var(--ok); font-weight: 700; }
.meta-demo b.y { color: var(--gold-text); font-weight: 700; }

/* ---------- Platforms strip ---------- */
.strip { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg-1); }
.strip-inner { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.strip:hover .strip-inner { animation-play-state: paused; }
.strip-item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--text-1); white-space: nowrap; }
.strip-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.strip-item em { font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; color: var(--live); letter-spacing: 0.14em; border: 1px solid currentColor; padding: 2px 8px; border-radius: var(--r-pill); opacity: .9; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 34px 32px; border-radius: var(--r-l); background: var(--bg-1); border: 1px solid var(--gold-line); box-shadow: var(--shadow-0); }
.price-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.price-head h3 { font-size: 1.4rem; }
.price-head p { font-size: 0.92rem; margin-top: 4px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 26px 0 8px; }
.price-amount .cur { font-family: var(--font-mono); font-size: 1.4rem; color: var(--gold-text); font-weight: 700; }
.price-amount .val { font-family: var(--font-mono); font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 700; color: var(--text-0); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-amount .per { color: var(--text-2); font-size: 0.95rem; }
.price-sub { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-2); letter-spacing: 0.04em; }
.price-sub b { color: var(--gold-text); font-weight: 700; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 12px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 0.9rem; transition: all .25s ease; text-align: left; user-select: none; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .4; transition: opacity .25s ease; }
.chip .check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 0.7rem; color: transparent; transition: all .25s ease; }
.chip[aria-pressed="true"] { border-color: var(--gold-line-strong); background: var(--gold-soft); }
.chip[aria-pressed="true"] i { opacity: 1; }
.chip[aria-pressed="true"] .check { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip:hover { border-color: var(--gold-line-strong); }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips-hint { font-size: 0.82rem; color: var(--text-2); margin-bottom: 22px; min-height: 1.4em; }
.chips-hint.warn { color: var(--live); }
.price-breakdown { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; font-family: var(--font-mono); font-size: 0.8rem; }
.price-breakdown div { display: flex; justify-content: space-between; color: var(--text-1); }
.price-breakdown div.total { color: var(--text-0); font-weight: 700; padding-top: 8px; border-top: 1px dashed var(--line); }
.price-breakdown div.per { color: var(--text-2); font-size: 0.72rem; }
.price-breakdown span:last-child { font-variant-numeric: tabular-nums; }
.price-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fine { font-size: 0.8rem; color: var(--text-2); }
.included { padding: 34px 32px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.included h3 { font-size: 1.15rem; margin-bottom: 18px; }
.included ul { display: grid; gap: 12px; }
.included li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.93rem; color: var(--text-1); }
.included li b { color: var(--text-0); font-weight: 600; }
.included li svg { width: 20px; height: 20px; color: var(--gold-text); margin-top: 2px; }
.tiers { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.tiers .label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.tier-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tier { text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--r-m); font-family: var(--font-mono); transition: all .25s ease; cursor: pointer; }
.tier .t-n { font-size: 0.66rem; letter-spacing: 0.08em; color: var(--text-2); }
.tier .t-p { font-size: 0.92rem; font-weight: 700; color: var(--text-0); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tier.active, .tier:hover { border-color: var(--gold-line-strong); background: var(--gold-soft); }
.tier.active .t-p { color: var(--gold-text); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.about-card { padding: 34px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--bg-1); box-shadow: var(--shadow-0); }
.about-card .wg { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.about-card .wg i { width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; display: inline-block; }
.about-card .sub { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 22px; }
.values { display: grid; gap: 14px; margin-top: 22px; }
.values li { display: grid; grid-template-columns: 10px 1fr; gap: 14px; font-size: 0.93rem; color: var(--text-1); align-items: start; }
.values li::before { content: ''; width: 9px; height: 9px; margin-top: 8px; border: 2px solid var(--gold-text); border-left: 0; border-bottom: 0; transform: rotate(45deg); opacity: .8; }
.values li b { color: var(--text-0); display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); transition: border-color .25s ease; }
.faq details[open], .faq details:hover { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--gold-text); font-size: 1.2rem; transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 20px; font-size: 0.93rem; color: var(--text-1); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.form { padding: 30px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--bg-1); box-shadow: var(--shadow-0); display: grid; gap: 14px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 0.95rem; color: var(--text-0);
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-s);
    padding: 12px 14px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); opacity: .8; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-line-strong); box-shadow: 0 0 0 3px var(--gold-soft); background: var(--surface-2); }
.field input:user-invalid { border-color: var(--live); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.form-status { min-height: 1.4em; font-size: 0.9rem; color: var(--text-1); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--live); }
.form.sent > :not(.form-status) { display: none; }
.form.sent .form-status { font-size: 1.05rem; padding: 10px 0; }

/* ---------- Final CTA ---------- */
.cta-box { position: relative; text-align: center; padding: clamp(56px, 8vw, 96px) 24px; border-radius: var(--r-xl); border: 1px solid var(--gold-line); background: linear-gradient(180deg, var(--gold-soft), var(--bg-1) 70%); box-shadow: var(--shadow-0); }
.cta-box h2 { max-width: 18ch; margin: 14px auto 16px; }
.cta-box p { max-width: 54ch; margin: 0 auto 30px; }
.cta-box .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer p { font-size: 0.88rem; color: var(--text-2); max-width: 40ch; margin-top: 14px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer li a { font-size: 0.9rem; color: var(--text-1); transition: color .2s ease; }
.footer li a:hover { color: var(--gold-text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-2); letter-spacing: 0.02em; }

/* ---------- Auth (login.html) ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.auth-top .back { font-size: 0.88rem; color: var(--text-1); display: inline-flex; align-items: center; gap: 8px; }
.auth-top .back:hover { color: var(--text-0); }
.auth-main { display: grid; place-items: center; padding: 30px 0 60px; }
.auth-card { width: min(440px, 100%); padding: 36px 34px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--bg-1); box-shadow: var(--shadow-0); display: grid; gap: 16px; }
.auth-card h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
.auth-card .sub { font-size: 0.93rem; color: var(--text-1); margin-top: -8px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--text-1); }
.auth-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); }
.auth-row a { color: var(--gold-text); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); padding: 6px 8px; border-radius: var(--r-s); }
.pw-toggle:hover { color: var(--text-0); background: var(--surface-2); }
.auth-foot { text-align: center; font-size: 0.88rem; color: var(--text-2); padding-top: 6px; border-top: 1px solid var(--line); }
.auth-foot a { color: var(--gold-text); font-weight: 600; }
.auth-bottom { text-align: center; padding: 20px 0; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-2); }

/* ---------- Sign-up (signup.html) ---------- */
.auth-links { display: flex; gap: 22px; align-items: center; }
.auth-links b { color: var(--gold-text); font-weight: 700; }
.signup-main { padding: 10px 0 70px; }
.signup-head { max-width: 720px; margin-bottom: 34px; }
.signup-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 12px 0 14px; }
.signup-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.signup-grid > * { min-width: 0; }
.signup-form { padding: 30px; }
.signup-form h2 { font-size: 1.5rem; }
.signup-form .hint { font-size: 0.93rem; color: var(--text-1); margin: -6px 0 6px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); transition: all .25s ease; }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 0.68rem; font-weight: 700; }
.stepper li.active { color: var(--text-0); border-color: var(--gold-line-strong); background: var(--gold-soft); }
.stepper li.active span { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.stepper li.done { color: var(--text-1); cursor: pointer; }
.stepper li.done span { background: var(--ok); color: #062; border-color: var(--ok); }
.step-panel { display: none; gap: 14px; }
.step-panel.active { display: grid; }
.field-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-top: 10px; }
.field-label small, .field > span small { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.78rem; color: var(--text-2); }
.channel-links { display: grid; gap: 10px; }
.channel-links .link-row > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.agree { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 0.88rem; color: var(--text-1); padding: 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-nav [hidden] { display: none; }
.step-nav [data-next-step], .step-nav [data-submit] { margin-left: auto; }
.form.sent .stepper, .form.sent .step-panel, .form.sent .step-nav { display: none; }
.signup-success { display: grid; gap: 12px; text-align: center; padding: 20px 10px; justify-items: center; }
.signup-success[hidden] { display: none; }
.signup-success .ok-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #062; font-size: 1.6rem; font-weight: 800; }
.signup-success p { max-width: 48ch; }
.summary { position: sticky; top: 24px; padding: 26px; border-radius: var(--r-l); border: 1px solid var(--gold-line); background: var(--bg-1); box-shadow: var(--shadow-0); display: grid; gap: 16px; transition: opacity .3s ease; }
.summary.muted { opacity: .5; }
.summary-price { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 6px; }
.summary-price .cur { font-family: var(--font-mono); font-size: 1.1rem; color: var(--gold-text); font-weight: 700; }
.summary-price .val { font-family: var(--font-mono); font-size: 2.8rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-price .per { color: var(--text-2); font-size: 0.9rem; }
.summary-list { display: grid; gap: 6px; padding: 14px 0; border-block: 1px solid var(--line); }
.summary-list li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; font-size: 0.92rem; }
.summary-list li b { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.summary-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-foot div { display: grid; gap: 2px; font-size: 0.85rem; }
.summary-foot span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.summary-foot b { color: var(--text-0); font-weight: 600; }
@media (max-width: 900px) {
    .signup-grid { grid-template-columns: 1fr; }
    .summary { position: static; order: -1; }
    .summary-list, .summary .fine { display: none; }
    .stepper { grid-template-columns: 1fr; }
    .auth-links { gap: 14px; font-size: 0.85rem; white-space: nowrap; }
}
@media (max-width: 560px) {
    .auth-top { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 14px; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
/* Native scroll-driven animation where supported — no JS observer needed. */
@supports (animation-timeline: view()) {
    .reveal { opacity: 1; transform: none; transition: none; animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    .reveal[data-delay] { transition-delay: 0s; }
    .in-view .ladder .bar i { transform: scaleX(1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; animation: none; }
    .ladder .bar i { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid, .problem-grid, .about-grid, .pricing-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .tile, .tile.span-3, .tile.span-4 { grid-column: span 3; }
    .tile.span-6 { grid-column: span 6; }
    .nav-links a { padding: 8px 9px; font-size: 0.84rem; }
}
@media (max-width: 768px) {
    .nav { top: 10px; }
    .nav-inner { height: 58px; padding: 0 8px 0 14px; }
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--nav-bg); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 8px; box-shadow: var(--shadow-0); }
    .nav.open .nav-links { display: flex; }
    .nav-links a { padding: 13px 14px; border-radius: var(--r-s); }
    .nav-toggle { display: inline-flex; }
    .nav-cta .btn, .nav-cta .nav-login { display: none; }
    .mobile-only { display: block !important; }
    .tile, .tile.span-3, .tile.span-4, .tile.span-6 { grid-column: span 6; }
    .tile.row { flex-direction: column; align-items: stretch; }
    .faq { grid-template-columns: 1fr; }
    .chips { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .week-foot { flex-direction: column; align-items: flex-start; }
    .week-foot .desc { text-align: left; max-width: none; }
    .tier-row { grid-template-columns: repeat(3, 1fr); }
    .form-row.two { grid-template-columns: 1fr; }
    .term { font-size: 0.64rem; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .price-actions, .form-actions { flex-direction: column; align-items: stretch; }
    .week-grid, .week-axis { grid-template-columns: 28px 1fr; }
    .auth-card { padding: 28px 22px; }
}
