/* ============================================
   School Optional - Dark Theme v2
   Visual overhaul: grain, glow, animations,
   gradient borders, progress bar, quiz
   ============================================ */

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

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #E86F6F;
    --accent-hover: #d45a5a;
    --accent-dim: rgba(232,111,111,0.15);
    --accent-glow: rgba(232,111,111,0.25);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Grain Texture Overlay --- */
body::after {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Reading Progress Bar --- */
.reading-progress {
    position: fixed;
    top: 64px; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #f4a0a0);
    z-index: 101;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Navigation --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.1rem; color: var(--text);
}

.nav-logo img {
    width: 36px; height: 36px; border-radius: 8px; object-fit: contain;
}

.logo-icon { display: flex; align-items: center; }

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-links a {
    font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
    padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.15s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta {
    background: var(--accent) !important; color: var(--text) !important;
    font-weight: 600 !important; transition: all 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}

.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-secondary); border-radius: 2px; transition: 0.2s;
}

.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    padding: 16px 24px; flex-direction: column; gap: 8px; z-index: 99;
    box-shadow: var(--shadow-lg);
}

.mobile-menu a {
    font-size: 1rem; font-weight: 500; color: var(--text-secondary);
    padding: 12px 16px; border-radius: var(--radius-sm); display: block;
}

.mobile-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-menu .nav-cta { text-align: center; margin-top: 8px; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu.open { display: flex; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-weight: 600; font-size: 0.925rem;
    padding: 12px 24px; border-radius: var(--radius-sm);
    border: none; cursor: pointer; transition: all 0.2s var(--ease-out); text-decoration: none;
    line-height: 1.4; position: relative;
}

.btn-primary {
    background: var(--accent); color: var(--text);
    box-shadow: 0 1px 3px rgba(232,111,111,0.3);
}

.btn-primary:hover {
    background: var(--accent-hover); transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232,111,111,0.35);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-muted);
    color: var(--text);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent; color: var(--accent);
    padding: 12px 16px;
}

.btn-ghost:hover { background: var(--accent-dim); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }

.section-head { text-align: center; margin-bottom: 48px; }

.section-eyebrow {
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700;
    color: var(--text); line-height: 1.2; letter-spacing: -0.02em;
}

.section-sub {
    font-size: 1.05rem; color: var(--text-secondary); max-width: 560px;
    margin: 14px auto 0; line-height: 1.65;
}

/* --- Hero --- */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gradient mesh background */
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232,111,111,0.12) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(232,111,111,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(200,100,100,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating glow orb */
.hero::after {
    content: '';
    position: absolute;
    top: -100px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(232,111,111,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800;
    color: var(--text); line-height: 1.1; letter-spacing: -0.03em;
    margin-bottom: 20px; position: relative;
}

.hero h1 .highlight {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(232,111,111,0.3);
}

.hero .hero-sub {
    font-size: 1.2rem; color: var(--text-secondary); max-width: 620px;
    margin: 0 auto 36px; line-height: 1.7; position: relative;
}

.hero-actions {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
    position: relative;
}

/* --- Data Bar --- */
.data-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.data-items {
    display: flex; justify-content: center; align-items: center;
    gap: 48px; flex-wrap: wrap;
}

.data-item { text-align: center; }

.data-number {
    font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(232,111,111,0.2);
}

.data-label {
    font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-top: 4px;
}

.data-sep {
    width: 1px; height: 36px; background: var(--border);
}

@media (max-width: 600px) {
    .data-sep { display: none; }
    .data-items { gap: 24px; }
}

/* --- Article Cards --- */
.articles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s var(--ease-out);
    display: flex; flex-direction: column;
    position: relative;
}

/* Gradient border on hover */
.article-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(232,111,111,0.4), rgba(232,111,111,0.05), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    pointer-events: none;
}

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

.article-card:hover {
    border-color: transparent;
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(232,111,111,0.05);
}

.article-card-tag {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent);
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.05rem; font-weight: 600; color: var(--text);
    margin-bottom: 8px; line-height: 1.3;
}

.article-card p {
    font-size: 0.875rem; color: var(--text-secondary);
    line-height: 1.6; flex: 1;
}

.article-card .read-link {
    font-size: 0.85rem; font-weight: 600; color: var(--accent);
    margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.2s var(--ease-out);
}

.article-card:hover .read-link { gap: 12px; }

@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

/* --- Article Page --- */
.article-hero {
    padding: 120px 0 48px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(232,111,111,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.article-hero .breadcrumb {
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px;
    position: relative;
}

.article-hero .breadcrumb a { color: var(--accent); }
.article-hero .breadcrumb a:hover { text-decoration: underline; }
.article-hero .breadcrumb .sep { margin: 0 8px; }

.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
    color: var(--text); line-height: 1.15; margin-bottom: 16px;
    position: relative;
}

.article-hero h1 .highlight {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(232,111,111,0.25);
}

.article-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 0.85rem; color: var(--text-muted);
    position: relative;
}

.article-meta .dot { margin: 0; }

/* --- Article Content --- */
.article-body {
    max-width: 720px; margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Drop cap on first paragraph */
.article-body > p:first-of-type::first-letter {
    float: left;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 0.8;
    margin: 4px 12px 0 0;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(232,111,111,0.2);
}

.article-body h2 {
    font-size: 1.35rem; font-weight: 700; color: var(--text);
    margin: 48px 0 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.article-body h3 {
    font-size: 1.1rem; font-weight: 600; color: var(--text);
    margin: 28px 0 10px;
}

.article-body p {
    font-size: 1.05rem; color: var(--text-secondary); line-height: 1.85;
    margin-bottom: 18px;
}

.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }

.article-body ul, .article-body ol {
    padding-left: 20px; margin-bottom: 16px;
}

.article-body li {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 6px;
}

.article-body li strong { color: var(--text); }

.article-body strong { color: var(--text); }

/* Inline stat highlight */
.stat-hl {
    color: var(--accent);
    font-weight: 700;
    position: relative;
}

.stat-hl::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 1px;
}

/* --- Data Callout --- */
.data-callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 28px 32px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind data callout */
.data-callout::after {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(232,111,111,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.data-callout-number {
    font-size: 2.5rem; font-weight: 800; color: var(--accent);
    line-height: 1.1; margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(232,111,111,0.2);
    position: relative;
}

.data-callout-text {
    font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
    position: relative;
}

.data-callout-source {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 10px;
    position: relative;
}

/* --- Pull Quote --- */
.pull-quote {
    border-left: 3px solid var(--accent);
    padding: 24px 0 24px 28px;
    margin: 40px 0;
    position: relative;
}

.pull-quote::before {
    content: '\201C';
    position: absolute;
    top: -10px; left: 28px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.pull-quote p {
    font-size: 1.25rem; font-style: italic; color: var(--text);
    line-height: 1.6; margin-bottom: 0;
    position: relative;
}

.pull-quote .attribution {
    font-size: 0.85rem; font-style: normal; color: var(--text-muted);
    margin-top: 8px;
}

/* --- Blue Folder CTA (mid-article + end) --- */
.bf-cta {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232,111,111,0.1) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bf-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    width: 300px; height: 200px;
    background: radial-gradient(ellipse, rgba(232,111,111,0.08) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.bf-cta h3 {
    font-size: 1.2rem; font-weight: 700; color: var(--text);
    margin-bottom: 8px; position: relative;
}

.bf-cta p {
    font-size: 0.925rem; color: var(--text-secondary);
    margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto;
    position: relative;
}

.bf-cta .btn { margin: 0 auto; position: relative; }

/* --- Sources Section --- */
.sources {
    margin-top: 48px; padding-top: 32px;
    border-top: 1px solid var(--border);
}

.sources h3 {
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px;
}

.sources ol {
    padding-left: 20px; list-style: decimal;
}

.sources li {
    font-size: 0.85rem; color: var(--text-muted);
    line-height: 1.6; margin-bottom: 8px;
}

.sources li a { color: var(--accent); }
.sources li a:hover { text-decoration: underline; }

/* --- Keep Reading --- */
.keep-reading {
    margin-top: 56px; padding-top: 40px;
    border-top: 1px solid var(--border);
}

.keep-reading h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    margin-bottom: 24px;
}

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

@media (max-width: 600px) {
    .keep-reading .articles-grid { grid-template-columns: 1fr; }
}

/* --- Email Capture --- */
.email-capture {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px; text-align: center;
}

.email-capture h3 {
    font-size: 1.15rem; font-weight: 700; color: var(--text);
    margin-bottom: 8px;
}

.email-capture p {
    font-size: 0.925rem; color: var(--text-secondary);
    margin-bottom: 20px;
}

.email-form {
    display: flex; gap: 8px; max-width: 420px; margin: 0 auto;
}

.email-form input {
    flex: 1; padding: 12px 16px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-family: var(--font); font-size: 0.925rem;
}

.email-form input::placeholder { color: var(--text-muted); }

.email-form input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,111,111,0.12);
}

@media (max-width: 500px) {
    .email-form { flex-direction: column; }
}

/* --- Steps (Take Action page) --- */
.steps-row {
    display: flex; align-items: flex-start; justify-content: center; gap: 12px;
}

.step-item { flex: 1; max-width: 280px; text-align: center; }

.step-num {
    width: 56px; height: 56px; background: var(--accent); color: var(--text);
    font-size: 1.2rem; font-weight: 700; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 0 25px rgba(232,111,111,0.25);
}

.step-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.step-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.step-arrow {
    display: flex; align-items: center; padding-top: 14px; color: var(--text-muted);
}

@media (max-width: 768px) {
    .steps-row { flex-direction: column; align-items: center; }
    .step-item { max-width: 360px; }
    .step-arrow { transform: rotate(90deg); }
}

/* --- About Page --- */
.about-content {
    max-width: 720px; margin: 0 auto;
    padding: 48px 24px 80px;
}

.about-content p {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 16px;
}

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

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
}

.cta-box {
    text-align: center; padding: 64px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(232,111,111,0.15) 100%);
    border: 1px solid var(--border);
    border-radius: 24px; color: var(--text);
    position: relative; overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 200px;
    background: radial-gradient(ellipse, rgba(232,111,111,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 10px;
    position: relative;
}

.cta-box p {
    font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 24px;
    position: relative;
}

.cta-box .btn { position: relative; }

/* --- Footer --- */
.footer {
    padding: 56px 0 28px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex; justify-content: space-between; gap: 48px; margin-bottom: 36px;
}

.footer-brand { max-width: 260px; }
.footer-brand .nav-logo { margin-bottom: 10px; }
.footer-tagline { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

.footer-cols { display: flex; gap: 56px; }

.footer-col h5 {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px;
}

.footer-col a {
    display: block; font-size: 0.875rem; color: var(--text-secondary);
    margin-bottom: 8px; transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-muted);
}

.footer-social { display: flex; gap: 14px; }

.footer-social a {
    color: var(--text-muted); transition: color 0.15s; display: flex;
}

.footer-social a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .footer-grid { flex-direction: column; gap: 32px; }
    .footer-cols { flex-wrap: wrap; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* --- Resources Page --- */
.resource-list { list-style: none; }

.resource-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.resource-item:last-child { border-bottom: none; }

.resource-item h4 {
    font-size: 0.95rem; font-weight: 600; color: var(--text);
    margin-bottom: 4px;
}

.resource-item p {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}

.resource-item a { color: var(--accent); }
.resource-item a:hover { text-decoration: underline; }

/* --- Disclaimer --- */
.disclaimer {
    font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
    padding: 20px 0; border-top: 1px solid var(--border); margin-top: 40px;
}

.disclaimer a { color: var(--accent); }

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for card grids */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }
.stagger > *:nth-child(7) { transition-delay: 0.48s; }
.stagger > *:nth-child(8) { transition-delay: 0.56s; }
.stagger > *:nth-child(9) { transition-delay: 0.64s; }
.stagger > *:nth-child(10) { transition-delay: 0.72s; }
.stagger > *:nth-child(11) { transition-delay: 0.8s; }
.stagger > *:nth-child(12) { transition-delay: 0.88s; }

/* ============================================
   QUIZ PAGE
   ============================================ */

.quiz-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 60vh;
}

/* Quiz progress bar */
.quiz-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    margin-bottom: 48px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f4a0a0);
    border-radius: 2px;
    transition: width 0.5s var(--ease-out);
    box-shadow: 0 0 12px var(--accent-glow);
}

.quiz-step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Quiz question */
.quiz-question {
    display: none;
    animation: quizFadeIn 0.4s var(--ease-out);
}

.quiz-question.active { display: block; }

@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-question h2 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 32px;
    text-align: center;
}

/* Quiz options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: var(--font);
    text-align: left;
    width: 100%;
    position: relative;
}

.quiz-option:hover {
    border-color: var(--accent);
    background: rgba(232,111,111,0.05);
    color: var(--text);
    transform: translateX(4px);
}

.quiz-option.selected {
    border-color: var(--accent);
    background: rgba(232,111,111,0.1);
    color: var(--text);
    box-shadow: 0 0 20px rgba(232,111,111,0.1);
}

.quiz-option-marker {
    width: 20px; height: 20px;
    border: 2px solid var(--border-hover);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.quiz-option.selected .quiz-option-marker {
    border-color: var(--accent);
    background: var(--accent);
}

.quiz-option.selected .quiz-option-marker::after {
    content: '';
    width: 6px; height: 6px;
    background: white;
    border-radius: 50%;
}

/* Quiz navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.quiz-nav .btn { min-width: 120px; }

/* Quiz results */
.quiz-results {
    display: none;
    text-align: center;
    animation: quizFadeIn 0.6s var(--ease-out);
}

.quiz-results.active { display: block; }

.quiz-score-ring {
    width: 160px; height: 160px;
    margin: 0 auto 32px;
    position: relative;
}

.quiz-score-ring svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}

.quiz-score-ring .ring-bg {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 8;
}

.quiz-score-ring .ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1.5s var(--ease-out);
    filter: drop-shadow(0 0 8px rgba(232,111,111,0.4));
}

.quiz-score-number {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.quiz-score-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quiz-result-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.quiz-result-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 32px;
}

.quiz-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quiz-result-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 32px;
    text-align: left;
}

.quiz-result-detail h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quiz-result-detail ul {
    list-style: none;
    padding: 0;
}

.quiz-result-detail li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.quiz-result-detail li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Quiz CTA card on homepage/article pages */
.quiz-cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232,111,111,0.08) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-cta-card::before {
    content: '?';
    position: absolute;
    top: -20px; right: -10px;
    font-size: 10rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
}

.quiz-cta-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.quiz-cta-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SOCIAL PROOF
   ============================================ */

.tiktok-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 16px 8px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 24px;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.tiktok-badge:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.tiktok-badge svg { flex-shrink: 0; }

.tiktok-badge strong {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   TIKTOK VIDEO PREVIEWS
   ============================================ */

.tiktok-section {
    padding: 80px 0;
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.tiktok-preview {
    position: relative;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center top;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 9 / 14;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.tiktok-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, transparent 65%);
    z-index: 1;
    transition: all 0.4s;
}

.tiktok-preview:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.1) 70%);
}

.tiktok-preview:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(232,111,111,0.2);
}

.tiktok-preview-views {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: 20px;
}

.tiktok-preview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.15);
    opacity: 0;
}

.tiktok-preview:hover .tiktok-preview-play {
    opacity: 1;
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.05);
}

.tiktok-preview-play svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-left: 3px;
}

.tiktok-preview-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.tiktok-preview-hook {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.tiktok-preview-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .tiktok-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .tiktok-preview-hook {
        font-size: 0.8rem;
    }
    .tiktok-preview-sub {
        font-size: 0.7rem;
    }
    .tiktok-preview-play {
        width: 44px;
        height: 44px;
    }
    .tiktok-preview-play svg {
        width: 16px;
        height: 16px;
    }
    .tiktok-preview-content {
        padding: 14px;
    }
    .tiktok-preview-views {
        font-size: 0.65rem;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }
}

@media (max-width: 480px) {
    .tiktok-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .tiktok-preview-hook {
        font-size: 0.65rem;
    }
    .tiktok-preview-sub {
        display: none;
    }
    .tiktok-preview-play {
        width: 32px;
        height: 32px;
    }
    .tiktok-preview-play svg {
        width: 12px;
        height: 12px;
    }
    .tiktok-preview-content {
        padding: 10px;
    }
    .tiktok-preview-views {
        font-size: 0.6rem;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }
}

/* ============================================
   VISUAL STAT BARS
   ============================================ */

.stat-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-block-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-bar-wrap {
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    height: 32px;
    overflow: hidden;
    position: relative;
}

.stat-bar {
    height: 100%;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    transition: width 1.5s var(--ease-out);
    white-space: nowrap;
}

.stat-bar.homeschool {
    background: linear-gradient(135deg, var(--accent), #c44d4d);
    width: 87%;
}

.stat-bar.public {
    background: rgba(255,255,255,0.12);
    width: 50%;
    color: var(--text-secondary);
}

.stat-block-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-block-number.accent {
    color: var(--accent);
}

.stat-block-number.muted {
    color: var(--text-muted);
}

.stat-block-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .stat-comparison {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Utility --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }

/* --- Wall --- */
.wall-hero {
    padding: 8rem 0 3rem;
    text-align: center;
}
.wall-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.wall-hero-sub {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.wall-ticker {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wall-toast-container {
    position: relative;
    width: 100%;
    max-width: 520px;
}
.wall-toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: border-color 0.3s var(--ease-out);
    box-shadow: 0 0 30px rgba(232, 111, 111, 0.08);
    animation: toast-in 0.5s var(--ease-out) forwards;
    text-align: left;
}
.wall-toast:hover {
    border-color: var(--accent);
}
.wall-toast.toast-out {
    animation: toast-out 0.4s var(--ease-out) forwards;
}
.wall-toast-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.wall-toast-body {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}
.wall-toast-body .read-more {
    color: var(--accent);
    font-weight: 500;
    margin-left: 0.25rem;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}
.wall-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 640px;
    margin: 0 auto;
}
.wall-form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.wall-form-sub {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.wall-form-card textarea {
    width: 100%;
    min-height: 140px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font), sans-serif;
    font-size: 0.95rem;
    padding: 1rem;
    resize: vertical;
    transition: border-color 0.2s;
    line-height: 1.6;
    box-sizing: border-box;
}
.wall-form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.wall-form-card textarea::placeholder {
    color: var(--text-muted);
}
.wall-form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.wall-roles {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.wall-role {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font), sans-serif;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.wall-role:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}
.wall-role.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}
.wall-char-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.wall-char-count.near-limit {
    color: var(--accent);
}
.wall-submit {
    width: 100%;
    margin-bottom: 0.75rem;
}
.wall-form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.wall-form-success {
    text-align: center;
    padding: 2rem 0;
}
.wall-success-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.wall-form-success h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.wall-form-success p {
    color: var(--text-secondary);
}
.wall-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
.wall-card {
    break-inside: avoid;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s var(--ease-out);
}
.wall-card:hover {
    border-color: rgba(232, 111, 111, 0.3);
}
.wall-card-role {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.wall-card-text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.wall-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}
.wall-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.wall-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.wall-react-btn:hover:not(.reacted) {
    border-color: var(--accent);
    color: var(--text);
    transform: scale(1.05);
}
.wall-react-btn .react-emoji {
    font-size: 1rem;
    line-height: 1;
}
.wall-react-btn.reacted {
    border-color: rgba(232, 111, 111, 0.3);
    color: var(--accent);
    cursor: pointer;
    opacity: 0.7;
}
.wall-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wall-share-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}
.wall-share-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}
.wall-share-btn svg {
    display: block;
}
@media (max-width: 900px) {
    .wall-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .wall-grid { column-count: 1; }
    .wall-form-card { padding: 1.5rem; }
    .wall-hero { padding: 6rem 0 2rem; }
}

/* --- Print --- */
@media print {
    .nav, .footer, .cta-banner, .mobile-menu, .reading-progress { display: none; }
    body { background: #fff; color: #000; }
    body::after { display: none; }
    .hero, .article-hero { background: none; padding-top: 20px; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}
