/* ============================================
   Facebook Ads Workshop - Shared Design System
   ============================================ */

:root {
    /* Brand Colors */
    --primary: #667eea;
    --primary-dark: #764ba2;
    --primary-light: #A29BFE;
    --secondary: #00CEC9;
    --green: #22c55e;
    --yellow: #ffd93d;
    --orange: #f97316;
    --red: #D63031;

    /* Text Colors */
    --bg: #F8F9FA;
    --bg-dark: #2D3436;
    --ink: #2d1b69;
    --muted: #6b5b7a;
    --white: #ffffff;

    /* UI Colors */
    --line: #e2e8f0;
    --card: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius: 20px;
    --radius-sm: 14px;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   Hero / Page Header
   ============================================ */

.hero,
.page-header {
    padding: 50px 32px 60px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero h1,
.page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.hero p,
.page-header p {
    opacity: 0.92;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    font-size: 0.88rem;
    color: var(--white);
}

.breadcrumb a {
    color: var(--yellow);
    font-weight: 600;
}

.breadcrumb span {
    opacity: 0.7;
    margin: 0 8px;
}

/* ============================================
   Layout
   ============================================ */

.wrap {
    width: min(960px, 94vw);
    margin: 0 auto;
    padding: 30px 0 50px;
}

/* ============================================
   Tags / Pills / Meta
   ============================================ */

.tags,
.meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tag,
.pill {
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--white);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tag a,
.pill a {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ============================================
   Overview Box
   ============================================ */

.overview-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    margin: 25px 0;
}

.overview-box h2 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.overview-box p {
    opacity: 0.94;
    line-height: 1.85;
}

/* ============================================
   Section Heading
   ============================================ */

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 40px 0 18px;
}

.section-heading::before {
    content: '';
    width: 5px;
    height: 28px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--yellow), var(--orange));
    flex-shrink: 0;
}

.section-heading h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

/* ============================================
   Table of Contents
   ============================================ */

.toc {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 18px;
}

.toc h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--ink);
}

.toc-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-grid a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.toc-grid a:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.toc-grid strong {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* ============================================
   Steps / Sections
   ============================================ */

.step,
.section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px;
    margin: 18px 0;
    box-shadow: var(--shadow);
    scroll-margin-top: 80px;
    transition: var(--transition);
}

.step:hover,
.section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.step h3,
.section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
}

.time-tag,
.stamp {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

/* ============================================
   Step / Section Grid
   ============================================ */

.step-grid,
.section-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    margin-top: 14px;
}

@media (min-width: 920px) {

    .step-grid,
    .section-grid {
        grid-template-columns: 1.15fr 1fr;
    }
}

/* ============================================
   Figures
   ============================================ */

figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
}

figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

figcaption {
    padding: 10px 14px;
    font-size: 0.86rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: var(--white);
    line-height: 1.6;
}

/* ============================================
   Point Boxes
   ============================================ */

.point-box,
.box,
.box-detail {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-radius: 14px;
    padding: 18px;
    border: 1px dashed rgba(102, 126, 234, 0.3);
}

.point-box h4,
.box h4,
.box-detail h5 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.point-box ul,
.box ul,
.box-detail ul {
    margin: 0;
    padding-left: 20px;
}

.point-box li,
.box li,
.box-detail li {
    margin: 5px 0;
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ============================================
   Quote Block
   ============================================ */

.quote-block {
    margin: 10px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--primary);
    background: rgba(102, 126, 234, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 0.91rem;
}

/* ============================================
   Note / End Boxes
   ============================================ */

.note-box,
.end {
    border-left: 5px solid var(--yellow);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 18px 22px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 25px 0;
}

.note-box p,
.end p {
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ============================================
   Navigation Buttons
   ============================================ */

.page-nav,
.nav-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-btn,
.nav-bar a {
    padding: 14px 28px;
    background: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex: 1;
    text-align: center;
    max-width: 280px;
    font-size: 0.93rem;
    color: var(--ink);
}

.nav-btn:hover,
.nav-bar a:hover {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ============================================
   Video Embed
   ============================================ */

.video-embed {
    margin: 22px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #000;
}

.video-wrapper {
    display: block;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    cursor: pointer;
    text-decoration: none;
}

.video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 0 16px 28px;
    border-color: transparent transparent transparent var(--white);
    margin-left: 6px;
}

.video-wrapper:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.video-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #111;
    color: #ccc;
    font-size: 0.9rem;
}

.video-caption a {
    color: #6cb8ff;
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   Hero Description
   ============================================ */

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Card (generic)
   ============================================ */

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================
   Highlight Box
   ============================================ */

.highlight-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.highlight-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.highlight-box ul {
    padding-left: 20px;
}

.highlight-box li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.highlight-box strong {
    color: var(--yellow);
}

/* ============================================
   Links Grid & Link Card
   ============================================ */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.link-card {
    background: var(--white);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.link-icon {
    font-size: 1.5rem;
}

.link-card .text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 700;
}

.link-card .text span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ============================================
   Badge
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--yellow);
    margin-top: 10px;
}

/* ============================================
   Topic Number (for index page topic cards)
   ============================================ */

.topic-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
}

/* ============================================
   Footer
   ============================================ */

footer {
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 32px;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: var(--yellow);
    font-weight: 600;
}

/* ============================================
   Responsive — Index Page
   ============================================ */

@media (max-width: 768px) {
    .topic-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Navbar Scroll State
   ============================================ */

.navbar.scrolled {
    background: rgba(102, 126, 234, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

/* Logo alias — matches .nav-brand */
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   Theme Overrides
   ============================================ */

/* Orange theme (prep-facebook-data, 2024-ep series) */
body.theme-orange {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #0ea5e9;
}

body.theme-orange .navbar {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

body.theme-orange .navbar.scrolled {
    background: rgba(249, 115, 22, 0.92);
}

/* Purple theme (ep1, facebook_all) */
body.theme-purple {
    --primary: #6C5CE7;
    --primary-dark: #5849BE;
    --primary-light: #A29BFE;
    --secondary: #00CEC9;
    --green: #00B894;
    --yellow: #FDCB6E;
    --orange: #E17055;
    --ink: #2D3436;
    --muted: #636E72;
    --line: #DFE6E9;
}

body.theme-purple .navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   Standalone Page Components (Group A)
   ============================================ */

/* Card pattern — used by topic-card, calc-card, tool-card */
.topic-card,
.calc-card,
.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.topic-card:hover,
.calc-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Card header */
.topic-header,
.calc-header,
.tool-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* Card icon */
.topic-icon,
.calc-icon,
.tool-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.tool-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 1.8rem;
}

/* Icon gradient variants */
.topic-icon.ai,
.tool-logo.antigravity {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.topic-icon.auto,
.calc-icon.profit {
    background: linear-gradient(135deg, #00D9A5, #059669);
}

.topic-icon.fast,
.calc-icon.roas {
    background: linear-gradient(135deg, #4D96FF, #3B82F6);
}

.topic-icon.scale,
.calc-icon.price,
.tool-logo.automation {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.topic-icon.\32 4h,
.calc-icon.cost,
.tool-logo.voice {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.calc-icon.break,
.tool-logo.midjourney {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.calc-icon.formula {
    background: linear-gradient(135deg, #E1306C, #C13584);
}

.tool-logo.chatgpt {
    background: linear-gradient(135deg, #10A37F, #1A7F5A);
}

.tool-logo.claude {
    background: linear-gradient(135deg, #D4A574, #8B6914);
}

/* Card title */
.topic-title h3,
.calc-title h3,
.tool-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.topic-title .tagline,
.calc-title .tagline,
.tool-title .tagline {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Card content area */
.topic-content,
.calc-content,
.tool-content {
    padding: 14px 16px;
    background: #f8f0fb;
    border-radius: 14px;
    margin-top: 14px;
}

.topic-content h4,
.calc-content h4,
.tool-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.topic-content ul,
.calc-content ul,
.tool-content ul {
    padding-left: 18px;
}

.topic-content li,
.calc-content li,
.tool-content li {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.tool-content li {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

/* Time badge */
.time-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Status badge */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f0e4f3;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 14px;
}

/* Cost save badge */
.cost-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 12px;
}

/* Links grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.link-card {
    background: var(--white);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.link-icon {
    font-size: 1.3rem;
}

.link-card .text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 700;
}

.link-card .text span {
    font-size: 0.7rem;
    color: var(--muted);
}

/* Highlight box (ai-tools-business) */
.highlight-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.highlight-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.highlight-box ul {
    padding-left: 20px;
}

.highlight-box li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.highlight-box strong {
    color: var(--yellow);
}

.highlight-box .saving {
    color: var(--secondary);
    font-weight: 700;
}

/* Hero description */
.hero-desc {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Prep Page Components (Group D)
   ============================================ */

/* Step number badge */
.step-num {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    color: var(--primary-dark);
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.step-content {
    margin-top: 14px;
}

.step-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.step-content li {
    margin: 6px 0;
    font-size: 0.93rem;
    line-height: 1.7;
}

/* Tip box */
.tip-box {
    margin: 15px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(0, 206, 201, 0.05));
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tip-box h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.tip-box p,
.tip-box ul {
    font-size: 0.9rem;
    color: var(--muted);
}

.tip-box ul {
    padding-left: 20px;
    margin: 6px 0;
}

.tip-box li {
    margin: 4px 0;
}

/* Warning box */
.warning-box {
    margin: 15px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--red);
    background: rgba(214, 48, 49, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.warning-box h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: var(--red);
    font-weight: 700;
}

.warning-box p {
    font-size: 0.9rem;
}

/* Checklist */
.checklist {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    transition: var(--transition);
}

.checklist li:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.checklist .check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

/* Formula box (pricing page) */
.formula-box {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: var(--shadow);
}

.formula-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.formula-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0e4f3;
}

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

.formula-item .label {
    font-size: 0.9rem;
    color: var(--muted);
}

.formula-item .value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.formula-item.total {
    background: #f0e4f3;
    margin: 0 -20px -20px;
    padding: 16px 20px;
    border-radius: 0 0 16px 16px;
}

.formula-item.total .label {
    font-weight: 700;
    color: var(--primary-dark);
}

.formula-item.total .value {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* ============================================
   Page Header Enhanced (gradient overlay)
   ============================================ */

.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.page-header h1,
.page-header p {
    position: relative;
}

/* ============================================
   Animations
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 18px;
    }

    .nav-links {
        justify-content: center;
    }

    .nav-links a {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .hero h1,
    .page-header h1 {
        font-size: 1.5rem;
    }

    .wrap {
        padding: 20px 0 35px;
    }

    .page-nav,
    .nav-bar {
        flex-direction: column;
    }

    .nav-btn,
    .nav-bar a {
        max-width: 100%;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .step-grid,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 20px 60px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .tool-header {
        flex-direction: column;
        text-align: center;
    }
}