/* =============================================================================
   Flows123 - Performance-Optimized CSS
   Mobile-first, Manrope font, minimal footprint
   Target: < 14KB (fits in first TCP packet)
   ============================================================================= */

/* Font Loading - Optimized for speed */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/manrope/v15/xn7gYHE41ni1AdIRggexSg.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -----------------------------------------------------------------------------
   CSS Variables & Reset
   ----------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --color-primary: #0066FF;           /* Electric Blue - main brand color */
    --color-primary-hover: #0044CC;     /* Darker blue for hover */
    --color-primary-light: #3B82F6;     /* Lighter blue */
    --color-accent: #BFFF00;            /* Lime Accent - highlights */
    --color-black: #0A0A0A;             /* Rich Black */
    --color-white: #FFFFFF;             /* White */

    /* Gray Scale */
    --color-gray-100: #F5F5F5;          /* Light backgrounds */
    --color-gray-300: #D4D4D4;          /* Borders, dividers */
    --color-gray-500: #595959;          /* Secondary text - WCAG AA compliant (7:1) */
    --color-gray-700: #404040;          /* Body text */

    /* Semantic Colors */
    --color-bg: #F5F5F5;
    --color-bg-alt: #FFFFFF;
    --color-text: #0A0A0A;
    --color-text-muted: #404040;
    --color-text-light: #595959;        /* Improved contrast (7:1 ratio) */
    --color-border: #D4D4D4;

    /* Status Colors - WCAG AA compliant (4.5:1+ contrast on white/light backgrounds) */
    --color-good: #15803d;              /* Darker green for AA compliance (5.5:1 on white) */
    --color-good-bg: #DCFCE7;
    --color-moderate: #b45309;          /* Darker amber for AA compliance (5.4:1 on white) */
    --color-moderate-bg: #FEF3CD;
    --color-bad: #dc2626;               /* Darker red for AA compliance (4.6:1 on white) */
    --color-bad-bg: #FEE2E2;
    --color-severe: #b91c1c;            /* Even darker red for severe (5.5:1 on white) */

    /* 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;

    /* Typography */
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;

    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 800;

    /* Sizing */
    --max-width: 1200px;
    --radius: 8px;
    --radius-lg: 12px;
}

/*
 * COLOR USAGE RULES:
 *
 * Lime (#BFFF00 / --color-accent):
 *   ✓ Text/links on black (#0A0A0A) background
 *   ✓ Text/links on blue (#0066FF) background
 *   ✗ NEVER on white or light gray backgrounds
 *
 * Blue (#0066FF / --color-primary):
 *   ✓ Text/links on white (#FFFFFF) background
 *   ✓ Text/links on light gray (#F5F5F5) background
 *   ✓ Backgrounds with white text
 *
 * See brand/flows123-brand-guide-v2.html for full guidelines
 */

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

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* Focus states for accessibility - keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus,
summary:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Focus-visible for modern browsers - only show focus ring on keyboard navigation */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Focus styles for dark backgrounds (footer) */
.site-footer a:focus-visible,
.site-footer button:focus-visible {
    outline-color: var(--color-white);
}

/* Placeholder text - WCAG AA compliant (4.6:1 contrast ratio) */
::placeholder {
    color: #757575;
    opacity: 1;
}

::-webkit-input-placeholder {
    color: #757575;
}

::-moz-placeholder {
    color: #757575;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #757575;
}

/* -----------------------------------------------------------------------------
   Layout Utilities
   ----------------------------------------------------------------------------- */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px; /* Brand guideline: exactly 6px gap */
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    color: var(--color-primary);
    text-decoration: none !important;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

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

.nav-link {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: none;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-text);
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   CTA Buttons
   ----------------------------------------------------------------------------- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--color-primary-hover);
    text-decoration: none;
    transform: translateY(-1px);
    opacity: 1;
}

.cta-button:active {
    transform: translateY(0);
}

.cta-small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.cta-button-large {
    padding: var(--space-lg) var(--space-xl);
    font-size: 1.125rem;
}

/* -----------------------------------------------------------------------------
   Hero Section
   ----------------------------------------------------------------------------- */
.hero {
    padding: var(--space-3xl) var(--space-md);
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.highlight-slow {
    color: var(--color-severe);
}

.highlight-fast {
    color: var(--color-good);
}

.nowrap {
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Speed Visual */
.speed-visual {
    margin: var(--space-xl) 0;
}

.speed-comparison {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.speed-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.speed-bar-fill {
    height: 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.slow-fill {
    width: 100%;
    max-width: 200px;
    background: linear-gradient(90deg, var(--color-bad) 0%, var(--color-severe) 100%);
    animation: slowLoad 3s ease-out infinite;
}

.fast-fill {
    width: 26px;
    background: var(--color-good);
    animation: fastLoad 0.5s ease-out;
}

@keyframes slowLoad {
    0% { width: 0; }
    100% { width: 200px; }
}

@keyframes fastLoad {
    0% { width: 0; }
    100% { width: 26px; }
}

.speed-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    flex: 1;
    text-align: left;
}

.speed-time {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
}

.speed-slow .speed-time {
    color: var(--color-bad);
}

.speed-fast .speed-time {
    color: var(--color-good);
}

/* Audit Form */
.audit-form {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.audit-form h3,
.audit-form-title {
    margin: 0 0 var(--space-sm) 0;
    font-size: 1.5rem;
    color: var(--color-text);
}

.form-subtitle {
    margin: 0 0 var(--space-lg) 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-fields input,
.form-fields select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
    font-family: var(--font-sans);
}

.form-fields input:focus,
.form-fields select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-fields select {
    cursor: pointer;
    background: var(--color-bg-alt);
}

.form-fields .cta-button {
    width: 100%;
}

.form-note {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.form-note .check {
    color: var(--color-good);
    margin-right: var(--space-xs);
}

.self-test-note {
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.self-test-note a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.self-test-note a:hover {
    color: var(--color-primary-hover);
}

/* Large form variant (final CTA) */
.audit-form-large {
    max-width: 700px;
}

.form-fields-horizontal {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.form-fields-horizontal input,
.form-fields-horizontal select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
    font-family: var(--font-sans);
}

.form-fields-horizontal input:focus,
.form-fields-horizontal select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-fields-horizontal select {
    cursor: pointer;
    background: var(--color-bg-alt);
}

.form-fields-horizontal .cta-button {
    width: 100%;
}

.form-note-centered {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Form Footer - Unified trust badges and links below CTA button
   ========================================================================== */

.form-footer {
    margin-top: var(--space-lg);
    text-align: center;
}

/* Trust badges row */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-gray-700);
}

.trust-badge .checkmark {
    color: var(--color-good);
    flex-shrink: 0;
}

/* Divider */
.form-divider {
    border: none;
    border-top: 1px solid var(--color-gray-300);
    margin: var(--space-lg) auto;
    max-width: 280px;
}

/* Helper text (sample report) */
.form-helper {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    margin: 0 0 var(--space-md) 0;
}

/* Pricing info */
.form-pricing {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    margin: 0 0 var(--space-xs) 0;
}

.form-pricing strong {
    font-weight: 600;
    color: var(--color-black);
}

/* Responsive: Stack trust badges on mobile */
@media (max-width: 480px) {
    .trust-badges {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Legacy form elements (keep for compatibility) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.url-input {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    transition: border-color 0.2s;
}

.url-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.url-input-large {
    padding: var(--space-lg);
    font-size: 1.125rem;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Trust Signals */
.trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.trust-item::before {
    content: "\2713 ";
    color: var(--color-good);
}

/* -----------------------------------------------------------------------------
   Comparison Table
   ----------------------------------------------------------------------------- */
.comparison-section {
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-bg-alt);
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

.speed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.speed-table th,
.speed-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.speed-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.builder-name {
    font-weight: 500;
}

.metric {
    font-family: var(--font-mono);
}

.score {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 0.85rem;
}

.score-severe {
    background: var(--color-bad-bg);
    color: var(--color-severe);
}

.score-bad {
    background: var(--color-bad-bg);
    color: var(--color-bad);
}

.score-moderate {
    background: var(--color-moderate-bg);
    color: var(--color-moderate);
}

.score-good {
    background: var(--color-good-bg);
    color: var(--color-good);
}

.impact-severe {
    color: var(--color-severe);
}

.impact-bad {
    color: var(--color-bad);
}

.impact-moderate {
    color: var(--color-moderate);
}

.impact-good {
    color: var(--color-good);
}

.highlight-row {
    background: var(--color-good-bg);
}

.table-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* -----------------------------------------------------------------------------
   Speed Demo Section
   ----------------------------------------------------------------------------- */
.speed-demo-section {
    padding: var(--space-3xl) var(--space-md);
}

.demo-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.demo-panel {
    width: 100%;
    max-width: 350px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.demo-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
}

.badge-slow {
    background: var(--color-bad-bg);
    color: var(--color-bad);
}

.badge-fast {
    background: var(--color-good-bg);
    color: var(--color-good);
}

.demo-timer {
    font-family: var(--font-mono);
    font-weight: 700;
}

.demo-slow .demo-timer {
    color: var(--color-bad);
}

.demo-fast .demo-timer {
    color: var(--color-good);
}

.demo-screen {
    height: 200px;
    padding: var(--space-md);
}

/* Skeleton Loader */
.skeleton-loader {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.skeleton-header,
.skeleton-hero,
.skeleton-line {
    background: linear-gradient(90deg, #e5e5e5 25%, #f0f0f0 50%, #e5e5e5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-header {
    height: 20px;
    width: 60%;
}

.skeleton-hero {
    height: 80px;
    flex-shrink: 0;
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.skeleton-line {
    height: 12px;
}

.skeleton-line.short {
    width: 70%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loaded Preview */
.demo-content-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.preview-header {
    height: 20px;
    width: 60%;
    background: var(--color-primary);
    border-radius: 4px;
}

.preview-hero {
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-good) 100%);
    border-radius: 4px;
}

.preview-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.preview-line {
    height: 12px;
    background: var(--color-border);
    border-radius: 4px;
}

.demo-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.demo-vs {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.demo-replay-btn {
    display: block;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.demo-replay-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* -----------------------------------------------------------------------------
   Explainer Section
   ----------------------------------------------------------------------------- */
.explainer-section {
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-bg-alt);
}

.explainer-grid {
    display: grid;
    gap: var(--space-lg);
}

.explainer-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
}

.card-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.card-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-family: var(--font-mono);
    font-weight: 600;
}

.comparison-bad {
    color: var(--color-bad);
}

.comparison-arrow {
    color: var(--color-text-light);
}

.comparison-good {
    color: var(--color-good);
}

/* -----------------------------------------------------------------------------
   Core Web Vitals Section
   ----------------------------------------------------------------------------- */
.cwv-section {
    padding: var(--space-3xl) var(--space-md);
}

.cwv-metrics {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.cwv-metric {
    padding: var(--space-xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
}

.metric-name {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.metric-full-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.metric-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.metric-thresholds {
    display: flex;
    gap: var(--space-xs);
}

.threshold {
    flex: 1;
    padding: var(--space-sm);
    border-radius: 4px;
    text-align: center;
}

.threshold.good {
    background: var(--color-good-bg);
}

.threshold.moderate {
    background: var(--color-moderate-bg);
}

.threshold.poor {
    background: var(--color-bad-bg);
}

.threshold-value {
    display: block;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem;
}

.threshold.good .threshold-value { color: var(--color-good); }
.threshold.moderate .threshold-value { color: var(--color-moderate); }
.threshold.poor .threshold-value { color: var(--color-bad); }

.threshold-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.cwv-callout {
    padding: var(--space-lg);
    background: var(--color-bad-bg);
    border-radius: var(--radius);
    text-align: center;
}

.callout-text {
    font-size: 1rem;
    color: var(--color-text);
}

.callout-highlight {
    color: var(--color-bad);
    font-weight: 700;
}

/* -----------------------------------------------------------------------------
   Process Steps Section
   ----------------------------------------------------------------------------- */
.process-section {
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-bg-alt);
}

.steps-grid {
    display: grid;
    gap: var(--space-lg);
}

.step-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    color: var(--color-primary);
    margin: var(--space-md) 0;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.step-connector {
    display: none;
    color: var(--color-border);
}

/* -----------------------------------------------------------------------------
   FAQ Section
   ----------------------------------------------------------------------------- */
.faq-section {
    padding: var(--space-3xl) var(--space-md);
}

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

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--space-lg) var(--space-xl);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-text-light);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    padding: 0 var(--space-xl) var(--space-lg);
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Final CTA Section
   ----------------------------------------------------------------------------- */
.final-cta-section {
    padding: var(--space-3xl) var(--space-md);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    text-align: center;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.audit-form-large {
    max-width: 550px;
}

.cta-trust {
    margin-top: var(--space-xl);
}

.trust-headline {
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.trust-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.stat-divider {
    display: none;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.site-footer {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-black);
    color: var(--color-white);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: var(--space-xl);
}

.footer-brand .logo-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
}

.footer-logo {
    color: var(--color-white);
}

.footer-logo .logo-text {
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}

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

.footer-column-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.footer-column a {
    display: block;
    color: var(--color-bg);
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
    opacity: 0.8;
    text-decoration: none;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: var(--space-xl) auto 0;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
}

/* -----------------------------------------------------------------------------
   Legal Pages
   ----------------------------------------------------------------------------- */
.legal-page {
    padding: var(--space-3xl) var(--space-md);
}

.legal-container {
    max-width: 700px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.legal-updated {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.legal-container h2 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-container p,
.legal-container ul {
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

.legal-container ul {
    padding-left: var(--space-lg);
}

.legal-container li {
    margin-bottom: var(--space-sm);
}

/* -----------------------------------------------------------------------------
   Thank You Page
   ----------------------------------------------------------------------------- */
.thank-you {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.thank-you-content {
    max-width: 600px;
    text-align: center;
}

.check-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--color-good);
    color: #fff;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you h1 {
    margin: 0 0 var(--space-md) 0;
    font-size: 2rem;
}

.thank-you p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.what-next {
    text-align: left;
    background: var(--color-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    border: 1px solid var(--color-border);
}

.what-next h3 {
    margin: 0 0 var(--space-md) 0;
    font-size: 1.1rem;
}

.what-next ol {
    margin: 0;
    padding-left: 1.25rem;
}

.what-next li {
    margin-bottom: var(--space-md);
    line-height: 1.5;
    color: var(--color-text-muted);
}

.what-next li strong {
    color: var(--color-text);
}

.meanwhile {
    color: var(--color-text-light);
}

.meanwhile a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* -----------------------------------------------------------------------------
   Responsive: Tablet (768px+)
   ----------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .nav-link {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .url-input {
        flex: 1;
    }

    .form-fields-horizontal {
        grid-template-columns: 1fr 1fr;
    }

    .form-fields-horizontal .cta-button {
        grid-column: span 2;
    }

    .form-note {
        flex-direction: row;
        gap: var(--space-md);
    }

    .demo-container {
        flex-direction: row;
        justify-content: center;
    }

    .demo-vs {
        align-self: center;
    }

    .explainer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cwv-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(5, auto);
        align-items: start;
        justify-content: center;
    }

    .step-card {
        max-width: 250px;
    }

    .step-connector {
        display: flex;
        align-items: center;
        padding-top: 60px;
    }

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

    .stat-divider {
        display: inline;
    }

    .case-study-grid {
        gap: var(--space-lg);
    }

    .case-study-card {
        border-radius: 16px;
        padding: var(--space-xl);
    }

    .case-study-stat {
        font-size: 3.5rem;
        margin-bottom: var(--space-sm);
    }

    .case-study-context {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--space-md);
    }

    .case-study-source {
        font-size: 0.75rem;
    }
}

/* -----------------------------------------------------------------------------
   Responsive: Desktop (1024px+)
   ----------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

/* -----------------------------------------------------------------------------
   Case Studies Section (Homepage)
   ----------------------------------------------------------------------------- */
.case-studies-section {
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-bg);
}

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

.case-studies-label {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    display: block;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    max-width: 1000px;
    margin: 0 auto;
}

.case-study-card {
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-align: center;
}

.case-study-stat {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.case-study-stat.negative {
    color: var(--color-severe);
}

.case-study-stat.positive {
    color: var(--color-good);
}

.case-study-context {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-regular);
    font-size: 0.8125rem;
    color: var(--color-gray-700);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.case-study-source {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    font-size: 0.625rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-studies-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

.text-link {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.text-link:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* -----------------------------------------------------------------------------
   Case Studies Detail Page
   ----------------------------------------------------------------------------- */
.case-studies-page {
    padding: var(--space-3xl) var(--space-md);
}

.case-studies-page-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.case-studies-page-header h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.case-studies-page-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.case-studies-detail-grid {
    max-width: 900px;
    margin: 0 auto;
}

.case-study-detail {
    background: var(--color-bg-alt);
    border-radius: 16px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.case-study-category {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(0, 102, 255, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: 4px;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.case-study-headline {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    color: var(--color-black);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.case-study-section h3 {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

.case-study-section h3:first-child {
    margin-top: 0;
}

.case-study-section p,
.case-study-section li {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-regular);
    font-size: 1rem;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.case-study-section ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.case-study-section li {
    margin-bottom: var(--space-sm);
}

.case-study-quote {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
    color: var(--color-black);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
}

.source-link {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    display: inline-block;
    margin-top: var(--space-lg);
}

.source-link:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* Case Studies Page CTA */
.case-studies-page-cta {
    max-width: 700px;
    margin: var(--space-3xl) auto 0;
    text-align: center;
    padding: var(--space-2xl);
    background: var(--color-bg-alt);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.case-studies-page-cta h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
}

.case-studies-page-cta p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* About Snippet */
.about-snippet {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-lg);
}

.about-text {
    font-size: 0.9rem;
    color: var(--color-gray-500);
}

.about-text strong {
    color: var(--color-white);
}

.about-text a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-text a:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* -----------------------------------------------------------------------------
   Pricing Page
   ----------------------------------------------------------------------------- */
.pricing-hero {
    padding: var(--space-3xl) var(--space-md) var(--space-xl);
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    text-align: center;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
}

.toggle-option {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toggle-option:hover {
    color: var(--color-text);
}

.toggle-option.active {
    background: var(--color-primary);
    color: white;
}

.save-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--color-accent);
    color: var(--color-black);
    padding: 2px 6px;
    border-radius: 4px;
}

.toggle-option.active .save-badge {
    background: white;
    color: var(--color-primary);
}

/* Pricing Cards Section */
.pricing-cards-section {
    padding: var(--space-xl) var(--space-md) var(--space-3xl);
}

.pricing-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--color-primary);
    border-width: 2px;
    box-shadow: 0 4px 24px rgba(0, 102, 255, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.card-header {
    margin-bottom: var(--space-lg);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.plan-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.card-pricing {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.price-display {
    margin-bottom: var(--space-sm);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.migration-note {
    font-size: 0.875rem;
    margin: 0;
}

.migration-note .check {
    color: var(--color-good);
}

.migration-note.monthly-note {
    color: var(--color-text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl) 0;
    flex-grow: 1;
}

.plan-features li {
    padding: var(--space-sm) 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.feature-check {
    color: var(--color-good);
    font-weight: 700;
}

.feature-x {
    color: var(--color-text-light);
}

.feature-unavailable {
    color: var(--color-text-light);
}

.pricing-card .cta-button {
    width: 100%;
    text-align: center;
}

.cta-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.cta-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.pricing-guarantee {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pricing-guarantee .check {
    color: var(--color-good);
}

.guarantee-separator {
    margin: 0 var(--space-sm);
}

/* Migration Pricing Section */
.migration-pricing-section {
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-bg-alt);
}

.migration-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.migration-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.migration-card.highlight {
    border-color: var(--color-good);
    background: var(--color-good-bg);
}

.migration-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.migration-card.highlight .migration-icon {
    color: var(--color-good);
}

.migration-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.migration-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 var(--space-xs) 0;
}

.migration-card.highlight .migration-price {
    color: var(--color-good);
}

.migration-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* What's Included Section */
.whats-included-section {
    padding: var(--space-3xl) var(--space-md);
}

.features-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.feature-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Pricing FAQ Section */
.pricing-faq-section {
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-bg-alt);
}

.pricing-faq-section code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--color-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Pricing CTA Section */
.pricing-cta-section {
    padding: var(--space-3xl) var(--space-md);
    text-align: center;
}

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

.cta-note {
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cta-note .check {
    color: var(--color-good);
}

.cta-note-separator {
    margin: 0 var(--space-sm);
}

/* Pricing Teaser (for homepage) */
.pricing-teaser {
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: #666;
}

.pricing-teaser strong {
    color: var(--color-text);
}

.pricing-teaser a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pricing-teaser a:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* Pricing Page Responsive - Tablet */
@media (min-width: 768px) {
    .pricing-title {
        font-size: 2.5rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .migration-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pricing Page Responsive - Desktop */
@media (min-width: 1024px) {
    .pricing-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* -----------------------------------------------------------------------------
   Sample Report Page
   ----------------------------------------------------------------------------- */
.sample-banner {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: var(--space-md) var(--space-lg);
}

.banner-label {
    display: inline-block;
    background: white;
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.sample-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.report-page {
    padding: var(--space-3xl) var(--space-md);
}

.report-summary {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.report-summary h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.report-meta {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.report-section {
    max-width: 900px;
    margin: 0 auto var(--space-3xl);
}

.report-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* Score Grid */
.score-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.score-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 2px solid transparent;
}

.score-card.bad {
    border-color: var(--color-bad);
    background: var(--color-bad-bg);
}

.score-card.warning {
    border-color: var(--color-moderate);
    background: var(--color-moderate-bg);
}

.score-card.good {
    border-color: var(--color-good);
    background: var(--color-good-bg);
}

.score-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.score-card.bad .score-value {
    color: var(--color-bad);
}

.score-card.warning .score-value {
    color: var(--color-moderate);
}

.score-card.good .score-value {
    color: var(--color-good);
}

.score-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.score-status {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-card.bad .score-status {
    color: var(--color-bad);
}

.score-card.warning .score-status {
    color: var(--color-moderate);
}

.score-context {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Problem List */
.problem-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.problem-item {
    display: flex;
    gap: var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
}

.problem-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.problem-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.problem-stat {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-bad);
    margin-bottom: var(--space-sm);
}

.problem-content p:last-child {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Fix List */
.fix-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.fix-item {
    display: flex;
    gap: var(--space-md);
    background: var(--color-good-bg);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--color-good);
}

.fix-check {
    color: var(--color-good);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fix-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.fix-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Results Section */
.results-section {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--color-border);
}

.comparison-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.comparison-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-bg);
    border-radius: var(--radius);
}

.comparison-item .metric-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.metric-comparison .before {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-bad);
}

.metric-comparison .before.fail {
    color: var(--color-bad);
}

.metric-comparison .arrow {
    color: var(--color-text-light);
    font-size: 1.25rem;
}

.metric-comparison .after {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-good);
}

.metric-comparison .after.pass {
    color: var(--color-good);
}

.results-summary {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.improvement-stat {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-good);
    margin-bottom: var(--space-sm);
}

.results-summary p:last-child {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Report CTA */
.report-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-2xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.report-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.report-cta > p:first-of-type {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.report-cta .cta-note {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Sample Link (for homepage) */
.sample-link {
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

.sample-link a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* Sample Report Responsive - Tablet */
@media (min-width: 768px) {
    .report-summary h1 {
        font-size: 2.5rem;
    }

    .score-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sample Report Responsive - Desktop */
@media (min-width: 1024px) {
    .score-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .comparison-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* -----------------------------------------------------------------------------
   About Page
   ----------------------------------------------------------------------------- */
.about-page {
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-bg);
}

.about-hero {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.about-headline {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 2rem;
    color: var(--color-black);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.about-story {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-regular);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    max-width: 600px;
    margin: 0 auto;
}

.about-story p {
    margin-bottom: var(--space-md);
}

.about-story p:last-child {
    margin-bottom: 0;
}

.founders-section {
    margin-top: var(--space-2xl);
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 700px;
    margin: 0 auto;
}

.founder-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.founder-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md);
}

.founder-photo-grayscale {
    filter: grayscale(100%);
}

.founder-name {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    color: var(--color-black);
    margin-bottom: var(--space-xs);
}

.founder-title {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: var(--space-md);
}

.founder-bio {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    margin-bottom: var(--space-md);
}

.founder-linkedin {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: var(--font-weight-semibold);
}

.founder-linkedin:hover {
    text-decoration: none;
    opacity: 0.85;
}

@media (min-width: 640px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .about-headline {
        font-size: 1.75rem;
    }

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

/* -----------------------------------------------------------------------------
   Brand-Compliant Icons (No Emojis)
   Uses SVG-based icons per Flows123 Brand Guidelines v2
   ----------------------------------------------------------------------------- */

/* Check Icon - SVG-based checkmark */
.icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-check::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--color-good);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-check--large {
    width: 48px;
    height: 48px;
}

.icon-check--large::before {
    width: 32px;
    height: 32px;
}

/* Problem Icons - SVG-based */
.icon-problem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-bad-bg);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.icon-problem::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-color: var(--color-bad);
}

/* JavaScript/Code Icon */
.icon-problem--code::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Image Icon */
.icon-problem--image::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Globe/CDN Icon */
.icon-problem--globe::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Server/Gear Icon */
.icon-problem--server::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='8' rx='2' ry='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2' ry='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='8' rx='2' ry='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2' ry='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Arrow Icon */
.icon-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-gray-500);
}

.icon-arrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* X Icon - for unavailable features */
.icon-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-x::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--color-gray-500);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Large Success Check (for thank-you page) */
.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--color-good-bg);
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
}

.success-icon::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background-color: var(--color-good);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* -----------------------------------------------------------------------------
   Mobile Tap Targets (48x48px minimum for accessibility)
   ----------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Ensure all interactive elements have minimum 48px touch target */
    .cta-button,
    .cta-small,
    button,
    .nav-link {
        min-height: 48px;
        min-width: 48px;
    }

    /* Form inputs need adequate tap target size */
    .form-fields input,
    .form-fields select,
    .form-fields-horizontal input,
    .form-fields-horizontal select {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Ensure footer links are easily tappable */
    .footer-column a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* FAQ summary buttons need adequate tap height */
    .faq-item summary {
        min-height: 48px;
    }

    /* Spacing between tap targets */
    .nav-links {
        gap: var(--space-md);
    }
}

/* -----------------------------------------------------------------------------
   Founders Proof Section (Homepage)
   ----------------------------------------------------------------------------- */
.founders-proof {
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-gray-100);
}

.founders-proof-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.02em;
}

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

@media (min-width: 768px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.founder-proof-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.founders-proof .founder-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: var(--space-lg);
}

.founders-proof .founder-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.founders-proof .founder-name-link {
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-black);
    text-decoration: none;
    display: block;
}

.founders-proof .founder-name-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.founders-proof .founder-title {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.founder-quote {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    margin: 0 0 var(--space-lg) 0;
    padding: 0;
    border: none;
    font-style: normal;
}

.founder-metrics {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
}

.founder-metric {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--color-gray-100);
}

.founder-metric-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    margin-bottom: 0.25rem;
}

.founder-metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.founder-metric-value-bad {
    color: var(--color-bad);
}

.founder-metric-value-good {
    color: var(--color-good);
}

.founder-metric-score {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.founder-metric-arrow {
    color: var(--color-gray-500);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.founder-link:hover {
    text-decoration: underline;
}

.founder-link svg {
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   Builder Comparison Section
   ----------------------------------------------------------------------------- */
.builder-comparison {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-white);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* Chat Demo Container */
.chat-demo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Chat Header (macOS-style window bar) */
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-gray-100);
    border-bottom: 1px solid var(--color-gray-300);
}

.chat-header-slow {
    background: #FEF2F2;
    border-bottom-color: #FECACA;
}

.chat-header-fast {
    background: #F0FDF4;
    border-bottom-color: #BBF7D0;
}

.chat-header-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gray-300);
}

.chat-header-slow .chat-header-dot:nth-child(1) { background: #FCA5A5; }
.chat-header-slow .chat-header-dot:nth-child(2) { background: #FCD34D; }
.chat-header-slow .chat-header-dot:nth-child(3) { background: var(--color-gray-300); }

.chat-header-fast .chat-header-dot:nth-child(1) { background: #86EFAC; }
.chat-header-fast .chat-header-dot:nth-child(2) { background: #86EFAC; }
.chat-header-fast .chat-header-dot:nth-child(3) { background: #86EFAC; }

.chat-header-title {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chat Body */
.chat-body {
    padding: 1rem;
    background: #FAFAFA;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 320px;
}

.chat-demo-slow .chat-body {
    background: #FFFBFB;
}

.chat-demo-fast .chat-body {
    background: #FAFFFE;
}

/* Chat Messages */
.chat-message {
    display: flex;
    flex-direction: column;
}

.chat-message-user {
    align-items: flex-end;
}

.chat-message-bot {
    align-items: flex-start;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.chat-message-user .chat-bubble {
    background: var(--color-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-bot .chat-bubble {
    background: white;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
    border-bottom-left-radius: 4px;
}

.chat-bubble-slow {
    background: #FEF2F2 !important;
    border-color: #FECACA !important;
    color: #991B1B !important;
}

.chat-bubble-fast {
    background: #F0FDF4 !important;
    border-color: #BBF7D0 !important;
    color: #166534 !important;
}

.chat-attachment {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    padding-right: 0.25rem;
}

/* Auto Badge */
.chat-auto-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #16A34A;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-right: 0.375rem;
    vertical-align: middle;
}

/* Chat Result Footer */
.chat-result {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.chat-result-slow {
    background: #FEE2E2;
    color: #991B1B;
}

.chat-result-fast {
    background: #DCFCE7;
    color: #166534;
}

.chat-result-score,
.chat-result-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Comparison Note / Link */
.comparison-note {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.875rem;
}

/* -----------------------------------------------------------------------------
   Product Details Page
   ----------------------------------------------------------------------------- */
.page-header {
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
    text-align: center;
    background: var(--color-gray-100);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--color-gray-500);
}

.optimization-table {
    padding: var(--space-2xl) var(--space-lg);
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-300);
}

.comparison-table th {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
}

.comparison-table .col-before {
    background: #FEF2F2;
    color: #991B1B;
}

.comparison-table .col-after {
    background: #F0FDF4;
    color: #166534;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--color-black);
    width: 20%;
}

.cell-bad {
    background: #FFFBFB;
}

.cell-good {
    background: #FAFFFE;
}

/* Mobile: Stack table */
@media (max-width: 640px) {
    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--color-gray-300);
        border-radius: var(--radius);
        overflow: hidden;
    }

    .comparison-table td {
        border-bottom: 1px solid var(--color-gray-300);
    }

    .comparison-table td:first-child {
        background: var(--color-gray-100);
        font-weight: 700;
    }

    .comparison-table td:nth-child(2)::before {
        content: "Before: ";
        font-weight: 600;
        color: #991B1B;
    }

    .comparison-table td:nth-child(3)::before {
        content: "After: ";
        font-weight: 600;
        color: #166534;
    }
}

/* CTA Section on Product Details */
.cta-section {
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    background: var(--color-primary);
    color: white;
}

.cta-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.cta-section .cta-button {
    background: white;
    color: var(--color-primary);
}

.cta-section .cta-button:hover {
    background: var(--color-gray-100);
}

.cta-section .cta-note {
    font-size: 0.875rem;
    margin-top: 0.75rem;
    color: white;
}

/* -----------------------------------------------------------------------------
   Reduced Motion
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
