/* ============================================
   BEGINNER AI - EDITORIAL REDESIGN
   Economist-inspired, human-designed
   ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Typography */
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Type Scale */
    --text-h1: clamp(2.5rem, 5vw, 3.75rem);
    --text-h2: clamp(1.75rem, 3vw, 2.25rem);
    --text-h3: clamp(1.125rem, 2vw, 1.375rem);
    --text-body: 1.0625rem;
    --text-small: 0.875rem;
    --text-meta: 0.8125rem;

    /* Colors - Light Mode */
    --bg: #FDFCFA;
    --surface: #F8F6F3;
    --text: #1A1A1A;
    --text-secondary: #4A4A4A;
    --muted: #6B6B6B;
    --border: #E8E4DF;
    --border-strong: #D4CFC8;
    --primary: #B83B3B;
    --primary-hover: #9A2E2E;
    --primary-light: rgba(184, 59, 59, 0.08);
    --ink-red: 184, 59, 59;
    --accent: #C4956A;
    --success: #2D7D46;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1120px;
    --container-narrow: 720px;
    --measure: 65ch;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 350ms ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #1C1C1E;
    --surface: #2C2C2E;
    --text: #F5F3F0;
    --text-secondary: #C9C5BF;
    --muted: #8A8A8A;
    --border: #3A3A3C;
    --border-strong: #4A4A4C;
    --primary: #D45454;
    --primary-hover: #E06666;
    --primary-light: rgba(212, 84, 84, 0.12);
    --ink-red: 212, 84, 84;
    --accent: #D4A574;
    --success: #4ADE80;
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1C1C1E;
        --surface: #2C2C2E;
        --text: #F5F3F0;
        --text-secondary: #C9C5BF;
        --muted: #8A8A8A;
        --border: #3A3A3C;
        --border-strong: #4A4A4C;
        --primary: #D45454;
        --primary-hover: #E06666;
        --primary-light: rgba(212, 84, 84, 0.12);
        --ink-red: 212, 84, 84;
        --accent: #D4A574;
        --success: #4ADE80;
        --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-h1);
    line-height: 1.1;
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

p {
    max-width: var(--measure);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Meta text - monospace accent */
.meta {
    font-family: var(--font-mono);
    font-size: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

@supports (backdrop-filter: blur(12px)) {
    .header {
        background: rgba(253, 252, 250, 0.92);
        backdrop-filter: blur(12px);
    }
    [data-theme="dark"] .header {
        background: rgba(28, 28, 30, 0.92);
    }
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .header {
            background: rgba(28, 28, 30, 0.92);
        }
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Logo - Editorial Wordmark */
.logo {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: color var(--transition-fast);
}

.logo::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 2px;
}

.logo:hover {
    color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--surface);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 20px;
    height: 20px;
}

/* Hide icons based on theme */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-small);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-subtle), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 59, 59, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-subtle);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--text);
    color: var(--text);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-meta);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: var(--space-3xl) 0 var(--space-4xl);
    position: relative;
    overflow: hidden;
}

/* Paper texture background with cursor tracking */
.hero::before {
    content: '';
    position: absolute;
    inset: -10px;
    background-image:
        linear-gradient(90deg, var(--border) 1px, transparent 1px),
        linear-gradient(var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    transform: translate(var(--cursor-x, 0), var(--cursor-y, 0));
    transition: transform 0.15s ease-out;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

/* Dateline stamp */
.dateline {
    font-family: var(--font-mono);
    font-size: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.dateline span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.dateline .separator {
    width: 3px;
    height: 3px;
    background: var(--muted);
    border-radius: 50%;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

/* Editorial ink highlight - subtle background behind lower portion of text */
.ink {
    position: relative;
    display: inline-block;
    z-index: 0;
    color: var(--primary);
}

.ink::after {
    content: '';
    position: absolute;
    left: -0.08em;
    right: -0.08em;
    bottom: 0.06em;
    height: 0.32em;
    background: linear-gradient(
        to bottom,
        rgba(var(--ink-red), 0.00) 0%,
        rgba(var(--ink-red), 0.14) 30%,
        rgba(var(--ink-red), 0.14) 70%,
        rgba(var(--ink-red), 0.00) 100%
    );
    border-radius: 999px;
    filter: blur(0.5px);
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.hero-subtitle strong {
    color: var(--text);
    font-weight: 600;
}

/* Email Form */
.email-form {
    margin-bottom: var(--space-lg);
}

.form-group {
    display: flex;
    gap: var(--space-sm);
    max-width: 440px;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input[type="email"]::placeholder {
    color: var(--muted);
}

.form-group input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: var(--text-small);
    color: var(--muted);
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.trust-badges svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

/* Issue Preview Card */
.issue-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.issue-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.issue-preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.issue-preview-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.issue-preview-label {
    font-family: var(--font-mono);
    font-size: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.issue-preview-subject {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.issue-preview-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.issue-preview-list li {
    position: relative;
    padding-left: var(--space-lg);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    font-size: var(--text-small);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.issue-preview-list li:last-child {
    border-bottom: none;
}

.issue-preview-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.issue-preview-build {
    background: var(--primary-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-small);
    color: var(--text);
}

.issue-preview-build strong {
    color: var(--primary);
}

/* ============================================
   LOGO STRIP
   ============================================ */
.logo-strip {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.logo-strip-content {
    text-align: center;
}

.logo-strip-caption {
    font-size: var(--text-small);
    color: var(--muted);
    margin-bottom: var(--space-lg);
}

.logo-strip-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg) var(--space-2xl);
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.logo-strip-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: var(--text-small);
    font-weight: 500;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.logo-strip-item:hover {
    opacity: 1;
}

.logo-strip-item svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   PROBLEM SECTION - Editorial Callout
   ============================================ */
.problem {
    padding: var(--space-3xl) 0;
}

.problem-callout {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
}

.problem-title {
    font-size: var(--text-h2);
    margin-bottom: var(--space-sm);
}

.problem-subtitle {
    color: var(--muted);
    margin-bottom: var(--space-lg);
}

.problem-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.problem-list li {
    position: relative;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-body);
    color: var(--text-secondary);
}

.problem-list li:last-child {
    border-bottom: none;
}

.problem-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
}

.problem-punchline {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.problem-punchline p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.problem-punchline .highlight {
    font-family: var(--font-serif);
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution {
    background: var(--bg);
}

.solution .section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.solution .section-title {
    margin-bottom: var(--space-sm);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.solution-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.solution-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.solution-card-label {
    font-family: var(--font-mono);
    font-size: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.solution-card h3 {
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.solution-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.solution-card:hover h3::after {
    width: 100%;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: var(--text-small);
    line-height: 1.7;
}

/* ============================================
   AUDIENCE SECTION
   ============================================ */
.audience {
    background: var(--surface);
}

.audience .container-narrow {
    text-align: center;
}

.audience .section-title {
    margin-bottom: var(--space-2xl);
}

.audience-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}

.audience-card h3 {
    font-family: var(--font-serif);
    font-size: var(--text-h3);
    margin-bottom: var(--space-lg);
}

.audience-card ul {
    list-style: none;
}

.audience-card li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-body);
}

.audience-card li:last-child {
    border-bottom: none;
}

.check {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================
   TESTIMONIAL MARQUEE
   ============================================ */
.marquee-section {
    padding: var(--space-xl) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 50s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-testimonial {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 0 var(--space-3xl);
    min-width: max-content;
}

.marquee-testimonial blockquote {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
}

.marquee-testimonial cite {
    font-family: var(--font-mono);
    font-size: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-style: normal;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    background: var(--bg);
}

.faq .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.faq-list {
    max-width: 640px;
    margin: 0 auto;
}

.faq-item {
    border-top: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    font-family: var(--font-serif);
    font-size: var(--text-h3);
    font-weight: 600;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.faq-icon {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--muted);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
    background: var(--surface);
    text-align: center;
}

.final-cta .dateline {
    justify-content: center;
}

.final-cta .section-title {
    margin-bottom: var(--space-md);
}

.final-cta .section-subtitle {
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto var(--space-xl);
}

.final-cta .email-form {
    display: flex;
    justify-content: center;
}

.final-cta .form-group {
    max-width: 400px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.footer .logo {
    justify-content: center;
    margin-bottom: var(--space-md);
}

.footer p {
    font-size: var(--text-small);
    color: var(--muted);
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero::before {
        transition: none;
    }

    .btn,
    .solution-card,
    .issue-preview {
        transition: none;
    }

    .solution-card h3::after {
        transition: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .dateline {
        justify-content: center;
    }

    .form-group {
        max-width: 100%;
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .issue-preview {
        max-width: 400px;
        margin: 0 auto;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        max-width: 480px;
        margin: 0 auto;
    }

    .logo-strip-logos {
        gap: var(--space-xl);
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-4xl: 3rem;
        --space-3xl: 2.5rem;
    }

    .container,
    .container-narrow {
        padding: 0 var(--space-md);
    }

    .header-nav {
        gap: var(--space-md);
    }

    .hero {
        padding: var(--space-2xl) 0 var(--space-3xl);
    }

    .form-group {
        flex-direction: column;
    }

    .form-group .btn {
        width: 100%;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .problem-callout {
        padding: var(--space-lg);
    }

    .logo-strip-logos {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .marquee-testimonial {
        padding: 0 var(--space-xl);
    }

    .marquee-testimonial blockquote {
        font-size: 1rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: var(--space-md) 0;
    }
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding: var(--space-xl);
}

/* Paper texture background for success page */
.success-page::before {
    content: '';
    position: absolute;
    inset: -10px;
    background-image:
        linear-gradient(90deg, var(--border) 1px, transparent 1px),
        linear-gradient(var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
}

.success-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 540px;
    padding: var(--space-3xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.success-title {
    font-family: var(--font-serif);
    font-size: var(--text-h2);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.success-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.success-page .btn-primary {
    padding: 1rem 2rem;
    font-size: var(--text-body);
}

/* Form loading state */
.beehiiv-form.loading .btn {
    pointer-events: none;
    opacity: 0.7;
}

.beehiiv-form.loading .btn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: var(--space-sm);
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success page mobile */
@media (max-width: 640px) {
    .success-content {
        padding: var(--space-xl);
    }

    .success-icon {
        width: 64px;
        height: 64px;
    }

    .success-icon svg {
        width: 32px;
        height: 32px;
    }

    .success-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}
