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

/* ===== DESIGN TOKENS (3-layer) ===== */
:root {
    /* --- Primitives --- */
    --gray-950: #0a0a0a;
    --gray-900: #141414;
    --gray-850: #1a1a1a;
    --gray-800: #1f1f1f;
    --gray-700: #262626;
    --gray-600: #3a3a3a;
    --gray-500: #525252;
    --gray-400: #737373;
    --gray-300: #a3a3a3;
    --gray-200: #d4d4d4;
    --gray-100: #e5e5e5;
    --white: #f5f5f5;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-600: #d97706;
    --amber-500-15: rgba(245, 158, 11, 0.15);
    --amber-500-08: rgba(245, 158, 11, 0.08);
    --red-500: #ef4444;
    --red-500-10: rgba(239, 68, 68, 0.1);
    --orange-500: #f97316;
    --orange-500-10: rgba(249, 115, 22, 0.1);
    --yellow-500: #eab308;
    --yellow-500-10: rgba(234, 179, 8, 0.1);
    --green-500: #22c55e;
    --green-500-10: rgba(34, 197, 94, 0.1);
    --lime-500: #84cc16;
    --blue-500: #3b82f6;

    /* --- Semantic --- */
    --bg: var(--gray-950);
    --surface: var(--gray-900);
    --surface-elevated: var(--gray-850);
    --surface-card: #282828;
    --border: var(--gray-700);
    --border-subtle: var(--gray-800);
    --text: var(--white);
    --text-muted: var(--gray-300);
    --text-dim: var(--gray-500);
    --accent: var(--amber-500);
    --accent-hover: var(--amber-400);
    --accent-dim: var(--amber-500-15);
    --accent-subtle: var(--amber-500-08);

    /* Severity */
    --critical: var(--red-500);
    --critical-bg: var(--red-500-10);
    --high: var(--orange-500);
    --high-bg: var(--orange-500-10);
    --medium: var(--yellow-500);
    --medium-bg: var(--yellow-500-10);
    --low: var(--green-500);
    --low-bg: var(--green-500-10);

    /* Grades */
    --grade-a: var(--green-500);
    --grade-b: var(--lime-500);
    --grade-c: var(--yellow-500);
    --grade-d: var(--orange-500);
    --grade-f: var(--red-500);

    /* Functional */
    --success: var(--green-500);
    --error: var(--red-500);
    --info: var(--blue-500);

    /* --- Typography (guide: 48/32/24/20/16/14/12) --- */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px — H3 */
    --text-3xl: 2rem;        /* 32px — H2 */
    --text-4xl: clamp(2.75rem, 3vw + 1.5rem, 3.5rem); /* 44-56px — H1 */

    /* --- Spacing (8pt grid, 4px half-unit) --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows — aggressive for dark bg */
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07);
    --shadow-md: 0 12px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.09);
    --shadow-lg: 0 24px 72px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.12);
    --shadow-glow: 0 0 0 1px rgba(245, 158, 11, 0.25), 0 8px 40px rgba(245, 158, 11, 0.12);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: clamp(3.25rem, 5vw + 1.5rem, 4.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #fff;
}
h2 {
    font-size: clamp(2.25rem, 3vw + 1rem, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
}
h3 {
    font-size: clamp(1.5rem, 1.5vw + 0.8rem, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
h4 { font-size: var(--text-xl); font-weight: 600; line-height: 1.4; color: var(--text); }

.body-lg { font-size: var(--text-lg); }
.body-sm { font-size: var(--text-sm); }
.caption { font-size: var(--text-sm); color: var(--text-dim); }
.ref { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: var(--text-sm); }
.text-accent { color: var(--accent); font-weight: 600; }

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

/* ===== LAYOUT ===== */
.container {
    width: clamp(320px, 90vw, 720px);
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px);
}

.container-wide {
    width: clamp(320px, 90vw, 960px);
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px);
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--accent);
    color: #000;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    z-index: 100;
    font-weight: 600;
}
.skip-link:focus {
    top: var(--space-2);
}

/* ===== NAV ===== */
.nav {
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--accent); }

.lang-toggle {
    display: flex;
    gap: var(--space-1);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: var(--space-1);
}
.lang-toggle a {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.lang-toggle a.active {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    border: none;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.45), 0 4px 20px rgba(0,0,0,0.4);
    font-weight: 700;
    transition: all 0.2s ease;
    animation: cta-glow 3s ease-in-out infinite;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #000;
    box-shadow: 0 0 80px rgba(245, 158, 11, 0.6), 0 4px 20px rgba(0,0,0,0.4);
    transform: translateY(-2px);
    animation: none;
}
@keyframes cta-glow {
    0%, 100% { box-shadow: 0 0 50px rgba(245, 158, 11, 0.45), 0 4px 20px rgba(0,0,0,0.4); }
    50% { box-shadow: 0 0 70px rgba(245, 158, 11, 0.6), 0 4px 30px rgba(0,0,0,0.5); }
}
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-lg {
    padding: 22px 56px;
    font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
    min-height: 64px;
    border-radius: var(--radius-lg);
    letter-spacing: 0.01em;
}
.btn-block { width: 100%; }
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--space-6);
}
.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: var(--text-base);
}
.input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-base);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}
.input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}
textarea {
    min-height: 120px;
    resize: vertical;
}
.input-error {
    border-color: var(--error);
}
.error-message {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* Radio group */
.radio-group {
    display: flex;
    gap: var(--space-4);
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-weight: 400;
}
.radio-group input[type="radio"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(180deg, var(--gray-800) 0%, var(--surface) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
}

/* ===== PROGRESS BAR ===== */
.progress {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}
.progress-step {
    flex: 1;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--border);
    cursor: pointer;
    transition: background var(--transition-fast);
    position: relative;
}
.progress-step.active { background: var(--accent); }
.progress-step.completed { background: var(--accent); opacity: 0.6; }
.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}
.progress-label span {
    font-size: var(--text-sm);
    color: var(--text-dim);
}
.progress-label span.active {
    color: var(--accent);
    font-weight: 600;
}

/* ===== SEVERITY BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-critical { background: var(--critical-bg); color: var(--critical); border: 1px solid var(--critical); }
.badge-high { background: var(--high-bg); color: var(--high); border: 1px solid var(--high); }
.badge-medium { background: var(--medium-bg); color: var(--medium); border: 1px solid var(--medium); }
.badge-low { background: var(--low-bg); color: var(--low); border: 1px solid var(--low); }

/* ===== GRADE DISPLAY ===== */
.grade {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}
.grade-a { color: var(--grade-a); }
.grade-b { color: var(--grade-b); }
.grade-c { color: var(--grade-c); }
.grade-d { color: var(--grade-d); }
.grade-f { color: var(--grade-f); }

.grade-container {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}
.grade-details h2 {
    margin-bottom: var(--space-2);
}

/* ===== SECTION SCORES ===== */
.section-scores {
    display: grid;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}
.section-score-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}
.section-score-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.section-score-label {
    font-weight: 500;
}
.section-score-pct {
    color: var(--accent);
    font-weight: 600;
}
.section-score-bar {
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-top: var(--space-2);
    overflow: hidden;
}
.section-score-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ===== QUESTION CARD ===== */
.question-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}
.question-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.question-number {
    font-weight: 700;
    color: var(--accent);
    font-size: var(--text-sm);
    white-space: nowrap;
}
.question-text {
    font-size: var(--text-base);
    line-height: 1.5;
    margin-bottom: var(--space-4);
}
.question-reg {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--accent-dim);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}
.question-reg .ref {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}
.question-reg .reg-desc {
    color: var(--text-muted);
}

/* ===== ASSESSMENT SECTIONS ===== */
.assessment-section {
    display: none;
}
.assessment-section.active {
    display: block;
}
.section-header {
    margin-bottom: var(--space-8);
}
.section-header h2 {
    margin-bottom: var(--space-2);
}
.section-header p {
    color: var(--text-muted);
}
.section-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

/* ===== REVIEW PAGE ===== */
.review-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}
.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-2);
}
.review-answer {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}
.review-answer.empty {
    color: var(--text-dim);
    font-style: italic;
}
.review-edit {
    font-size: var(--text-sm);
    font-weight: 500;
}

/* ===== PREVIEW LOCKED SECTIONS ===== */
.locked-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}
.locked-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.5);
    border-radius: var(--radius-lg);
}
.locked-overlay span {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-muted);
}

/* ===== GAP TABLE ===== */
.gap-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}
.gap-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}
.gap-description {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ===== REPORT STYLES ===== */
.report-header {
    text-align: center;
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-8);
}
.report-header .disclaimer {
    background: var(--critical-bg);
    border: 1px solid var(--critical);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--critical);
    margin-top: var(--space-6);
    text-align: left;
}
.report-section {
    margin-bottom: var(--space-12);
}
.report-section h2 {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

/* Article analysis */
.article-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}
.article-status {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-pass { background: var(--low-bg); color: var(--low); }
.status-partial { background: var(--medium-bg); color: var(--medium); }
.status-fail { background: var(--critical-bg); color: var(--critical); }

/* Roadmap */
.roadmap-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}
.roadmap-priority {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}
.priority-p1 { color: var(--critical); }
.priority-p2 { color: var(--high); }
.priority-p3 { color: var(--medium); }

/* ===== PRICING CARD ===== */
.pricing-card {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, #2e2e2e 20%, #1a1a1a 100%);
    border: 2px solid rgba(245, 158, 11, 0.45);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-10);
    text-align: center;
    max-width: 520px;
    margin: var(--space-16) auto;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 150px rgba(245, 158, 11, 0.18);
    position: relative;
    animation: pricing-glow 4s ease-in-out infinite;
}
@keyframes pricing-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 150px rgba(245, 158, 11, 0.15); }
    50% { box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4), 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 180px rgba(245, 158, 11, 0.22); }
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.pricing-amount {
    font-size: clamp(3rem, 4vw + 1.5rem, 4.5rem);
    font-weight: 900;
    color: var(--accent);
    margin: var(--space-8) 0;
    text-shadow: 0 0 80px rgba(245, 158, 11, 0.5);
    letter-spacing: -0.03em;
}
.pricing-detail {
    color: var(--text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
}
.pricing-features {
    text-align: left;
    color: var(--text-muted);
    font-size: var(--text-base);
    margin: var(--space-8) 0;
    list-style: none;
    padding: 0;
}
.pricing-features li {
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-note {
    margin-top: var(--space-6);
}
.pricing-guarantee {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-8);
    text-align: center;
}

/* ===== LANDING: HERO ===== */
.hero {
    padding: clamp(100px, 15vw, 180px) 0 clamp(64px, 8vw, 96px);
    text-align: center;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,158,11,0.22) 0%, transparent 60%),
                linear-gradient(180deg, #1a1a1a 0%, var(--bg) 100%);
    border-bottom: none;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero h1 {
    margin-bottom: var(--space-6);
    max-width: 780px;
    margin-inline: auto;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(3rem, 5vw + 1rem, 4.5rem);
}
.hero .subtitle {
    font-size: clamp(1.3rem, 1vw + 1rem, 1.625rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-12);
    line-height: 1.5;
}
.hero-caption {
    margin-top: var(--space-3);
}

/* ===== LANDING: SECTIONS ===== */
.landing-section {
    padding: clamp(80px, 10vw, 120px) 0;
}
.landing-section h2 {
    margin-bottom: var(--space-12);
}

/* Alternating section surface for visual rhythm */
.section-surface {
    background: var(--surface);
}

/* ===== LANDING: VALUE PROPS ===== */
.value-props {
    display: grid;
    gap: var(--space-6);
}
.value-prop {
    background: linear-gradient(180deg, #3a3a3a 0%, #242424 100%);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-lg);
    padding: var(--space-12) var(--space-8);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.value-prop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.4), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.value-prop:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,0.25);
}
.value-prop:hover::before {
    opacity: 1;
}
.value-prop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-6);
    line-height: 1;
}
.value-prop h3 {
    margin-bottom: var(--space-2);
}
.value-prop p {
    color: var(--text-muted);
    font-size: var(--text-base);
}

/* ===== LANDING: PROBLEM/SOLUTION ===== */
.problem-solution {
    display: grid;
    gap: var(--space-6);
}
.ps-card {
    padding: var(--space-10) var(--space-8);
    border-radius: var(--radius-lg);
}
.ps-card.problem {
    background: linear-gradient(180deg, #353535 0%, #1c1c1c 100%);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: var(--shadow-md);
}
.ps-card.solution {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, #1c1c1c 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25), 0 8px 50px rgba(245, 158, 11, 0.1);
}
.ps-label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}
.ps-card.problem .ps-label { color: var(--text-dim); }
.ps-card.solution .ps-label { color: var(--accent); }
.ps-card p {
    font-size: var(--text-lg);
    line-height: 1.5;
}

/* ===== LANDING: FEATURES ===== */
.features {
    display: grid;
    gap: var(--space-6);
}
.feature-card {
    background: linear-gradient(180deg, #3a3a3a 0%, #242424 100%);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-lg);
    padding: var(--space-12) var(--space-8);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.4), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,0.25);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.3), transparent);
}
.feature-card h3 {
    margin-bottom: var(--space-3);
}
.feature-card p {
    color: var(--text-muted);
    font-size: var(--text-base);
}
.feature-card .feature-articles {
    margin-top: var(--space-3);
}

/* ===== LANDING: TRUST ===== */
.trust-signals {
    text-align: center;
    margin-top: var(--space-8);
}
.trust-signals p {
    color: var(--text-muted);
    max-width: 480px;
    margin-inline: auto;
    line-height: 1.6;
}

/* ===== LANDING: AUTHORITY CALLOUT ===== */
.authority-callout {
    padding: clamp(48px, 6vw, 72px) 0;
    text-align: center;
    background: var(--surface);
}
.authority-text {
    font-size: clamp(1.25rem, 1vw + 0.9rem, 1.5rem);
    font-weight: 500;
    color: var(--text-muted);
    max-width: 640px;
    margin-inline: auto;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    padding: 0 var(--space-8);
}
.authority-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(245, 158, 11, 0.3);
    line-height: 1;
    font-style: normal;
}

/* ===== LANDING: FAQ ===== */
.faq-list {
    display: grid;
    gap: var(--space-6);
}
.faq-item {
    background: linear-gradient(180deg, #2e2e2e 0%, #1e1e1e 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
}
.faq-item[open] {
    border-color: rgba(245, 158, 11, 0.25);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-5) var(--space-6);
    background: none;
    border: none;
    color: var(--text);
    font-size: var(--text-lg);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    gap: var(--space-4);
}
.faq-question:hover {
    color: var(--accent);
}
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    transition: transform var(--transition-fast);
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== LANDING: CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: clamp(80px, 10vw, 120px) 0;
    background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(245,158,11,0.08) 0%, transparent 60%),
                linear-gradient(180deg, var(--bg) 0%, #111 50%, var(--bg) 100%);
}

/* ===== LANDING: METHODOLOGY (how it works) ===== */
.methodology-steps {
    display: grid;
    gap: var(--space-6);
    counter-reset: step;
}
.methodology-step {
    counter-increment: step;
    padding-left: var(--space-10);
    position: relative;
}
.methodology-step::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-sm);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.methodology-step h3 {
    margin-bottom: var(--space-2);
}
.methodology-step p {
    color: var(--text-muted);
}

/* ===== UTILITY: start/preview pages ===== */
.page-content {
    padding: var(--space-8) 0 var(--space-16);
}
.page-narrow {
    max-width: 480px;
    margin-inline: auto;
}
.page-narrow h1 {
    margin-bottom: var(--space-3);
}
.page-intro {
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}
.preview-header {
    text-align: left;
    padding: var(--space-8) 0;
}
.preview-header .caption {
    margin-bottom: var(--space-2);
}
.preview-header h1 {
    margin-bottom: var(--space-4);
}
.preview-desc {
    color: var(--text-muted);
}
.preview-gaps-title {
    margin-bottom: var(--space-4);
}
.preview-regulator {
    margin: var(--space-8) 0;
}
.preview-full-title {
    margin: var(--space-8) 0 var(--space-4);
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: var(--space-8) 0;
    margin-top: var(--space-16);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}
.footer-brand {
    color: var(--text-dim);
    font-size: var(--text-sm);
}
.footer-links {
    display: flex;
    gap: var(--space-4);
}
.footer-links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
}
.footer-disclaimer {
    color: var(--text-dim);
    font-size: 0.75rem;
    line-height: 1.5;
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-4);
}

/* ===== LOADING / SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ALERT ===== */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
}
.alert-error {
    background: var(--critical-bg);
    border: 1px solid var(--critical);
    color: var(--critical);
}
.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* ===== REGULATOR QUESTION ===== */
.regulator-question {
    background: var(--surface);
    border-left: 3px solid var(--critical);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-6) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.regulator-question p {
    font-style: italic;
    color: var(--text);
}
.regulator-question .rq-label {
    font-style: normal;
    font-size: var(--text-sm);
    color: var(--critical);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* ===== HERO MOCKUP ===== */
.hero-mockup {
    max-width: 340px;
    margin: var(--space-8) auto 0;
    opacity: 0.7;
    background: linear-gradient(180deg, #252525 0%, #1a1a1a 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    text-align: left;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
}
.hero-mockup::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--gray-900));
    pointer-events: none;
}
.mockup-header { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.mockup-grade { font-size: 2.5rem; font-weight: 800; color: var(--grade-b); }
.mockup-meta { color: var(--text-dim); font-size: var(--text-sm); }
.mockup-bars { display: grid; gap: var(--space-2); }
.mockup-bar-label { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--text-muted); }
.mockup-bar { height: 6px; border-radius: var(--radius-full); background: var(--border); overflow: hidden; }
.mockup-bar-fill { height: 100%; border-radius: var(--radius-full); background: var(--accent); }
.mockup-blur { filter: blur(4px); user-select: none; pointer-events: none; margin-top: var(--space-4); }
.mockup-blur-line { height: 10px; border-radius: var(--radius-sm); background: var(--border-subtle); margin-bottom: var(--space-2); }

/* ===== MOBILE STICKY HEADER ===== */
.mobile-sticky-header {
    display: none;
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
    display: none;
}

/* ===== TRUST BADGES ===== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    flex-wrap: wrap;
    margin-bottom: var(--space-16);
    padding: var(--space-8) 0;
}
.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-base);
    font-weight: 500;
}
.trust-badge-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.12);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent);
    font-size: var(--text-2xl);
    font-weight: 800;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-10);
    color: var(--text-muted);
    font-size: var(--text-lg);
    letter-spacing: 0.01em;
    font-weight: 500;
}
.social-proof-dot {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: var(--radius-full);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== CHECKOUT TRUST ===== */
.checkout-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.checkout-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
}
.checkout-trust-icon {
    color: var(--accent);
    opacity: 0.7;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .value-props {
        grid-template-columns: repeat(3, 1fr);
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-scores {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 639px) {
    .hero {
        padding: clamp(72px, 12vw, 120px) 0 clamp(48px, 6vw, 72px);
    }
    .hero h1 {
        font-size: clamp(2.25rem, 8vw, 3rem);
        letter-spacing: -0.03em;
    }
    .hero .subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-8);
    }
    .btn-lg {
        padding: 18px 40px;
        font-size: 1.125rem;
        min-height: 56px;
        width: 100%;
    }
    .value-prop, .feature-card {
        padding: var(--space-10) var(--space-6);
    }
    .value-prop h3, .feature-card h3 {
        font-size: 1.25rem;
    }
    .pricing-card {
        padding: var(--space-12) var(--space-6);
        margin-inline: var(--space-2);
    }
    .pricing-amount {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .checkout-trust {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    .trust-badges {
        gap: var(--space-6);
    }
    .trust-badge-icon {
        width: 52px;
        height: 52px;
        font-size: var(--text-xl);
    }
    .landing-section {
        padding: clamp(56px, 8vw, 80px) 0;
    }
    .landing-section h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        margin-bottom: var(--space-8);
    }
    .ps-card {
        padding: var(--space-8) var(--space-6);
    }
    .social-proof {
        font-size: var(--text-base);
        margin-top: var(--space-8);
    }
    .hero-mockup {
        max-width: 280px;
        transform: scale(0.85);
    }
    .faq-question {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-5);
    }
    .section-divider {
        width: 60px;
    }
    .mobile-sticky-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 60;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    .mobile-sticky-header.visible {
        transform: translateY(0);
    }
    .mobile-sticky-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-3) var(--space-4);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    }
    .mobile-sticky-brand {
        font-weight: 700;
        font-size: var(--text-base);
        color: var(--text);
    }
    .btn-sm {
        padding: 10px 20px;
        font-size: var(--text-sm);
        font-weight: 600;
        border-radius: var(--radius-md);
        min-height: 40px;
    }
    .sticky-cta {
        display: none;
    }
    footer { padding-bottom: var(--space-4); }
}

/* ===== FOCUS ===== */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== PRINT / PDF ===== */
@media print {
    body {
        background: #fff;
        color: #111;
    }
    .nav, footer, .btn, .skip-link {
        display: none;
    }
    .card, .question-card, .gap-item, .roadmap-item, .review-item {
        border: 1px solid #ddd;
        background: #fff;
    }
    .grade-a, .grade-b, .grade-c, .grade-d, .grade-f {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .report-section {
        break-inside: avoid;
    }
}

/* ===== PDF-SPECIFIC ===== */
.pdf-only { display: none; }
.pdf-layout .pdf-only { display: block; }
.pdf-layout {
    background: #fff;
    color: #111;
    font-size: 10pt;
    line-height: 1.4;
}
.pdf-layout .card {
    background: #f9f9f9;
    border: 1px solid #ddd;
}
.pdf-layout .question-reg {
    background: #fff8e1;
}
.pdf-cover {
    text-align: center;
    padding: 4cm 0;
    page-break-after: always;
}
.pdf-cover h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.pdf-page-break {
    page-break-before: always;
}
