/* ═══════════════════════════════════════════════
   wheelstrategy.io  —  Dual Theme Design System
   No color-mix(), no cutting-edge-only features.
   ═══════════════════════════════════════════════ */

/* ─── Light Theme (default) ─── */
:root,
[data-theme="light"] {
    --bg: #ffffff;
    --bg2: #f8fafc;
    --bg3: #f1f5f9;
    --bg-alt: #f1f5f9;

    --c1: #2563eb;
    --c1b: #3b82f6;
    --c2: #059669;
    --c2d: #047857;
    --warn: #d97706;

    --t1: #0f172a;
    --t2: #475569;
    --t3: #94a3b8;

    --brd: rgba(0, 0, 0, .08);
    --brd2: rgba(0, 0, 0, .15);

    --glass: rgba(255, 255, 255, .85);
    --glass2: rgba(241, 245, 249, .95);

    --sh: 0 4px 24px rgba(0, 0, 0, .06);
    --glow: 0 0 40px rgba(37, 99, 235, .06);

    --hero-g: rgba(37, 99, 235, .06);
}

/* ─── Dark Theme ─── */
[data-theme="dark"] {
    --bg: #0a0e1a;
    --bg2: #111827;
    --bg3: #1e293b;
    --bg-alt: #0d1117;

    --c1: #60a5fa;
    --c1b: #93c5fd;
    --c2: #34d399;
    --c2d: #10b981;
    --warn: #fbbf24;

    --t1: #f1f5f9;
    --t2: #94a3b8;
    --t3: #64748b;

    --brd: rgba(255, 255, 255, .08);
    --brd2: rgba(255, 255, 255, .16);

    --glass: rgba(17, 24, 39, .72);
    --glass2: rgba(30, 41, 59, .9);

    --sh: 0 4px 24px rgba(0, 0, 0, .25);
    --glow: 0 0 60px rgba(96, 165, 250, .08);

    --hero-g: rgba(96, 165, 250, .12);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    -webkit-font-smoothing: antialiased
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--t1);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
}

img {
    max-width: 100%;
    display: block
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

button {
    cursor: pointer;
    font-family: inherit
}

/* ─── Layout ─── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.narrow-container {
    max-width: 800px
}

.section {
    padding: 80px 0;
    position: relative
}

.section-alt {
    background: var(--bg-alt)
}

/* ─── Typography ─── */
.section-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--c1);
    margin-bottom: .75rem;
    padding-left: 1.5rem;
    position: relative;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1rem;
    height: 2px;
    background: var(--c1);
    transform: translateY(-50%)
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: .75rem
}

.section-desc {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--t2);
    max-width: 600px;
    margin-bottom: 3rem
}

.gradient-text {
    font-style: normal;
    background: linear-gradient(135deg, var(--c1b), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Promo Bar ─── */
.promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(90deg, #10b981, #059669);
    height: 36px;
    display: flex;
    align-items: center;
}

.promo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    font-size: .8rem;
    font-weight: 500;
    color: #fff;
    flex-wrap: wrap
}

.promo-bar-inner a {
    background: rgba(255, 255, 255, .2);
    padding: .2rem .9rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: .75rem;
    color: #fff;
    transition: background .25s
}

.promo-bar-inner a:hover {
    background: rgba(255, 255, 255, .35)
}

/* ─── Header ─── */
header {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--brd);
    transition: background .35s, box-shadow .25s;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--t1)
}

.logo span {
    color: var(--c1)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem
}

.nav-links a {
    font-size: .87rem;
    font-weight: 500;
    color: var(--t2);
    transition: color .25s;
    display: flex;
    align-items: center
}

.nav-links a:hover {
    color: var(--t1)
}

.nav-links a.nav-highlight {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    font-weight: 700;
    padding: .425rem 1.1rem;
    border-radius: 8px;
    margin-left: .5rem;
    position: relative;
    transition: transform .18s, box-shadow .18s, background .25s;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.nav-links a.nav-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff !important;
}

[data-theme="light"] .nav-links a.nav-highlight {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 8px rgba(37,99,235,.2);
}

[data-theme="light"] .nav-links a.nav-highlight:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: .5rem
}

/* Theme toggle */
.theme-btn {
    background: none;
    border: 1px solid var(--brd);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color .25s;
    position: relative;
}

.theme-btn:hover {
    border-color: var(--c1)
}

.sun-icon,
.moon-icon {
    line-height: 1
}

[data-theme="dark"] .moon-icon {
    display: none
}

[data-theme="light"] .sun-icon {
    display: none
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: .5rem
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--t1);
    border-radius: 2px;
    transition: all .25s
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.active span:nth-child(2) {
    opacity: 0
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--hero-g), transparent 70%);
    pointer-events: none
}

.hero-content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1
}

.pill {
    display: inline-block;
    padding: .4rem 1rem;
    background: rgba(96, 165, 250, .1);
    border: 1px solid rgba(96, 165, 250, .25);
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--c1);
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .pill {
    background: rgba(37, 99, 235, .08);
    border-color: rgba(37, 99, 235, .2)
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin-bottom: 1.5rem
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--t2);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 2.5rem
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.8rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    transition: all .25s;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c1), var(--c1b));
    color: #0a0e1a;
    box-shadow: 0 4px 20px rgba(96, 165, 250, .25)
}

[data-theme="light"] .btn-primary {
    color: #fff
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(96, 165, 250, .35)
}

.btn-outline {
    background: transparent;
    color: var(--t2);
    border: 1px solid var(--brd2)
}

.btn-outline:hover {
    color: var(--t1);
    background: var(--glass)
}

.btn-accent {
    background: linear-gradient(135deg, var(--c2), var(--c2d));
    color: #fff;
    box-shadow: 0 4px 20px rgba(52, 211, 153, .25)
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(52, 211, 153, .35)
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap
}

.stat-item {
    text-align: center
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--c1b), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.stat-label {
    font-size: .75rem;
    color: var(--t3);
    font-weight: 500
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--brd2)
}

/* ─── Overview ─── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start
}

.col-text p {
    color: var(--t2);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.7
}

.col-text strong {
    color: var(--t1)
}

.col-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem
}

.mini-card {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1.1rem;
    background: var(--glass);
    border: 1px solid var(--brd);
    border-radius: 12px;
    transition: all .25s
}

.mini-card:hover {
    border-color: var(--brd2);
    transform: translateY(-2px);
    box-shadow: var(--sh)
}

.mini-icon {
    font-size: 1.4rem;
    flex-shrink: 0
}

.mini-card strong {
    color: var(--t1);
    font-size: .9rem;
    display: block;
    margin-bottom: .15rem
}

.mini-card span,
.mini-card div {
    font-size: .82rem;
    color: var(--t2);
    line-height: 1.5
}

/* ─── Steps Box ─── */
.steps-box {
    background: var(--glass);
    border: 1px solid var(--brd);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sh)
}

.steps-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--brd)
}

.step-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: 1rem .5rem;
    background: none;
    border: none;
    color: var(--t3);
    transition: all .25s;
    position: relative;
}

.step-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--c1);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform .25s
}

.step-tab.active {
    color: var(--t1);
    background: rgba(96, 165, 250, .04)
}

[data-theme="light"] .step-tab.active {
    background: rgba(37, 99, 235, .04)
}

.step-tab.active::after {
    transform: scaleX(1)
}

.step-tab:hover {
    color: var(--t2)
}

.tab-num {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--c1)
}

.tab-text {
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap
}

.steps-content {
    padding: clamp(1.5rem, 4vw, 3rem)
}

.step-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    animation: fadeUp .4s ease
}

.step-panel.active {
    display: grid
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.step-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: .75rem;
    color: var(--t1)
}

.step-text>p {
    color: var(--t2);
    margin-bottom: 1.25rem
}

.checklist li {
    position: relative;
    padding: .5rem 0 .5rem 1.6rem;
    color: var(--t2);
    font-size: .9rem;
    border-bottom: 1px solid var(--brd)
}

.checklist li:last-child {
    border-bottom: none
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: .5rem;
    color: var(--c2);
    font-weight: 700;
    font-size: .8rem
}

.step-img {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--brd);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12)
}

/* ─── Guide Grid ─── */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem
}

.g-card {
    background: var(--glass);
    border: 1px solid var(--brd);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all .25s
}

.g-card:hover {
    border-color: var(--brd2);
    background: var(--glass2);
    transform: translateY(-3px);
    box-shadow: var(--glow)
}

.g-icon {
    font-size: 1.5rem;
    margin-bottom: .6rem
}

.g-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .35rem;
    color: var(--t1)
}

.g-card>p {
    font-size: .88rem;
    color: var(--t2);
    margin-bottom: .7rem
}

.g-card ul {
    list-style: none
}

.g-card li {
    font-size: .85rem;
    color: var(--t2);
    padding: .3rem 0 .3rem 1.1rem;
    position: relative;
    line-height: 1.5
}

.g-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--c1);
    font-weight: 700
}

.g-card a {
    color: var(--c1);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px
}

/* ─── Timeline ─── */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 3rem
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--c1), var(--c2));
    border-radius: 2px
}

.tl-item {
    position: relative;
    margin-bottom: 2rem
}

.tl-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--bg2);
    border: 2px solid var(--c1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: var(--c1)
}

.tl-highlight .tl-marker {
    background: var(--c2);
    border-color: var(--c2);
    color: #fff
}

.tl-card {
    background: var(--glass);
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 1.25rem
}

.tl-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .35rem
}

.tl-card p {
    font-size: .9rem;
    color: var(--t2);
    margin-bottom: .2rem
}

.muted {
    opacity: .6;
    font-size: .82rem !important
}

/* ─── Tracker Banner ─── */
.tracker-box {
    background: linear-gradient(135deg, rgba(52, 211, 153, .1), rgba(96, 165, 250, .1));
    border: 1px solid rgba(52, 211, 153, .25);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

[data-theme="light"] .tracker-box {
    background: linear-gradient(135deg, rgba(5, 150, 105, .06), rgba(37, 99, 235, .06));
    border-color: rgba(5, 150, 105, .2)
}

.tracker-info h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    margin-bottom: .5rem
}

.tracker-info p {
    font-size: .92rem;
    color: var(--t2);
    max-width: 480px;
    margin: 0
}

/* ─── Risk Grid ─── */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem
}

.risk-card {
    background: var(--glass);
    border: 1px solid var(--brd);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all .25s
}

.risk-card:hover {
    border-color: rgba(251, 191, 36, .3);
    transform: translateY(-3px)
}

.risk-icon {
    font-size: 1.4rem;
    margin-bottom: .5rem
}

.risk-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .35rem
}

.risk-card p {
    font-size: .85rem;
    color: var(--t2);
    line-height: 1.6;
    margin-bottom: .4rem
}

/* ─── FAQ ─── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.faq-item {
    background: var(--glass);
    border: 1px solid var(--brd);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .25s
}

.faq-item[open] {
    border-color: var(--brd2)
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--t1);
    transition: color .25s
}

.faq-item summary::-webkit-details-marker {
    display: none
}

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--c1);
    font-weight: 300;
    transition: transform .25s
}

.faq-item[open] summary::after {
    transform: rotate(45deg)
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    font-size: .88rem;
    color: var(--t2);
    line-height: 1.7;
    animation: fadeUp .3s ease
}

/* ─── CTA ─── */
.cta-section {
    text-align: center;
    background: radial-gradient(ellipse at center, var(--hero-g), transparent 70%)
}

.cta-box {
    max-width: 600px;
    margin: 0 auto
}

.cta-box h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    margin-bottom: .75rem
}

.cta-box p {
    color: var(--t2);
    margin-bottom: 2rem;
    font-size: 1rem
}

.cta-box a[href*="premiumtracker"] {
    color: var(--c2);
    font-weight: 600
}


/* ─── Modern Timeline Guide (SaaS Style) ─── */
.guide-timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding-left: 2rem;
}

.timeline-phase {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 2.5rem;
    border-left: 2px solid var(--brd);
}

.timeline-phase:last-child {
    border-left-color: transparent;
    margin-bottom: 0;
}

.phase-marker {
    position: absolute;
    left: -19px;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--bg);
    border: 2px solid var(--c1);
    color: var(--c1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg);
}

.phase-header {
    margin-bottom: 2rem;
}

.phase-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.phase-desc {
    font-size: .95rem;
    color: var(--t2);
    max-width: 600px;
}

.timeline-items {
    display: grid;
    gap: 1.5rem;
}

.t-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.t-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh);
    border-color: var(--c1b);
    background: var(--bg);
}

.t-card::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 2rem;
    width: 2rem;
    height: 2px;
    background: var(--brd);
}

.t-card:hover::before {
    background: var(--c1b);
}

.t-icon {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--brd);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--t1);
}

.t-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--t1);
}

.t-card p {
    font-size: .9rem;
    color: var(--t2);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.t-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.t-card li {
    font-size: .85rem;
    color: var(--t2);
    padding-left: 1.25rem;
    position: relative;
}

.t-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--c1);
    font-weight: 700;
}

/* ─── Disclosures ─── */
.disclosure-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--brd)
}

.disclosure-body p {
    font-size: .8rem;
    color: var(--t3);
    line-height: 1.7;
    margin-bottom: .35rem
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--brd);
    padding: 0;
    background: var(--bg2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 4rem 0 3rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.logo-foot {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--t1);
}

.logo-foot span {
    color: var(--c1);
}

.footer-brand p {
    font-size: .88rem;
    color: var(--t3);
    max-width: 320px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.footer-links a {
    font-size: .88rem;
    font-weight: 500;
    color: var(--t2);
    transition: color .25s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.footer-links a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c1);
    opacity: 0;
    transition: opacity .25s;
}

.footer-links a:hover {
    color: var(--c1);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--brd);
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: .78rem;
    color: var(--t3);
}

.footer-bottom .disclaimer {
    font-size: .75rem;
    color: var(--t3);
    opacity: .7;
    font-style: italic;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center
}

.footer-nav a {
    font-size: .82rem;
    color: var(--t3);
    transition: color .25s
}

.footer-nav a:hover {
    color: var(--c1)
}

.copyright {
    font-size: .75rem;
    color: var(--t3);
    opacity: .6
}

/* ─── Glossary Page ─── */
.glossary-hero {
    text-align: center;
    padding: 7.5rem 0 2rem;
}

.glossary-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: .75rem;
}

.glossary-hero .subtitle {
    font-size: 1.05rem;
    color: var(--t2);
    max-width: 500px;
    margin: 0 auto;
}

.glossary-search {
    max-width: 480px;
    margin: 2rem auto 0;
    position: relative;
}

.glossary-search input {
    width: 100%;
    padding: .85rem 1.25rem .85rem 2.75rem;
    border-radius: 99px;
    border: 1px solid var(--brd2);
    background: var(--glass);
    color: var(--t1);
    font-size: .92rem;
    font-family: inherit;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}

.glossary-search input:focus {
    border-color: var(--c1);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .15);
}

[data-theme="light"] .glossary-search input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.glossary-search input::placeholder {
    color: var(--t3);
}

.glossary-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--t3);
    pointer-events: none;
}

.glossary-count {
    text-align: center;
    margin-top: 1rem;
    font-size: .8rem;
    color: var(--t3);
    font-weight: 500;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem 0 3rem;
}

.glossary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--brd);
    border-radius: 14px;
    text-decoration: none;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.glossary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--c1), var(--c2));
    border-radius: 3px;
    opacity: 0;
    transition: opacity .25s;
}

.glossary-card:hover {
    border-color: var(--brd2);
    transform: translateY(-2px);
    box-shadow: var(--sh);
}

.glossary-card:hover::before {
    opacity: 1;
}

.glossary-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(96, 165, 250, .1), rgba(52, 211, 153, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

[data-theme="light"] .glossary-card-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(5, 150, 105, .06));
}

.glossary-card-text {
    flex: 1;
    min-width: 0;
}

.glossary-card-title {
    font-size: .92rem;
    font-weight: 600;
    color: var(--t1);
    display: block;
    margin-bottom: .15rem;
}

.glossary-card-desc {
    font-size: .78rem;
    color: var(--t3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.glossary-card-arrow {
    color: var(--t3);
    font-size: .85rem;
    transition: transform .25s, color .25s;
    flex-shrink: 0;
}

.glossary-card:hover .glossary-card-arrow {
    transform: translateX(3px);
    color: var(--c1);
}

.glossary-empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--t3);
    font-size: .92rem;
    display: none;
}

/* ─── Glossary Term Detail Page ─── */
.term-hero {
    text-align: center;
    padding: 7.5rem 0 1.5rem;
}

.term-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.term-hero .subtitle {
    font-size: .92rem;
    color: var(--t3);
    font-weight: 500;
}

.term-content {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.term-content .term-card {
    background: var(--glass);
    border: 1px solid var(--brd);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--sh);
}

.term-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: .75rem;
    margin-top: 0;
}

.term-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--t1);
    margin-top: 2rem;
    margin-bottom: .5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brd);
}

.term-content p {
    font-size: .92rem;
    color: var(--t2);
    line-height: 1.75;
    margin-bottom: .75rem;
}

.term-content ul {
    list-style: none;
    margin: .5rem 0 1rem;
}

.term-content li {
    font-size: .9rem;
    color: var(--t2);
    padding: .45rem 0 .45rem 1.4rem;
    position: relative;
    line-height: 1.6;
}

.term-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--c1);
    font-weight: 700;
    font-size: .8rem;
}

.term-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
    padding: .65rem 1.4rem;
    border-radius: 99px;
    border: 1px solid var(--brd2);
    font-size: .85rem;
    font-weight: 600;
    color: var(--t2);
    transition: all .25s;
    background: none;
}

.term-back:hover {
    color: var(--c1);
    border-color: var(--c1);
    background: rgba(96, 165, 250, .05);
}

/* ─── Trademark Disclaimer ─── */
.trademark-disclaimer {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 12px;
    font-size: .78rem;
    color: var(--t3);
    line-height: 1.65;
}

/* ─── SEO Insight Section ─── */
.seo-insight {
    margin-top: 3rem;
    padding: 2rem 2rem 2.25rem;
    background: var(--glass);
    border: 1px solid var(--brd2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.seo-insight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c1), #10b981, var(--c1));
    border-radius: 16px 16px 0 0;
}

.seo-insight-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.seo-insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.seo-insight-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--t1);
    margin: 0;
}

.seo-insight-body {
    font-size: .95rem;
    color: var(--t2);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.seo-insight-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.seo-insight-card {
    padding: 1.25rem;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 12px;
    transition: border-color .25s, transform .2s;
}

.seo-insight-card:hover {
    border-color: var(--c1);
    transform: translateY(-2px);
}

.seo-insight-card-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: .5rem;
}

.seo-insight-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: .35rem;
}

.seo-insight-card p {
    font-size: .85rem;
    color: var(--t3);
    line-height: 1.55;
    margin: 0;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media(max-width:1024px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .col-cards {
        grid-template-columns: 1fr 1fr
    }

    .guide-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))
    }

    .risk-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))
    }
}

@media(max-width:900px) {
    .step-panel.active {
        grid-template-columns: 1fr;
        gap: 1.5rem
    }

    .step-text {
        order: 1
    }

    .step-img {
        order: 0
    }
}

@media(max-width:768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--brd);
        z-index: 99;
    }

    .nav-links.open {
        display: flex
    }

    .hamburger {
        display: flex
    }

    .steps-tabs {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero-stats {
        gap: 1.5rem
    }

    .stat-divider {
        display: none
    }

    .col-cards {
        grid-template-columns: 1fr
    }

    .guide-grid {
        grid-template-columns: 1fr
    }

    .risk-grid {
        grid-template-columns: 1fr
    }

    .timeline {
        padding-left: 2.5rem
    }

    .tl-marker {
        left: -2.5rem;
        width: 1.6rem;
        height: 1.6rem;
        font-size: .6rem
    }

    .tracker-box {
        flex-direction: column;
        text-align: center
    }

    .tracker-info {
        text-align: center
    }

    .tracker-info p {
        margin: 0 auto
    }

    .section {
        padding: 60px 0
    }

    .footer-nav {
        gap: .75rem
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 3rem 0 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
    }

    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .seo-insight-cards {
        grid-template-columns: 1fr;
    }

    .seo-insight {
        padding: 1.5rem 1.25rem 1.75rem;
    }
}

@media(max-width:480px) {
    .promo-bar {
        height: auto;
        min-height: 30px;
        padding: .35rem 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .promo-bar-inner {
        font-size: .7rem;
        gap: .3rem;
        flex-direction: column;
        text-align: center;
        line-height: 1.3;
    }

    .promo-bar-inner span {
        display: block;
    }

    .promo-bar-inner a {
        font-size: .65rem;
        padding: .15rem .6rem;
        white-space: nowrap;
    }

    header {
        top: 52px;
        height: 56px
    }

    html {
        scroll-padding-top: 112px
    }

    .hero h1 {
        font-size: 1.9rem
    }

    .hero-sub {
        font-size: .9rem
    }

    .hero {
        padding-top: 108px
    }

    .btn {
        padding: .65rem 1.2rem;
        font-size: .82rem
    }

    .btn-lg {
        padding: .75rem 1.5rem;
        font-size: .88rem
    }

    .steps-tabs {
        grid-template-columns: 1fr 1fr
    }

    .tab-text {
        font-size: .78rem
    }

    .section-heading {
        font-size: 1.4rem
    }

    .section {
        padding: 48px 0
    }
}

/* ─── Legal & Contact Pages ─── */
.legal-page {
    padding: 80px 0 60px;
}

/* Legal Hero */
.legal-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-hero .pill {
    display: inline-block;
    background: var(--bg2);
    border: 1px solid var(--brd);
    padding: .35rem 1rem;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--t2);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.legal-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: .75rem;
    line-height: 1.2;
}

.legal-hero-sub {
    color: var(--t2);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto .75rem;
    line-height: 1.6;
}

.legal-updated {
    color: var(--t3);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .02em;
}

/* Table of Contents */
.legal-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 100px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--sh);
}

.legal-toc h4 {
    font-size: .75rem;
    font-weight: 700;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.legal-toc ol li {
    counter-increment: toc;
    margin-bottom: .35rem;
}

.legal-toc ol li a {
    display: block;
    font-size: .82rem;
    color: var(--t2);
    text-decoration: none;
    padding: .3rem .5rem;
    border-radius: 6px;
    transition: background .2s, color .2s;
    line-height: 1.4;
}

.legal-toc ol li a::before {
    content: counter(toc, decimal-leading-zero) ". ";
    color: var(--t3);
    font-weight: 600;
    font-size: .75rem;
}

.legal-toc ol li a:hover {
    background: var(--bg3);
    color: var(--c1);
}

/* Legal Body Sections */
.legal-body {
    min-width: 0;
}

.legal-section {
    position: relative;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    padding: 2rem 2rem 2rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--sh);
    transition: border-color .2s;
}

.legal-section:hover {
    border-color: var(--c1);
}

.legal-section-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brd);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: .75rem;
    padding-right: 2.5rem;
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--t1);
    margin-top: 1rem;
    margin-bottom: .4rem;
}

.legal-section p,
.legal-section li {
    color: var(--t2);
    font-size: .92rem;
    line-height: 1.75;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin: .75rem 0;
}

.legal-section ul li {
    margin-bottom: .35rem;
}

.legal-section a {
    color: var(--c1);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--c1b);
}

/* Legal Sub-cards (for grouped items like analytics providers) */
.legal-sub-card {
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-top: .75rem;
}

.legal-sub-card h3 {
    margin-top: 0;
}

/* Legal Callouts */
.legal-callout {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.legal-callout p {
    margin: 0;
}

.legal-callout-warn {
    background: rgba(234, 179, 8, .08);
    border: 1px solid rgba(234, 179, 8, .25);
}

.legal-callout-good {
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .25);
}

/* Responsive Legal */
@media (max-width: 768px) {
    .legal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .legal-toc {
        position: static;
    }

    .legal-hero h1 {
        font-size: 2rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .legal-section-num {
        top: 1rem;
        right: 1rem;
        font-size: 1.4rem;
    }
}

/* Contact page specifics */
.contact-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 560px;
    box-shadow: var(--sh);
    transition: border-color .2s;
}

.contact-card:hover {
    border-color: var(--c1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: .75rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c1) !important;
    text-decoration: none !important;
    background: var(--bg3);
    padding: .75rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    transition: background .2s, transform .15s;
}

.contact-email:hover {
    background: var(--brd);
    transform: translateY(-1px);
}

.contact-note {
    font-size: .82rem;
    color: var(--t3);
    margin-top: .5rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.contact-info-item {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--sh);
    transition: border-color .2s, transform .15s;
}

.contact-info-item:hover {
    border-color: var(--c1);
    transform: translateY(-2px);
}

.contact-info-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.contact-info-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--t1);
    margin: 0 0 .5rem;
}

.contact-info-item p {
    font-size: .88rem;
    color: var(--t2);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}