/* ==========================================================================
   Corporate Training Library — site styles
   Desktop: premium editorial layout. Mobile (<900px): app-style UI with
   app bar, sticky section chips, swipe rails and bottom tab bar.
   ========================================================================== */

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --tint: #eef1f8;
    --ink: #0b1224;
    --text: #1f2a3d;
    --muted: #5d677b;
    --line: #e3e7ef;
    --navy: #0b1224;
    --navy-2: #121c36;
    --navy-3: #1a2748;
    --blue: #2f6bff;
    --blue-600: #1f56e0;
    --blue-50: #edf2ff;
    --sky: #7cc4ff;
    --gold: #c9a15a;
    --gold-2: #ecd39a;
    --teal: #0f9f8f;
    --danger: #d9434f;
    --danger-50: #fdeff0;
    --success: #12a26b;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(11, 18, 36, .05), 0 1px 1px rgba(11, 18, 36, .03);
    --shadow: 0 10px 30px -12px rgba(11, 18, 36, .18), 0 2px 6px rgba(11, 18, 36, .04);
    --shadow-lg: 0 30px 60px -20px rgba(11, 18, 36, .35);
    --ease: cubic-bezier(.2, .8, .2, 1);

    --header-h: 72px;
    --gutter: 24px;
    --tabbar-h: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overflow-x: clip;
}
html { overflow-x: hidden; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.show-mobile { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, #3b7bff, var(--blue-600)); color: #fff; box-shadow: 0 8px 24px -8px rgba(47, 107, 255, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(47, 107, 255, .85), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 10px 28px -10px rgba(201, 161, 90, .8); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.btn-ghost { color: rgba(255,255,255,.85); }
.btn-ghost:hover { color: #fff; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.is-center { justify-content: center; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 18, 36, .82);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding-top: env(safe-area-inset-top);
    transition: transform .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.logo-mark {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(140deg, #4c8dff, #1f56e0 55%, #0e2b7a);
    font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px -6px rgba(47,107,255,.7);
}
.logo-text { font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.1; }
.logo-text em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.2em; color: var(--gold-2); }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: rgba(255,255,255,.7); font-size: 14.5px; font-weight: 600; transition: color .2s, background .2s; }
.main-nav a:hover { color: #fff; }
.main-nav a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.header-actions { display: flex; align-items: center; gap: 8px; }


/* ---------- Eyebrows & headings ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow-light { color: var(--sky); }
.eyebrow-no {
    display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 999px;
    font-size: 11px; letter-spacing: .04em; background: var(--blue-50); color: var(--blue);
}
.eyebrow-light .eyebrow-no, .on-dark .eyebrow-no { background: rgba(124,196,255,.14); color: var(--sky); }
.on-dark .eyebrow { color: var(--sky); }
.on-dark .section-title { color: #fff; }
.on-dark .section-body { color: rgba(255,255,255,.68); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.is-center { text-align: center; margin-inline: auto; }
.section-title { margin-top: 14px; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.section-body { margin-top: 16px; font-size: 17px; color: var(--muted); }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ---------- Sections ---------- */
.screen { padding: 104px 0; position: relative; }
.screen-tint { background: var(--tint); }
.screen-dark { background: radial-gradient(1200px 500px at 80% -10%, rgba(47,107,255,.22), transparent 60%), var(--navy); color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .section-head { margin-bottom: 32px; }

.icon-tile { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--blue); }
.icon-tile.tile-sm { width: 38px; height: 38px; border-radius: 11px; }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 18px; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card-grid { display: grid; gap: 20px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 01 Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: rgba(255,255,255,.75);
    background: var(--navy);
    padding: 88px 0 64px;
    margin-top: calc(-1 * var(--header-h));
    padding-top: calc(var(--header-h) + 88px);
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(700px 420px at 12% 20%, rgba(47,107,255,.35), transparent 65%),
        radial-gradient(600px 400px at 92% 30%, rgba(201,161,90,.22), transparent 60%),
        radial-gradient(900px 500px at 50% 120%, rgba(124,196,255,.18), transparent 60%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(124,196,255,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(124,196,255,0); } 100% { box-shadow: 0 0 0 0 rgba(124,196,255,0); } }
.hero-title { margin-top: 22px; color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero-title .serif-accent {
    display: inline-block; padding-right: .06em;
    background: linear-gradient(100deg, var(--sky), #c7dcff 45%, var(--gold-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-size: 1.08em;
}
.hero-sub { margin: 24px 0 36px; max-width: 560px; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.72); }

.hero-visual { position: relative; }
.window {
    border-radius: 22px; padding: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
    transition: transform .8s var(--ease);
}
.hero-visual:hover .window { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 12px; }
.window-bar > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.window-search { margin-left: 12px; flex: 1; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 12.5px; color: rgba(255,255,255,.55); }
.window-body { display: grid; gap: 10px; padding: 4px; }
.program-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); }
.program-thumb { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; color: #fff; flex-shrink: 0; }
.tone-blue .program-thumb { background: linear-gradient(140deg, #5b9dff, #1f56e0); }
.tone-gold .program-thumb { background: linear-gradient(140deg, #ecd39a, #b8893f); }
.tone-teal .program-thumb { background: linear-gradient(140deg, #3fd1bd, #0b7d71); }
.program-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.program-info strong { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.program-info small { font-size: 12.5px; color: var(--muted); }
.program-tags { display: flex; gap: 5px; margin-top: 4px; }
.program-tags span { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--tint); color: var(--muted); }
@keyframes float { 50% { transform: translateY(-8px); } }

.hero-stats { position: relative; margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.stat { padding: 28px 24px 0; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.stat-label { margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- 10 Showroom ---------- */
.show-frame {
    aspect-ratio: 4 / 3; border-radius: 20px; padding: 22px; display: grid; place-items: center;
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1);
    transition: transform .4s var(--ease);
}
.mock-slide, .mock-doc { width: 100%; background: #fff; border-radius: 10px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.mock-slide { aspect-ratio: 16 / 9; padding: 14px; display: flex; flex-direction: column; border-left: 5px solid var(--blue); }
.mock-kicker { font-size: 8px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; }
.mock-h { font-size: 12px; font-weight: 800; color: var(--ink); line-height: 1.25; margin: 3px 0 8px; }
.mock-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.mock-cols ul { display: grid; gap: 6px; align-self: start; }
.mock-cols li { height: 5px; border-radius: 9px; background: var(--tint); }
.mock-cols li:nth-child(2) { width: 80%; }
.mock-chart { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.mock-chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--sky), var(--blue)); }
.mock-doc { aspect-ratio: 3 / 4; max-width: 170px; padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.mock-row { display: flex; align-items: center; gap: 8px; }
.mock-row b { font-size: 8px; color: var(--blue); }
.mock-row span, .mock-check span { flex: 1; height: 5px; border-radius: 9px; background: var(--tint); }
.mock-check { display: flex; align-items: center; gap: 6px; }
.mock-check i { width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid var(--blue); }
.mock-write { margin-top: auto; height: 46px; border-radius: 6px; background: repeating-linear-gradient(180deg, transparent 0 10px, var(--line) 10px 11px); }

/* ---------- 11 Benefits ---------- */
.card-benefit { display: flex; gap: 18px; align-items: flex-start; }
.card-benefit h3 { margin: 2px 0 6px; }

/* ---------- 12 Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: all .35s var(--ease); }
.audience::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.audience:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.audience:hover::before { transform: scaleX(1); }
.audience-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, #4c8dff, var(--blue-600)); box-shadow: 0 10px 20px -10px rgba(47,107,255,.8); }
.audience h3 { margin: 20px 0 6px; font-size: 18px; }
.audience p { color: var(--muted); font-size: 15px; }

/* ---------- 13 Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num { position: absolute; top: -6px; left: calc(50% + 18px); z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--gold); color: var(--navy); border: 3px solid var(--bg); }
.step-icon { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.step h3 { margin: 22px 0 8px; font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- 14 Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin-inline: auto; }
.ba-card { padding: 34px; border-radius: var(--radius-lg); }
.ba-before { background: var(--surface); border: 1px solid var(--line); }
.ba-after { background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: rgba(255,255,255,.85); box-shadow: var(--shadow-lg); }
.ba-tag { display: inline-block; margin-bottom: 22px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.ba-before .ba-tag { background: var(--danger-50); color: var(--danger); }
.ba-after .ba-tag { background: rgba(236,211,154,.15); color: var(--gold-2); }
.ba-card ul { display: grid; gap: 16px; }
.ba-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; }
.ba-card li .icon { margin-top: 2px; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.ba-before li { color: var(--muted); }
.ba-before li .icon { color: var(--danger); background: var(--danger-50); }
.ba-after li .icon { color: var(--navy); background: var(--gold-2); }

/* ---------- 19 FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.faq[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 16.5px; color: var(--ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--muted); transition: transform .3s var(--ease); }
.faq[open] .faq-chev { transform: rotate(180deg); color: var(--blue); }
.faq p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- 20 CTA ---------- */
.cta-screen { padding-top: 0; }
.cta-card {
    position: relative; overflow: hidden; text-align: center; padding: 88px 40px;
    border-radius: 36px; color: rgba(255,255,255,.72);
    background: linear-gradient(150deg, var(--navy-3), var(--navy) 60%);
    box-shadow: var(--shadow-lg);
}
.cta-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 20% 0%, rgba(47,107,255,.4), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(201,161,90,.3), transparent 60%); }
.cta-card > * { position: relative; }
.cta-title { margin: 18px auto 16px; max-width: 760px; color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 340px; font-size: 14.5px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 6px; letter-spacing: 0; }
.footer-col a { font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* ---------- Tab bar & drawer (mobile only) ---------- */
.tabbar { display: none; }
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 22, .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.25);
    transform: translateY(100%); transition: transform .4s var(--ease);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-sheet { transform: none; }
.drawer-handle { display: block; width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 9px; background: var(--line); }
.drawer-nav { display: grid; background: var(--bg); border-radius: 18px; overflow: hidden; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 16px; font-weight: 700; color: var(--ink); }
.drawer-nav a + a { border-top: 1px solid var(--line); }
.drawer-nav a > .icon:first-child { color: var(--blue); }
.drawer-nav a.is-active { color: var(--blue); }
.drawer-nav .chev { margin-left: auto; color: var(--muted); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* Rail dots */
.rail-dots { display: none; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
    .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .main-nav a { padding: 8px 10px; }
    .split { gap: 48px; }
}

/* ==========================================================================
   Mobile — app-style experience
   ========================================================================== */
@media (max-width: 899px) {
    :root {
        --header-h: 56px;
        --gutter: 16px;
        --tabbar-h: 64px;
        --radius: 18px;
        --radius-lg: 24px;
    }
    body { font-size: 15px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: var(--bg); }
    .show-mobile { display: inline-flex !important; }
    .hide-mobile { display: none !important; }
    .main-nav { display: none; }

    /* App bar */
    .header-inner { gap: 12px; justify-content: space-between; }
    .logo-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
    .logo-text { font-size: 15px; }

    /* Sections */
    .screen { padding: 56px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head.is-center { text-align: left; }
    .section-title { font-size: 1.65rem; margin-top: 12px; }
    .section-body { font-size: 15.5px; margin-top: 12px; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split .section-head { margin-bottom: 22px; }
    .card { padding: 20px; }
    .card:hover, .audience:hover { transform: none; }

    /* Horizontal swipe rails */
    .rail {
        position: relative; display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
        scrollbar-width: none; overscroll-behavior-x: contain;
    }
    .rail::-webkit-scrollbar { display: none; }
    .rail > * { flex: 0 0 82%; scroll-snap-align: start; }
    .card-grid.rail > * { flex-basis: 72%; }
    .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
    .rail-dots span { width: 6px; height: 6px; border-radius: 9px; background: var(--line); transition: all .3s var(--ease); }
    .rail-dots span.is-active { width: 20px; background: var(--blue); }
    .screen-dark .rail-dots span { background: rgba(255,255,255,.2); }
    .screen-dark .rail-dots span.is-active { background: var(--gold-2); }

    /* Hero */
    .hero { padding-bottom: 40px; padding-top: calc(var(--header-h) + 40px); }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-title { font-size: clamp(2.3rem, 10.5vw, 3.2rem); margin-top: 18px; }
    .hero-sub { font-size: 16px; margin: 18px 0 26px; }
    .hero .btn-row { display: grid; grid-template-columns: 1fr; }
    .hero .btn-lg { height: 54px; }
    .window { transform: none !important; border-radius: 20px; }
    .window-search { font-size: 12px; }
    .program-card { padding: 12px; gap: 12px; }
    .program-thumb { width: 48px; height: 48px; border-radius: 12px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 44px; border-top: 0; }
    .stat, .stat:first-child { padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.04); }
    .stat-value { font-size: 1.9rem; }
    .stat-label { font-size: 13px; }

    /* 10 */
    .show-frame { padding: 18px; }

    /* 11 */
    .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; gap: 10px; }
    .card-benefit { padding: 16px; gap: 14px; align-items: center; }
    .card-benefit h3 { font-size: 16px; margin: 0 0 2px; }
    .card-benefit p { font-size: 14px; }

    /* 12 */
    .audience { padding: 22px; }

    /* 13 — vertical timeline */
    .steps { grid-template-columns: 1fr; gap: 0; }
    .steps::before { top: 10px; bottom: 10px; left: 28px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
    .step { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; text-align: left; padding: 0 0 26px; }
    .step:last-child { padding-bottom: 0; }
    .step-icon { grid-row: span 2; margin: 0; }
    .step-num { left: 40px; top: -6px; }
    .step h3 { margin: 6px 0 4px; font-size: 17px; }
    .step p { font-size: 14.5px; }

    /* 14 */
    .ba-grid { grid-template-columns: 1fr; gap: 12px; }
    .ba-card { padding: 22px; }
    .ba-tag { margin-bottom: 16px; }
    .ba-card ul { gap: 12px; }
    .ba-card li { font-size: 15px; }

    /* 19 */
    .faq summary { padding: 17px 18px; font-size: 15.5px; }
    .faq p { padding: 0 18px 18px; font-size: 14.5px; }

    /* 20 */
    .cta-screen { padding-bottom: 40px; }
    .cta-card { padding: 48px 22px; border-radius: 28px; text-align: left; }
    .cta-card .btn-row { display: grid; }
    .cta-title { margin-inline: 0; font-size: 2rem; }

    /* Footer */
    .site-footer { padding-top: 48px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { margin-top: 36px; }

    /* Bottom tab bar */
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
        padding: 0 6px env(safe-area-inset-bottom);
        background: rgba(255,255,255,.9);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid rgba(11,18,36,.08);
    }
    .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar-h); font-size: 10.5px; font-weight: 700; color: #8a93a6; transition: color .2s; }
    .tab.is-active { color: var(--blue); }
    .tab:active { transform: scale(.94); }
    .tab-cta-btn {
        display: grid; place-items: center; width: 50px; height: 50px; margin-top: -26px; border-radius: 18px; color: #fff;
        background: linear-gradient(140deg, #4c8dff, var(--blue-600)); box-shadow: 0 10px 22px -8px rgba(47,107,255,.8), 0 0 0 5px var(--bg);
    }
    .tab-cta { color: var(--ink); }
}

@media (max-width: 380px) {
    .logo-text { font-size: 13.5px; }
    .hero-stats { gap: 8px; }
}

/* ==========================================================================
   Shared page components
   ========================================================================== */
.hero-tagline { margin-top: 18px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.hero-tagline + .hero-sub { margin-top: 14px; }
.hero-promise { display: inline-flex; align-items: center; gap: 8px; margin: -14px 0 30px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--gold-2); background: rgba(201,161,90,.12); border: 1px solid rgba(201,161,90,.25); }
.mini-label { display: block; margin: 18px 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.center-label { text-align: center; margin-top: -24px; margin-bottom: 20px; }
.on-dark-label { color: var(--sky); }
.tick-list { display: grid; gap: 8px; }
.tick-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.tick-list .icon { margin-top: 3px; color: var(--success); }
.tick-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 6px 12px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 600; color: var(--text); }
.chip-list.is-center { justify-content: center; }
.section-cta { display: flex; justify-content: center; margin-top: 36px; }
.closing-line { max-width: 760px; margin: 36px auto 0; text-align: center; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.on-dark-line { color: #fff; }
.duration { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.filter-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.filter-chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--muted); transition: all .2s var(--ease); }
.filter-chip:hover { color: var(--ink); }
.filter-chip[aria-pressed="true"], .filter-chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.12), var(--shadow); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }

/* Closing CTA extras */
.cta-sub { margin: 0 auto 22px; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; color: var(--sky); }
.stat-line, .flag-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 0 auto 14px; max-width: 760px; }
.stat-line li { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.flag-line li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--gold-2); }
.cta-brand { display: grid; gap: 2px; margin: 26px 0 30px; }
.cta-brand strong { font-size: 17px; color: #fff; }
.cta-brand span { font-family: var(--serif); font-style: italic; font-size: 19px; color: rgba(255,255,255,.7); }
.cta-buy { margin-top: 22px; font-size: 14.5px; }
.cta-buy a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold-2); }
.cta-quote { max-width: 620px; margin: 18px auto 30px; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.35; color: #fff; }
.spec-label { display: block; margin: 8px 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.cta-after-tint { padding-top: 88px; }

/* Ecosystem diagram (About 18 · Topics 08) */
.eco { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto; }
.eco-node { width: 100%; max-width: 520px; padding: 16px 20px; border-radius: 16px; text-align: center; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.eco-root { color: var(--sky); border-color: rgba(124,196,255,.4); background: rgba(124,196,255,.08); text-transform: none; font-size: 18px; }
.eco-result { color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); border: 0; }
.eco-arrow { display: grid; place-items: center; height: 34px; color: rgba(255,255,255,.4); }
.eco-assets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.2); }
.eco-assets li { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); }
.eco-assets li + li::before { content: "+"; margin-right: 8px; color: var(--sky); }

/* ==========================================================================
   About page
   ========================================================================== */
.split-top { align-items: start; }
.task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: task; }
.task-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.task-list li span { font-size: 12px; font-weight: 800; color: var(--danger); }
.solution-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 34px; border-radius: var(--radius-lg); color: rgba(255,255,255,.75); background: radial-gradient(420px 220px at 100% 0%, rgba(47,107,255,.35), transparent 70%), linear-gradient(165deg, var(--navy-3), var(--navy)); box-shadow: var(--shadow-lg); }
.solution-card p { font-size: 16px; }
.solution-card p + p { margin-top: 12px; }
.solution-emphasis { margin-bottom: 18px; font-size: 20px !important; font-weight: 800; line-height: 1.3; color: #fff; }
.stance { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.stance-label { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.stance strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.1; color: #fff; }
.stance em { color: var(--gold-2); }

.pillar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pillar-card h3 { font-size: 16.5px; }
.simple-terms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; max-width: 900px; margin: 36px auto 0; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.simple-terms strong { color: var(--ink); }
.simple-terms ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.simple-terms li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.simple-terms .icon { color: var(--success); }

.need-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.need-grid li { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.need-grid strong { color: var(--blue); }

.audience-no { position: absolute; top: 22px; right: 24px; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--line); }

.glance-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.glance-stat { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.glance-stat dt { display: grid; gap: 6px; }
.glance-num { font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(120deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glance-label { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.glance-stat dd { margin: 10px 0 0; font-size: 14px; color: rgba(255,255,255,.65); }

.layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-top: 4px solid var(--blue); }
.layer:nth-child(2) { border-top-color: var(--teal); }
.layer:nth-child(3) { border-top-color: var(--gold); }
.layer-head { display: flex; justify-content: space-between; align-items: center; }
.layer-no { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--line); }
.layer h3 { margin-top: 18px; font-size: 20px; }
.layer-sub { display: block; margin: 4px 0 10px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.layer > p { color: var(--muted); font-size: 15px; }
.layer-purpose { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 14px; color: var(--text); }

.kit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kit-list li { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.kit-list li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kit-list-no { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; font-weight: 800; font-size: 13px; color: #fff; background: var(--navy); }
.kit-list strong { display: block; font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.kit-list span:not(.kit-list-no) { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

.family-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.family { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.family h3 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 17px; color: var(--blue); }
.family h3 span { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 99px; font-size: 13px; color: var(--muted); background: var(--tint); }
.family li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.family-no { font-size: 12.5px; font-weight: 800; color: var(--muted); width: 22px; flex-shrink: 0; }
.family-title { flex: 1; font-weight: 700; font-size: 14.5px; color: var(--ink); }

.resource-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.resource { position: relative; display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: all .35s var(--ease); }
.resource:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.resource-value { margin-top: 18px; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.resource h3 { margin: 6px 0 8px; font-size: 16px; }
.resource p { flex: 1; font-size: 14px; color: var(--muted); }
.resource-line { margin-top: 14px; font-family: var(--serif); font-size: 16.5px; color: var(--blue); }

.flow-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flow-list li { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: var(--tint); font-size: 14.5px; color: var(--muted); }
.flow-list strong { color: var(--ink); }
.flow-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; font-size: 12px; font-weight: 800; color: #fff; background: var(--blue); }

.steps-7 { grid-template-columns: repeat(7, 1fr); gap: 14px; }
.steps-7::before { left: 7%; right: 7%; }
.steps-7 .step h3 { font-size: 16.5px; }
.steps-7 .step p { font-size: 13.5px; }

.custom-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: c; }
.custom-flow li { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.custom-no { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--sky); }
.custom-flow strong { display: block; margin: 8px 0 6px; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.custom-flow p { font-size: 14.5px; color: rgba(255,255,255,.7); }

.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.asset-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.asset-card figcaption { display: grid; gap: 2px; padding: 16px 18px; border-top: 1px solid var(--line); }
.asset-card figcaption strong { color: var(--ink); font-size: 15.5px; }
.asset-card figcaption span { color: var(--muted); font-size: 14px; }

.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.question { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.question-mark { position: absolute; right: 18px; top: -6px; font-family: var(--serif); font-size: 90px; line-height: 1; color: var(--blue-50); }
.question h3 { position: relative; font-size: 20px; }
.question p { position: relative; margin-top: 8px; color: var(--muted); font-size: 15px; }
.philosophy { max-width: 720px; margin: 36px auto 0; padding: 28px; border-radius: var(--radius-lg); text-align: center; background: var(--navy); }
.philosophy span { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.philosophy p { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; color: #fff; }
.philosophy em { color: var(--gold-2); }

/* ==========================================================================
   Topics page
   ========================================================================== */
.hero-topics { padding-bottom: 88px; }
.hero-topics .hero-grid { grid-template-columns: 1.15fr .85fr; }
.narrative { margin: 24px 0 32px; padding: 18px 20px; max-width: 580px; border-left: 3px solid var(--sky); border-radius: 0 14px 14px 0; background: rgba(255,255,255,.05); }
.narrative-label { display: block; margin-bottom: 6px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold-2); }
.narrative p { font-size: 16px; color: rgba(255,255,255,.75); }
.topic-stats { padding: 14px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
.topic-stats-grid { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tstat { padding: 20px; border-radius: 16px; background: rgba(11,18,36,.55); border: 1px solid rgba(255,255,255,.06); }
.tstat dt { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; }
.tstat:nth-child(-n+3) dt { background: linear-gradient(120deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tstat dd { margin: 8px 0 0; font-size: 13.5px; color: rgba(255,255,255,.6); }
.topic-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.topic-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 900px; margin: 0 auto; }
.area-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink); transition: all .25s var(--ease); }
.area-chip .icon { color: var(--muted); transition: transform .25s var(--ease); }
.area-chip:hover { border-color: var(--blue); color: var(--blue); }
.area-chip:hover .icon { transform: translateX(3px); color: var(--blue); }
.lib-search { position: relative; max-width: 720px; margin: 28px auto 0; }
.lib-search-label { display: block; margin-bottom: 10px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.lib-search.is-large .search-field { height: 62px; }
.search-results { margin-top: 12px; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-height: 420px; overflow-y: auto; }
.result { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "type title view" "type path view"; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; transition: background .2s; }
.result:hover, .result:focus-visible { background: var(--tint); }
.result-type { grid-area: type; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); white-space: nowrap; }
.result strong { grid-area: title; font-size: 15px; color: var(--ink); }
.result small { grid-area: path; font-size: 13px; color: var(--muted); }
.result-view { grid-area: view; font-size: 13px; font-weight: 800; color: var(--blue); }
.result-empty { padding: 14px; text-align: center; color: var(--muted); }
.search-examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.search-examples span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.search-examples .filter-chip { height: 34px; padding: 0 14px; font-size: 13px; }
.search-format { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }

.kit-container { max-width: 960px; }
.kit-stack { display: grid; gap: 12px; }
.kit-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; scroll-margin-top: calc(var(--header-h) + 16px); }
.kit-card[open] { box-shadow: var(--shadow); border-color: transparent; }
.kit-card summary { list-style: none; position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; }
.kit-card summary::-webkit-details-marker { display: none; }
.kit-no { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #a3abbb; width: 22px; flex-shrink: 0; }
.kit-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: #fff; flex-shrink: 0; }
.tone-blue .kit-icon { background: linear-gradient(140deg, #5b9dff, #1f56e0); }
.tone-gold .kit-icon { background: linear-gradient(140deg, #ecd39a, #b8893f); }
.tone-teal .kit-icon { background: linear-gradient(140deg, #3fd1bd, #0b7d71); }
.tone-violet .kit-icon { background: linear-gradient(140deg, #a48bff, #6340e0); }
.kit-head { flex: 1; min-width: 0; display: grid; gap: 2px; }
.kit-head strong { font-size: 17px; color: var(--ink); line-height: 1.3; }
.kit-head small { font-size: 14px; color: var(--muted); }
.kit-count { margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--blue); }
.kit-chev { color: var(--muted); transition: transform .3s var(--ease); flex-shrink: 0; }
details[open] > summary .kit-chev { transform: rotate(180deg); color: var(--blue); }
.kit-body { padding: 4px 22px 24px 110px; border-top: 1px dashed var(--line); padding-top: 18px; }
.kit-text { font-size: 15.5px; color: var(--text); }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.area-list li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.area-list strong { color: var(--ink); }
.area-no { font-size: 12px; font-weight: 800; color: var(--blue); padding-top: 2px; width: 20px; flex-shrink: 0; }
.area-list.is-plain li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.kit-panel { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--tint); border-left: 3px solid var(--blue); }
.kit-panel-title { display: block; font-size: 15px; color: var(--ink); }
.kit-panel-label { display: block; margin: 2px 0 12px; font-family: var(--serif); font-size: 16px; color: var(--muted); }
.kit-panel .chip-list li { background: var(--surface); }
.kit-panel-text { font-size: 15px; font-weight: 700; color: var(--ink); }
.pair-list { display: grid; gap: 8px; }
.pair-list li { font-size: 14px; color: var(--muted); }
.pair-list strong { color: var(--ink); }
.pair-list strong::after { content: " →"; color: var(--blue); }
.flow-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flow-chips li { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--surface); }
.flow-chips li + li::before { content: "→"; margin-right: 8px; color: var(--blue); }
.kit-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 800; font-size: 14.5px; color: var(--blue); }

.family-stack { display: grid; gap: 12px; }
.family-acc { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.family-acc summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; }
.family-acc summary::-webkit-details-marker { display: none; }
.family-name { flex: 1; font-weight: 800; font-size: 17px; color: var(--ink); }
.family-count { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--tint); }
.program-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 22px 22px; }
.program-card-lg { padding: 22px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.program-top { display: flex; justify-content: space-between; align-items: center; }
.program-no { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--blue); }
.program-card-lg h3 { margin-top: 12px; font-size: 17.5px; }
.program-tagline { margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.program-meta { display: grid; gap: 10px; margin: 16px 0 0; }
.program-meta dt { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.program-meta dd { margin: 2px 0 0; font-size: 14px; color: var(--text); }
.program-focus { font-weight: 700; color: var(--blue) !important; }

.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.collection { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.collection.is-wide { grid-column: 1 / -1; }
.collection-head { display: flex; align-items: center; gap: 16px; }
.collection-no { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.collection h3 { font-size: 19px; }
.collection h3 span { color: var(--blue); }
.collection-tagline { margin: 14px 0 6px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }
.collection > p:not(.collection-tagline) { font-size: 14.5px; color: var(--muted); }
.collection .chip-list { margin-top: 12px; }

.need-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.need-card { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.need-card h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.need-card p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.audience-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.audience-chips li { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.audience-chips .icon { color: var(--blue); }

.format-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.format-card { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.format-card .sample-frame { padding: 12px; }
.format-card figcaption { padding: 10px 12px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); }

/* ==========================================================================
   Samples page
   ========================================================================== */
/* Preview layouts (shared partial) */
.mock-image { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); background: #fff; }
.mock-tag { align-self: flex-start; padding: 2px 6px; border-radius: 4px; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); }
.mock-tag.tag-gold { color: #8a6420; background: #fbf3e2; }
.mock-h.serif { font-family: var(--serif); font-weight: 400; font-size: 14px; }
.mock-row b { width: 16px; height: 5px; border-radius: 9px; background: var(--blue); flex-shrink: 0; }
.mock-step { display: flex; align-items: center; gap: 6px; }
.mock-step b { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.mock-step span, .mock-para span, .mock-box span, .mock-opt span, .mock-scale span, .mock-sign span { height: 5px; border-radius: 9px; background: var(--tint); }
.mock-step span { flex: 1; }
.mock-para { display: grid; gap: 5px; }
.mock-para span:nth-child(3n) { width: 75%; }
.mock-box { margin-top: auto; display: grid; gap: 5px; padding: 7px; border-radius: 6px; background: #fbf3e2; border-left: 3px solid var(--gold); }
.mock-box span { background: rgba(201,161,90,.3); }
.mock-table { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2px; padding: 2px; border-radius: 4px; background: var(--line); }
.mock-table i { height: 12px; background: #fff; }
.mock-table i:nth-child(-n+3) { background: var(--navy); }
.mock-sign { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-sign span { height: 1px; background: var(--muted); }
.mock-opt { display: flex; align-items: center; gap: 6px; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line); }
.mock-opt i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex-shrink: 0; }
.mock-opt span { flex: 1; }
.mock-opt.is-on { border-color: var(--success); background: rgba(18,162,107,.08); }
.mock-opt.is-on i { border-color: var(--success); background: var(--success); }
.mock-scale { display: flex; align-items: center; gap: 3px; }
.mock-scale span { flex: 1; margin-right: 4px; }
.mock-scale i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.mock-scale i.is-on { background: var(--blue); border-color: var(--blue); }
.mock-story { background: #fffdf8; }
.mock-framework { border-left-color: var(--gold); }
.mock-matrix { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; min-height: 40px; }
.mock-matrix i { border-radius: 5px; }
.mock-matrix i:nth-child(1) { background: #1f56e0; }
.mock-matrix i:nth-child(2) { background: #5b9dff; }
.mock-matrix i:nth-child(3) { background: #c9a15a; }
.mock-matrix i:nth-child(4) { background: #0f9f8f; }

/* Hero collage */
.hero-samples { padding-bottom: 80px; }
.hero-quote { margin: 0 0 8px; padding: 14px 18px; max-width: 560px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: rgba(201,161,90,.08); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45; color: #f3e6c6; }
.collage { position: relative; height: 460px; }
.collage-card { position: absolute; width: 40%; transition: transform .6s var(--ease); }
.collage-card .show-frame { padding: 10px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); backdrop-filter: blur(6px); }
.collage-label { position: absolute; left: 10px; bottom: -10px; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: var(--navy); background: #fff; box-shadow: var(--shadow-sm); white-space: nowrap; }
.collage-1 { top: 4%; left: 0; width: 48%; transform: rotate(-5deg); z-index: 2; }
.collage-2 { top: 0; left: 44%; transform: rotate(4deg); }
.collage-3 { top: 36%; right: 0; transform: rotate(-3deg); z-index: 3; }
.collage-4 { top: 44%; left: 6%; transform: rotate(3deg); z-index: 3; }
.collage-5 { bottom: 0; left: 34%; transform: rotate(-4deg); z-index: 4; }
.collage-6 { top: 14%; right: 2%; width: 30%; transform: rotate(7deg); }
.collage:hover .collage-card { transform: rotate(0) translateY(-4px); }
.fan-badge { position: absolute; z-index: 5; right: 0; bottom: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.fan-badge .icon { color: #fff; background: var(--success); border-radius: 50%; padding: 2px; width: 18px; height: 18px; }

/* Sample explorer */
.explorer { padding: 72px 0 0; }
.explorer-head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.explorer-bar { position: sticky; top: var(--header-h); z-index: 30; padding: 12px 0; background: rgba(246,247,251,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: top .35s var(--ease); }
html.header-hidden .explorer-bar { top: 0; }
.explore-empty { padding: 0 0 40px; text-align: center; }
.explore-empty[hidden], [data-explore-item][hidden], [data-explore-section][hidden], [data-explore-static][hidden] { display: none !important; }

/* Sample cards */
.sample-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sample-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.sample-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.sample-card { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.sample-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.sample-frame { border-radius: 0; border: 0; background: linear-gradient(160deg, #e9eef8, #f5f7fc); padding: 18px; }
.sample-card:hover .sample-frame, .asset-card .sample-frame { transform: none; }
.sample-frame .mock-slide, .sample-frame .mock-doc { box-shadow: 0 14px 30px -14px rgba(11,18,36,.35); transition: transform .5s var(--ease); }
.sample-card:hover .sample-frame .mock-slide, .sample-card:hover .sample-frame .mock-doc { transform: scale(1.04); }
.sample-meta { display: grid; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid var(--line); flex: 1; }
.sample-type { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.sample-meta strong { font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.sample-zoom { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.8); transition: all .3s var(--ease); }
.sample-card:hover .sample-zoom, .sample-card:focus-visible .sample-zoom { opacity: 1; transform: none; }
.sample-card.is-compact .sample-frame { padding: 12px; }
.sample-card.is-compact .mock-doc { max-width: 110px; }

/* Featured samples */
.feature-list { display: grid; gap: 28px; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature.is-flipped .feature-visual { order: 2; }
.feature-visual { display: block; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, var(--navy-3), var(--navy)); cursor: zoom-in; }
.feature-visual .show-frame { background: transparent; border: 0; padding: 36px; transition: transform .5s var(--ease); }
.feature-visual:hover .show-frame { transform: scale(1.03); }
.feature-visual .mock-doc { max-width: 220px; }
.feature-visual .mock-h { font-size: 15px; }
.feature-no { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.feature-info h3 { margin: 10px 0 12px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.02em; }
.feature-info p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.feature-info .chip-list { margin-top: 14px; }
.feature-quote { margin: 0 0 14px; padding: 14px 18px; border-left: 3px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--tint); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink); }
.asset-type { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; color: var(--text); background: var(--blue-50); }

/* Presentation samples */
.subject-chips { margin-bottom: 24px; }
.slide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.slide-grid[hidden] { display: none; }
.slide-grid .show-frame { aspect-ratio: 16 / 9; }
.slide-grid .mock-slide { max-width: none; }
.slide-grid .mock-h { font-size: 15px; }
.subject-tabs.is-filtering .subject-chips { display: none; }
.subject-tabs.is-filtering [role="tabpanel"][hidden] { display: grid; margin-top: 18px; }

/* Workflow */
.workflow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.workflow li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.workflow li + li::before { content: "→"; position: absolute; left: -14px; top: 38%; font-weight: 800; color: var(--sky); }
.workflow-thumb { width: 100%; }
.workflow-thumb .show-frame { padding: 12px; }
.workflow-no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 800; color: var(--navy); background: var(--gold-2); }
.workflow strong { font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.band-quote { max-width: 780px; margin: 40px auto 0; padding: 22px 26px; border-left: 3px solid var(--sky); border-radius: 0 16px 16px 0; background: rgba(255,255,255,.05); font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45; color: #fff; }
.accent-quote { max-width: 760px; margin: 32px auto 0; padding: 18px 22px; border-left: 3px solid var(--gold); border-radius: 0 16px 16px 0; background: var(--surface); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--ink); }
.accent-quote.blue { border-left-color: var(--blue); }

/* Practice, workbooks, pre/post, stories */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.practice-grid .is-large { grid-column: span 2; }
.practice-grid .is-large .mock-doc { max-width: 200px; }
.carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.carousel-item { flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; }
.prepost-ba { margin-top: 28px; }
.prepost-ba .ba-card li .icon { color: inherit; background: transparent; padding: 0; }
.story-feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.story-feature h3 { margin: 10px 0 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.story-parts { display: grid; gap: 10px; margin: 0; }
.story-parts div { padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.story-parts dt { font-weight: 800; font-size: 14px; color: var(--ink); }
.story-parts dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.story-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 22px; }

/* Asset reference matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.matrix thead th { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.matrix tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.matrix td { color: var(--muted); }
.matrix tbody tr:nth-child(even) { background: var(--bg); }
.matrix tbody tr:last-child > * { border-bottom: 0; }

/* By training kit */
.kit-chips { margin-bottom: 24px; }
.bykit-panel .section-cta { margin-top: 28px; }

/* Editable message */
.edit-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.edit-flow li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.edit-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--sky); background: rgba(124,196,255,.12); transition: all .5s var(--ease) var(--d); }
.edit-flow.is-visible .edit-icon { color: var(--navy); background: var(--gold-2); }
.edit-no { display: block; margin-top: 18px; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--sky); }
.edit-flow strong { display: block; margin: 4px 0 6px; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.edit-flow p { font-size: 14.5px; color: rgba(255,255,255,.7); }

/* Quality statement */
.quality { text-align: center; }
.quality-title { margin: 14px 0 18px; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
.not-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-bottom: 20px; }
.not-list li { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(217,67,79,.5); }
.not-list .icon { color: var(--danger); }
.quality-lead { margin-bottom: 16px; font-size: 17px; font-weight: 700; color: var(--ink); }

/* Full-screen sample viewer */
.viewer { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; display: none; flex-direction: column; color: #fff; background: rgba(8,12,24,.97); }
.viewer[open] { display: flex; animation: fadeUp .3s var(--ease); }
.viewer::backdrop { background: rgba(6,10,22,.7); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.viewer-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 14.5px; }
.viewer-count { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.55); }
.viewer-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.viewer-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 28px; overflow: auto; }
.viewer-stage .show-frame { width: min(900px, 100%); border: 0; background: transparent; padding: 0; }
.viewer-stage .mock-doc { max-width: 360px; margin: 0 auto; }
.viewer-stage .mock-h { font-size: 17px; }
.viewer-bottom { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.viewer-caption { flex: 1; text-align: center; font-size: 15px; font-weight: 700; color: #fff; }
.viewer-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; transition: background .2s; }
.viewer-arrow:hover { background: rgba(255,255,255,.14); }
.viewer-hook { padding: 0 18px calc(14px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: rgba(255,255,255,.6); }
.viewer-hook a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold-2); }
body.has-viewer { overflow: hidden; }

/* ==========================================================================
   Buy Now page — clean checkout & product-selection screen (spec §22)
   ========================================================================== */
.page-buy {
    --b-bg: #ffffff; --b-tint: #f7f9fc; --b-text: #1f2937; --b-muted: #6b7280; --b-line: #e5e7eb;
    --b-blue: #2563eb; --b-blue-50: #eff4ff; --b-teal: #0d9488; --b-navy: #0f172a;
    --b-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
    --b-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.12);
    background: var(--b-bg);
}
.buy-page { font-family: var(--b-font); color: var(--b-text); background: var(--b-bg); }
.buy-page h1, .buy-page h2, .buy-page h3 { font-family: var(--b-font); color: var(--b-text); letter-spacing: -.025em; }
.buy-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.buy-wrap.narrow { max-width: 820px; }
.buy-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b-blue); }
.buy-section { padding: 88px 0; }
.buy-tint { background: var(--b-tint); }
.buy-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.buy-head h2 { margin-top: 10px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
.buy-head p:not(.buy-eyebrow) { margin-top: 12px; font-size: 17px; color: var(--b-muted); }

.bbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent; font: 600 16px var(--b-font); cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; }
.bbtn:active { transform: scale(.98); }
.bbtn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.bbtn-block { width: 100%; }
.bbtn-primary { background: var(--b-blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(37,99,235,.7); }
.bbtn-primary:hover { background: #1d4fd8; }
.bbtn-dark { background: var(--b-navy); color: #fff; }
.bbtn-dark:hover { background: #1e293b; }
.bbtn-link { color: var(--b-blue); background: transparent; }

/* Hero */
.buy-hero { padding: 72px 0 64px; text-align: center; background: linear-gradient(180deg, var(--b-tint), var(--b-bg)); border-bottom: 1px solid var(--b-line); }
.buy-hero h1 { max-width: 820px; margin: 14px auto 18px; font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.buy-lead { max-width: 640px; margin: 0 auto 36px; padding: 14px 20px; border-left: 3px solid var(--b-blue); border-radius: 0 12px 12px 0; background: var(--b-tint); text-align: left; font-size: 18px; font-style: italic; line-height: 1.5; color: var(--b-text); }
.buy-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 860px; margin: 0 auto; border: 1px solid var(--b-line); border-radius: 16px; background: var(--b-bg); box-shadow: var(--b-shadow); }
.buy-stats div { padding: 22px 12px; }
.buy-stats div + div { border-left: 1px solid var(--b-line); }
.buy-stats dt { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; color: var(--b-blue); }
.buy-stats dd { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--b-muted); }
.buy-subline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 20px 0 30px; font-size: 14.5px; font-weight: 600; color: var(--b-muted); }
.buy-subline span + span::before { content: "·"; margin-right: 18px; color: var(--b-line); }
.buy-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Cards */
.bcard { position: relative; padding: 26px; border-radius: 16px; background: var(--b-bg); border: 1px solid var(--b-line); box-shadow: var(--b-shadow); }
.bicon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--b-blue); background: var(--b-blue-50); }
.bcard-no { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--b-muted); }
.bcard h3 { margin: 16px 0 12px; font-size: 19px; font-weight: 700; }
.bcard p { font-size: 15px; color: var(--b-muted); }
.btick { display: grid; gap: 9px; }
.btick li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: var(--b-text); }
.btick .icon { margin-top: 3px; color: var(--b-teal); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.buy-quote { max-width: 720px; margin: 36px auto 0; padding: 16px 22px; border-left: 3px solid var(--b-blue); border-radius: 0 12px 12px 0; background: var(--b-blue-50); font-size: 18px; font-style: italic; color: var(--b-text); }
.buy-quote.is-accent { border-left-color: #d97706; background: var(--b-tint); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 960px; margin: 0 auto; align-items: stretch; }
.price-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--b-bg); border: 2px solid var(--b-line); box-shadow: var(--b-shadow); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.price-card:hover { transform: translateY(-2px); }
.price-card[aria-checked="true"] { border-color: var(--b-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12), var(--b-shadow); }
.price-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.price-top { display: grid; justify-items: center; gap: 4px; padding: 26px 20px; text-align: center; color: #fff; background: #1e293b; }
.price-card.is-growth .price-top { background: var(--b-navy); }
.price-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.is-growth .price-eyebrow { color: #f59e0b; }
.price-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--b-navy); background: #fbbf24; }
.price-badge .icon { fill: currentColor; }
.price-amount { margin-top: 6px; font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price-label { font-size: 15px; font-weight: 600; color: #38bdf8; }
.price-body { flex: 1; padding: 24px; background: var(--b-tint); }
.is-growth .price-body { background: var(--b-blue-50); }
.price-body > p { margin-bottom: 18px; font-size: 15px; color: var(--b-text); }
.price-inc { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--b-muted); }
.price-foot { display: grid; gap: 8px; padding: 20px 24px 24px; text-align: center; background: inherit; }
.price-foot small { font-size: 13px; color: var(--b-muted); }
.price-ask { margin-top: 26px; text-align: center; }
.price-ask a, .buy-more a, .final-ask { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--b-blue); }

/* Comparison matrix */
.compare-acc { max-width: 860px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--b-bg); border: 1px solid var(--b-line); box-shadow: var(--b-shadow); }
.compare-acc summary { list-style: none; display: none; }
.compare-acc summary::-webkit-details-marker { display: none; }
.bmatrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.bmatrix th, .bmatrix td { padding: 14px 20px; border-bottom: 1px solid var(--b-line); }
.bmatrix thead th { background: #1e293b; color: #fff; font-weight: 600; text-align: center; }
.bmatrix thead th:first-child, .bmatrix tbody th, .bmatrix tfoot th { text-align: left; }
.bmatrix tbody th { font-weight: 500; color: var(--b-text); }
.bmatrix tbody tr:nth-child(odd) { background: var(--b-tint); }
.bmatrix td { width: 22%; text-align: center; }
.mk-yes { display: inline-grid; place-items: center; color: var(--b-blue); }
.mk-yes.is-growth { color: #16a34a; }
.mk-no { color: #9ca3af; }
.bmatrix tfoot th, .bmatrix tfoot td { border-bottom: 0; background: var(--b-blue-50); font-weight: 700; }
.inv-std { color: #94a3b8; }
.inv-gro { color: var(--b-blue); }

/* Breakdown, uses, audience */
.pillar5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pillar5 .bcard h3 { font-size: 17px; }
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { padding: 24px; border-radius: 16px; border: 1px solid var(--b-line); background: var(--b-bg); }
.use h3 { margin: 16px 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b-blue); }
.use p { font-size: 15px; color: var(--b-muted); }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.persona { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--b-bg); border: 1px solid var(--b-line); }
.persona h3 { font-size: 16.5px; font-weight: 700; }
.persona p { margin-top: 4px; font-size: 14.5px; color: var(--b-muted); }

/* Delivery timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--b-line); border-top: 2px solid var(--b-blue); border-radius: 0 0 16px 16px; background: var(--b-tint); }
.timeline li { padding: 26px 22px; text-align: center; }
.timeline li + li { border-left: 1px solid var(--b-line); }
.timeline-dot { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 50%; color: #fff; background: var(--b-blue); }
.timeline-no { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-blue); }
.timeline p { font-size: 14.5px; color: var(--b-muted); }

/* Philosophy formula */
.formula { max-width: 860px; margin: 0 auto; padding: 32px; border-radius: 16px; border-left: 4px solid #0ea5e9; background: var(--b-navy); color: #fff; text-align: center; }
.formula-label { display: block; margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.formula-parts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.formula-parts span { padding: 8px 14px; border-radius: 10px; font-weight: 600; background: rgba(255,255,255,.08); }
.formula-parts i, .formula-eq { font-style: normal; font-weight: 700; color: #38bdf8; }
.formula-eq { display: block; margin: 14px 0; font-size: 26px; }
.formula strong { font-size: clamp(1.1rem, 2.4vw, 1.5rem); letter-spacing: .04em; text-transform: uppercase; }

/* White-label flow */
.wl-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wl-flow li { position: relative; padding: 22px; border-radius: 16px; text-align: center; background: var(--b-tint); border: 1px solid var(--b-line); }
.wl-flow li + li::before { content: "→"; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--b-blue); }
.wl-flow strong { display: block; font-size: 15.5px; color: var(--b-text); }
.wl-flow span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--b-muted); }
.buy-more { margin-top: 22px; text-align: center; }

/* FAQ */
.faq-search { display: flex; align-items: center; gap: 10px; height: 50px; margin-bottom: 18px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--b-line); background: var(--b-bg); color: var(--b-muted); }
.faq-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 16px var(--b-font); color: var(--b-text); }
.faq-search:focus-within { border-color: var(--b-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.bfaq-list { display: grid; gap: 10px; }
.bfaq { border-radius: 12px; background: var(--b-bg); border: 1px solid var(--b-line); }
.bfaq[hidden] { display: none; }
.bfaq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 600; font-size: 16px; cursor: pointer; }
.bfaq summary::-webkit-details-marker { display: none; }
.bfaq[open] .faq-chev { transform: rotate(180deg); color: var(--b-blue); }
.bfaq p { padding: 0 20px 18px; font-size: 15px; color: var(--b-muted); }
.bfaq-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--b-blue); }

/* Final CTA */
.buy-final-wrap { padding-top: 0; background: var(--b-tint); }
.buy-final { padding: 64px 32px; border-radius: 20px; text-align: center; color: rgba(255,255,255,.8); background: var(--b-navy); border-bottom: 4px solid var(--b-blue); }
.buy-final h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
.final-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 24px 0; }
.final-stats li { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.final-stats .icon { color: #38bdf8; }
.final-choose { margin-bottom: 12px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.final-plans { display: inline-flex; gap: 6px; margin-bottom: 26px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.08); }
.final-plan { height: 46px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.75); font: 600 15px var(--b-font); cursor: pointer; }
.final-plan strong { color: #fff; }
.final-plan[aria-checked="true"] { background: #fff; color: var(--b-text); }
.final-plan[aria-checked="true"] strong { color: var(--b-blue); }
.buy-final .bbtn { display: flex; width: fit-content; margin: 0 auto 18px; }
.final-ask { color: #93c5fd; }

/* Ask a question */
.ask-form { display: grid; gap: 14px; padding: 28px; border-radius: 16px; background: var(--b-bg); border: 1px solid var(--b-line); box-shadow: var(--b-shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--b-text); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--b-line); background: var(--b-tint); font: 16px var(--b-font); color: var(--b-text); }
.field input { height: 48px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--b-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 13px; font-weight: 600; color: var(--danger); }
.form-success { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; background: rgba(18,162,107,.1); color: #0b7a50; font-weight: 600; font-size: 14.5px; }

/* Sticky mobile purchase bar */
.buybar { display: none; }
.tab-cta.is-active { color: var(--blue); }
.tab-cta.is-active .tab-cta-btn { background: linear-gradient(140deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 10px 22px -8px rgba(201,161,90,.8), 0 0 0 5px var(--bg); }

/* ==========================================================================
   New pages — tablet
   ========================================================================== */
@media (max-width: 1100px) {
    .pillar-grid { grid-template-columns: repeat(3, 1fr); }
    .need-grid, .glance-stats { grid-template-columns: repeat(2, 1fr); }
    .kit-list { grid-template-columns: repeat(2, 1fr); }
    .resource-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-7 { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
    .steps-7::before { display: none; }
    .format-strip { grid-template-columns: repeat(4, 1fr); }
    .sample-grid, .sample-grid.cols-5, .sample-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
    .story-thumbs { grid-template-columns: repeat(3, 1fr); }
    .workflow { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
    .workflow li:nth-child(4)::before { display: none; }
    .carousel-item { flex-basis: calc((100% - 36px) / 3); }
    .pillar5 { grid-template-columns: repeat(3, 1fr); }
    .use-grid { grid-template-columns: repeat(2, 1fr); }
    .persona-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   New pages — mobile (app-style)
   ========================================================================== */
@media (max-width: 899px) {
    .hero-promise { margin: -8px 0 24px; font-size: 13px; }
    .center-label { margin-top: -12px; text-align: left; }
    .tick-list.two-col { grid-template-columns: 1fr; }
    .section-cta { margin-top: 24px; }
    .section-cta .btn { width: 100%; }
    .closing-line { text-align: left; font-size: 1.1rem; margin-top: 24px; }
    .filter-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chip { flex-shrink: 0; height: 38px; }
    .search-field { height: 50px; padding: 0 16px; }
    .stat-line, .flag-line { justify-content: flex-start; }
    .cta-sub { margin-left: 0; }
    .cta-after-tint { padding-top: 40px; }
    .eco-node { font-size: 14px; padding: 14px; }
    .eco-root { font-size: 15.5px; }

    /* About */
    .task-list { grid-template-columns: 1fr; gap: 6px; }
    .task-list li { padding: 11px 12px; font-size: 14px; }
    .solution-card { position: static; padding: 24px 20px; }
    .solution-emphasis { font-size: 18px !important; }
    .pillar-grid { grid-template-columns: 1fr; gap: 10px; }
    .pillar-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; }
    .pillar-card .icon-tile { grid-row: span 2; }
    .pillar-card h3 { margin: 0 0 4px; }
    .simple-terms { display: grid; justify-items: start; padding: 18px; }
    .simple-terms ul { display: grid; gap: 8px; }
    .need-grid { grid-template-columns: 1fr; gap: 8px; }
    .need-grid li { padding: 14px; }
    .glance-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .glance-stat { padding: 16px; }
    .glance-num { font-size: 1.7rem; }
    .glance-label { font-size: 11px; }
    .glance-stat dd { font-size: 12.5px; }
    .layer-grid { grid-template-columns: 1fr; gap: 12px; }
    .layer { padding: 22px; }
    .kit-list { grid-template-columns: 1fr; gap: 8px; }
    .kit-list li { padding: 16px; }
    .family-grid { grid-template-columns: 1fr; gap: 12px; }
    .family { padding: 18px; }
    .family li { flex-wrap: wrap; row-gap: 4px; }
    .resource-grid > * { flex-basis: 78%; }
    .flow-list { grid-template-columns: 1fr; gap: 8px; }
    .steps-7 { grid-template-columns: 1fr; gap: 0; }
    .steps-7::before { display: block; }
    .custom-flow { grid-template-columns: 1fr; gap: 10px; }
    .custom-flow li { padding: 18px; }
    .custom-flow strong { font-size: 17px; }
    .asset-grid > * { flex-basis: 70%; }
    .question-grid { grid-template-columns: 1fr; gap: 10px; }
    .question { padding: 22px; }

    /* Topics */
    .hero-topics { padding-bottom: 44px; }
    .hero-topics .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-tagline { font-size: 1.1rem; margin-top: 14px; }
    .narrative { margin: 20px 0 24px; padding: 14px 16px; }
    .narrative p { font-size: 15px; }
    .topic-stats { padding: 10px; border-radius: 20px; }
    .topic-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tstat { padding: 14px 10px; border-radius: 14px; text-align: center; }
    .tstat dt { font-size: 1.45rem; }
    .tstat dd { font-size: 11.5px; line-height: 1.3; margin-top: 6px; }
    .topic-badges { justify-content: center; }
    .area-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .area-chip { padding: 13px 14px; font-size: 13.5px; }
    .area-chip .icon { display: none; }
    .result { grid-template-columns: 1fr auto; grid-template-areas: "type view" "title title" "path path"; row-gap: 4px; }
    .result-type { justify-self: start; }
    .kit-card summary { padding: 16px; gap: 12px; }
    .kit-no { display: none; }
    .kit-icon { width: 44px; height: 44px; border-radius: 13px; }
    .kit-head strong { font-size: 15.5px; }
    .kit-head small { font-size: 13px; }
    .kit-body { padding: 16px; }
    .area-list { grid-template-columns: 1fr; }
    .program-cards { grid-template-columns: 1fr; padding: 0 12px 12px; gap: 10px; }
    .program-card-lg { padding: 18px; }
    .family-acc summary { padding: 16px; }
    .family-name { font-size: 15.5px; }
    .collection-grid { grid-template-columns: 1fr; gap: 12px; }
    .collection { padding: 20px; }
    .need-cards { grid-template-columns: 1fr; gap: 8px; }
    .need-card { padding: 16px; }
    .audience-chips { grid-template-columns: 1fr 1fr; gap: 8px; }
    .audience-chips li { padding: 13px; font-size: 13.5px; }
    .format-strip > * { flex-basis: 40%; }

    /* Samples */
    .hero-samples { padding-bottom: 48px; }
    .hero-samples .hero-grid { gap: 28px; }
    .hero-quote { font-size: 17px; padding: 12px 14px; }
    .collage { height: 320px; }
    .collage-card { width: 44%; }
    .collage-1 { width: 50%; }
    .collage-6 { width: 34%; }
    .collage-label { font-size: 9.5px; }
    .fan-badge { font-size: 12px; padding: 8px 12px; }
    .explorer { padding-top: 48px; }
    .explorer-head { text-align: left; margin-bottom: 14px; }
    .explorer-bar { padding: 10px 0; }
    .feature, .story-feature { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
    .feature.is-flipped .feature-visual { order: 0; }
    .feature-visual .show-frame { padding: 24px; }
    .feature-quote { font-size: 17px; }
    .sample-grid, .sample-grid.cols-5, .sample-grid.cols-6, .practice-grid, .story-thumbs { grid-template-columns: 1fr 1fr; gap: 10px; }
    .practice-grid .is-large { grid-column: span 2; }
    .sample-frame { padding: 12px; }
    .sample-meta { padding: 10px 12px 12px; }
    .sample-meta strong { font-size: 13px; }
    .sample-zoom { display: none; }
    .slide-grid > * { flex-basis: 84%; }
    .rail[hidden] { display: none !important; }
    .subject-tabs.is-filtering .rail[hidden] { display: flex !important; }
    .workflow { grid-template-columns: 1fr 1fr; gap: 14px; }
    .workflow li::before { display: none; }
    .band-quote, .accent-quote { font-size: 1.1rem; padding: 16px 18px; }
    .carousel { margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
    .carousel-item { flex-basis: 64%; }
    .matrix th, .matrix td { padding: 12px 14px; font-size: 14px; }
    .matrix tbody th { white-space: normal; }
    .edit-flow { grid-template-columns: 1fr 1fr; gap: 10px; }
    .edit-flow li { padding: 18px 16px; }
    .edit-flow strong { font-size: 17px; }
    .quality { text-align: left; }
    .not-list { justify-content: flex-start; }
    .chip-list.is-center { justify-content: flex-start; }
    .viewer-stage { padding: 18px; }
    .viewer-stage .mock-doc { max-width: 240px; }
    .viewer-caption { font-size: 13.5px; }
    .viewer-arrow { width: 44px; height: 44px; }

    /* Buy Now */
    .buy-section { padding: 56px 0; }
    .buy-head { text-align: left; margin-bottom: 28px; }
    .buy-hero { padding: 40px 0 44px; text-align: left; }
    .buy-hero h1 { margin-inline: 0; font-size: 2.3rem; }
    .buy-lead { font-size: 16px; }
    .buy-stats { grid-template-columns: 1fr 1fr; }
    .buy-stats div:nth-child(3) { border-left: 0; }
    .buy-stats div:nth-child(n+3) { border-top: 1px solid var(--b-line); }
    .buy-subline { justify-content: flex-start; }
    .buy-subline span + span::before { margin-right: 10px; }
    .buy-actions { display: grid; }
    .buy-actions .bbtn { width: 100%; }
    .value-grid, .price-grid, .pillar5, .use-grid, .persona-grid { grid-template-columns: 1fr; gap: 12px; }
    .bcard { padding: 20px; }
    .price-foot .bbtn { height: 56px; }
    .compare-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px; font-weight: 600; cursor: pointer; }
    .compare-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--b-blue); }
    .compare-acc[open] .compare-toggle .icon { transform: rotate(180deg); }
    .bmatrix { font-size: 14px; }
    .bmatrix th, .bmatrix td { padding: 12px 12px; }
    .bmatrix td { width: 20%; }
    .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--b-blue); border-radius: 0 16px 16px 0; }
    .timeline li { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; text-align: left; padding: 18px; }
    .timeline li + li { border-left: 0; border-top: 1px solid var(--b-line); }
    .timeline-dot { grid-row: span 2; margin: 0; }
    .formula { padding: 24px 18px; }
    .wl-flow { grid-template-columns: 1fr; gap: 22px; }
    .wl-flow li + li::before { content: "↓"; left: 50%; top: -20px; transform: translateX(-50%); }
    .buy-final { padding: 40px 20px; text-align: left; }
    .final-stats { justify-content: flex-start; flex-direction: column; }
    .final-plans { display: grid; width: 100%; }
    .buy-final .bbtn { width: 100%; }
    .ask-form { padding: 20px 16px; }
    .field-row { grid-template-columns: 1fr; }

    body.page-buy { padding-bottom: calc(var(--tabbar-h) + 72px + env(safe-area-inset-bottom)); }
    .buybar {
        position: fixed; left: 0; right: 0; z-index: 55;
        bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px;
        font-family: var(--b-font);
        background: rgba(255,255,255,.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid var(--b-line);
        transition: transform .35s var(--ease), opacity .35s;
    }
    .buybar.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
    .buybar-price { min-width: 0; font-size: 14px; font-weight: 600; color: var(--b-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .buybar-price strong { font-size: 20px; font-weight: 700; color: var(--b-text); }
    .buybar .bbtn { height: 46px; padding: 0 18px; font-size: 15px; flex-shrink: 0; }
}


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
