/* ================================================================
   CiteGap Component Styles
   Requires: tokens.css loaded first
   ================================================================ */

/* ---- Theme transition (gated behind .theme-ready) ---- */
html.theme-ready,
html.theme-ready *,
html.theme-ready *::before,
html.theme-ready *::after {
    transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Utilities ---- */
.text-glow { text-shadow: var(--glow-text); }
.mono { font-family: var(--font-mono); }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.bg-grid {
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-fade-up {
    animation: fadeUp 0.7s ease-out both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

/* ---- Nav ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--nav-bg);
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulseGlow 2s ease-in-out infinite;
}
.logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    text-decoration: none;
}
.logo span { color: var(--primary); }
.logo-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--fg-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.875rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--primary-fg);
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.15s;
}
.nav-cta:hover { filter: brightness(1.1); }


/* ---- Theme toggle ---- */
.theme-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.toggle-track {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 100px;
    transition: background 0.3s;
}
.dark .toggle-track {
    background: var(--fg-dim);
}
.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.dark .toggle-thumb {
    transform: translateX(22px);
}

/* Light mode: show moon (click to go dark) */
.toggle-icon-sun  { display: none; }
.toggle-icon-moon { display: block; }

/* Dark mode: show sun (click to go light) */
.dark .toggle-icon-sun  { display: block; }
.dark .toggle-icon-moon { display: none; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 32px;
    overflow: hidden;
}
.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.25;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, var(--hero-gradient) 0%, transparent 60%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 32px;
}
.hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}
.hero-pill-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-muted);
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}
.hero h1 .highlight {
    color: var(--primary);
    text-shadow: var(--glow-text);
}

.hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--fg);
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

.hero-cli {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--fg-dim);
    margin-bottom: 40px;
}
.hero-cli .prompt { color: var(--prompt-color); }

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}
.btn-primary {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--primary-fg);
    padding: 14px 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--glow);
    transition: filter 0.15s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { filter: brightness(0.95); }

.btn-secondary {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg);
    background: transparent;
    border: 1px solid var(--border);
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg-surface); }

/* ---- Engine bar ---- */
.engine-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.engine-bar-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.engine-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    color: var(--fg);
}
.engine-logo {
    flex-shrink: 0;
    border-radius: 3px;
}

/* ---- Hero Form ---- */
.hero-form {
    max-width: 520px;
    margin: 0 auto 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.hero-form input {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--fg);
    outline: none;
    transition: border-color 0.15s;
}
.hero-form input::placeholder {
    color: var(--fg-dim);
}
.hero-form input:focus {
    border-color: var(--focus-border);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.hero-form button {
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--primary-fg);
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    cursor: pointer;
    box-shadow: var(--glow);
    transition: filter 0.15s;
}
.hero-form button:hover { filter: brightness(1.1); }
.hero-form button:active { filter: brightness(0.95); }
.hero-form button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.hero-form-note {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--fg-dim);
    text-align: center;
    margin-bottom: 8px;
}
.form-subtext {
    font-size: 0.8125rem;
    color: var(--fg-dim);
    text-align: center;
    margin-top: 8px;
}

/* Trust signal cards */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 8px;
    max-width: 520px;
}
.trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 24px;
    flex: 1;
}
.trust-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}
.trust-value {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.2;
}
.trust-card-link,
.trust-card-link:hover,
.trust-card-link:visited,
.trust-card-link:active {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.trust-card-link:hover {
    border-color: var(--border-hover);
}
.trust-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--fg-muted);
    line-height: 1.2;
}
.trust-original {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--fg-dim);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    margin-right: 2px;
}
.trust-pill {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 100px;
    padding: 2px 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .trust-row { flex-direction: column; align-items: center; gap: 8px; }
    .trust-card { flex-direction: row; gap: 8px; min-width: unset; width: 100%; max-width: 280px; padding: 10px 16px; }
}
.hero-form-link {
    text-align: center;
    margin-bottom: 0;
}
.hero-form-link a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
.hero-form-link a:hover {
    color: var(--fg-muted);
}


/* ---- Flash messages ---- */
.flash-messages {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    width: 100%;
    max-width: 500px;
    padding: 0 24px;
}
.flash {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-align: center;
}
.flash-success {
    background: var(--flash-success-bg);
    color: var(--flash-success-fg);
    border: 1px solid var(--flash-success-border);
}
.flash-info {
    background: var(--flash-info-bg);
    color: var(--flash-info-fg);
    border: 1px solid var(--flash-info-border);
}
.flash-error {
    background: var(--flash-error-bg);
    color: var(--destructive);
    border: 1px solid var(--flash-error-border);
}

/* ---- Credibility bar ---- */
.credibility-bar {
    padding: 20px 0;
}
.credibility-bar .compare-byline {
    margin-top: 0;
}

/* ---- Stats bar ---- */
.stats-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.stats-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 40px;
}
.stats-heading .highlight {
    color: var(--primary);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-stagger {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    /* transition-delay set via inline style for stagger */
}
.stat-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}
.stat-value {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--fg);
    line-height: 1;
}
.stat-headline {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--fg-muted);
    line-height: 1.3;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--fg-dim);
    line-height: 1.5;
}
.stat-source {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.stats-narrative {
    text-align: center;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--fg);
    margin-top: 32px;
    line-height: 1.5;
}

/* ---- How it works (process steps) ---- */
.process {
    padding: 48px 0;
}
.section-header {
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 12px;
}
.section-header h2 .highlight {
    color: var(--primary);
}

.process-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}
.process-step:last-child {
    margin-bottom: 0;
}
.process-step-reversed .process-text {
    order: 2;
}
.process-step-reversed .process-proof {
    order: 1;
}
.process-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-dim);
    display: block;
    margin-bottom: 12px;
}
.process-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.process-text p {
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.65;
}
.process-proof {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}
.process-proof .report-sample {
    border-bottom: none;
}

/* ---- Report samples (inline mockups) ---- */
.report-sample {
    padding: 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.report-sample-header {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.report-sample-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.6875rem;
    line-height: 1.4;
}
.report-sample-table th {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
}
.report-sample-table td {
    padding: 6px 8px;
    color: var(--fg-muted);
    border-bottom: 1px solid var(--border);
}
.report-sample-table tbody tr:last-child td {
    border-bottom: none;
}
.report-sample-you {
    background: var(--bg-card);
}
.report-sample-you td {
    color: var(--primary);
    font-weight: 600;
}
.report-sample-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--fg-dim);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Heatmap cells */
.heat {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}
.heat-0 {
    background: hsl(0 70% 95%);
    color: hsl(0 70% 45%);
}
.dark .heat-0 {
    background: hsl(0 40% 15%);
    color: hsl(0 70% 65%);
}
.heat-low {
    background: hsl(40 90% 92%);
    color: hsl(35 80% 40%);
}
.dark .heat-low {
    background: hsl(40 40% 15%);
    color: hsl(40 80% 65%);
}
.heat-high {
    background: hsl(145 50% 92%);
    color: hsl(145 60% 30%);
}
.dark .heat-high {
    background: hsl(145 30% 15%);
    color: hsl(145 60% 60%);
}
.heat-win {
    background: hsl(145 50% 92%);
    color: hsl(145 60% 30%);
}
.dark .heat-win {
    background: hsl(145 30% 15%);
    color: hsl(145 60% 60%);
}
.heat-visible {
    background: hsl(210 50% 92%);
    color: hsl(210 60% 40%);
}
.dark .heat-visible {
    background: hsl(210 30% 15%);
    color: hsl(210 60% 65%);
}
.heat-maybe {
    background: hsl(40 90% 92%);
    color: hsl(35 80% 40%);
}
.dark .heat-maybe {
    background: hsl(40 40% 15%);
    color: hsl(40 80% 65%);
}

/* Report TOC mockup (Step 3) */
.report-toc {
    list-style: none;
    counter-reset: toc-section;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}
.report-toc li {
    counter-increment: toc-section;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--fg-muted);
}
.report-toc li:last-child {
    border-bottom: none;
}
.report-toc li::before {
    content: counter(toc-section);
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--fg-dim);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
}
.report-toc-label {
    flex: 1;
    font-size: 0.75rem;
}
.report-toc-grade {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Score breakdown mockup */
.report-sample-score {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.report-sample-grade {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}
.grade-a { background: hsl(145 50% 92%); color: hsl(145 60% 30%); }
.grade-b { background: hsl(210 50% 92%); color: hsl(210 60% 40%); }
.grade-c { background: hsl(40 90% 92%); color: hsl(35 80% 40%); }
.grade-d { background: hsl(0 70% 95%); color: hsl(0 70% 45%); }
.dark .grade-a { background: hsl(145 30% 15%); color: hsl(145 60% 60%); }
.dark .grade-b { background: hsl(210 30% 15%); color: hsl(210 60% 65%); }
.dark .grade-c { background: hsl(40 40% 15%); color: hsl(40 80% 65%); }
.dark .grade-d { background: hsl(0 40% 15%); color: hsl(0 70% 65%); }

.report-sample-score-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
}
.report-sample-score-num span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--fg-dim);
}
.report-sample-dims {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.report-sample-dim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.report-sample-dim:last-child {
    border-bottom: none;
}
.report-sample-dim-label {
    font-size: 0.75rem;
    color: var(--fg-muted);
}
.report-sample-dim-grade {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}
.grade-pill-a { background: hsl(145 50% 92%); color: hsl(145 60% 30%); }
.grade-pill-b { background: hsl(210 50% 92%); color: hsl(210 60% 40%); }
.grade-pill-c { background: hsl(40 90% 92%); color: hsl(35 80% 40%); }
.grade-pill-d { background: hsl(0 70% 95%); color: hsl(0 70% 45%); }
.dark .grade-pill-a { background: hsl(145 30% 15%); color: hsl(145 60% 60%); }
.dark .grade-pill-b { background: hsl(210 30% 15%); color: hsl(210 60% 65%); }
.dark .grade-pill-c { background: hsl(40 40% 15%); color: hsl(40 80% 65%); }
.dark .grade-pill-d { background: hsl(0 40% 15%); color: hsl(0 70% 65%); }

/* ---- Pricing ---- */
.pricing {
    padding: 48px 0;
    background: var(--features-bg);
}
.pricing-anchor {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg-muted);
    margin-bottom: 32px;
}
.pricing-card {
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 40px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-sm);
}
.pricing-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}
.pricing-price {
    margin-bottom: 8px;
}
.pricing-scope {
    font-size: 0.875rem;
    color: var(--fg-dim);
    margin-bottom: 32px;
}
.pricing-original {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--fg-dim);
    text-decoration: line-through;
    margin-right: 12px;
}
.pricing-current {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.03em;
}
.pricing-per {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--fg-muted);
}
.pricing-unit {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-dim);
    margin-top: 4px;
}
.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.pricing-contrast-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
    font-size: 1rem;
}
.pricing-contrast-no {
    color: var(--fg);
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.pricing-x {
    color: #DC2626;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pricing-contrast-yes {
    font-weight: 600;
    color: var(--fg);
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.pricing-yes-mark {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pricing-features-numbered {
    counter-reset: pricing-item;
    list-style: none;
}
.pricing-features-numbered li {
    counter-increment: pricing-item;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--fg);
    line-height: 1.5;
}
.pricing-features-numbered li::before {
    content: counter(pricing-item);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary-fg);
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.pricing-cta {
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}
.pricing-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--fg-dim);
    line-height: 1.5;
}
.pricing-guarantee svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}
.pricing-upsell {
    margin-top: 32px;
}
.pricing-upsell-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
}
.pricing-upsell-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--fg);
}
.pricing-upsell-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-fg);
    background: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.pricing-upsell-cta:hover {
    background: var(--primary-hover);
    box-shadow: var(--glow-sm);
}

/* ---- Score section ---- */
.score-section {
    padding: 48px 0;
}
.score-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.score-text h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 24px;
}
.score-text h2 .highlight { color: var(--primary); }
.score-text > p {
    font-size: 1rem;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}
.score-factors {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.score-factor {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.score-factor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 8px;
    flex-shrink: 0;
}
.score-factor-label {
    font-size: 0.875rem;
    font-weight: 500;
}
.score-factor-desc {
    font-size: 0.875rem;
    color: var(--fg-muted);
    margin-left: 8px;
}
.score-visual {
    display: flex;
    justify-content: center;
}
.score-ring {
    position: relative;
}
.score-ring svg {
    transform: rotate(-90deg);
}
.score-ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}
.score-ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    filter: drop-shadow(0 0 8px var(--score-ring-shadow));
    transition: stroke-dashoffset 2s ease-out;
}
.score-ring.visible .score-ring-fill {
    stroke-dashoffset: 192;
}
.score-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-ring-value {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
}
.score-ring-max {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-top: 4px;
}
.score-ring-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* ---- Score benchmarks ---- */
.score-benchmarks {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 220px;
}
.score-benchmarks-title {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.score-benchmark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}
.score-benchmark-label {
    color: var(--fg-muted);
}
.score-benchmark-range {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--fg);
}

/* ---- How It Works ---- */
.how-it-works {
    padding: 48px 0;
}
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.hiw-grid-5 {
    grid-template-columns: repeat(6, 1fr);
}
.hiw-grid-5 .hiw-step:nth-child(1) { grid-column: 1 / 3; }
.hiw-grid-5 .hiw-step:nth-child(2) { grid-column: 3 / 5; }
.hiw-grid-5 .hiw-step:nth-child(3) { grid-column: 5 / 7; }
.hiw-grid-5 .hiw-step:nth-child(4) { grid-column: 2 / 4; }
.hiw-grid-5 .hiw-step:nth-child(5) { grid-column: 4 / 6; }
.hiw-optional {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--fg-dim);
}
.hiw-step {
    position: relative;
}
.hiw-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}
.hiw-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}
.hiw-step p {
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.6;
}
@media (max-width: 768px) {
    .hiw-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hiw-grid-5 {
        grid-template-columns: 1fr;
    }
    .hiw-grid-5 .hiw-step { grid-column: auto; }
}

/* ---- Why CiteGap ---- */
.why-citegap {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

/* Comparison grid */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}
.compare-col {
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border);
    background: var(--bg);
}
.compare-col-muted {
    opacity: 1;
}
.compare-col-muted .compare-header h3 {
    color: var(--fg-dim);
    font-weight: 500;
}
.compare-col-muted .compare-list li {
    color: var(--fg-dim);
}
.compare-col-active {
    opacity: 1;
    border-color: var(--primary);
    background: hsl(72 90% 35% / 0.04);
    box-shadow: 0 0 0 1px var(--primary);
}
.dark .compare-col-active {
    background: hsl(72 100% 50% / 0.04);
}
.compare-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.compare-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.compare-icon-no {
    background: hsl(0 70% 95%);
    color: hsl(0 70% 45%);
}
.dark .compare-icon-no {
    background: hsl(0 40% 15%);
    color: hsl(0 70% 65%);
}
.compare-icon-yes {
    background: hsl(72 60% 90%);
    color: hsl(72 90% 30%);
}
.dark .compare-icon-yes {
    background: hsl(72 40% 15%);
    color: hsl(72 80% 55%);
}
.compare-header h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.compare-subtitle {
    font-size: 0.8125rem;
    color: var(--fg-dim);
    font-style: italic;
}
.compare-body {
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.6;
}
.compare-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.compare-list li {
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
}
.compare-list li::before {
    position: absolute;
    left: 0;
    top: 0;
}
.compare-col-muted .compare-list li::before {
    content: "\00d7";
    color: hsl(0 70% 45%);
    font-size: 1rem;
    font-weight: 700;
}
.dark .compare-col-muted .compare-list li::before {
    color: hsl(0 70% 65%);
}
.compare-col-active .compare-list li::before {
    content: "\2713";
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
}
.compare-col-active .compare-list li {
    color: var(--fg);
}
.compare-col-active .compare-header {
    border-bottom-color: hsl(72 90% 35% / 0.2);
}
.compare-byline {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--fg);
    font-weight: 400;
    margin-top: 20px;
    padding: 20px 24px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    line-height: 1.6;
    background: hsl(72 90% 35% / 0.04);
}
.dark .compare-byline {
    background: hsl(72 100% 50% / 0.04);
}
.compare-byline strong {
    font-weight: 600;
}

/* ---- Agencies ---- */
.agencies {
    padding: 48px 0;
    background: var(--features-bg);
}
.agencies-layout {
    max-width: 640px;
}
.agencies-text h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 16px;
}
.agencies-text h2 .highlight { color: var(--primary); }
.agencies-text > p {
    font-size: 1.0625rem;
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}
.agencies-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}
.agencies-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.agencies-feature-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.agencies-feature-label {
    font-size: 0.9375rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}
.agencies-feature-desc {
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.5;
}
.agencies-cta {
    display: inline-block;
}

/* ---- Consult page ---- */
.consult-page {
    padding: 80px 0 60px;
    min-height: 80vh;
}
.consult-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.consult-form-col h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}
.consult-intro {
    font-size: 1.0625rem;
    color: var(--fg-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}
.consult-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.consult-form input {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
    color: var(--fg);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
}
.consult-form input:focus {
    outline: none;
    border-color: var(--focus-border, var(--primary));
    box-shadow: 0 0 0 3px var(--focus-ring, hsl(72 90% 35% / 0.15));
}
.consult-form .btn-primary {
    align-self: flex-start;
    margin-top: 8px;
}
.consult-calendly-col {
    min-height: 630px;
}
.calendly-embed {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}
@media (max-width: 768px) {
    .consult-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .consult-calendly-col {
        min-height: 580px;
    }
}

/* ---- Hero CTA (no form) ---- */
.hero-cta {
    display: inline-block;
    margin-top: 8px;
}

/* ---- FAQ ---- */
.faq {
    padding: 48px 0;
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.faq-expand-all {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-dim);
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-bottom: 8px;
    padding: 0;
}
.faq-expand-all:hover {
    color: var(--primary);
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
    border-top: 1px solid var(--border);
}
.faq-question {
    font-size: 1rem;
    font-weight: 600;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.15s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--fg-dim);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
    content: '\2212';
}
.faq-question:hover {
    color: var(--primary);
}
.faq-answer {
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.7;
    padding-bottom: 24px;
    max-width: 620px;
}

/* ---- Founder line ---- */
.founder-line {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.founder-line p {
    font-size: 0.8125rem;
    color: var(--fg-dim);
    text-align: center;
    font-style: italic;
}

/* ---- CTA ---- */
.cta {
    padding: 48px 0;
}
.cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.cta h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 16px;
}
.cta h2 .highlight { color: var(--primary); }
.cta > .cta-inner > p {
    font-size: 1rem;
    color: var(--fg-muted);
    margin-bottom: 40px;
}
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}
.cta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cta-form input {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--fg);
    outline: none;
    transition: border-color 0.15s;
}
.cta-form input::placeholder {
    color: var(--fg-dim);
}
.cta-form input:focus {
    border-color: var(--focus-border);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.cta-form button {
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--primary-fg);
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    cursor: pointer;
    box-shadow: var(--glow);
    transition: filter 0.15s;
}
.cta-form button:hover { filter: brightness(1.1); }
.cta-form button:active { filter: brightness(0.95); }
.cta-form button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.cta-note {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--fg-dim);
    margin-top: 16px;
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}
footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}
.footer-logo-text {
    font-size: 0.875rem;
    font-weight: 600;
}
.footer-logo-text span { color: var(--primary); }
.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-dim);
}

/* ---- Hamburger menu ---- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 60;
}
.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fg);
    transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile nav overlay (hidden on desktop) ---- */
.nav-overlay { display: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg);
    }
    .nav-hamburger { display: flex; z-index: 60; position: relative; }
    .nav-links {
        position: fixed;
        inset: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 55;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .nav-links.nav-open {
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        font-size: 1.125rem;
        padding: 14px 0;
        color: var(--fg-muted);
        width: 60%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a:hover { color: var(--fg); }
    .nav-cta { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .process-step {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .process-step-reversed .process-text,
    .process-step-reversed .process-proof {
        order: unset;
    }
    .score-layout { grid-template-columns: 1fr; gap: 48px; }
    .score-visual { order: -1; }
    .cta-form-row { grid-template-columns: 1fr; }
    .hero-form-row { grid-template-columns: 1fr; }
    .hero-form button { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; gap: 32px; }
    .score-benchmarks { width: 100%; }
    .pricing-card { padding: 28px; }
    .why-citegap { padding: 48px 0; }
    .compare-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .compare-col-active { order: -1; }
}

/* ---- What You Get section ---- */
.what-you-get {
    padding: 48px 0;
}
.section-subtext {
    font-size: 1.0625rem;
    color: var(--fg-muted);
    margin-top: 12px;
    line-height: 1.5;
}
.wyg-intro {
    max-width: 780px;
    margin: 0 auto 48px;
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.7;
    text-align: center;
}

/* 2x2 card grid */
.wyg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.wyg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.wyg-grid .wyg-card:nth-child(odd) .wyg-card-visual .preview-panel,
.wyg-grid .wyg-card:nth-child(even) .wyg-card-visual .preview-panel {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wyg-card-visual {
    padding: 0;
}
.wyg-card-visual .preview-panel {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}
.wyg-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    padding: 20px 24px 0;
    line-height: 1.3;
}
.wyg-card-copy {
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.6;
    padding: 8px 24px 24px;
}
@media (max-width: 768px) {
    .wyg-grid {
        grid-template-columns: 1fr;
    }
}

/* Diagnostic engine comparison (Card 1) */
.diag-engines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 16px;
}
.diag-engines-4 {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
.diag-engine-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg);
    display: block;
    margin-bottom: 12px;
}
.diag-metric {
    display: grid;
    grid-template-columns: 56px 1fr 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.diag-label {
    font-size: 0.6875rem;
    color: var(--fg-dim);
}
.diag-bar-track {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
}
.diag-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-out;
}
.diag-bar-good { background: hsl(145 50% 45%); }
.diag-bar-warn { background: hsl(35 90% 50%); }
.diag-bar-bad { background: hsl(0 70% 50%); }
.diag-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: right;
}
.diag-value-good { color: hsl(145 50% 40%); }
.diag-value-warn { color: hsl(35 80% 40%); }
.diag-value-bad { color: hsl(0 70% 45%); }
.dark .diag-value-good { color: hsl(145 50% 55%); }
.dark .diag-value-warn { color: hsl(35 80% 60%); }
.dark .diag-value-bad { color: hsl(0 70% 60%); }

/* Teardown table (Card 3) */
.teardown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.teardown-table th {
    text-align: left;
    font-weight: 600;
    color: var(--fg-muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.teardown-table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
}
.teardown-table tr:last-child td {
    border-bottom: none;
}
.teardown-you {
    font-family: var(--font-mono);
    font-weight: 600;
}
.td-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.td-dot-red { background: hsl(0 70% 50%); }
.td-dot-amber { background: hsl(35 90% 50%); }
.td-dot-green { background: hsl(145 50% 45%); }

/* Roadmap table (Card 4) */
.roadmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.roadmap-table th {
    text-align: left;
    font-weight: 600;
    color: var(--fg-muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.roadmap-table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
}
.roadmap-table tr:last-child td {
    border-bottom: none;
}
.priority-pill {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}
.priority-high {
    background: hsl(0 70% 94%);
    color: hsl(0 70% 40%);
}
.dark .priority-high {
    background: hsl(0 40% 15%);
    color: hsl(0 60% 65%);
}
.priority-med {
    background: hsl(35 80% 92%);
    color: hsl(35 70% 35%);
}
.dark .priority-med {
    background: hsl(35 40% 15%);
    color: hsl(35 70% 60%);
}

/* Mini process row */
.mini-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}
.mini-process-step {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mini-process-step svg {
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.7;
}
.mini-process-step span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
}
.mini-process-arrow {
    color: var(--primary);
    opacity: 0.5;
    flex-shrink: 0;
}

/* Preview cards */
.preview-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}
.preview-card:last-child {
    margin-bottom: 0;
}
.preview-card-reversed .preview-text {
    order: 2;
}
.preview-card-reversed .preview-visual {
    order: 1;
}
.preview-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.preview-copy {
    font-size: 1.0625rem;
    color: var(--fg-muted);
    line-height: 1.7;
}

/* Preview panel (visual side) */
.preview-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
}
.preview-panel-header {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* Card 1: Scorecard table */
.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.scorecard-table th {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
}
.scorecard-table td {
    padding: 8px 10px;
    color: var(--fg-muted);
    border-bottom: 1px solid var(--border);
}
.scorecard-table tbody tr:last-child td {
    border-bottom: none;
}
.scorecard-you {
    background: hsl(0 80% 97%);
    border-left: 3px solid hsl(0 70% 50%);
}
.dark .scorecard-you {
    background: hsl(0 40% 12%);
    border-left-color: hsl(0 70% 55%);
}
.scorecard-you td {
    font-weight: 600;
}
.your-brand {
    color: var(--primary);
    font-weight: 700;
}
.stat-warning {
    color: hsl(0 70% 50%);
    font-weight: 700;
}
.dark .stat-warning {
    color: hsl(0 70% 65%);
}

/* Card 2: Executive Summary */
.exec-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 3px solid var(--primary);
    padding-left: 16px;
}
.exec-summary-item {
    font-size: 0.8125rem;
    color: var(--fg-muted);
    line-height: 1.6;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.exec-summary-item:last-child {
    border-bottom: none;
}
.exec-summary-item::before {
    content: '\2022';
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}

/* Card 3: Query heatmap */
.query-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.query-example {
    font-size: 0.75rem;
    color: var(--fg-muted);
    font-style: italic;
    line-height: 1.5;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}
.heatmap-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}
.heatmap-header {
    display: grid;
    grid-template-columns: 1fr 56px 56px 56px;
    gap: 4px;
    padding: 4px 0 8px;
}
.heatmap-query-label {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.heatmap-engine {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}
.heatmap-row {
    display: grid;
    grid-template-columns: 1fr 56px 56px 56px;
    gap: 4px;
    padding: 3px 0;
    border-top: 1px solid var(--border);
    align-items: center;
}
.heatmap-query {
    font-size: 0.6875rem;
    color: var(--fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.heatmap-cell {
    height: 20px;
    border-radius: 3px;
    display: block;
}
.heatmap-miss {
    background: hsl(0 70% 94%);
}
.dark .heatmap-miss {
    background: hsl(0 40% 15%);
}
.heatmap-hit {
    background: hsl(145 50% 85%);
}
.dark .heatmap-hit {
    background: hsl(145 30% 20%);
}
.heatmap-caption {
    font-size: 0.6875rem;
    color: var(--fg-dim);
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.heatmap-cell-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    vertical-align: middle;
}

/* ---- Before/After ---- */
.before-after {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.before-after-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 360px;
}
.before-after-before {
    background: hsl(0 70% 94%);
    border: 1px solid hsl(0 50% 85%);
}
.dark .before-after-before {
    background: hsl(0 40% 15%);
    border-color: hsl(0 30% 25%);
}
.before-after-after {
    background: hsl(145 50% 90%);
    border: 1px solid hsl(145 40% 75%);
}
.dark .before-after-after {
    background: hsl(145 30% 15%);
    border-color: hsl(145 25% 25%);
}
.before-after-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    min-width: 48px;
}
.before-after-stat {
    font-size: 1rem;
    color: var(--fg);
}
.before-after-stat strong {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
}
.before-after-arrow {
    font-size: 1.25rem;
    color: var(--fg-dim);
}
.before-after-note {
    font-size: 0.75rem;
    color: var(--fg-dim);
    margin-top: 4px;
}

/* ---- Preview panel intro ---- */
.preview-panel-intro {
    font-size: 0.8125rem;
    color: var(--fg-muted);
    margin: 0 0 12px 0;
    line-height: 1.5;
    font-style: italic;
}

/* Card 4: Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.comparison-table th {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
}
.comparison-table td {
    padding: 8px 10px;
    color: var(--fg-muted);
    border-bottom: 1px solid var(--border);
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table tbody tr:nth-child(even):not(.skeleton-row) td {
    background: var(--bg-card);
}
.comparison-you-val {
    background: hsl(0 80% 97%);
    color: hsl(0 70% 45%);
    font-weight: 600;
}
.dark .comparison-you-val {
    background: hsl(0 40% 12%);
    color: hsl(0 70% 65%);
}
.comparison-gap {
    font-family: var(--font-mono);
    font-weight: 600;
    color: hsl(0 70% 50%);
}
.dark .comparison-gap {
    color: hsl(0 70% 65%);
}

/* Skeleton rows */
.skeleton-row td {
    border-bottom-color: transparent;
}
.skeleton-bar {
    display: block;
    height: 10px;
    background: var(--border);
    border-radius: 4px;
}
.skeleton-row-fade {
    opacity: 0.5;
}
.skeleton-row-fade-more {
    opacity: 0.25;
}

/* Card 5: Fix list */
.fix-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fix-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
}
.fix-item:last-child {
    border-bottom: none;
}
.fix-bullet {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-radius: 3px;
    flex-shrink: 0;
}
.fix-priority {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fix-high {
    background: hsl(0 80% 95%);
    color: hsl(0 70% 45%);
}
.dark .fix-high {
    background: hsl(0 40% 15%);
    color: hsl(0 70% 65%);
}
.fix-medium {
    background: hsl(40 90% 92%);
    color: hsl(35 80% 40%);
}
.dark .fix-medium {
    background: hsl(40 40% 15%);
    color: hsl(40 80% 65%);
}
.fix-low {
    background: hsl(145 50% 92%);
    color: hsl(145 60% 30%);
}
.dark .fix-low {
    background: hsl(145 30% 15%);
    color: hsl(145 60% 60%);
}
.fix-desc {
    flex: 1;
    color: var(--fg-muted);
    line-height: 1.4;
}
.fix-type {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 500;
    color: var(--fg-dim);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 2px 8px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Readiness ring card */
.readiness-panel {
    padding: 24px;
}
.readiness-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.readiness-ring {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}
.readiness-ring svg {
    transform: rotate(-90deg);
}
.readiness-ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}
.readiness-ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339;
    stroke-dashoffset: 339;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.readiness-ring-fill.readiness-ring-poor {
    stroke: hsl(0 70% 50%);
}
.dark .readiness-ring-fill.readiness-ring-poor {
    stroke: hsl(0 70% 60%);
}
.readiness-ring.visible .readiness-ring-fill {
    stroke-dashoffset: 231;
}
.readiness-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.readiness-ring-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1;
}
.readiness-score-poor {
    color: hsl(0 70% 50%);
}
.dark .readiness-score-poor {
    color: hsl(0 70% 60%);
}
.readiness-ring-max {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--fg-dim);
    font-weight: 400;
}
.readiness-dims {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.readiness-dim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--fg-muted);
}
.readiness-dim:last-child {
    border-bottom: none;
}
.readiness-grade {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}
.readiness-legend {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.readiness-legend-bar {
    display: flex;
    gap: 3px;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.legend-seg {
    flex: 1;
    border-radius: 2px;
}
.legend-poor { background: hsl(0 70% 55%); }
.legend-avg { background: hsl(40 85% 55%); }
.legend-good { background: hsl(210 55% 50%); }
.legend-exc { background: hsl(145 55% 42%); }
.readiness-legend-labels {
    display: flex;
    justify-content: space-between;
}
.legend-label {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--fg-dim);
    text-align: center;
    flex: 1;
}
.legend-label-active {
    color: hsl(0 70% 50%);
    font-weight: 700;
}
.dark .legend-label-active {
    color: hsl(0 70% 60%);
}

/* Card 2: Findings & Actions (compact list) */
.fa-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fa-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.fa-item:last-of-type {
    border-bottom: none;
}
.fa-finding {
    font-size: 0.75rem;
    color: var(--fg);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
}
.fa-action {
    font-size: 0.75rem;
    color: var(--fg-muted);
    line-height: 1.5;
}
.fa-arrow {
    color: var(--primary);
    font-weight: 700;
}
.fa-more {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--fg-dim);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

/* Redaction blur (inline text) */
.redact-blur {
    display: inline-block;
    color: var(--fg-muted);
    border-radius: 3px;
    filter: blur(5px);
    user-select: none;
    padding: 0 2px;
}

/* Card 3: Heatmap skeleton rows */
.heatmap-skeleton-row .heatmap-query {
    display: flex;
    align-items: center;
}
.heatmap-skeleton-fade {
    opacity: 0.4;
}

/* Card 4: Keyword opportunity table */
.keyword-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.keyword-table th {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
}
.keyword-table td {
    padding: 8px 10px;
    color: var(--fg-muted);
    border-bottom: 1px solid var(--border);
}
.keyword-table tbody tr:last-child td {
    border-bottom: none;
}

/* Winnability pills */
.win-pill {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}
.win-yes {
    background: hsl(145 50% 92%);
    color: hsl(145 60% 30%);
}
.dark .win-yes {
    background: hsl(145 30% 15%);
    color: hsl(145 60% 60%);
}
.win-maybe {
    background: hsl(40 90% 92%);
    color: hsl(35 80% 40%);
}
.dark .win-maybe {
    background: hsl(40 40% 15%);
    color: hsl(40 80% 65%);
}
.win-hard {
    background: hsl(0 80% 95%);
    color: hsl(0 70% 45%);
}
.dark .win-hard {
    background: hsl(0 40% 15%);
    color: hsl(0 70% 65%);
}

/* Type pills */
.type-pill {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 100px;
    white-space: nowrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--fg-dim);
}
.type-niche { }
.type-est {
    border-color: hsl(30 50% 75%);
    color: hsl(30 50% 40%);
}
.dark .type-est {
    border-color: hsl(30 30% 30%);
    color: hsl(30 50% 65%);
}
.type-inst {
    border-color: hsl(210 50% 80%);
    color: hsl(210 60% 40%);
}
.dark .type-inst {
    border-color: hsl(210 30% 30%);
    color: hsl(210 60% 65%);
}
.type-platform {
    border-color: hsl(280 40% 80%);
    color: hsl(280 50% 45%);
}
.dark .type-platform {
    border-color: hsl(280 30% 30%);
    color: hsl(280 50% 65%);
}

/* Scroll animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* What You Get responsive */
@media (max-width: 768px) {
    .mini-process {
        flex-direction: column;
        gap: 12px;
    }
    .mini-process-arrow {
        transform: rotate(90deg);
    }
    .preview-card {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }
    .preview-card-reversed .preview-text,
    .preview-card-reversed .preview-visual {
        order: unset;
    }
    .preview-text h3 {
        font-size: 1.25rem;
    }
}
@media (max-width: 640px) {
    .pricing-upsell-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .heatmap-row-mobile-hide {
        display: none;
    }
    .heatmap-header {
        grid-template-columns: 1fr 48px 48px 48px;
    }
    .heatmap-row {
        grid-template-columns: 1fr 48px 48px 48px;
    }
    .heatmap-engine {
        font-size: 0.4375rem;
    }
}
