/* ============================================================
   STRIKELINE — Editorial Trading Terminal
   Aesthetic: Financial Times meets Bloomberg.
   Cream paper, ink black, single emerald accent, mono numbers.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
    /* Editorial cream-and-ink palette — no AI purple */
    --paper:        #F5F1E8;          /* warm cream, the page */
    --paper-soft:   #EFEAE0;          /* slightly darker cream for alt sections */
    --paper-bright: #FAF7F0;          /* card brighter than page */
    --ink:          #14110E;          /* near-black, warm */
    --ink-soft:     #2A2620;
    --ink-muted:    #6B6358;
    --ink-faint:    #A9A092;
    --rule:         #1F1B16;          /* hairline color (same as ink for sharpness) */
    --rule-soft:    #D4CDBE;          /* lighter dividers */

    /* Inverted (dark sections) */
    --ink-on-dark:    #F5F1E8;
    --ink-on-dark-soft: #C9C2B5;
    --bg-dark:       #14110E;
    --bg-dark-alt:   #1C1813;

    /* The single accent: bull-market emerald — saturated, not garish */
    --accent:        #1A6E3A;         /* deep emerald */
    --accent-bright: #2A8B4F;
    --accent-faint:  rgba(26, 110, 58, 0.08);

    /* Loss red — used sparingly for "worst year" cells only */
    --loss:          #9B2C2C;
    --loss-faint:    rgba(155, 44, 44, 0.06);

    /* Neutrals for cards on dark */
    --card-on-dark:  #1F1B16;

    /* Spacing (8pt scale) */
    --s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px;  --s-7: 48px; --s-8: 64px;
    --s-9: 96px; --s-10: 128px; --s-11: 160px;

    /* Type ramp */
    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --body:    'Inter', -apple-system, system-ui, sans-serif;
    --mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Layout */
    --max:     1200px;
    --max-narrow: 720px;
    --radius:  4px;          /* small radius — editorial doesn't use rounded */
    --radius-lg: 8px;

    /* Motion */
    --t-fast:  150ms cubic-bezier(.4,0,.2,1);
    --t-mid:   320ms cubic-bezier(.4,0,.2,1);
    --t-slow:  640ms cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s-4);
    display: inline-block;
}
.eyebrow.on-dark { color: var(--accent-bright); }

h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;          /* Fraunces looks best at 500-600, not 700+ */
    font-variation-settings: "opsz" 144;  /* large optical size */
}

h1 { font-size: clamp(48px, 7vw, 84px); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; }
h3 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 600; font-variation-settings: "opsz" 36; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 600; font-variation-settings: "opsz" 14; }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--ink-on-dark); }

p { color: var(--ink-soft); }
.on-dark p { color: var(--ink-on-dark-soft); }

.lede {
    font-family: var(--display);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 400;
    line-height: 1.45;
    color: var(--ink-soft);
    font-variation-settings: "opsz" 36;
    letter-spacing: -0.01em;
}
.on-dark .lede { color: var(--ink-on-dark-soft); }

/* Tabular numbers everywhere we render numbers */
.num, .stat-num, td.num, .price-num {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--max-narrow); }
.section { padding: var(--s-9) 0; position: relative; }
.section.tight { padding: var(--s-8) 0; }
.section.dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.section.dark.alt { background: var(--bg-dark-alt); }
.section.cream-alt { background: var(--paper-soft); }

/* Section headers — left-aligned, editorial style */
.sec-head { max-width: 720px; margin-bottom: var(--s-7); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin-bottom: var(--s-4); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 14px 26px;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    border-radius: var(--radius);
    transition: all var(--t-fast);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}
.btn-primary.on-dark {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}
.btn-primary.on-dark:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    color: var(--paper);
}
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}
.btn-secondary.on-dark {
    color: var(--ink-on-dark);
    border-color: var(--ink-on-dark-soft);
}
.btn-secondary.on-dark:hover {
    background: var(--paper);
    color: var(--ink);
}
.btn .arrow {
    display: inline-block;
    transition: transform var(--t-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: var(--s-4) 0;
    background: rgba(245, 241, 232, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--t-fast);
}
.nav.scrolled {
    background: rgba(245, 241, 232, 0.92);
    border-bottom-color: var(--rule-soft);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--s-5);
}
.brand {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.brand-mark {
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s-7);
    font-size: 15px;
    font-weight: 500;
}
.nav-links a {
    color: var(--ink-soft);
    transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }
.nav-links .btn-primary {
    color: var(--paper);
    background: var(--ink);
}
.nav-links .btn-primary:hover { color: var(--paper); background: var(--accent); }

.nav-toggle { display: none; }

/* ---------- HERO ---------- */
.hero {
    padding: 180px 0 var(--s-9) 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    /* subtle radial light from top-right, paper-toned */
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(26,110,58,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-9);
    align-items: start;
}
.hero h1 {
    margin-top: var(--s-5);
    margin-bottom: var(--s-5);
    max-width: 14ch;
}
.hero h1 .accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}
.hero .lede {
    max-width: 56ch;
    margin-bottom: var(--s-6);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-bottom: var(--s-8);
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--rule-soft);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-muted);
}
.hero-meta strong {
    color: var(--ink);
    font-weight: 600;
}

/* Hero product mockup — fake a desktop window */
.window {
    background: var(--paper-bright);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 1px 1px rgba(20,17,14,0.04),
        0 8px 24px rgba(20,17,14,0.06),
        0 32px 64px rgba(20,17,14,0.10);
}
.window-bar {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-4);
    background: var(--paper-soft);
    border-bottom: 1px solid var(--rule-soft);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--ink-faint);
    opacity: 0.45;
}
.window-dots span:nth-child(1) { background: #E26565; }
.window-dots span:nth-child(2) { background: #E2C065; }
.window-dots span:nth-child(3) { background: var(--accent-bright); }
.window-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-muted);
    margin-left: var(--s-3);
}

/* Mock System Summary tab inside the window */
.mock-summary { padding: var(--s-5); }
.mock-tabs {
    display: flex;
    gap: var(--s-5);
    border-bottom: 1px solid var(--rule-soft);
    margin-bottom: var(--s-5);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-muted);
}
.mock-tabs a {
    padding-bottom: var(--s-3);
    color: var(--ink-muted);
    cursor: pointer;
    transition: color var(--t-fast);
    text-decoration: none;
    /* Reserve 2px of space below so the active border doesn't shift layout */
    border-bottom: 2px solid transparent;
    padding-bottom: calc(var(--s-3) - 2px);
}
.mock-tabs a:hover { color: var(--ink); }
.mock-tabs a.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}
.mock-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}
.mock-card {
    border: 1px solid var(--rule-soft);
    padding: var(--s-3) var(--s-4);
    border-radius: var(--radius);
    background: var(--paper);
}
.mock-card .lbl {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 4px;
}
.mock-card .val {
    font-family: var(--mono);
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.02em;
}
.mock-card .val.green { color: var(--accent); }
.mock-card .val.red   { color: var(--loss); }
.mock-chart {
    height: 140px;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius);
    padding: var(--s-3);
    position: relative;
}
.mock-chart svg { width: 100%; height: 100%; display: block; }

@media (min-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: var(--s-7);
        align-items: center;
    }
}

/* ---------- Stats bar ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
}
.stat {
    padding: var(--s-7) var(--s-5);
    border-right: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
}
.stat:last-child, .stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.stat:nth-child(2n) { border-right: none; }
.stat-num {
    display: block;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    margin-bottom: var(--s-3);
    letter-spacing: -0.02em;
}
.stat-num .unit {
    font-size: 0.5em;
    color: var(--ink-muted);
    margin-left: 4px;
    font-weight: 400;
}
.stat-lbl {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
@media (min-width: 720px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat { border-bottom: none; }
    .stat:last-child { border-right: none; }
}

/* ---------- Numbers Table (the killer section) ---------- */
.numbers-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 14px;
    background: var(--paper-bright);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.numbers-table thead th {
    text-align: left;
    padding: var(--s-4) var(--s-4);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
    border-bottom: 2px solid var(--ink);
    background: var(--paper-soft);
}
.numbers-table tbody td {
    padding: var(--s-4);
    border-bottom: 1px solid var(--rule-soft);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}
.numbers-table tbody tr:last-child td { border-bottom: none; }
.numbers-table .strat {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.numbers-table .strat .sub {
    display: block;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-muted);
    letter-spacing: 0;
    margin-top: 2px;
}
.numbers-table td.green { color: var(--accent); font-weight: 600; }
.numbers-table td.red   { color: var(--loss); font-weight: 600; }
.numbers-table td.pending {
    color: var(--ink-faint);
    font-style: italic;
}
.numbers-table .badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: var(--s-2);
    vertical-align: 1px;
}
.badge-free { color: var(--ink-muted); border-color: var(--rule-soft); }
.badge-pro  { color: var(--accent); border-color: var(--accent); }

.table-caveat {
    font-family: var(--body);
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: var(--s-4);
    line-height: 1.5;
    max-width: 720px;
}
.table-caveat::before {
    content: "* ";
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 720px) {
    .numbers-table { font-size: 12px; }
    .numbers-table thead th, .numbers-table tbody td { padding: var(--s-3); }
    .numbers-table .strat { font-size: 14px; }
}

/* ---------- Feature grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
}
@media (min-width: 720px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-7); }
}
@media (min-width: 1000px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature {
    padding-top: var(--s-5);
    border-top: 1px solid rgba(245, 241, 232, 0.18);
}
.feature .num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent-bright);
    margin-bottom: var(--s-3);
    letter-spacing: 0.04em;
    display: block;
}
.feature h3 { color: var(--ink-on-dark); margin-bottom: var(--s-3); }
.feature p { color: var(--ink-on-dark-soft); font-size: 15px; line-height: 1.6; }

/* ---------- Steps row ---------- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-7);
    counter-reset: step;
}
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
    position: relative;
    padding-top: var(--s-7);
    counter-increment: step;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0; left: 0;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.1em;
    border-top: 2px solid var(--accent);
    padding-top: var(--s-3);
    width: 40px;
}
.step h3 { margin-bottom: var(--s-3); }
.step p { font-size: 16px; }

/* ---------- Product Tour (alternating rows) ---------- */
.tour {
    display: flex;
    flex-direction: column;
    gap: var(--s-9);
    margin-top: var(--s-7);
}
.tour-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    align-items: center;
    /* Anchor scrolls land here — keep the row out from under the sticky nav */
    scroll-margin-top: 100px;
}
@media (min-width: 900px) {
    .tour-row { grid-template-columns: 1fr 1.2fr; gap: var(--s-8); }
    .tour-row.reverse { grid-template-columns: 1.2fr 1fr; }
    .tour-row.reverse .tour-text { order: 2; }
    .tour-row.reverse .tour-img { order: 1; }
}
.tour-tag {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s-3);
}
.tour-text h3 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 500;
    margin-bottom: var(--s-4);
    letter-spacing: -0.02em;
}
.tour-text p { font-size: 17px; line-height: 1.6; max-width: 50ch; }
.tour-text ul {
    margin-top: var(--s-4);
    padding: 0;
    list-style: none;
}
.tour-text li {
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--rule-soft);
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink-soft);
}
.tour-text li:last-child { border-bottom: none; }
.tour-text li::before {
    content: "→";
    color: var(--accent);
    margin-right: var(--s-3);
    font-weight: 600;
}

.tour-img {
    background: var(--paper-soft);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
    box-shadow:
        0 2px 4px rgba(20,17,14,0.04),
        0 12px 32px rgba(20,17,14,0.08);
}
.tour-img img { width: 100%; height: 100%; object-fit: cover; }
.tour-img .placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: var(--s-3);
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---------- Pricing ---------- */
.pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
    max-width: 920px;
    margin: 0 auto;
}
@media (min-width: 800px) { .pricing { grid-template-columns: 1fr 1fr; } }

.plan {
    padding: var(--s-7);
    background: var(--paper-bright);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    flex-direction: column;
}
.plan-tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: var(--s-4);
}
.plan-price {
    font-family: var(--display);
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.03em;
    margin-bottom: var(--s-2);
    font-variant-numeric: tabular-nums;
}
.plan-price .small {
    font-size: 18px;
    color: var(--ink-muted);
    font-weight: 400;
    margin-left: var(--s-2);
}
.plan-sub {
    font-size: 15px;
    color: var(--ink-muted);
    margin-bottom: var(--s-6);
    padding-bottom: var(--s-5);
    border-bottom: 1px solid var(--rule-soft);
}
.plan-features {
    list-style: none;
    flex: 1;
    margin-bottom: var(--s-6);
}
.plan-features li {
    padding: var(--s-3) 0;
    font-size: 15px;
    color: var(--ink-soft);
    display: flex;
    gap: var(--s-3);
    align-items: flex-start;
}
.plan-features li::before {
    content: "";
    flex-shrink: 0;
    width: 16px; height: 16px;
    margin-top: 4px;
    background: var(--accent-faint);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231A6E3A' d='M6.5 11L3 7.5l1-1L6.5 9l5.5-5.5 1 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.plan-features li.heading {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-bottom: var(--s-2);
    margin-top: var(--s-3);
    border-bottom: none;
}
.plan-features li.heading::before { display: none; }

.plan.highlight {
    background: var(--ink);
    color: var(--ink-on-dark);
    border-color: var(--ink);
}
.plan.highlight .plan-tag { color: var(--accent-bright); }
.plan.highlight .plan-price { color: var(--ink-on-dark); }
.plan.highlight .plan-price .small { color: var(--ink-on-dark-soft); }
.plan.highlight .plan-sub { color: var(--ink-on-dark-soft); border-bottom-color: rgba(245,241,232,0.15); }
.plan.highlight .plan-features li { color: var(--ink-on-dark-soft); }
.plan.highlight .plan-features li::before {
    background: rgba(42, 139, 79, 0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232A8B4F' d='M6.5 11L3 7.5l1-1L6.5 9l5.5-5.5 1 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.plan.highlight .plan-features li.heading { color: var(--accent-bright); }
.plan.highlight .badge-recommend {
    position: absolute;
    top: -1px; right: var(--s-5);
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.razorpay-slot {
    background: var(--paper-soft);
    border: 2px dashed var(--ink-faint);
    padding: var(--s-5);
    border-radius: var(--radius);
    text-align: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-bottom: var(--s-4);
}
.plan.highlight .razorpay-slot {
    background: rgba(245,241,232,0.04);
    border-color: rgba(245,241,232,0.18);
    color: var(--ink-on-dark-soft);
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--rule-soft); }
.faq-item { border-bottom: 1px solid var(--rule-soft); }
.faq-q {
    width: 100%;
    padding: var(--s-5) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    color: var(--ink);
    letter-spacing: -0.01em;
    transition: color var(--t-fast);
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border: 1px solid var(--rule-soft);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}
.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--ink);
    transition: transform var(--t-fast);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-icon { background: var(--ink); border-color: var(--ink); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--paper); }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-mid);
}
.faq-a-inner {
    padding-bottom: var(--s-5);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 60ch;
}

/* ---------- Testimonial placeholder (honest) ---------- */
.testimonial-empty {
    border: 1px solid var(--rule-soft);
    background: var(--paper-bright);
    padding: var(--s-9) var(--s-5);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.testimonial-empty .ribbon {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 1px solid var(--rule-soft);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: var(--s-5);
}
.testimonial-empty blockquote {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: var(--s-4);
    font-style: italic;
}
.testimonial-empty cite {
    font-style: normal;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-muted);
}

/* ---------- Final CTA ---------- */
.cta-final {
    text-align: center;
    padding: var(--s-10) var(--s-5);
}
.cta-final h2 {
    margin-bottom: var(--s-4);
    color: var(--ink-on-dark);
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}
.cta-final h2 .accent { color: var(--accent-bright); font-style: italic; font-weight: 500; }
.cta-final .lede { color: var(--ink-on-dark-soft); margin-bottom: var(--s-7); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-final .btns { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: var(--ink-on-dark-soft);
    padding: var(--s-8) 0 var(--s-5);
    border-top: 1px solid rgba(245,241,232,0.08);
}

/* ---------- Pricing card CTA wrapper ---------- */
/* Wraps the Razorpay-rendered button on the Pro plan card so it has   */
/* consistent vertical spacing within the card. The button itself is   */
/* styled by Razorpay's payment-button.js and we don't override it.    */
.plan-activate-wrapper {
    text-align: center;
    padding: var(--s-6) 0;
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle-btn {
    position: fixed;
    top: var(--s-4);
    right: var(--s-4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper-bright);
    border: 1px solid var(--rule-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theme-toggle-btn:hover {
    background: var(--paper);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--t-fast);
}

.theme-toggle-btn:hover svg {
    transform: rotate(15deg);
}

/* Dark mode variables */
[data-theme="dark"] {
    --paper: #1A1A1A;
    --paper-soft: #242424;
    --paper-bright: #2D2D2D;
    --ink: #E0E0E0;
    --ink-soft: #B0B0B0;
    --ink-muted: #888888;
    --ink-faint: #555555;
    --rule: #404040;
    --rule-soft: #333333;
    --ink-on-dark: #E0E0E0;
    --ink-on-dark-soft: #B0B0B0;
    --bg-dark: #121212;
    --bg-dark-alt: #1E1E1E;
    --accent: #4CAF50;
    --accent-bright: #66BB6A;
    --loss: #F44336;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    padding-bottom: var(--s-7);
    border-bottom: 1px solid rgba(245,241,232,0.08);
}
@media (min-width: 700px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-7); }
}
.footer h4 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-on-dark-soft);
    margin-bottom: var(--s-4);
}
.footer ul { list-style: none; }
.footer li { padding: 4px 0; font-size: 14px; }
.footer a { color: var(--ink-on-dark-soft); transition: color var(--t-fast); }
.footer a:hover { color: var(--ink-on-dark); }
.footer-brand .brand { color: var(--ink-on-dark); margin-bottom: var(--s-3); }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 36ch; color: var(--ink-on-dark-soft); }
.footer-bottom {
    padding-top: var(--s-5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-3);
    font-size: 12px;
    color: var(--ink-faint);
    font-family: var(--mono);
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 700ms cubic-bezier(.16,1,.3,1),
        transform 700ms cubic-bezier(.16,1,.3,1);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Pages: legal & download ---------- */
.legal-hero {
    padding: 180px 0 var(--s-7);
    border-bottom: 1px solid var(--rule-soft);
}
.legal-hero .eyebrow { color: var(--ink-muted); }
.legal-hero h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: var(--s-4); }
.legal-hero .lede { font-size: 18px; max-width: 60ch; }

.legal-body { padding: var(--s-8) 0 var(--s-9); }
.legal-body h2 {
    font-size: 28px;
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    padding-top: var(--s-5);
    border-top: 1px solid var(--rule-soft);
}
.legal-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h3 { font-size: 20px; margin: var(--s-5) 0 var(--s-3); }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.7; margin-bottom: var(--s-3); }
.legal-body ul, .legal-body ol { margin: 0 0 var(--s-4) var(--s-5); }
.legal-body li { margin-bottom: var(--s-2); }
.legal-body strong { color: var(--ink); font-weight: 600; }

/* Alert / callout box */
.alert {
    padding: var(--s-4) var(--s-5);
    border-left: 3px solid var(--accent);
    background: var(--accent-faint);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: var(--s-5) 0;
    font-size: 15px;
    color: var(--ink);
}
.alert.warn {
    border-left-color: #C97A1F;
    background: rgba(201, 122, 31, 0.06);
}
.alert strong { display: block; margin-bottom: 4px; font-size: 14px; }

/* Download page-specific */
.download-hero { padding: 180px 0 var(--s-8); }
.download-hero h1 { max-width: 16ch; }
.download-card {
    background: var(--paper-bright);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius-lg);
    padding: var(--s-7);
    margin: var(--s-7) 0;
    box-shadow: 0 8px 24px rgba(20,17,14,0.04);
}
.download-card .file {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: var(--s-4);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-3);
}
.download-card .btn { padding: 18px 32px; font-size: 16px; }

/* ---------- Responsive nav ---------- */
@media (max-width: 800px) {
    .nav-links { display: none; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        border: 1px solid var(--rule-soft);
        border-radius: var(--radius);
    }
    .nav-toggle span {
        width: 18px; height: 1.5px;
        background: var(--ink);
        position: relative;
    }
    .nav-toggle span::before, .nav-toggle span::after {
        content: ""; position: absolute; left: 0;
        width: 18px; height: 1.5px; background: var(--ink);
    }
    .nav-toggle span::before { top: -6px; }
    .nav-toggle span::after  { top: 6px; }
    .nav.menu-open .nav-links {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--paper);
        border-bottom: 1px solid var(--rule-soft);
        padding: var(--s-5);
        gap: var(--s-4);
        align-items: flex-start;
    }
}
