/* ─────────────────────────────────────────────────────────────
   Sabiedu design system — shared skeleton, LEARN polish pass (US-004).
   Flat, editorial, engineered. One accent. Light theme ONLY.

   Token set at :root — palette (indigo #6366F1 primary, warm stone
   neutrals, red reserved for the live-cohort dot), type scale,
   spacing scale, radii, shadows. Legacy variable names (--primary,
   --bg, --surface, --text-primary, --text-secondary, --border) are
   kept as aliases so existing markup inherits the palette without
   a rewrite.

   Deliberately light-only: no prefers-color-scheme overrides.
   Per-app accent is set at the bottom via [data-app].
   ───────────────────────────────────────────────────────────── */

:root {
    /* ── surfaces (warm stone neutrals) ── */
    --bg: #fcfcfb;
    --bg-subtle: #f7f6f4;
    --surface: #ffffff;
    --surface-sunk: #f3f2ef;
    --border: #ecebe8;
    --border-strong: #dad8d3;

    /* ── ink ── */
    --ink: #211f1c;
    --muted: #6e6a63;
    --faint: #a19d95;

    /* ── accent: indigo ── */
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-ink: #ffffff;
    --accent-deep: #4338ca;
    --accent-soft: rgba(99, 102, 241, 0.08);
    --accent-line: rgba(99, 102, 241, 0.28);

    /* ── live energy (used sparingly: cohort dot only) ── */
    --live: #dc2626;
    --live-soft: #fef2f2;
    --live-line: #fecaca;

    /* ── status ── */
    --ok-bg: #ecfdf3;
    --ok-fg: #027a48;
    --ok-line: rgba(2, 122, 72, 0.18);
    --err-bg: #fef3f2;
    --err-fg: #b42318;
    --warn-bg: #fffaeb;
    --warn-fg: #b54708;

    /* ── type scale ── */
    --fs-display: clamp(38px, 5.4vw, 58px);
    --fs-h1: clamp(28px, 4vw, 38px);
    --fs-h2: clamp(25px, 3vw, 31px);
    --fs-h3: 20px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-micro: 12px;

    /* ── spacing scale ── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 72px;
    --space-9: 96px;

    /* ── shape & motion ── */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --maxw: 1120px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(33, 31, 28, 0.05), 0 1px 3px rgba(33, 31, 28, 0.04);
    --shadow: 0 4px 16px -4px rgba(33, 31, 28, 0.10), 0 2px 6px -2px rgba(33, 31, 28, 0.05);
    --shadow-lg: 0 18px 40px -12px rgba(33, 31, 28, 0.18);
    --shadow-raise: 0 8px 24px -8px rgba(99, 102, 241, 0.45);

    /* ── type (system stack — offline-safe, no external fonts) ── */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
            'Helvetica Neue', Arial, sans-serif;
    --display: var(--font);
    --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
    --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;

    /* ── legacy aliases (existing markup depends on these) ── */
    --primary: var(--accent);
    --primary-hover: var(--accent-hover);
    --neutral: var(--faint);
    --text-primary: var(--ink);
    --text-secondary: var(--muted);
    --success: var(--ok-fg);
    --warning: var(--warn-fg);
    --error: var(--err-fg);
}

/* ── base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern', 'liga', 'calt', 'cv11';
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
    font-family: var(--display);
    letter-spacing: -0.021em;
    line-height: 1.15;
    margin: 0;
}
h1 { font-weight: 700; }
h2, h3 { font-weight: 650; }
h4 { font-weight: 650; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── page scaffold (replaces dead tailwind utilities) ───────── */
.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}
.page > main { flex: 1; width: 100%; }
.page-main, .page-main-wide, .page-main-sm, .page-main-xs {
    width: 100%;
    margin: 0 auto;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}
.page-main       { max-width: 920px;  padding-top: var(--space-7); padding-bottom: var(--space-9); }
.page-main-wide  { max-width: 1040px; padding-top: var(--space-7); padding-bottom: var(--space-9); }
.page-main-sm    { max-width: 620px;  padding-top: var(--space-8); padding-bottom: var(--space-9); }
.page-main-xs    { max-width: 460px;  padding-top: var(--space-8); padding-bottom: var(--space-9); }

.page-title {
    font-family: var(--display);
    font-size: var(--fs-h1);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0;
}
.page-sub {
    font-size: var(--fs-body);
    color: var(--muted);
    line-height: 1.65;
    margin: 10px 0 var(--space-5);
    max-width: 60ch;
}
.subtle { color: var(--muted); font-size: 14.5px; }
.stack  { display: flex; flex-direction: column; gap: var(--space-4); }
.row    { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.row-tight { gap: var(--space-2); margin-top: var(--space-3); }
.center-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
}
.field-group { display: flex; flex-direction: column; gap: var(--space-3); }
.auth-line { font-size: var(--fs-small); color: var(--muted); margin: 14px 0 0; }
.form-err { color: var(--err-fg); font-size: var(--fs-small); margin: var(--space-2) 0 0; }
.warn-note { font-size: var(--fs-small); color: var(--warn-fg); margin: 0 0 var(--space-4); }
.fine { font-size: 12.5px; color: var(--faint); line-height: 1.6; margin: var(--space-2) 0 0; }
.link { color: var(--accent); font-weight: 550; }
.link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pill-ok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
    color: var(--ok-fg);
    background: var(--ok-bg);
    border: 1px solid var(--ok-line);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
}
.price-lg  { font-size: 28px; margin: 0 0 var(--space-5); }
.price-new { color: var(--ok-fg); font-weight: 700; }
.pay-kicker   { margin: 0 0 2px; }
.pay-discount { margin: 0 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.pay-actions  { margin-bottom: var(--space-6); }

/* ── eyebrow ────────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
                color 0.18s var(--ease), transform 0.06s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--shadow-raise); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); background: var(--bg-subtle); }

.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-flex { flex: 1 1 auto; }

/* ── nav ────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--space-5);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.brand {
    font-family: var(--display);
    font-weight: 700;
    font-size: 18.5px;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.navlink {
    font-size: 14px;
    color: var(--muted);
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.navlink:hover { color: var(--ink); background: var(--bg-subtle); }
.navlink.is-active { color: var(--ink); font-weight: 600; }
.nav-user {
    font-family: var(--mono);
    font-size: 12.5px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 680px) { .nav-user { display: none; } }

/* ── layout ─────────────────────────────────────────────────── */
/* NOT named .container: see historical note — a utility CDN would
   collide. .wrap is ours. */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }
/* Vertical only: combined with .wrap — a `padding` shorthand would
   reset its horizontal padding to 0. */
.section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.section-head { margin-bottom: var(--space-7); }
.section-head .section-title { margin-top: var(--space-3); }
.section-title { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.025em; }
.section-desc { color: var(--muted); margin-top: 10px; max-width: 62ch; }

/* home section rhythm */
.home-courses { padding-top: var(--space-5); padding-bottom: var(--space-8); }
.home-bootcamps {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

/* ── hero (legacy generic hero, kept for compatibility) ─────── */
.hero { padding-top: 92px; padding-bottom: 64px; }
.hero-title {
    font-size: var(--fs-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin: 18px 0 0;
}
.hero-sub {
    font-size: clamp(16px, 1.7vw, 19px);
    color: var(--muted);
    max-width: 58ch;
    margin: 20px 0 0;
    line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }

/* ── home hero — featured bootcamp (editorial) ──────────────── */
.home-hero { padding-top: 88px; padding-bottom: var(--space-8); }
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    border-radius: var(--radius-pill);
    padding: 7px 15px;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}
.home-hero-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 3px var(--live-soft);
}
.home-hero-badge-date { text-transform: none; letter-spacing: 0.01em; font-weight: 600; color: var(--muted); }
.home-hero-title {
    font-size: var(--fs-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 26px 0 0;
    max-width: 21ch;
}
.home-hero-hook {
    font-size: clamp(17px, 1.8vw, 20px);
    color: var(--muted);
    max-width: 60ch;
    margin: 20px 0 0;
    line-height: 1.65;
}

/* ── cards & grids ──────────────────────────────────────────── */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.card-hover:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

/* ── product / course card ──────────────────────────────────── */
.pcard { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.pcard-media {
    position: relative;
    background: var(--surface-sunk);
    border-bottom: 1px solid var(--border);
    padding: 22px 22px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.pcard-media img {
    width: 78%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    object-position: bottom;
    border-radius: 3px 8px 8px 3px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.28s var(--ease);
}
.card-hover:hover .pcard-media img { transform: translateY(-4px) scale(1.015); }
.pcard-media.is-empty {
    aspect-ratio: 16 / 10;
    align-items: center;
    padding: 0;
    color: var(--faint);
    font-family: var(--mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pcard-body { padding: 20px; display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.pcard-body .badge { align-self: flex-start; }
.pcard-title { font-size: 17.5px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.pcard-meta { font-size: 13px; color: var(--muted); }
.pcard-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcard-foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}
.price {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.price-free { color: var(--ok-fg); }

/* ── bootcamp catalog card (bcard) ──────────────────────────── */
.bcard { display: flex; flex-direction: column; }
.bcard-head {
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
}
.bcard-title {
    font-family: var(--display);
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.015em;
    line-height: 1.28;
    margin: 2px 0 0;
}
.bcard-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.bcard-foot {
    margin-top: auto;
    padding: 18px 26px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.bcard-foot .price { font-size: 22px; }

/* ── badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--bg-subtle);
    white-space: nowrap;
}
.badge-accent { color: var(--accent-deep); border-color: var(--accent-line); background: var(--accent-soft); }
.badge-ok { color: var(--ok-fg); border-color: transparent; background: var(--ok-bg); }
.badge-owned::before { content: '✓'; font-family: var(--font); }

/* ── forms ──────────────────────────────────────────────────── */
.input, .select, .textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    width: auto;
    min-width: 180px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2716%27%20height%3D%2716%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%236e6a63%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%209l6%206%206-6%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
    cursor: pointer;
}
.label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}
.field { margin-bottom: var(--space-4); }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

/* reserve-spot box (course page) */
.reserve-box {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 560px;
}
.reserve-title { font-size: 14.5px; font-weight: 650; margin: 0; }
.reserve-sub { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.reserve-done { font-size: 14.5px; font-weight: 650; color: var(--ok-fg); margin: 0; }
.reserve-row { display: flex; flex-wrap: wrap; gap: 10px; }
.reserve-row .input { flex: 1 1 150px; min-width: 0; }
.reserve-row .btn { flex: 0 1 auto; }
.reserve-row .input, .reserve-row .btn { height: 45px; }

/* ── lesson list (course page) ──────────────────────────────── */
.block-title {
    font-family: var(--display);
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.015em;
    margin: var(--space-7) 0 var(--space-4);
}
.lesson-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.lesson-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 13px 16px;
    font-size: 15px;
}
.lesson-row + .lesson-row { border-top: 1px solid var(--border); }
a.lesson-row { transition: background 0.15s var(--ease); }
a.lesson-row:hover { background: var(--bg-subtle); }
.lesson-row.is-locked { opacity: 0.72; }
.lesson-num { flex: none; width: 26px; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.lesson-title { flex: 1; min-width: 0; font-weight: 550; }
.lesson-act { flex: none; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.lesson-lock { flex: none; color: var(--faint); font-size: 13px; }

/* ── video player (watch page) ──────────────────────────────── */
.player-shell {
    background: #000;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.player-shell video { width: 100%; height: 100%; display: block; }

/* ── auth / panel ───────────────────────────────────────────── */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}
.panel-narrow { max-width: 440px; margin: 0 auto; }
.panel-center { text-align: center; }
.panel-center .page-sub { margin-left: auto; margin-right: auto; }
.panel .page-title { margin-bottom: 18px; }
.panel .notice { margin-bottom: var(--space-4); }

/* ── notices ────────────────────────────────────────────────── */
.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.notice-ok { background: var(--ok-bg); color: var(--ok-fg); }
.notice-err { background: var(--err-bg); color: var(--err-fg); }
.notice-warn { background: var(--warn-bg); color: var(--warn-fg); }

/* ── empty state ────────────────────────────────────────────── */
.empty {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 56px 28px;
    text-align: center;
    color: var(--muted);
}
.empty p { margin: 0 0 20px; font-size: 15px; }

/* ── footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); margin-top: var(--space-9); padding: 28px 0; }
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    font-size: 13.5px;
    color: var(--muted);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent); }

/* ── why band (home) ────────────────────────────────────────── */
.why-band { padding-top: var(--space-8); padding-bottom: var(--space-9); }
.why-panel { padding: var(--space-7) clamp(24px, 5vw, 56px); }
.why-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 40px;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 32px;
    text-align: left;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; gap: var(--space-2); }
.feature-title { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; margin: 0; }
.feature-desc { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── reading surface (books; kept from shared system) ───────── */
.prose {
    font-family: var(--serif);
    font-size: 18.5px;
    line-height: 1.75;
    color: var(--ink);
    max-width: 72ch;
}
.prose h1, .prose h2, .prose h3 { font-family: var(--display); margin: 2em 0 0.6em; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.2em; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
    margin: 1.6em 0;
    padding: 2px 0 2px 20px;
    border-left: 2px solid var(--accent-line);
    color: var(--muted);
    font-style: italic;
}
.prose code {
    font-family: var(--mono);
    font-size: 0.86em;
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1.5px 5px;
}
.prose pre {
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.65;
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }

/* ── per-app accent ─────────────────────────────────────────── */
[data-app="books"] { --accent: #1f5fd8; --primary-hover: #184ead; }
[data-app="learn"] { --accent: #6366f1; --primary-hover: #4f46e5; }

/* ── motion preference ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── purchase page (books; kept from shared system) ─────────── */
.buy-wrap {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 860px) {
    .buy-wrap { grid-template-columns: 1fr; gap: var(--space-6); }
    .buy-cover { max-width: 240px; }
}
.buy-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    border-radius: 4px 12px 12px 4px;
    box-shadow: var(--shadow-lg);
}
.buy-cover-empty {
    width: 100%;
    aspect-ratio: 2 / 3;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faint);
    font-family: var(--mono);
    font-size: var(--fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.buy-perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.buy-perks li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--muted);
}
.buy-perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--ok-fg);
    font-weight: 600;
}

/* ─── AI Agent bootcamp landing (bc-*) — polished US-004 ────── */
.bc-page { padding-bottom: var(--space-8); } /* space for sticky bar */
.bc-wrap { max-width: 1060px; margin: 0 auto; padding: 0 var(--space-5); }
.bc-hero { padding: 80px 0 44px; }
.bc-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    margin-bottom: var(--space-5);
}
.bc-h1 {
    font-family: var(--display);
    font-size: clamp(36px, 5.2vw, 56px);
    font-weight: 700;
    letter-spacing: -0.033em;
    line-height: 1.06;
    margin: 0 0 18px;
}
.bc-accent { color: var(--accent); }
.bc-sub { font-size: clamp(16.5px, 1.8vw, 19px); line-height: 1.65; color: var(--muted); max-width: 720px; margin: 0 0 var(--space-6); }
.bc-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 13px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 650;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.bc-btn-primary { background: var(--accent); color: var(--accent-ink); }
.bc-btn-primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--shadow-raise); }
.bc-btn-primary:disabled { opacity: 0.6; cursor: wait; }
.bc-btn-wa { background: transparent; color: var(--ink); border-color: #25d366; }
.bc-btn-wa:hover { background: rgba(37, 211, 102, 0.08); }

.bc-signup {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 6px 0 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-subtle);
}
.bc-signup .input { background: var(--surface); }
.bc-signup-title { font-weight: 700; font-size: 15.5px; margin: 0; }
.bc-err { color: var(--err-fg); font-size: 13px; margin: 0; }

.bc-section { padding: 56px 0; }
.bc-alt { background: var(--bg-subtle); }
.bc-h2 {
    font-family: var(--display);
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.022em;
    margin: 0 0 var(--space-5);
}
.bc-h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.015em; margin: 0 0 10px; }
.bc-yes { color: var(--ok-fg); }
.bc-no { color: var(--warn-fg); }

.bc-proof { display: flex; gap: var(--space-7); align-items: flex-start; flex-wrap: wrap; }
.bc-photo {
    width: 148px;
    height: 148px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex: none;
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
}
.bc-role { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.bc-logos {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}
.bc-proof-list, .bc-list { margin: 0; padding-left: 20px; line-height: 1.8; color: var(--ink); }
.bc-proof-list li, .bc-list li { font-size: 15px; }
.bc-proof-list li::marker, .bc-list li::marker { color: var(--accent); }
.bc-honest { margin-top: var(--space-3); font-size: 13.5px; color: var(--muted); font-style: italic; }
.bc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .bc-cols { grid-template-columns: 1fr; } }

.bc-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 960px) { .bc-grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bc-grid4 { grid-template-columns: 1fr; } }
.bc-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.bc-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.bc-card h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 650; }
.bc-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

.bc-acc { display: flex; flex-direction: column; gap: var(--space-3); }
.bc-day {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.bc-day summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    transition: background 0.15s var(--ease);
}
.bc-day summary:hover { background: var(--bg-subtle); }
.bc-day summary::-webkit-details-marker { display: none; }
.bc-day[open] summary { border-bottom: 1px solid var(--border); }
.bc-day-tag {
    flex: none;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 7px;
    padding: 4px 9px;
}
.bc-day-title { font-size: 16px; letter-spacing: -0.01em; }
.bc-topics { margin: 0; padding: 12px 18px 18px 40px; display: flex; flex-direction: column; gap: 7px; }
.bc-topics li { font-size: 14.5px; line-height: 1.55; }
.bc-faq-a { padding: 0 18px 16px; margin: 0; line-height: 1.7; color: var(--ink); }
.bc-bio { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 10px 0 14px; }
.bc-note { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.bc-workshop {
    margin-top: 40px;
    padding: var(--space-5);
    border: 1px dashed var(--accent-line);
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    text-align: left;
}
.bc-workshop h3 { margin: 0 0 8px; }
.bc-workshop p { line-height: 1.65; font-size: 14.5px; color: var(--ink); margin: 0 0 10px; }
.bc-link { color: var(--accent); font-weight: 650; text-decoration: none; }
.bc-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.bc-thanks { padding: 26px; border: 1px solid var(--ok-line); background: var(--ok-bg); border-radius: var(--radius-lg); max-width: 560px; }

.bc-sticky {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(33, 31, 28, 0.08);
}
.bc-sticky-tag {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    flex: 1;
}
.bc-sticky .bc-btn { padding: 10px 18px; font-size: 14px; flex: none; }
@media (max-width: 720px) { .bc-sticky { display: flex; } .bc-cta { flex-direction: column; } }

/* ── bootcamp tabs + sticky sidebar card (US-003 layout) ────── */
.bc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; margin: 36px auto 0; }
@media (max-width: 960px) {
    .bc-layout { grid-template-columns: 1fr; gap: 26px; margin-top: var(--space-5); }
    .bc-side-card { order: -1; position: static; }
}
.bc-main { min-width: 0; }
.bc-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--border-strong);
    margin-bottom: 28px;
}
.bc-tab-btn {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font: inherit;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -0.005em;
    color: var(--muted);
    padding: 11px 14px 13px;
    cursor: pointer;
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.bc-tab-btn:hover { color: var(--ink); border-bottom-color: var(--border-strong); }
.bc-tab-btn-active, .bc-tab-btn-active:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 650;
}
.bc-tabpanel { padding-top: 6px; }

.bc-side-card {
    position: sticky;
    top: 84px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bc-side-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border), 0 0 0 6px var(--accent-soft);
}
.bc-side-name { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.bc-side-role { font-size: 13px; color: var(--muted); margin: 0; }
.bc-side-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 10px 0 0;
}
.bc-side-highlights { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.bc-side-highlights li::marker { color: var(--accent); }
.bc-side-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-fact-chip {
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
}
