/* ============================================================
   AISite4U — style.css
   Global stylesheet for all pages
   ============================================================ */

/* ── CSS VARIABLES — light mode ── */
:root {
    --ink: #0f0e0d;
    --bg: #f5f2ed;
    --card: #ffffff;
    --card2: #f0ece6;
    --accent: #e85c2b;
    --accent2: #2b6de8;
    --muted: #6b6760;
    --border: rgba(15,14,13,0.1);
    --nav-bg: rgba(245,242,237,0.92);
    --radius: 16px;
    --radius-sm: 8px;
    --fs-body: 16px;
    --fs-sm: 0.875rem;
    --fs-xs: 0.82rem;
    --fs-xxs: 0.75rem;
    --fs-tag: 0.72rem;
    --fs-h1-min: 2.2rem;
    --fs-h1-max: 3.2rem;
    --fs-h2-min: 1.3rem;
    --fs-h2-max: 1.75rem;
    --fs-sub: 1.05rem;
    --fs-btn: 0.9rem;
    --s1-bg: #ffffff;  --s1-side: #fff8f5;
    --s2-bg: #f0f7ff;  --s2-side: #e6f0fb;
    --s3-bg: #fff9f0;  --s3-side: #fff3e0;
    --s4-bg: #f0faf4;  --s4-side: #e3f5ea;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
    --ink: #e8e4de;
    --bg: #181715;
    --card: #242220;
    --card2: #2c2a27;
    --muted: #9a9690;
    --border: rgba(232,228,222,0.1);
    --nav-bg: rgba(24,23,21,0.92);
    --s1-bg: #1e1d1b;  --s1-side: #242220;
    --s2-bg: #1a1f2e;  --s2-side: #1e2535;
    --s3-bg: #24201a;  --s3-side: #2a2418;
    --s4-bg: #182018;  --s4-side: #1c2620;
}

/* ── TEXT SIZE — large ── */
[data-size="large"] {
    --fs-body: 19px;
    --fs-sm: 1.05rem;
    --fs-xs: 0.98rem;
    --fs-xxs: 0.88rem;
    --fs-tag: 0.85rem;
    --fs-h1-min: 2.6rem;
    --fs-h1-max: 3.6rem;
    --fs-h2-min: 1.55rem;
    --fs-h2-max: 2.1rem;
    --fs-sub: 1.2rem;
    --fs-btn: 1.05rem;
}

/* ── TEXT SIZE — largest ── */
[data-size="largest"] {
    --fs-body: 22px;
    --fs-sm: 1.2rem;
    --fs-xs: 1.1rem;
    --fs-xxs: 1rem;
    --fs-tag: 0.95rem;
    --fs-h1-min: 2.9rem;
    --fs-h1-max: 4rem;
    --fs-h2-min: 1.8rem;
    --fs-h2-max: 2.4rem;
    --fs-sub: 1.35rem;
    --fs-btn: 1.15rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: var(--fs-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background .3s, color .3s;
}

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 clamp(1rem,5vw,3rem);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .3s;
}
.nav-logo { font-family: 'Inter',sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin-left: auto; }
.nav-links a { font-size: var(--fs-sm); color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 8px 18px; border-radius: 999px; font-size: 0.8rem !important; font-weight: 500; }
.nav-cta:hover { background: #cf4e22 !important; }
.settings-toggle { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; cursor: pointer; font-size: 1rem; color: var(--ink); transition: background .2s, border-color .2s; line-height: 1; }
.settings-toggle:hover { background: var(--card2); border-color: var(--accent); }

/* ── HAMBURGER (mobile only) ── */
.hamburger { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 1.2rem; color: var(--ink); line-height: 1; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); z-index: 99; padding: 1rem clamp(1rem,5vw,2rem); flex-direction: column; gap: 4px; box-shadow: 0 8px 24px rgba(15,14,13,.12); }
.mobile-nav.open { display: flex; }
.mobile-nav a { display: block; padding: 10px 12px; font-size: var(--fs-sm); color: var(--ink); text-decoration: none; border-radius: 8px; transition: background .15s; }
.mobile-nav a:hover { background: var(--card2); }
.mobile-nav .mobile-nav-cta { background: var(--accent); color: #fff !important; border-radius: 999px; text-align: center; margin-top: 6px; padding: 10px; }
.mobile-nav-section { font-size: 0.7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.mobile-nav-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.mobile-settings-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
.mobile-settings-label { font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── SETTINGS PANEL ── */
.settings-panel { position: fixed; top: 60px; right: 0; width: auto; min-width: 280px; max-height: 0; overflow: hidden; background: var(--card2); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(15,14,13,.12); z-index: 99; transition: max-height .3s ease, background .3s; }
.settings-panel.open { max-height: 120px; }
.settings-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 12px clamp(1rem,5vw,3rem); justify-content: flex-end; }
.settings-group { display: flex; align-items: center; gap: 10px; }
.settings-label { font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.settings-divider { width: 1px; height: 24px; background: var(--border); }
.size-btns { display: flex; gap: 4px; }
.size-btn { background: var(--card); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-family: 'DM Sans',sans-serif; color: var(--ink); transition: background .2s, border-color .2s; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.size-btn:hover { background: var(--card2); border-color: var(--accent); }
.size-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.size-btn[data-val="normal"] { font-size: 13px; padding: 5px 10px; }
.size-btn[data-val="large"]  { font-size: 15px; padding: 5px 10px; }
.size-btn[data-val="largest"]{ font-size: 18px; padding: 4px 10px; }
.a11y-btn { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 5px 11px; cursor: pointer; font-family: 'DM Sans',sans-serif; color: var(--ink); transition: background .2s, border-color .2s; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; line-height: 1; font-size: 0.8rem; }
.a11y-btn:hover { background: var(--card2); border-color: var(--accent); }
.a11y-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── NAV DROPDOWNS ── */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown { display: none; position: fixed; top: 60px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); min-width: 220px; z-index: 98; box-shadow: 0 8px 24px rgba(15,14,13,.12); padding: 6px 0; }
.nav-dropdown-wrap.open .nav-dropdown { display: block; }
.nav-dropdown-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 4px; }
.nav-dropdown a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: var(--fs-xxs); color: var(--ink); text-decoration: none; transition: background .15s; white-space: nowrap; }
.nav-dropdown a:hover { background: var(--card2); color: var(--accent); }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ══════════════════════════════════════════════════════
   HERO (prompt/how-to pages)
══════════════════════════════════════════════════════ */
.page-hero { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; background: center/cover no-repeat; padding: clamp(3rem,7vw,6rem) clamp(1rem,5vw,3rem); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.65); z-index: 0; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 1; width: 90%; max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.topic-badge { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-tag); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); padding: 5px 14px; border-radius: 999px; margin-bottom: 1.2rem; backdrop-filter: blur(4px); }
.page-title { font-family: 'Inter',sans-serif; font-weight: 800; font-size: clamp(var(--fs-h1-min),4vw,var(--fs-h1-max)); line-height: 1.08; letter-spacing: -0.03em; color: #fff; margin-bottom: .9rem; text-align: center; max-width: 100%; }
.page-intro { font-size: var(--fs-sub); color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 100%; margin-bottom: 1.5rem; text-align: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.hero-btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 500; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s; font-family: 'DM Sans',sans-serif; border: none; }
.hero-btn-primary { background: var(--accent); color: #fff; }
.hero-btn-primary:hover { background: #cf4e22; transform: translateY(-2px); }
.hero-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.hero-btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; justify-content: center; }
.hero-meta span { font-size: var(--fs-xxs); color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 5px; }

/* ══════════════════════════════════════════════════════
   HOMEPAGE HERO
══════════════════════════════════════════════════════ */
.home-hero { position: relative; width: 100%; height: 420px; background: center/cover no-repeat; }
.hero { min-height: 80vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding: clamp(3rem,8vh,6rem) clamp(1rem,5vw,3rem); max-width: 1200px; margin: 0 auto; }
.hero-text { animation: fadeUp .7s ease both; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-tag); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: rgba(232,92,43,0.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 1.5rem; }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
h1 { font-family: 'Inter',sans-serif; font-weight: 800; font-size: clamp(2.4rem,5vw,3.8rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 480px; margin-bottom: 1rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--ink); color: #fff; padding: 14px 28px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: background .2s, transform .15s; display: inline-block; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-secondary { color: var(--ink); font-size: 0.9rem; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.btn-secondary::after { content: '→'; transition: transform .2s; }
.btn-secondary:hover::after { transform: translateX(4px); }
.hero-visual { animation: fadeUp .7s .15s ease both; }
.prompt-cards { display: flex; flex-direction: column; gap: 12px; }
.prompt-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: transform .2s, box-shadow .2s, background .3s; }
.prompt-card:hover { transform: translateX(6px); box-shadow: -4px 4px 0 var(--accent); }
.prompt-card-tag { font-size: var(--fs-tag); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; display: inline-block; padding: 3px 9px; border-radius: 999px; }
.tag-health { background: rgba(43,109,232,0.1); color: var(--accent2); }
.tag-legal  { background: rgba(232,92,43,0.1); color: var(--accent); }
.tag-tax    { background: rgba(15,14,13,0.07); color: var(--muted); }
[data-theme="dark"] .tag-tax { background: rgba(232,228,222,0.08); }
.prompt-card p { font-size: var(--fs-xs); color: var(--ink); line-height: 1.5; }
.prompt-card .drill { font-size: calc(var(--fs-xs) - 0.06rem); color: var(--muted); margin-top: 6px; font-style: italic; }

/* ══════════════════════════════════════════════════════
   SECTION STRIPES
══════════════════════════════════════════════════════ */
.stripe { width: 100%; transition: background .3s; }
.stripe-inner { width: 90%; max-width: 1400px; margin: 0 auto; padding: clamp(2rem,5vw,4.5rem) clamp(1rem,3vw,2rem); }

/* ── SPLIT GRID ── */
.split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:768px) {
    .split { grid-template-columns: 3fr 1fr; gap: 3rem; align-items: start; }
    .split.flipped { grid-template-columns: 1fr 3fr; }
    .split.flipped .split-main { order: 2; }
    .split.flipped .split-side { order: 1; }
    .stripe-inner { width: 85%; }
}
.split-side { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; position: sticky; top: 80px; font-size: var(--fs-xs); transition: background .3s; }
.side-title { font-family: 'Inter',sans-serif; font-weight: 700; font-size: var(--fs-xs); margin-bottom: 10px; color: var(--ink); }
.side-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.side-links a { color: var(--muted); text-decoration: none; font-size: var(--fs-xxs); display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; transition: background .15s, color .15s; }
.side-links a:hover { background: var(--card2); color: var(--accent); }
.side-links a::before { content: '#'; opacity: .35; font-weight: 700; }
.side-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.side-cta { display: block; text-align: center; background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 14px; font-size: var(--fs-xxs); font-weight: 500; text-decoration: none; transition: background .2s; }
.side-cta:hover { background: #cf4e22; }
.s1 { background: var(--s1-bg); } .s1 .split-side { background: var(--s1-side); }
.s2 { background: var(--s2-bg); } .s2 .split-side { background: var(--s2-side); }
.s3 { background: var(--s3-bg); } .s3 .split-side { background: var(--s3-side); }
.s4 { background: var(--s4-bg); } .s4 .split-side { background: var(--s4-side); }

/* ── SECTION HEADINGS ── */
.sec-label { font-size: var(--fs-tag); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.sec-title { font-family: 'Inter',sans-serif; font-weight: 800; font-size: clamp(var(--fs-h2-min),2.5vw,var(--fs-h2-max)); letter-spacing: -0.02em; margin-bottom: .5rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-sub { color: var(--muted); font-size: var(--fs-xs); margin-bottom: 1.5rem; line-height: 1.7; }

/* ── PROMPT BOXES ── */
.prompt-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; transition: background .3s; }
[data-theme="dark"] .prompt-box { background: var(--card2); }
.prompt-header { padding: 16px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prompt-label { font-size: var(--fs-xxs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.prompt-text { font-size: var(--fs-xs); color: var(--ink); line-height: 1.6; flex: 1; font-style: italic; min-width: 0; }

/* ── TYPEABLE PLACEHOLDERS ── */
.prompt-input { display: inline-block; background: rgba(232,92,43,0.08); border: 1px dashed rgba(232,92,43,0.5); border-radius: 6px; padding: 2px 8px; font-size: inherit; font-family: 'DM Sans',sans-serif; font-style: italic; color: var(--accent); outline: none; transition: background .2s, border-color .2s, color .2s; min-width: 60px; max-width: 100%; vertical-align: baseline; }
.prompt-input:focus { background: rgba(232,92,43,0.14); border-color: var(--accent); border-style: solid; color: var(--ink); font-style: normal; }
.prompt-input:not(:placeholder-shown) { background: rgba(43,109,232,0.08); border-color: rgba(43,109,232,0.4); border-style: solid; color: var(--accent2); font-style: normal; }
[data-theme="dark"] .prompt-input { background: rgba(232,92,43,0.12); }

/* ── DRILL BOXES ── */
.drill-box { background: rgba(232,92,43,0.05); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 14px; margin-bottom: 10px; }
[data-theme="dark"] .drill-box { background: rgba(232,92,43,0.08); }
.drill-label { font-size: var(--fs-xxs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.drill-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; margin-bottom: 6px; flex-wrap: wrap; }
.drill-item:last-child { margin-bottom: 0; }
.drill-item span { flex: 1; min-width: 0; }

/* ── AI LAUNCHER ── */
.copy-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.copy-btn { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 7px 14px; font-size: var(--fs-xxs); font-weight: 600; cursor: pointer; font-family: 'DM Sans',sans-serif; white-space: nowrap; transition: background .2s; display: inline-flex; align-items: center; gap: 5px; }
.copy-btn::after { content: '▾'; font-size: 10px; opacity: .8; }
.copy-btn:hover { background: #cf4e22; }
.copy-btn.copied { background: #16a34a; }
.copy-btn.copied::after { content: ''; }
.ai-dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); min-width: 190px; z-index: 999; box-shadow: 0 8px 24px rgba(15,14,13,.12); }
.copy-wrap:hover .ai-dropdown, .copy-wrap:focus-within .ai-dropdown { display: block; }
.ai-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: var(--fs-xxs); font-weight: 500; color: var(--ink); background: none; border: none; width: 100%; text-align: left; font-family: 'DM Sans',sans-serif; transition: background .15s; }
.ai-option:hover { background: var(--card2); }
.ai-option:not(:last-child) { border-bottom: 1px solid var(--border); }
.ai-logo { font-size: 1rem; width: 20px; text-align: center; }
.ai-name { flex: 1; }
.ai-arrow { font-size: 10px; opacity: .4; }
.ai-dropdown-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 4px; }
.try-row { display: none; }

/* ── HOW-TO COLLAPSE ── */
.howto-collapse { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.howto-toggle { width: 100%; background: rgba(232,92,43,0.06); border: none; padding: 10px 14px; text-align: left; font-size: var(--fs-xxs); font-weight: 700; color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-family: 'DM Sans',sans-serif; transition: background .2s; }
.howto-toggle:hover { background: rgba(232,92,43,0.12); }
.howto-chevron { transition: transform .25s; display: inline-block; }
.howto-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.howto-body ol { padding: 10px 14px 12px 2rem; font-size: var(--fs-xxs); color: var(--muted); line-height: 1.9; }
.howto-body p { padding: 0 14px 12px; font-size: var(--fs-xxs); color: var(--muted); line-height: 1.6; }
.howto-collapse.open .howto-chevron { transform: rotate(180deg); }
.howto-collapse.open .howto-body { max-height: 300px; }

/* ── MODALS ── */
.modal { display: none; position: fixed; inset: 0; z-index: 500; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,14,13,.6); backdrop-filter: blur(4px); }
.modal-box { position: relative; z-index: 1; background: var(--card); border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 2rem; box-shadow: 0 20px 60px rgba(15,14,13,.2); transition: background .3s; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--card2); border: 1px solid var(--border); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; color: var(--muted); transition: background .2s, color .2s; line-height: 1; }
.modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.modal-title { font-family: 'Inter',sans-serif; font-weight: 800; font-size: clamp(1.2rem,3vw,1.5rem); letter-spacing: -0.02em; margin-bottom: .75rem; }
.modal-body { font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }
.modal-body p { margin-bottom: .75rem; }
.modal-body ul { margin-left: 1.2rem; margin-bottom: .75rem; }
.modal-body li { margin-bottom: .4rem; }
.modal-body strong { color: var(--ink); font-weight: 500; }
.modal-body .highlight { background: rgba(43,109,232,0.08); border-left: 3px solid var(--accent2); border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 12px 0; font-size: var(--fs-xxs); }
[data-theme="dark"] .modal-body .highlight { background: rgba(43,109,232,0.12); }
.modal-body .step-list { list-style: none; margin-left: 0; counter-reset: steps; }
.modal-body .step-list li { counter-increment: steps; padding-left: 2rem; position: relative; margin-bottom: .6rem; }
.modal-body .step-list li::before { content: counter(steps); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--accent2); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.how-to-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: var(--fs-xxs); font-weight: 500; color: var(--accent2); text-decoration: none; border: 1px solid rgba(43,109,232,0.3); border-radius: 999px; padding: 6px 14px; transition: background .2s, color .2s; }
.how-to-link:hover { background: var(--accent2); color: #fff; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal.open .modal-box { animation: modalIn .25s ease both; }

/* ── EMAIL CAPTURE BAND ── */
.capture-band { background: var(--ink); color: #fff; padding: clamp(2rem,4vw,3rem) clamp(1rem,5vw,3rem); transition: background .3s; }
[data-theme="dark"] .capture-band { background: var(--card2); }
.capture-inner { max-width: 660px; margin: 0 auto; text-align: center; }
.capture-inner h3 { font-family: 'Inter',sans-serif; font-weight: 700; font-size: clamp(1.1rem,2.5vw,1.6rem); letter-spacing: -0.02em; margin-bottom: .5rem; color: #fff; }
[data-theme="dark"] .capture-inner h3 { color: var(--ink); }
.capture-inner p { color: rgba(255,255,255,.6); font-size: var(--fs-xs); margin-bottom: 1.5rem; }
[data-theme="dark"] .capture-inner p { color: var(--muted); }
.capture-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.capture-form input[type="email"] { flex: 1; min-width: 200px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: var(--fs-xs); font-family: 'DM Sans',sans-serif; background: rgba(255,255,255,.1); color: #fff; outline: none; transition: border-color .2s; }
.capture-form input::placeholder { color: rgba(255,255,255,.4); }
.capture-form input:focus { border-color: var(--accent); }
.capture-form button { background: var(--accent); color: #fff; border: none; padding: 11px 24px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 500; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: background .2s; width: 100%; }
.capture-form button:hover { background: #cf4e22; }
.capture-note { font-size: var(--fs-xxs); color: rgba(255,255,255,.3); margin-top: 10px; }
[data-theme="dark"] .capture-note { color: var(--muted); }

/* ── EMAIL CAPTURE STRIP (homepage) ── */
.capture-strip { background: var(--ink); color: #fff; padding: clamp(2.5rem,5vw,4rem) clamp(1rem,5vw,3rem); transition: background .3s; }
[data-theme="dark"] .capture-strip { background: var(--card2); }
.brevo-form-wrap { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.brevo-form-wrap input[type="email"] { flex: 1; min-width: 220px; padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: var(--fs-sm); font-family: 'DM Sans',sans-serif; background: rgba(255,255,255,.1); color: #fff; outline: none; transition: border-color .2s; }
.brevo-form-wrap input::placeholder { color: rgba(255,255,255,.4); }
.brevo-form-wrap input:focus { border-color: var(--accent); }
.brevo-form-wrap button { background: var(--accent); color: #fff; border: none; padding: 13px 26px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: background .2s; }
.brevo-form-wrap button:hover { background: #cf4e22; }
.form-note { font-size: var(--fs-xxs); color: rgba(255,255,255,.35); margin-top: 12px; }

/* ── INLINE CAPTURE (homepage sections) ── */
.inline-capture { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; transition: background .3s; }
.inline-capture h3 { font-family: 'Inter',sans-serif; font-weight: 700; font-size: var(--fs-sm); }
.inline-capture p { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input[type="email"] { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: var(--fs-xs); font-family: 'DM Sans',sans-serif; background: var(--bg); color: var(--ink); outline: none; min-width: 200px; transition: border-color .2s, background .3s; }
.inline-form input:focus { border-color: var(--accent); }
.inline-form button { background: var(--ink); color: #fff; border: none; padding: 10px 22px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 500; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: background .2s; }
.inline-form button:hover { background: var(--accent); }

/* ── HOMEPAGE SECTIONS ── */
.section { padding: clamp(3rem,6vw,5rem) clamp(1rem,5vw,3rem); max-width: 1200px; margin: 0 auto; }
.section-label { font-size: var(--fs-tag); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.section-title { font-family: 'Inter',sans-serif; font-weight: 700; font-size: clamp(1.6rem,3vw,2.2rem); letter-spacing: -0.025em; margin-bottom: .75rem; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 540px; margin-bottom: 2.5rem; }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 14px; }
.topic-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, background .3s; position: relative; overflow: hidden; }
.topic-card::after { content: '→'; position: absolute; bottom: 20px; right: 20px; font-size: 1.1rem; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(15,14,13,.08); }
.topic-card:hover::after { opacity: 1; transform: translateX(0); }
.topic-icon { font-size: 1.6rem; margin-bottom: 12px; }
.topic-name { font-family: 'Inter',sans-serif; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; }
.topic-desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; flex: 1; }
.topic-count { font-size: var(--fs-tag); color: var(--accent); font-weight: 600; margin-top: 14px; }
.lessons-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 14px; }
.lesson-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); display: flex; gap: 16px; align-items: flex-start; transition: transform .2s, box-shadow .2s, background .3s; }
.lesson-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,14,13,.08); }
.lesson-num { font-family: 'Inter',sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--border); line-height: 1; min-width: 32px; }
.lesson-title { font-weight: 500; font-size: var(--fs-sm); margin-bottom: 4px; }
.lesson-desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.lesson-tool { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-tag); font-weight: 600; color: var(--accent2); background: rgba(43,109,232,0.08); padding: 3px 10px; border-radius: 999px; }
[data-theme="dark"] .lesson-tool { background: rgba(43,109,232,0.18); }
.how-bg { background: var(--card); transition: background .3s; }
[data-theme="dark"] .how-bg { background: var(--card2); }
.steps-row { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); }
.step { padding: 2rem 1.5rem; border-right: 1px solid var(--border); transition: border-color .3s; }
.step:last-child { border-right: none; }
.step-n { font-family: 'Inter',sans-serif; font-weight: 800; font-size: 3rem; color: var(--border); line-height: 1; margin-bottom: 12px; }
.step-title { font-weight: 500; font-size: var(--fs-sm); margin-bottom: 6px; }
.step-text { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }

/* ── RELATED GRID ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; margin-top: 1.5rem; }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(15,14,13,.1); }
.related-icon { font-size: 1.4rem; margin-bottom: 6px; }
.related-name { font-family: 'Inter',sans-serif; font-weight: 700; font-size: var(--fs-xs); margin-bottom: 2px; }
.related-desc { font-size: calc(var(--fs-xs) - .06rem); color: var(--muted); line-height: 1.4; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 1.75rem clamp(1rem,5vw,3rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--fs-xxs); color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.5rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.7); } }

/* ── MOBILE ── */
@media(max-width:767px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .split-side { position: static; }
    .capture-form { flex-direction: column; align-items: stretch; }
    .hero-inner { width: 95%; }
    .page-hero { min-height: 320px; }
    .hero-btn { font-size: 0.78rem; padding: 9px 16px; }
    .prompt-header { flex-direction: column; }
    .copy-wrap { align-self: flex-start; }
    .footer-links { gap: 1rem; }
    footer { flex-direction: column; text-align: center; }
    .settings-panel { min-width: 100%; border-radius: 0; }
    .hero { grid-template-columns: 1fr; min-height: auto; gap: 2rem; }
    .hero-visual { display: none; }
    .steps-row { grid-template-columns: 1fr 1fr; }
    .step { border-right: none; border-bottom: 1px solid var(--border); }
    .inline-capture { flex-direction: column; }
    .home-hero { height: 280px; }
}
