/* ==========================================================================
   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 {
    /* Palette: ICARIANS — white surfaces, deep navy primary, sky & teal accents */
    --bg: #f9fafc;
    --surface: #ffffff;
    --tint: #f0f4f7;
    --ink: #0b1628;
    --text: #1e2a3e;
    --muted: #596475;
    --line: #e0e5eb;
    --primary: #102c5a;
    --navy: #0d224a;
    --navy-2: #102c5a;
    --navy-3: #16386e;
    --blue: #0068ad;
    --blue-600: #005a96;
    --blue-50: #e6f5fd;
    --accent: #d8f0fc;
    --sky: #43b2e1;
    --gold: #1aa598;
    --gold-2: #8fd8cf;
    --teal: #1aa598;
    --teal-50: #e3f6f3;
    --danger: #d9434f;
    --danger-50: #fdeff0;
    --success: #12a26b;
    --gradient-brand: linear-gradient(135deg, var(--navy), var(--blue) 55%, var(--teal));
    --gradient-hero: radial-gradient(60% 60% at 80% 0%, rgba(180,231,252,.7), transparent 70%), radial-gradient(50% 50% at 0% 30%, rgba(192,240,233,.6), transparent 70%);

    --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(16, 36, 70, .04), 0 8px 24px -8px rgba(16, 36, 70, .12);
    --shadow: 0 2px 4px rgba(16, 36, 70, .05), 0 24px 48px -16px rgba(16, 36, 70, .22);
    --shadow-lg: 0 30px 60px -24px rgba(16, 36, 70, .28);
    --ease: cubic-bezier(.2, .8, .2, 1);

    --header-h: 96px;
    --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 var(--line); background: var(--surface); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 12px -6px rgba(11, 18, 36, .12);
    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: var(--ink); }
.logo-img { display: block; height: 84px; width: auto; max-width: 320px; object-fit: contain; mix-blend-mode: multiply; }
.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); }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.is-active { color: var(--ink); background: var(--tint); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.currency-picker select { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }


/* ---------- 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(--surface); color: var(--muted); border-top: 1px solid var(--line); padding: 72px 0 0; }
.site-footer .logo-img { height: 84px; max-width: 320px; }
.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: var(--ink); font-size: 14px; margin-bottom: 6px; letter-spacing: 0; }
.footer-col a { font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); 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: 70px;
        --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; }
    .logo-img { height: 58px; max-width: 230px; }

    /* 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: brand and contact full width, Pages + Library side by side */
    .site-footer { padding-top: 44px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .footer-brand, .footer-contact { grid-column: 1 / -1; }
    .footer-brand p { max-width: none; margin-top: 14px; font-size: 14px; }
    .site-footer .logo-img { height: 64px; max-width: 240px; }
    .footer-col { gap: 2px; }
    .footer-col h4 { margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
    .footer-col a { display: flex; align-items: center; min-height: 40px; font-size: 15px; }
    .footer-contact { grid-template-columns: 1fr; gap: 10px; }
    .footer-contact h4 { margin-bottom: 0; }
    .site-footer .footer-contact a { min-height: 52px; padding: 10px 14px; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font-weight: 600; overflow-wrap: anywhere; word-break: normal; }
    .site-footer .footer-contact a .icon { color: var(--blue); }
    .footer-address { padding: 2px 4px; }
    .site-footer .footer-bottom { margin-top: 32px; padding-block: 20px; flex-direction: column; align-items: center; gap: 6px; text-align: center; }

    /* Bottom tab bar: four equal tabs, Buy Now gets a filled icon pill */
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
        padding: 0 8px env(safe-area-inset-bottom);
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px -12px rgba(11,18,36,.18);
    }
    .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: var(--tabbar-h); color: #7b8498; transition: color .2s; -webkit-tap-highlight-color: transparent; }
    .tab-icon { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background .2s, color .2s; }
    .tab-label { font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
    .tab.is-active { color: var(--blue); }
    .tab.is-active .tab-icon { background: rgba(47,107,255,.12); }
    .tab:active .tab-icon { transform: scale(.94); }
    .tab-cta { color: var(--blue); }
    .tab-cta .tab-icon { color: #fff; background: linear-gradient(140deg, #4c8dff, var(--blue-600)); box-shadow: 0 6px 14px -6px rgba(47,107,255,.75); }
}

@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 .tab-icon { background: linear-gradient(140deg, #3b7bff, #1d4fd8); box-shadow: 0 0 0 3px rgba(47,107,255,.18), 0 6px 14px -6px rgba(47,107,255,.75); }

/* ==========================================================================
   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; }
}

/* ==========================================================================
   Brand, parallax & PDF imagery (admin-managed logo, product PDF pages)
   ========================================================================== */

/* Parallax backgrounds */
.has-parallax { position: relative; overflow: hidden; isolation: isolate; }
.has-parallax > .parallax { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.parallax img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; max-width: none; object-fit: cover; will-change: transform; }
.parallax::after { content: ""; position: absolute; inset: 0; }
.parallax-dark img { filter: saturate(.85); }
.parallax-dark::after { background: linear-gradient(180deg, rgba(11,18,36,.9), rgba(11,18,36,.78) 45%, rgba(11,18,36,.93)); }
.parallax-light::after { background: linear-gradient(180deg, rgba(247,249,252,.9), rgba(255,255,255,.84) 50%, rgba(255,255,255,.96)); }
.has-parallax > .container, .has-parallax > .buy-wrap { position: relative; z-index: 1; }
.has-parallax > .hero-bg { z-index: 0; }
.hero.has-parallax .parallax-dark::after { background: linear-gradient(100deg, rgba(11,18,36,.94) 30%, rgba(11,18,36,.72)); }
.cta-card.has-parallax .parallax-dark::after { background: linear-gradient(150deg, rgba(26,39,72,.9), rgba(11,18,36,.94) 60%); }
@media (prefers-reduced-motion: reduce) { .parallax img { top: 0; height: 100%; } }

/* Home hero — product shot */
.hero-product { display: grid; gap: 16px; justify-items: center; }
.product-shot { padding: 0; border: 0; background: none; cursor: zoom-in; width: min(100%, 440px); }
.product-shot .show-frame { display: block; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transition: transform .6s var(--ease); }
.product-shot:hover .show-frame { transform: translateY(-6px); }
.product-shot .mock-image { width: 100%; height: auto; object-fit: contain; border-radius: 0; box-shadow: none; background: none; }
.product-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.product-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.product-chip.tone-blue .icon { color: var(--sky); }
.product-chip.tone-gold .icon { color: var(--gold-2); }
.product-chip.tone-teal .icon { color: #3fd1bd; }

/* Home — kit posters */
.kit-posters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.kit-poster { 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; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.kit-poster:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kit-poster-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f9; }
.kit-poster-img .mock-image { height: auto; object-fit: cover; object-position: top; border-radius: 0; box-shadow: none; transition: transform .6s var(--ease); }
.kit-poster:hover .kit-poster-img .mock-image { transform: scale(1.04); }
.kit-poster-info { display: flex; gap: 14px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.kit-poster-info strong { display: block; font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.kit-poster-info small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Poster thumbnails used across pages */
.resource.has-poster { padding-top: 0; overflow: hidden; }
.resource-poster, .collection-poster, .kit-poster-thumb, .wl-poster { display: block; padding: 0; border: 0; background: #eef2f9; cursor: zoom-in; overflow: hidden; }
.resource-poster { margin: 0 -22px 18px; aspect-ratio: 4 / 3; }
.resource.has-poster .audience-icon { margin-top: -44px; position: relative; border: 3px solid var(--surface); }
.resource-poster .mock-image, .collection-poster .mock-image, .kit-poster-thumb .mock-image { height: 100%; object-fit: cover; object-position: top; border-radius: 0; box-shadow: none; transition: transform .6s var(--ease); }
.resource-poster:hover .mock-image, .collection-poster:hover .mock-image, .kit-poster-thumb:hover .mock-image { transform: scale(1.05); }
.asset-card { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.asset-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.asset-caption { display: grid; gap: 2px; padding: 16px 18px; border-top: 1px solid var(--line); }
.asset-caption strong { color: var(--ink); font-size: 15.5px; }
.asset-caption span { color: var(--muted); font-size: 14px; }

/* Real page images inside preview frames */
.show-frame.has-image { padding: 10px; }
.sample-frame.has-image { padding: 12px; aspect-ratio: 4 / 3; overflow: hidden; }
.sample-frame.has-image .mock-image { object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.sample-card:hover .sample-frame.has-image .mock-image { transform: scale(1.03); }
.slide-grid .show-frame.has-image { aspect-ratio: 16 / 10; }
.feature-visual .show-frame.has-image { padding: 22px; aspect-ratio: 4 / 3.4; }
.feature-visual .has-image .mock-image { object-fit: cover; object-position: top; }
.workflow-thumb .show-frame.has-image { padding: 6px; }
.workflow-thumb .has-image .mock-image { object-fit: cover; object-position: top; }
.sample-meta small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pdf-flag { margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-style: normal; font-size: 10px; color: #fff; background: var(--danger); }
.mock-pdf { position: relative; width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 14px; border-radius: 8px; background: #fff; box-shadow: 0 14px 30px -14px rgba(11,18,36,.35); text-align: center; overflow: hidden; }
.mock-pdf-badge { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #fff; background: var(--danger); }
.mock-pdf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mock-pdf.is-rendered .mock-h { display: none; }
.mock-pdf.is-rendered .mock-pdf-badge { position: absolute; top: 8px; left: 8px; z-index: 1; }

/* Samples hero collage now opens the viewer */
.collage-card { padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.collage-card .show-frame.has-image { aspect-ratio: 3 / 4; padding: 8px; }
.collage-card .has-image .mock-image { object-fit: cover; object-position: top; }

/* Brochure / poster rails */
.poster-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.poster-rail.is-compact { grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 36px; }
.sample-card.is-poster .sample-frame.has-image { aspect-ratio: 2 / 3; padding: 8px; }
.sample-card.is-poster .sample-meta { padding: 12px 14px 14px; }
.sample-card.is-poster .sample-meta strong { font-size: 13.5px; }
.sample-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.story-titles { margin-top: 32px; text-align: center; }
.story-titles .mini-label { display: block; margin-bottom: 12px; }

/* Topics — kit and collection posters */
.kit-poster-row { display: flex; gap: 12px; margin-bottom: 18px; }
.kit-poster-thumb { width: 150px; aspect-ratio: 2 / 3; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.collection.has-poster { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.collection.is-wide.has-poster { grid-template-columns: 200px 1fr; }
.collection-poster { aspect-ratio: 2 / 3; border-radius: 14px; border: 1px solid var(--line); }
.collection-body > p:not(.collection-tagline) { font-size: 14.5px; color: var(--muted); }
.format-card { display: flex; flex-direction: column; width: 100%; padding: 0; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.format-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.format-caption { padding: 10px 12px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); }

/* Footer contact */
.footer-company { margin-top: 8px !important; font-size: 13.5px !important; }
.footer-company strong { color: var(--text); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.footer-address { font-size: 14px; line-height: 1.5; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tint); border: 1px solid var(--line); color: var(--text); }
.footer-social a:hover { color: var(--blue); background: var(--surface); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-note { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); }


/* Viewer: PDFs and the open-PDF link */
.viewer-stage .show-frame.has-image { aspect-ratio: auto; height: 100%; display: grid; place-items: center; }
.viewer-stage .has-image .mock-image { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 210px); object-fit: contain; }
.viewer-pdf-frame { width: min(1000px, 100%); height: calc(100dvh - 210px); border: 0; border-radius: 10px; background: #fff; }
.viewer-pdf { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; font-weight: 800; color: #fff !important; }
.viewer-pdf[hidden] { display: none; }
.viewer.is-single .viewer-arrow { visibility: hidden; }

/* Buy page — dark parallax band, secure note, white-label poster */
.buy-band { color: rgba(255,255,255,.8); background: var(--b-navy); }
.buy-band h2, .buy-band .buy-head p { color: #fff !important; }
.buy-band .buy-eyebrow { color: #93c5fd; }
.buy-band .formula { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px); }
.buy-band .formula-parts span { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.buy-hero.has-parallax { background: var(--b-tint); }
.price-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--b-muted); }
.price-secure .icon { color: var(--b-teal); }
.wl-poster { width: min(100%, 320px); margin: 0 auto 32px; aspect-ratio: 2 / 3; border-radius: 16px; border: 1px solid var(--b-line); box-shadow: var(--b-shadow); }
.wl-poster .mock-image { height: 100%; object-fit: cover; object-position: top; border-radius: 0; box-shadow: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Checkout dialog */
.checkout { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: transparent; overflow: visible; }
.checkout::backdrop { background: rgba(15,23,42,.6); backdrop-filter: blur(4px); }
.checkout[open] { animation: fadeUp .3s var(--ease); }
.checkout-card { display: grid; gap: 16px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 26px; border-radius: 22px; background: #fff; font-family: var(--b-font); color: var(--b-text); box-shadow: 0 30px 80px -20px rgba(15,23,42,.5); }
.checkout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.checkout-head h2 { margin-top: 6px; font-size: 1.5rem; font-weight: 700; color: var(--b-text); }
.checkout-x { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--b-tint); color: var(--b-text); }
.checkout-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--b-blue-50); border: 1px solid #dbe6ff; }
.checkout-plan div { display: grid; gap: 2px; }
.checkout-plan span { font-size: 13.5px; color: var(--b-muted); }
.checkout-price { font-size: 1.5rem; color: var(--b-blue); letter-spacing: -.02em; }
.checkout .field label small { font-weight: 500; color: var(--b-muted); }
.checkout-note { display: flex; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff8e6; color: #7a5a12; font-size: 14px; }
.checkout-note a { font-weight: 700; text-decoration: underline; }
.checkout-error { padding: 12px 14px; border-radius: 12px; background: #fdecee; color: #b42334; font-size: 14px; font-weight: 600; }
.checkout-foot { text-align: center; font-size: 12.5px; color: var(--b-muted); }
.bbtn:disabled { opacity: .6; cursor: not-allowed; }

/* Thank-you page */
.thanks { min-height: 70vh; display: grid; align-items: center; }
.thanks-card { padding: 44px 36px; border-radius: 24px; background: #fff; border: 1px solid var(--b-line); box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); text-align: center; }
.thanks-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 16px; border-radius: 50%; color: #b7791f; background: #fff4db; }
.thanks-icon.is-paid { color: #fff; background: var(--success); box-shadow: 0 12px 26px -10px rgba(18,162,107,.8); }
.thanks-card h1 { margin: 10px 0 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.thanks-lead { max-width: 560px; margin: 0 auto 24px; font-size: 16.5px; color: var(--b-muted); }
.thanks-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 26px; text-align: left; }
.thanks-meta div { padding: 12px 14px; border-radius: 12px; background: var(--b-tint); }
.thanks-meta dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--b-muted); }
.thanks-meta dd { margin: 4px 0 0; font-weight: 700; word-break: break-all; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.thanks-help { margin-top: 18px; font-size: 14px; color: var(--b-muted); }
.thanks-help a { color: var(--b-blue); font-weight: 600; }

@media (max-width: 1100px) {
    .kit-posters { grid-template-columns: repeat(2, 1fr); }
    .poster-rail { grid-template-columns: repeat(3, 1fr); }
    .poster-rail.is-compact { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) {
    .hero-product { margin-top: 8px; }
    .product-shot { width: min(100%, 320px); }
    .kit-posters { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kit-poster-info { padding: 12px; gap: 10px; }
    .kit-poster-info .kit-list-no { display: none; }
    .kit-poster-info strong { font-size: 14px; }
    .kit-poster-info small { font-size: 12.5px; }
    .kit-poster-thumb { width: 120px; }
    .collection.has-poster, .collection.is-wide.has-poster { grid-template-columns: 96px 1fr; gap: 14px; }
    .poster-rail, .poster-rail.is-compact { display: flex; }
    .poster-rail > * { flex-basis: 58%; }
    .poster-rail.is-compact { margin-bottom: 8px; }
    .sample-grid.cols-3 { grid-template-columns: 1fr 1fr; }
    .checkout-card { padding: 20px; }
    .checkout .field-row { grid-template-columns: 1fr; }
    .thanks-card { padding: 30px 20px; }
}

/* Homepage hero: fills one screen (100vh) */
.hero-home { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; }
.hero-home > .hero-grid { width: 100%; }
@media (min-width: 900px) {
    .hero-home { padding: calc(var(--header-h) + 24px) 0 24px; }
    .hero-home .hero-grid { gap: 40px; }
    .hero-home .hero-title { font-size: clamp(2.5rem, min(5.4vw, 8.4vh), 4.6rem); }
    /* Box set fills the screen height (minus header and padding) without cropping */
    .hero-home .product-shot { width: auto; max-width: 100%; }
    .hero-home .product-shot .mock-image { width: auto; max-width: 100%; height: calc(100vh - var(--header-h) - 64px); height: calc(100svh - var(--header-h) - 64px); min-height: 380px; max-height: 900px; margin-inline: auto; }
}
@media (min-width: 900px) and (max-height: 720px) {
    .hero-home .hero-title { font-size: clamp(2.3rem, 7.4vh, 4.6rem); margin-top: 10px; }
    .hero-home .hero-tagline { margin-top: 10px; font-size: 1.1rem; }
    .hero-home .hero-sub { margin: 8px 0 16px; font-size: 15px; line-height: 1.55; }
    .hero-home .hero-promise { margin: -2px 0 16px; }
    .hero-home .btn-lg { height: 50px; }
}
@media (max-width: 899px) {
    .hero-home .product-shot { width: min(100%, 420px); }
}

/* ==========================================================================
   White theme — ICARIANS palette. Turns the former dark sections (heroes,
   dark bands, CTA cards, Buy page blocks) into light surfaces.
   ========================================================================== */

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(16,44,90,.6); }
.btn-primary:hover { background: var(--navy); box-shadow: 0 12px 26px -10px rgba(16,44,90,.7); }
.btn-gold { background: var(--gradient-brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(0,104,173,.6); }
.btn-glass { background: var(--surface); color: var(--ink); border-color: var(--line); backdrop-filter: none; }
.btn-glass:hover { background: var(--tint); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-outline:hover { border-color: var(--sky); }

/* Header & logo — frosted white glass */
.site-header { background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: rgba(224,229,235,.7); box-shadow: none; }
.logo-mark { background: var(--gradient-brand); box-shadow: 0 6px 16px -8px rgba(0,104,173,.6); }
.main-nav a:hover, .main-nav a.is-active { background: var(--tint); }
:focus-visible { outline-color: var(--sky); }

/* Headings on formerly-dark bands */
.eyebrow, .eyebrow-light, .on-dark .eyebrow, .on-dark-label, .spec-label, .stance-label, .custom-no, .edit-no { color: var(--blue); }
.eyebrow-no, .eyebrow-light .eyebrow-no, .on-dark .eyebrow-no { background: var(--blue-50); color: var(--blue); }
.on-dark .section-title, .on-dark-line { color: var(--ink); }
.on-dark .section-body { color: var(--muted); }
.screen-dark { background: var(--gradient-hero), var(--tint); color: var(--text); }

/* Parallax photos: soft white wash instead of a dark one */
.parallax-dark img { filter: saturate(.7); }
.parallax-dark::after,
.hero.has-parallax .parallax-dark::after { background: linear-gradient(180deg, rgba(249,250,252,.93), rgba(249,250,252,.88) 50%, rgba(249,250,252,.95)); }
.cta-card.has-parallax .parallax-dark::after { background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(240,244,247,.92)); }

/* Heroes */
.hero { background: var(--bg); color: var(--text); }
.hero-bg { background: var(--gradient-hero); }
.hero-bg::after { background-image: linear-gradient(rgba(16,44,90,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16,44,90,.05) 1px, transparent 1px); }
.hero-title, .hero-tagline { color: var(--ink); }
.hero-title .serif-accent, .text-brand { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); }
.hero-promise { color: var(--teal); background: var(--teal-50); border-color: rgba(26,165,152,.25); }
.pulse-dot { background: var(--teal); }
.window { background: rgba(255,255,255,.7); border-color: var(--line); }
.window-bar > span { background: var(--line); }
.window-search { background: var(--tint); color: var(--muted); }
.program-card { box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.tone-blue .program-thumb, .tone-blue .kit-icon { background: linear-gradient(140deg, var(--sky), var(--blue)); }
.hero-stats { border-top-color: var(--line); }
.stat { border-left-color: var(--line); }
.stat-value { color: var(--ink); }
.stat-label { color: var(--muted); }
.product-chip { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.product-chip.tone-blue .icon { color: var(--blue); }
.product-chip.tone-gold .icon, .product-chip.tone-teal .icon { color: var(--teal); }
.show-frame { background: linear-gradient(160deg, var(--blue-50), var(--tint)); border-color: var(--line); }

/* Home blocks */
.audience::before { background: var(--gradient-brand); }
.audience-icon { background: var(--gradient-brand); box-shadow: 0 10px 20px -10px rgba(0,104,173,.6); }
.step-icon { background: var(--primary); }
.step-num { background: var(--teal); color: #fff; }
.ba-after { background: linear-gradient(160deg, var(--blue-50), var(--surface)); border: 1px solid #c6e7f7; color: var(--text); box-shadow: var(--shadow-sm); }
.ba-after .ba-tag { background: var(--teal-50); color: var(--teal); }
.ba-after li .icon { color: #fff; background: var(--teal); }

/* CTA cards */
.cta-card { color: var(--muted); background: var(--gradient-hero), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-glow { background: radial-gradient(600px 300px at 20% 0%, rgba(67,178,225,.18), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(26,165,152,.14), transparent 60%); }
.cta-title, .cta-brand strong, .cta-quote { color: var(--ink); }
.cta-sub, .cta-buy a { color: var(--blue); }
.cta-brand span { color: var(--muted); }
.stat-line li { color: var(--ink); background: var(--surface); border-color: var(--line); }
.flag-line li { color: var(--teal); }

/* Ecosystem diagram */
.eco-node { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.eco-root { color: var(--blue); background: var(--blue-50); border-color: #a9dcf3; }
.eco-result { color: #fff; background: var(--gradient-brand); }
.eco-arrow { color: var(--muted); }
.eco-assets { border-color: #c3ccd6; }
.eco-assets li { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }

/* About / topics blocks */
.solution-card { color: var(--text); background: var(--gradient-hero), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.solution-emphasis, .stance strong { color: var(--ink); }
.stance { border-top-color: var(--line); }
.stance em, .philosophy em { color: var(--teal); }
.glance-stat, .custom-flow li, .edit-flow li { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.glance-num, .tstat:nth-child(-n+3) dt { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glance-label { color: var(--teal); }
.glance-stat dd, .custom-flow p, .edit-flow p { color: var(--muted); }
.custom-flow strong, .edit-flow strong, .workflow strong { color: var(--ink); }
.kit-list-no { background: var(--primary); }
.philosophy { background: var(--gradient-hero), var(--surface); border: 1px solid var(--line); }
.philosophy span { color: var(--blue); }
.philosophy p { color: var(--ink); }
.narrative { background: rgba(255,255,255,.75); border-left-color: var(--sky); }
.narrative-label { color: var(--teal); }
.narrative p { color: var(--text); }
.topic-stats { background: rgba(255,255,255,.75); border-color: var(--line); box-shadow: var(--shadow); }
.tstat { background: var(--surface); border-color: var(--line); }
.tstat dt { color: var(--ink); }
.tstat dd { color: var(--muted); }
.topic-badges span { color: var(--primary); background: var(--accent); }

/* Samples blocks */
.hero-quote { color: var(--ink); background: var(--teal-50); border-left-color: var(--teal); }
.collage-card .show-frame { background: rgba(255,255,255,.75); border: 1px solid var(--line); }
.collage-label { color: var(--primary); }
.explorer-bar { background: rgba(249,250,252,.9); }
.feature-visual { background: linear-gradient(160deg, var(--blue-50), var(--tint)); }
.workflow-no { color: #fff; background: var(--teal); }
.band-quote { color: var(--ink); background: var(--surface); }
.matrix thead th { background: var(--primary); }
.edit-icon { color: var(--blue); background: var(--blue-50); }
.edit-flow.is-visible .edit-icon { color: #fff; background: var(--teal); }
.viewer-hook a { color: var(--sky); }
.filter-chip[aria-pressed="true"], .filter-chip[aria-selected="true"] { background: var(--primary); border-color: var(--primary); }
.filter-chip:hover { border-color: var(--sky); }
.search-field:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(67,178,225,.15), var(--shadow); }

/* Buy page */
.page-buy { --b-bg: #ffffff; --b-tint: #f0f4f7; --b-text: #1e2a3e; --b-muted: #596475; --b-line: #e0e5eb; --b-blue: #0068ad; --b-blue-50: #e6f5fd; --b-teal: #1aa598; --b-navy: #102c5a; }
.bbtn-primary { background: var(--b-navy); box-shadow: 0 8px 20px -10px rgba(16,44,90,.6); }
.bbtn-primary:hover { background: #0d224a; }
.price-top { background: var(--b-navy); }
.price-card.is-growth .price-top { background: var(--gradient-brand); }
.is-growth .price-eyebrow { color: #c0f0e9; }
.price-eyebrow { color: #b4e7fc; }
.price-label { color: #b4e7fc; }
.price-badge { color: var(--b-navy); background: #fff; }
.bmatrix thead th { background: var(--b-navy); }
.formula, .buy-band .formula { color: var(--b-text); background: var(--b-bg); border: 1px solid var(--b-line); border-left: 4px solid var(--sky); box-shadow: var(--b-shadow); backdrop-filter: none; }
.formula-label { color: var(--b-muted); }
.formula-parts span, .buy-band .formula-parts span { background: var(--b-tint); border-color: var(--b-line); }
.formula-parts i, .formula-eq { color: var(--b-blue); }
.formula strong { color: var(--b-navy); }
.buy-band { color: var(--b-text); background: var(--gradient-hero), var(--b-tint); }
.buy-band h2 { color: var(--ink) !important; }
.buy-band .buy-head p { color: var(--b-muted) !important; }
.buy-band .buy-eyebrow { color: var(--b-blue); }
.buy-final { color: var(--b-text); background: var(--gradient-hero), var(--b-bg); border: 1px solid var(--b-line); border-bottom: 4px solid var(--b-blue); box-shadow: var(--b-shadow); }
.buy-final h2 { color: var(--ink); }
.final-stats .icon { color: var(--b-teal); }
.final-choose { color: var(--b-muted); }
.final-plans { background: var(--b-tint); }
.final-plan { color: var(--b-muted); }
.final-plan strong { color: var(--ink); }
.final-plan[aria-checked="true"] { box-shadow: var(--b-shadow); }
.final-ask { color: var(--b-blue); }

/* Mobile — reference layout: glass app bar with a compact CTA, flat glass tab bar */
.header-cta { flex-shrink: 0; }
@media (max-width: 899px) {
    .header-cta { height: 34px; padding: 0 14px; font-size: 13px; gap: 6px; }
    .hero-stats .stat, .hero-stats .stat:first-child { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
    .screen-dark .rail-dots span { background: var(--line); }
    .screen-dark .rail-dots span.is-active { background: var(--blue); }
    .rail-dots span.is-active { background: var(--primary); }
    .tabbar { background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: none; }
    .tab { color: var(--muted); }
    .tab.is-active, .tab-cta { color: var(--primary); }
    .tab.is-active .tab-icon { background: var(--accent); }
    .tab-cta .tab-icon { color: inherit; background: transparent; box-shadow: none; }
    .tab-cta.is-active .tab-icon { background: var(--accent); box-shadow: none; }
    .buybar { background: rgba(255,255,255,.85); }
}

/* ==========================================================================
   Product store, cart & blog
   ========================================================================== */

/* Header cart button & toast */
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); transition: background .2s; }
.cart-btn:hover { background: var(--tint); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; color: #fff; background: var(--teal); border: 2px solid #fff; }
.toast { position: fixed; z-index: 90; left: 50%; top: calc(var(--header-h) + env(safe-area-inset-top) + 12px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 12px 14px 12px 16px; border-radius: 16px; font-size: 14.5px; color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: fadeUp .35s var(--ease); }
.toast > .icon { flex-shrink: 0; padding: 3px; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--success); }
.toast strong { color: var(--ink); }
.toast a { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: #fff; background: var(--primary); }
.toast.is-leaving { opacity: 0; transform: translate(-50%, -8px); transition: all .3s var(--ease); }

/* Page hero (store, blog) */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 56px; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero-inner { position: relative; max-width: 760px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-title { margin-top: 14px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.page-title .serif-accent { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.page-sub { margin: 16px auto 0; max-width: 600px; font-size: 17.5px; color: var(--muted); }
.store-search { max-width: 560px; margin: 28px auto 0; }
.store-screen { padding-top: 44px; }
.store-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.filter-chips.is-left { justify-content: flex-start; }
a.filter-chip { display: inline-flex; align-items: center; }
.store-sort select { height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23596475' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.store-count { margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.store-empty { display: grid; justify-items: center; gap: 10px; max-width: 520px; margin: 24px auto; padding: 56px 24px; border-radius: var(--radius-lg); text-align: center; background: var(--surface); border: 1px dashed #c3ccd6; color: var(--muted); }
.store-empty > .icon { color: var(--blue); }
.store-empty h2 { font-size: 1.4rem; }
.store-empty .btn { margin-top: 8px; }

/* Product cards */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--blue-50), var(--tint)); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-none { display: grid; place-items: center; width: 100%; height: 100%; color: var(--sky); }
.pbadge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--primary); }
.pbadge.is-sale { left: auto; right: 12px; background: var(--teal); }
.pbadge.is-inline { position: static; }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.pcard-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.pcard h3 { font-size: 16.5px; line-height: 1.3; }
.pcard h3 a:hover { color: var(--blue); }
.pcard-body > p { flex: 1; font-size: 14px; color: var(--muted); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pprice { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pprice s { margin-left: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pcard-add { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--primary); transition: all .2s; }
.pcard-add:hover { color: #fff; background: var(--primary); border-color: var(--primary); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--ink); }

/* Product detail */
.pdp { padding: 28px 0 72px; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; margin-top: 22px; }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.pdp-main { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--blue-50), var(--tint)); cursor: zoom-in; }
.pdp-main .mock-image { width: 100%; height: 100%; object-fit: contain; border-radius: 0; box-shadow: none; background: none; }
.pdp-main:hover .sample-zoom { opacity: 1; transform: none; }
.pdp-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pdp-thumb { flex: 0 0 76px; height: 92px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--tint); cursor: pointer; transition: border-color .2s; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.pdp-thumb[aria-pressed="true"] { border-color: var(--blue); }
.pdp-title { margin-top: 10px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.pdp-tagline { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 22px 0 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--gradient-hero), var(--surface); border: 1px solid var(--line); }
.pdp-price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.pdp-price s { font-size: 18px; font-weight: 600; color: var(--muted); }
.pdp-price small { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--muted); }
.pdp-summary { font-size: 16.5px; color: var(--text); }
.pdp-buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; margin: 24px 0 18px; }
.pdp-buy .btn { width: 100%; }
.qty { display: inline-flex; align-items: center; height: 56px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.qty button { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: none; color: var(--ink); border-radius: 999px; }
.qty button:hover:not(:disabled) { color: var(--blue); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 40px; height: 100%; border: 0; background: none; text-align: center; font: 700 16px var(--font); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 0; }
.qty.is-sm { height: 40px; }
.qty.is-sm button { width: 36px; }
.qty-value { min-width: 24px; text-align: center; font-weight: 700; color: var(--ink); }
.pdp-trust { display: grid; gap: 10px; padding: 18px 0; border-block: 1px solid var(--line); }
.pdp-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--muted); }
.pdp-trust .icon { margin-top: 2px; color: var(--teal); }
.pdp-trust a { font-weight: 700; color: var(--blue); }
.pdp-includes { margin-top: 24px; }
.pdp-includes h2, .pdp-desc-title { font-size: 1.25rem; margin-bottom: 14px; }
.pdp-includes .tick-list li { font-size: 15px; }
.pdp-desc { max-width: 820px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }

/* Rich text (blog articles, product descriptions) */
.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: 1.6rem; letter-spacing: -.02em; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,104,173,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin-inline: 0; padding: 16px 22px; border-left: 3px solid var(--sky); border-radius: 0 14px 14px 0; background: var(--blue-50); font-family: var(--serif); font-style: italic; font-size: 1.25em; line-height: 1.45; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose code { padding: 2px 6px; border-radius: 6px; font-size: .88em; background: var(--tint); }
.prose pre { padding: 16px; border-radius: 14px; overflow-x: auto; background: var(--tint); font-size: 14px; }
.prose pre code { padding: 0; background: none; }
.prose img { border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); background: var(--tint); }

/* Cart */
.cart-page { padding: 44px 0 80px; min-height: 60vh; }
.cart-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.cart-head .page-title { margin-top: 0; font-size: clamp(2rem, 4vw, 2.6rem); }
.cart-head .page-sub { margin: 0; font-size: 16px; }
.cart-flash { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; font-weight: 600; color: #0b7a50; background: rgba(18,162,107,.1); }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto auto; align-items: center; gap: 18px; padding: 14px 16px 14px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cart-img { display: grid; place-items: center; width: 84px; height: 100px; border-radius: 12px; overflow: hidden; color: var(--sky); background: linear-gradient(160deg, var(--blue-50), var(--tint)); }
.cart-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cart-info { display: grid; gap: 3px; min-width: 0; }
.cart-name { font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.3; }
.cart-name:hover { color: var(--blue); }
.cart-info small { font-size: 13.5px; color: var(--muted); }
.cart-unit { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cart-total { min-width: 80px; text-align: right; font-size: 17px; color: var(--ink); }
.cart-remove button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.cart-remove button:hover { color: var(--danger); background: var(--danger-50); }
.cart-summary { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cart-summary h2 { font-size: 1.2rem; }
.cart-summary dl { display: grid; gap: 10px; margin: 0; }
.cart-summary dl div { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 700; color: var(--ink); }
.cart-summary .is-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 800; color: var(--ink); }
.cart-summary .is-total dd { font-size: 1.5rem; }
.cart-summary .is-total small { font-size: 12px; font-weight: 600; color: var(--muted); }
.cart-checkout { width: 100%; }
.cart-continue { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--blue); }
.cart-note { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.cart-note .icon { margin-top: 2px; color: var(--teal); }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; }
.pager-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink); }
a.pager-btn:hover { border-color: var(--sky); color: var(--blue); }
.pager-btn.is-disabled { opacity: .4; }
.pager-info { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Blog listing */
.blog-chips { margin-bottom: 28px; }
.bfeature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 36px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bfeature-img { display: block; min-height: 340px; background: linear-gradient(160deg, var(--blue-50), var(--tint)); }
.bfeature-img img { width: 100%; height: 100%; object-fit: cover; }
.bfeature-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px; }
.bfeature-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; }
.bfeature-body h2 a:hover { color: var(--blue); }
.bfeature-body > p:not(.bmeta) { font-size: 16px; color: var(--muted); }
.bfeature-body .btn { align-self: flex-start; margin-top: 4px; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bpost { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bpost:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bpost-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(160deg, var(--blue-50), var(--tint)); }
.bpost-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bpost:hover .bpost-img img { transform: scale(1.04); }
.bpost-none { display: grid; place-items: center; width: 100%; height: 100%; color: var(--sky); }
.bpost-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.bpost h3 { font-size: 18px; line-height: 1.3; }
.bpost h3 a:hover { color: var(--blue); }
.bpost-body > p:not(.bmeta) { flex: 1; font-size: 14.5px; color: var(--muted); }
.bpost-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--blue); }
.bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bcat { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); }
.bcat.is-feature { color: var(--teal); background: var(--teal-50); }

/* Blog article */
.article-head { position: relative; overflow: hidden; padding: 48px 0 36px; background: var(--bg); }
.article-wrap { position: relative; max-width: 820px; }
.article-draft { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #7a5a12; background: #fff4db; }
.article-title { margin-top: 16px; font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.article-lead { margin-top: 16px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article-author { color: var(--ink); }
.article-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 13px; font-weight: 800; color: #fff; background: var(--gradient-brand); }
.article-cover { margin: 8px 0 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-body { padding-bottom: 8px; }
.article-foot { margin-top: 44px; padding: 26px 0 72px; border-top: 1px solid var(--line); }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-share > span { margin-right: 4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.article-share a, .article-share button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.article-share a:hover, .article-share button:hover { border-color: var(--sky); color: var(--blue); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.article-nav a { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.article-nav a:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.article-nav small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.article-nav strong { font-size: 15px; line-height: 1.35; color: var(--ink); }
.article-nav .is-next { text-align: right; justify-items: end; }
.article-cta { padding: 64px 32px; }
.article-cta .eyebrow { justify-content: center; }
.article-cta .cta-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* Mobile purchase bar on product & cart pages */
.buybar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.bbtn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }

@media (max-width: 1100px) {
    .logo-img { height: 64px; max-width: 220px; }
    .main-nav a { padding: 8px 9px; font-size: 14px; }
    .header-inner { gap: 18px; }
    .pgrid { grid-template-columns: repeat(3, 1fr); }
    .pdp-grid { gap: 36px; }
    .cart-grid { grid-template-columns: 1fr 320px; }
}
@media (max-width: 899px) {
    .tabbar { padding-inline: 2px; }
    .tab-icon { width: 46px; }
    .tab-label { font-size: 10.5px; }
    .cart-btn { width: 38px; height: 38px; }

    .page-hero { padding: 36px 0 28px; }
    .page-hero-inner { text-align: left; }
    .page-hero .eyebrow { justify-content: flex-start; }
    .page-title { font-size: 2.2rem; }
    .page-sub { margin-left: 0; font-size: 15.5px; }
    .store-search { margin: 20px 0 0; }
    .store-screen { padding-top: 22px; }
    .store-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .store-sort select { width: 100%; }
    .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pcard-body { padding: 12px; gap: 4px; }
    .pcard h3 { font-size: 14.5px; }
    .pcard-body > p { display: none; }
    .pcard-cat { font-size: 10.5px; }
    .pcard-foot { flex-wrap: wrap; gap: 8px; }
    .pprice { font-size: 16.5px; }
    .pcard-add { width: 100%; justify-content: center; height: 36px; }

    .pdp { padding: 16px 0 40px; }
    .pdp-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 14px; }
    .pdp-gallery { position: static; }
    .pdp-main { border-radius: var(--radius); }
    .pdp-title { font-size: 1.85rem; }
    .pdp-tagline { font-size: 18px; }
    .pdp-price strong { font-size: 2rem; }
    .pdp-buy { grid-template-columns: auto 1fr; }
    .pdp-buy .pdp-now { grid-column: 1 / -1; }
    .pdp-desc { margin-top: 36px; padding-top: 28px; }
    .prose { font-size: 16px; }
    .prose h2 { font-size: 1.35rem; }

    .cart-page { padding: 24px 0 40px; }
    .cart-grid { grid-template-columns: 1fr; gap: 16px; }
    .cart-line { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info remove" "img qty total"; gap: 8px 12px; padding: 12px; }
    .cart-img { grid-area: img; width: 64px; height: 80px; align-self: start; }
    .cart-info { grid-area: info; }
    .cart-line .qty { grid-area: qty; justify-self: start; }
    .cart-total { grid-area: total; align-self: center; }
    .cart-remove { grid-area: remove; align-self: start; }
    .cart-name { font-size: 15px; }
    .cart-summary { position: static; padding: 18px; }

    .bfeature { grid-template-columns: 1fr; }
    .bfeature-img { min-height: 0; aspect-ratio: 16 / 9; }
    .bfeature-body { padding: 20px; }
    .bgrid { grid-template-columns: 1fr; gap: 14px; }
    .bpost { display: grid; grid-template-columns: 110px 1fr; }
    .bpost-img { aspect-ratio: auto; height: 100%; min-height: 120px; }
    .bpost-body { padding: 14px; gap: 6px; }
    .bpost h3 { font-size: 15.5px; }
    .bpost-body > p:not(.bmeta), .bpost-more { display: none; }
    .bmeta { font-size: 12px; }

    .article-head { padding: 24px 0 20px; }
    .article-title { font-size: 2rem; }
    .article-lead { font-size: 17px; }
    .article-cover { margin-bottom: 26px; border-radius: var(--radius); }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav .is-next { text-align: left; justify-items: start; }
    .article-foot { padding-bottom: 40px; }
    .article-cta { padding: 40px 20px; }

    body:has(.buybar.is-store) { padding-bottom: calc(var(--tabbar-h) + 72px + env(safe-area-inset-bottom)); }
    .buybar.is-store .buybar-price { display: grid; line-height: 1.25; }
}
.thanks-items { display: grid; gap: 8px; margin: -10px 0 26px; text-align: left; }
.thanks-items li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--b-tint); font-weight: 600; }
.thanks-items small { color: var(--b-muted); }

/* Buy-page button, form and checkout tokens are also used by the store (product page, cart, checkout dialog). */
:root {
    --b-bg: #ffffff; --b-tint: #f0f4f7; --b-text: #1e2a3e; --b-muted: #596475; --b-line: #e0e5eb;
    --b-blue: #0068ad; --b-blue-50: #e6f5fd; --b-teal: #1aa598; --b-navy: #102c5a;
    --b-font: var(--font);
    --b-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.12);
}
.buybar.is-store { font-family: var(--font); }

/* ==========================================================================
   Storefront homepage, navigation & catalogue (homepage blueprint)
   ========================================================================== */

/* Header: full navigation from 1200px; menu sheet below */
.site-header .container.header-inner { max-width: 1360px; gap: 20px; }
.main-nav { align-items: center; gap: 2px; }
.main-nav a, .nav-drop-btn { padding: 8px 11px; font-size: 14px; white-space: nowrap; }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; background: none; font-weight: 700; color: var(--primary); cursor: pointer; transition: background .2s; }
.nav-drop-btn .icon { transition: transform .2s var(--ease); }
.nav-drop.is-open .nav-drop-btn, .nav-drop-btn:hover, .nav-drop-btn.is-active { background: var(--tint); }
.nav-drop.is-open .nav-drop-btn .icon { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; z-index: 70; top: calc(100% + 10px); right: 0; display: grid; gap: 2px; width: 300px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: fadeUp .2s var(--ease); }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop-menu[hidden] { display: none; }
.main-nav .nav-drop-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; white-space: normal; color: var(--text); }
.main-nav .nav-drop-menu a:hover, .main-nav .nav-drop-menu a.is-active { background: var(--tint); }
.nav-drop-menu strong { display: block; font-size: 14.5px; color: var(--ink); }
.nav-drop-menu small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.header-actions { margin-left: auto; gap: 2px; }
.main-nav + .header-actions { margin-left: 0; }
.menu-btn { display: none; }
.drawer-label { margin: 16px 6px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer-sheet { max-height: 88vh; overflow-y: auto; }
.drawer-nav a { padding: 14px 16px; }
@media (max-width: 1199px) {
    .main-nav { display: none; }
    .menu-btn { display: inline-grid; }
}

/* Search dialog */
.search-dlg { width: min(640px, calc(100% - 24px)); margin: 12vh auto auto; padding: 18px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); }
.search-dlg::backdrop { background: rgba(15,23,42,.45); backdrop-filter: blur(4px); }
.search-dlg[open] { animation: fadeUp .25s var(--ease); }
.search-dlg-form { display: flex; align-items: center; gap: 10px; }
.search-dlg-form .search-field { flex: 1; box-shadow: none; }
.search-dlg-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.search-dlg-pop span { font-size: 13px; font-weight: 700; color: var(--muted); }
.search-dlg-pop .filter-chip { height: 34px; font-size: 13px; }

/* Shared */
.section-head.is-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head.is-split > div { max-width: 640px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 800; font-size: 15px; color: var(--blue); }
.link-arrow:hover { gap: 9px; }
.container.narrow { max-width: 860px; }

/* Hero */
.shero { position: relative; overflow: hidden; padding: 72px 0 80px; background: var(--bg); border-bottom: 1px solid var(--line); }
.shero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.shero-title { margin-top: 18px; font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; color: var(--primary); }
.shero-body { max-width: 580px; margin: 20px 0 30px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.shero-tags { margin-top: 22px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--blue); }
.shero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.shero-library { position: relative; z-index: 2; width: min(78%, 380px); transition: transform .5s var(--ease); }
.shero-library:hover { transform: translateY(-6px); }
.shero-library img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(16,36,70,.22)); }
.shero-cover { position: absolute; z-index: 3; width: 30%; border-radius: 12px; overflow: hidden; background: #fff; border: 4px solid #fff; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.shero-cover img { width: 100%; height: auto; }
.shero-cover:hover { transform: translateY(-4px) rotate(0) !important; }
.shero-cover.is-1 { right: 0; bottom: 6%; transform: rotate(5deg); }
.shero-cover.is-2 { left: 0; bottom: 14%; transform: rotate(-5deg); }
.shero-cover.is-3 { right: 4%; top: 4%; transform: rotate(4deg); width: 24%; }

/* Search */
.hsearch { padding: 72px 0; }
.hsearch-form { display: flex; gap: 10px; }
.hsearch-form .search-field { flex: 1; }
.hsearch-form .btn { height: 56px; }
.search-examples a.filter-chip { display: inline-flex; align-items: center; }

/* Category cards */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catcard { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.catcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe3f5; }
.catcard-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: var(--gradient-brand); box-shadow: 0 10px 20px -10px rgba(0,104,173,.6); }
.catcard h3 { margin-top: 6px; font-size: 19px; }
.catcard p { flex: 1; font-size: 15px; color: var(--muted); }
.catcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.catcard-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--blue); }
.catcard:hover .catcard-cta { gap: 9px; }
.catcard-foot small { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Product cards: save button, meta, view link, library card */
.pcard { position: relative; }
.save-btn { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s; }
.save-btn:hover { transform: scale(1.08); }
.save-btn[aria-pressed="true"], .pdp-save[aria-pressed="true"] { color: var(--danger); }
.save-btn[aria-pressed="true"] .icon, .pdp-save[aria-pressed="true"] .icon { fill: currentColor; }
.pcard-img .pbadge.is-sale { top: 56px; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px !important; font-weight: 600; color: var(--muted); flex: 0 !important; }
.pcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pcard-view { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13.5px; color: var(--blue); white-space: nowrap; }
.pcard-view:hover { gap: 7px; }
.pcard-cart { margin-top: 10px; }
.pcard-add { width: 100%; justify-content: center; height: 40px; padding: 0 14px; gap: 6px; }
a.pcard-add { display: inline-flex; align-items: center; margin-top: 10px; }
.pprice small { font-size: 12px; font-weight: 700; color: var(--muted); }
.pcard.is-library { border-color: #bfe3f5; background: linear-gradient(180deg, var(--blue-50), var(--surface) 60%); }
.pcard.is-library .pcard-img { background: var(--gradient-hero), var(--blue-50); }
.pcard.is-library .pcard-img img { object-fit: contain; padding: 14px; }
.chip-count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; background: var(--tint); color: var(--muted); }
.filter-chip[aria-selected="true"] .chip-count { background: rgba(255,255,255,.2); color: #fff; }
.store-cats { margin-bottom: 18px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.active-filters .store-count { margin: 0 0 0 4px; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--primary); background: var(--accent); }
.active-filter:hover { background: #c4e8fa; }
.pdp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 16px; }
.pdp-facts div { padding: 10px 14px; border-radius: 12px; background: var(--tint); }
.pdp-facts dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pdp-facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.pdp-facts a { color: var(--blue); }
.pdp-save { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 16px; padding: 6px 0; border: 0; background: none; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.pdp-save:hover { color: var(--ink); }

/* Durations */
.durgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.durcard { display: grid; gap: 4px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.durcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.durcard strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--primary); }
.durcard span { font-size: 16px; font-weight: 600; color: var(--text); }
.durcard small { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13.5px; font-weight: 800; color: var(--blue); }
.durcard.is-soon { background: transparent; border-style: dashed; box-shadow: none; }
.durcard.is-soon strong { color: var(--muted); }
.durcard.is-soon small { color: var(--muted); font-weight: 700; }

/* Master Library feature */
.libfeature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; padding: 44px; border-radius: 32px; background: var(--gradient-hero), var(--surface); border: 1px solid #bfe3f5; box-shadow: var(--shadow); }
.libfeature-img { display: grid; place-items: center; }
.libfeature-img img { width: min(100%, 380px); height: auto; filter: drop-shadow(0 30px 40px rgba(16,36,70,.22)); }
.libfeature-tagline { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--blue); }
.libfeature-text { margin-top: 12px; font-size: 16.5px; color: var(--muted); }
.libfeature-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.libfeature-items li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); }
.libfeature-items strong { display: block; font-size: 15px; color: var(--ink); }
.libfeature-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.libfeature-stats div { padding: 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.libfeature-stats dt { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
.libfeature-stats dd { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.libfeature-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.libfeature-price { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.libfeature-price strong { color: var(--ink); }

/* Industries */
.indgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.indcard { display: grid; gap: 6px; padding: 20px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.indcard:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.indcard strong { font-size: 16.5px; color: var(--ink); }
.indcard small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--blue); }
.indcard.is-enquire small { color: var(--muted); }

/* Resource previews */
.prevrail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.prevcard { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); text-align: left; scroll-snap-align: start; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.prevcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prevcard-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tint); }
.prevcard-img .mock-image { height: 100%; object-fit: cover; object-position: top; border-radius: 0; box-shadow: none; }
.prevcard-info { display: grid; gap: 2px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.prevcard-info small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.prevcard-info strong { font-size: 14px; line-height: 1.35; color: var(--ink); }
.prev-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* How it works */
.flowsteps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.flowsteps li { position: relative; padding: 24px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.flowsteps-icon { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: #fff; background: var(--primary); }
.flowsteps-icon b { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11.5px; color: #fff; background: var(--teal); border: 2px solid var(--surface); }
.flowsteps h3 { margin: 16px 0 6px; font-size: 18px; }
.flowsteps p { font-size: 14.5px; color: var(--muted); }

/* Free resources */
.free-band { padding: 64px 32px; }
.free-band .eyebrow { justify-content: center; }
.cta-lead { max-width: 560px; margin: 0 auto 26px; font-size: 17px; color: var(--muted); }

/* Saved */
.saved-note { display: flex; align-items: center; gap: 8px; margin: -10px 0 22px; font-size: 14px; color: var(--muted); }
.saved-item[hidden] { display: none; }
.saved-item > .pcard { height: 100%; }
.tab-icon { position: relative; }
.tab-badge { position: absolute; top: -2px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: var(--danger); border: 2px solid #fff; }
.tab-badge[hidden] { display: none; }

/* Footer */
.footer-grid { grid-template-columns: 1.6fr 1.1fr 1fr .8fr 1.2fr; gap: 32px; }
.footer-sub { margin-top: 14px; }

@media (max-width: 1100px) {
    .shero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .catgrid { grid-template-columns: repeat(2, 1fr); }
    .indgrid { grid-template-columns: repeat(3, 1fr); }
    .flowsteps { grid-template-columns: repeat(3, 1fr); }
    .prevrail { grid-auto-columns: calc((100% - 36px) / 3); }
    .libfeature { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
    .tabbar { grid-template-columns: repeat(4, 1fr); }
    .header-actions .cart-btn { width: 40px; height: 40px; }

    .shero { padding: 28px 0 36px; }
    .shero-grid { grid-template-columns: 1fr; gap: 20px; }
    .shero-title { font-size: clamp(2rem, 8.6vw, 2.6rem); margin-top: 14px; }
    .shero-body { font-size: 16px; margin: 14px 0 22px; }
    .shero .btn-row { display: grid; }
    .shero .btn-lg { height: 52px; white-space: normal; text-align: center; line-height: 1.2; }
    .shero-tags { margin-top: 16px; font-size: 13px; }
    .shero-visual { min-height: 300px; }
    .shero-library { width: 58%; }
    .shero-cover { width: 30%; }

    .hsearch { padding: 44px 0; }
    .hsearch-form .btn { height: 50px; padding: 0 18px; }
    .search-examples { justify-content: flex-start; }

    .section-head.is-split { display: block; }
    .catgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .catcard { padding: 16px; gap: 6px; }
    .catcard-icon { width: 42px; height: 42px; border-radius: 13px; }
    .catcard h3 { font-size: 15.5px; margin-top: 4px; }
    .catcard p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .catcard-foot { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; }
    .catcard-cta { font-size: 12.5px; }
    .catcard-cta, .catcard-foot small { font-size: 12px; }

    .pgrid.rail > * { flex-basis: 66%; }
    .pcard-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
    .pcard-view { font-size: 12.5px; }
    .pcard-add { font-size: 13px; height: 36px; }
    .save-btn { width: 34px; height: 34px; top: 8px; right: 8px; }

    .durgrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .durcard { padding: 16px 12px; }
    .durcard strong { font-size: 1.35rem; }
    .durcard span { font-size: 12.5px; }
    .durcard small { font-size: 11.5px; margin-top: 6px; }

    .libfeature { padding: 22px 18px; border-radius: 24px; }
    .libfeature-img img { width: min(70%, 260px); }
    .libfeature-tagline { font-size: 19px; }
    .libfeature-items { grid-template-columns: 1fr; gap: 10px; }
    .libfeature-actions { display: grid; }
    .libfeature-actions .btn { white-space: normal; text-align: center; line-height: 1.2; }

    .indgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .indcard { padding: 14px; }
    .indcard strong { font-size: 15px; }

    .prevrail { grid-auto-columns: 62%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .prevrail::-webkit-scrollbar { display: none; }

    .flowsteps { grid-template-columns: 1fr; gap: 10px; }
    .flowsteps li { display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; padding: 16px; }
    .flowsteps-icon { grid-row: span 2; }
    .flowsteps h3 { margin: 2px 0 2px; font-size: 16.5px; }
    .flowsteps p { font-size: 14px; }

    .free-band { padding: 40px 20px; text-align: left; }
    .free-band .eyebrow { justify-content: flex-start; }
    .cta-lead { margin-left: 0; font-size: 15.5px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .search-dlg { margin-top: 10px; padding: 14px; border-radius: 20px; }
}
button.cart-btn { border: 0; background: none; padding: 0; cursor: pointer; }
@media (max-width: 1199px) { .main-nav + .header-actions { margin-left: auto; } }
.store-empty[hidden] { display: none; }

/* ==========================================================================
   Mobile app experience, accounts & PWA
   ========================================================================== */
.m-only, .msearch { display: none; }
.cart-btn.is-active { color: var(--blue); background: var(--tint); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; font-weight: 800; color: #fff; background: var(--gradient-brand); }
.avatar.is-lg { width: 56px; height: 56px; font-size: 22px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: var(--tint); color: var(--muted); }
.pill.is-paid { background: rgba(18,162,107,.12); color: #0b7a50; }
.pill.is-created { background: #fff4db; color: #8a6420; }
.pill.is-failed { background: var(--danger-50); color: var(--danger); }

/* Install card (footer, mobile only) */
.install-card { display: none; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; margin-top: 18px; padding: 14px; border-radius: 18px; background: var(--gradient-hero), var(--surface); border: 1px solid #bfe3f5; max-width: 360px; }
.install-card[hidden] { display: none; }
.install-icon img { display: block; border-radius: 12px; }
.install-copy strong { display: block; font-size: 15px; color: var(--ink); }
.install-copy small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.install-card .btn { grid-column: 1 / -1; margin-top: 8px; }
.ios-install h2 { font-size: 1.25rem; margin-bottom: 10px; }
.ios-install ol { margin: 0 0 16px; padding-left: 20px; list-style: decimal; display: grid; gap: 8px; color: var(--text); }

/* Footer groups (details) — look like columns on desktop */
.footer-col > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.footer-col > summary::-webkit-details-marker { display: none; }
.footer-col > summary .icon { display: none; }
.footer-col[open] > summary { margin-bottom: 6px; }

/* Drawer as a side sheet */
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 14px; }
.drawer-top .logo-img { height: 40px; }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--gradient-hero), var(--tint); color: var(--ink); }
.drawer-user > span:not(.avatar):not(.drawer-user-actions) { flex: 1; min-width: 0; }
.drawer-user strong { display: block; font-size: 15px; }
.drawer-user small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.drawer-user.is-guest { flex-direction: column; align-items: stretch; }
.drawer-user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-nav a > .icon:first-child { color: var(--blue); }
.drawer-nav.is-spaced { margin-top: 14px; }
.drawer-logout button, .drawer-install { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-weight: 700; color: var(--danger); cursor: pointer; }
.drawer-install { color: var(--primary); background: var(--accent); border-color: transparent; }
.drawer-install[hidden] { display: none; }

/* Product type, owned state */
.pdp-type { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; font-size: 13.5px; font-weight: 700; color: var(--teal); }
.pdp-type.is-physical { color: var(--blue); }
.pdp-type span { font-weight: 600; color: var(--muted); }
.pdp-owned { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(18,162,107,.1); font-weight: 700; color: #0b7a50; }
.pdp-owned span { flex: 1; }

/* Checkout: account + shipping */
.checkout-account { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; padding: 14px; border-radius: 14px; background: var(--b-blue-50); border: 1px solid #c4e8fa; font-size: 14px; color: var(--b-text); }
.checkout-account > .icon { color: var(--b-blue); margin-top: 2px; }
.checkout-account p { margin: 0; }
.checkout-account .btn-row { grid-column: 1 / -1; }
.checkout-account .bbtn { height: 42px; flex: 1; font-size: 15px; }
.checkout-ship { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--b-line); border-radius: 14px; }
.checkout-ship legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 700; font-size: 14px; color: var(--b-text); }

/* Auth */
.auth-page { display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 200px); padding: 48px 16px 72px; background: var(--gradient-hero), var(--bg); }
.auth-card { width: min(440px, 100%); padding: 32px 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 17px; color: #fff; background: var(--gradient-brand); }
.auth-card h1 { font-size: 1.75rem; letter-spacing: -.03em; }
.auth-sub { margin: 8px 0 22px; font-size: 15px; color: var(--muted); }
.auth-form { display: grid; gap: 14px; }
.auth-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.auth-alt { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-alt a, .auth-help a { font-weight: 700; color: var(--blue); }
.auth-help { margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Account */
.acct { padding: 32px 0 72px; background: var(--bg); min-height: 70vh; }
.acct-wrap { max-width: 880px; }
.acct-head { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; background: var(--gradient-hero), var(--surface); border: 1px solid var(--line); }
.acct-head > div { flex: 1; min-width: 0; }
.acct-hi { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.acct-mail { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.acct-logout button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.acct-tabs { display: flex; gap: 6px; margin: 16px 0; overflow-x: auto; scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs a { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--muted); }
.acct-tabs a.is-active { color: #fff; background: var(--primary); border-color: var(--primary); }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.acct-stats a { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.acct-stats strong { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.acct-stats span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.acct-block { display: grid; gap: 10px; margin-bottom: 16px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.acct-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.acct-block-head h2 { font-size: 1.1rem; }
.acct-block-head h2 small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.acct-block-head a { font-weight: 700; font-size: 14px; color: var(--blue); }
.acct-block-head span { font-size: 13px; color: var(--muted); }
.acct-block-head.is-sub { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.acct-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 12px; text-align: center; font-size: 14px; color: var(--muted); }
.acct-empty > .icon { color: var(--sky); }
.acct-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-weight: 700; color: var(--blue); }
.lib-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); }
.lib-cover { display: grid; place-items: center; height: 92px; border-radius: 10px; overflow: hidden; background: var(--tint); color: var(--sky); }
.lib-cover img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.lib-info { display: grid; align-content: center; gap: 4px; min-width: 0; }
.lib-info strong { font-size: 15px; line-height: 1.3; color: var(--ink); }
.lib-info small { font-size: 12.5px; color: var(--muted); }
.lib-actions { display: flex; gap: 8px; margin-top: 4px; }
.lib-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.ord-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); transition: border-color .2s; }
.ord-item:hover { border-color: var(--sky); }
.ord-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; color: var(--blue); background: var(--blue-50); }
.ord-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ord-info strong { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-info small { font-size: 12.5px; color: var(--muted); }
.ord-side { display: grid; justify-items: end; gap: 4px; }
.ord-side strong { font-size: 14.5px; color: var(--ink); }
.ord-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ord-head h1 { font-size: 1.25rem; }
.ord-head p { font-size: 13px; color: var(--muted); }
.ord-lines { display: grid; gap: 8px; }
.ord-lines li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: var(--tint); }
.ord-lines li > span:first-child { display: grid; gap: 2px; }
.ord-lines small { font-size: 12.5px; color: var(--muted); }
.ord-line-side { display: flex; align-items: center; gap: 10px; }
.ord-line-side .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.ord-total { display: flex; justify-content: space-between; padding-top: 6px; font-weight: 700; color: var(--muted); }
.ord-total strong { font-size: 1.2rem; color: var(--ink); }
.ship-steps { display: flex; gap: 6px; }
.ship-steps li { flex: 1; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: center; }
.ship-steps li span { width: 100%; height: 6px; border-radius: 9px; background: var(--line); }
.ship-steps li.is-done { color: var(--teal); }
.ship-steps li.is-done span { background: var(--teal); }
.ord-track, .ord-addr { display: flex; gap: 8px; font-size: 14px; color: var(--text); }
.ord-track .icon, .ord-addr .icon { margin-top: 3px; color: var(--blue); }
.ord-pay { font-size: 12.5px; color: var(--muted); }

/* ---------- Phones: app shell ---------- */
@media (max-width: 899px) {
    :root { --header-h: 112px; }
    body { font-size: 14.5px; }
    .d-only { display: none !important; }
    .m-only { display: block; }
    .section-title { font-size: 1.35rem; }
    .section-body { font-size: 14.5px; }

    /* Header: app bar + search bar */
    .site-header .container.header-inner { height: 58px; gap: 8px; }
    .logo-img { height: 40px !important; max-width: 170px !important; }
    .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
    .logo-text { font-size: 14px; }
    .header-actions .cart-btn[aria-label="My account"], .header-actions .cart-btn[aria-label="Sign in"] { display: none; }
    .msearch { display: block; padding: 0 var(--gutter) 10px; }
    .msearch-field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--tint); border: 1px solid transparent; color: var(--muted); transition: border-color .2s, background .2s; }
    .msearch-field:focus-within { background: var(--surface); border-color: var(--sky); box-shadow: 0 0 0 3px rgba(67,178,225,.15); }
    .msearch-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 16px var(--font); color: var(--ink); }

    /* Bottom tab bar: Home · Products · Cart · Account */
    .tabbar { grid-template-columns: repeat(4, 1fr); }
    .tab-badge { top: -3px; right: 4px; background: var(--teal); }

    /* Side drawer */
    .drawer-sheet { left: 0; right: auto; top: 0; bottom: 0; width: min(86vw, 360px); max-height: none; padding: calc(14px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); border-radius: 0 24px 24px 0; transform: translateX(-100%); overflow-y: auto; }
    .drawer.is-open .drawer-sheet { transform: none; }
    .drawer-handle { display: none; }
    .drawer-nav a { padding: 13px 14px; font-size: 14.5px; }

    /* Home 1 — Master Library full screen */
    .mhero { padding: 10px var(--gutter) 6px; }
    .mhero-card { position: relative; overflow: hidden; display: flex; flex-direction: column; height: calc(100svh - var(--header-h) - var(--tabbar-h) - env(safe-area-inset-bottom) - 16px); min-height: 520px; padding: 20px 18px 18px; border-radius: 28px; background: linear-gradient(165deg, #eaf6fd 0%, #ffffff 55%, #e7f7f4 100%); border: 1px solid #cfe9f6; box-shadow: var(--shadow-sm); }
    .mhero-glow { position: absolute; inset: 0; background: var(--gradient-hero); pointer-events: none; }
    .mhero-card > * { position: relative; }
    .mhero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
    .mhero-title { margin-top: 10px; font-size: clamp(1.7rem, 8vw, 2.15rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--primary); }
    .mhero-title span { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
    .mhero-text { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
    .mhero-img { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 0; }
    .mhero-img picture, .mhero-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(16,36,70,.22)); }
    .mhero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
    .mhero-stats li { display: grid; gap: 1px; padding: 8px 6px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.85); border: 1px solid var(--line); }
    .mhero-stats strong { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
    .mhero-stats span { font-size: 10.5px; font-weight: 600; line-height: 1.2; color: var(--muted); }
    .mhero-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
    .mhero-actions .btn { height: 50px; font-size: 14.5px; }
    .mhero-actions .btn-primary { flex-direction: column; gap: 0; line-height: 1.15; }
    .mhero-actions small { font-size: 11px; font-weight: 600; opacity: .8; }

    /* Home sections */
    .msec { padding: 18px 0 6px; }
    .msec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter) 10px; }
    .msec-head h2 { font-size: 1.15rem; letter-spacing: -.02em; }
    .msec-head h2 span { margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
    .msec-head a { font-size: 13.5px; font-weight: 700; color: var(--blue); }
    .msec > .pgrid, .msec > .mblog, .msec > .mmore, .msec > .acct-empty { margin-inline: var(--gutter); }
    .mcats { display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--gutter) 10px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .mcats::-webkit-scrollbar { display: none; }
    .mcat { flex: 0 0 128px; display: grid; gap: 4px; padding: 14px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); scroll-snap-align: start; }
    .mcat-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; color: #fff; background: var(--gradient-brand); }
    .mcat strong { font-size: 13px; line-height: 1.25; color: var(--ink); }
    .mcat small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
    .mgrid { grid-template-columns: 1fr 1fr !important; }
    .mmore { display: flex; margin-top: 12px; }
    .mblog { display: grid; gap: 10px; }

    /* Compact app product cards */
    .pcard { border-radius: 18px; }
    .pcard h3 { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .pcard-body { padding: 10px 10px 12px; }
    .pcard-meta { font-size: 11.5px !important; }
    .pcard-foot { flex-direction: row; align-items: center; justify-content: space-between; }
    .pcard-view { display: none; }
    .pprice { font-size: 15px; }
    .pcard-cart { margin-top: 8px; }
    .pcard-add { height: 34px; font-size: 12.5px; }
    .pbadge { top: 8px; left: 8px; padding: 3px 8px; font-size: 10px; }

    /* App-style footer */
    .site-footer { padding: 24px 0 0; background: var(--bg); border-top: 0; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .footer-brand { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-brand p { margin-inline: auto; font-size: 13px; }
    .footer-social { justify-content: center; }
    .install-card { display: grid; margin: 4px auto 0; text-align: left; width: min(100%, 360px); }
    .footer-col { display: block; padding: 0 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
    .footer-col > summary { padding: 15px 0; cursor: pointer; }
    .footer-col > summary h4 { margin: 0; font-size: 15px; }
    .footer-col > summary .icon { display: block; color: var(--muted); transition: transform .25s var(--ease); }
    .footer-col[open] > summary .icon { transform: rotate(180deg); }
    .footer-col[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--line); }
    .footer-col > a, .footer-col > span { display: flex; padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
    .footer-col > a:last-child { border-bottom: 0; }
    .footer-bottom { margin-top: 14px; padding: 16px var(--gutter) 20px; text-align: center; align-items: center; }

    /* Account & auth */
    .auth-page { padding: 20px 12px 40px; place-items: start center; }
    .auth-card { padding: 24px 18px; border-radius: 24px; }
    .auth-card h1 { font-size: 1.45rem; }
    .acct { padding: 14px 0 40px; }
    .acct-head { padding: 14px; border-radius: 20px; }
    .acct-hi { font-size: 1.1rem; }
    .acct-logout button span { display: none; }
    .acct-logout button { width: 38px; padding: 0; justify-content: center; }
    .acct-stats strong { font-size: 1.3rem; }
    .acct-stats a { padding: 12px; border-radius: 16px; }
    .acct-block { padding: 14px; border-radius: 20px; }
    .ord-info strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (max-width: 899px) {
    .mhero-img { position: relative; display: block; margin: 8px 0 10px; }
    .mhero-img picture { position: absolute; inset: 0; display: block; }
    .mhero-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
}

/* ==========================================================================
   Mobile app home (screenshot design): app bar, hero carousel, category
   rails with fixed-size "contain" thumbnails, featured, blog, tab bar
   ========================================================================== */
.amenu, .abrand { display: none; }
@media (max-width: 899px) {
    :root { --header-h: 118px; --tabbar-h: 62px; --app-blue: #1f5fd6; --app-ink: #0f1f3d; --app-line: #e6ebf2; }

    /* App bar: menu · centred brand · search · cart */
    .site-header { background: rgba(255,255,255,.96); border-bottom: 0; }
    .site-header .container.header-inner { height: 62px; gap: 2px; justify-content: flex-start; }
    .site-header .logo, .header-actions .menu-btn { display: none !important; }
    .amenu { display: inline-grid; margin-left: -6px; }
    .abrand { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.05; }
    .abrand-top { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--app-ink); }
    .abrand-main { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--app-blue); white-space: nowrap; }
    .abrand-main sup { font-size: 9px; vertical-align: super; }
    .abrand-sub { margin-top: 2px; font-size: 8.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
    .abrand.has-image img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
    .header-actions { gap: 0; margin-right: -6px; }
    .currency-picker select { height: 34px; padding-inline: 5px; font-size: 11px; }
    .header-actions .cart-btn { width: 40px; height: 40px; }
    .cart-count { top: 0; right: 0; background: var(--app-blue); }
    .msearch { padding: 0 var(--gutter) 10px; }
    .msearch-field { height: 44px; border-radius: 12px; background: #f3f6fb; border-color: var(--app-line); }
    .msearch-field input { font-size: 16px; }
    .msearch-field input::placeholder { color: #7a869a; font-size: 13px; }

    /* Hero carousel */
    .ahero { padding: 6px var(--gutter) 2px; }
    .ahero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; scrollbar-width: none; }
    .ahero-track::-webkit-scrollbar { display: none; }
    .ahero-slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 38%; align-items: center; gap: 6px; min-height: 216px; padding: 18px 12px 18px 18px; scroll-snap-align: start; background: radial-gradient(70% 90% at 100% 100%, #cfe0fb 0%, transparent 70%), linear-gradient(120deg, #eef4ff 0%, #f7faff 55%, #e3edfd 100%); border: 1px solid #dde7f7; border-radius: 18px; }
    .ahero-copy { display: flex; flex-direction: column; align-items: flex-start; }
    .ahero-eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: #3d4a60; }
    .ahero-title { display: block; margin-top: 6px; font-size: clamp(20px, 5.9vw, 25px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--app-ink); }
    .ahero-text { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: #3d4a60; }
    .ahero-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: var(--app-blue); box-shadow: 0 8px 18px -8px rgba(31,95,214,.7); }
    .ahero-img { align-self: stretch; display: grid; place-items: center; height: 180px; margin: auto 0; }
    .ahero-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(16,36,70,.25)); }
    .ahero-dots { display: flex; justify-content: center; gap: 7px; padding: 10px 0 2px; }
    .ahero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9d3e3; transition: background .2s, transform .2s; }
    .ahero-dots button.is-active { background: var(--app-blue); }

    /* Section heads */
    .asec { padding: 14px 0 4px; }
    .asec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 var(--gutter) 10px; }
    .asec-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--app-ink); }
    .asec-head p { margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--muted); }
    .asec-head > a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--app-blue); }
    .asec-empty { margin-inline: var(--gutter); }

    /* Horizontal rails */
    .arail { display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--gutter) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .arail::-webkit-scrollbar { display: none; }
    .arail::after { content: ""; flex: 0 0 1px; }
    .arail > * { scroll-snap-align: start; }

    /* Category card: fixed thumbnail box, whole image visible */
    .acard { flex: 0 0 calc((100% - 10px) / 2); display: grid; grid-template-columns: 62px 1fr 22px; align-items: center; gap: 7px; min-height: 104px; padding: 7px 6px 7px 7px; border-radius: 12px; background: var(--surface); border: 1px solid var(--app-line); box-shadow: 0 1px 2px rgba(16,36,70,.04), 0 6px 16px -10px rgba(16,36,70,.18); }
    .athumb, .fthumb, .bthumb { display: grid; place-items: center; overflow: hidden; color: var(--app-blue); background: linear-gradient(160deg, #f3f7fd, #e7eef9); }
    .athumb { width: 62px; height: 88px; border-radius: 8px; }
    .athumb img, .fthumb img, .bthumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
    .acard-body, .fcard-body, .hbcard-body { display: grid; gap: 4px; min-width: 0; }
    .acard-body strong, .fcard-body strong, .hbcard-body strong { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--app-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .acard-body small, .fcard-body small { font-size: 10px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .achev { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--app-blue); background: #fff; border: 1px solid var(--app-line); box-shadow: 0 2px 6px -2px rgba(16,36,70,.15); }
    .achev.is-plain { border: 0; box-shadow: none; background: none; }
    .acard.is-soon .acard-body strong { color: var(--muted); }

    /* Featured product card */
    .fcard { flex: 0 0 calc((100% - 30px) / 3.3); display: grid; grid-template-columns: 1fr 20px; grid-template-rows: auto 1fr; align-items: start; gap: 6px 4px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--app-line); box-shadow: 0 1px 2px rgba(16,36,70,.04), 0 6px 16px -10px rgba(16,36,70,.18); }
    .fthumb { grid-column: 1 / -1; width: 100%; height: 96px; border-radius: 8px; }
    .fcard-body strong { font-size: 11px; -webkit-line-clamp: 2; }
    .fcard-body small { font-size: 9.5px; -webkit-line-clamp: 2; }
    .fcard .achev { width: 20px; height: 20px; align-self: center; }

    /* Blog card */
    .hbcard { flex: 0 0 calc((100% - 10px) / 1.6); display: grid; grid-template-columns: 64px 1fr 16px; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--app-line); }
    .bthumb { width: 64px; height: 64px; border-radius: 8px; }
    .hbcard-body strong { font-size: 11.5px; }
    .hbcard-body time { font-size: 10.5px; color: var(--muted); }

    /* Bottom tab bar: Home · Categories · Blog · Wishlist · Account */
    .tabbar { grid-template-columns: repeat(5, 1fr); padding-inline: 4px; background: #fff; border-top: 1px solid var(--app-line); box-shadow: 0 -4px 16px -10px rgba(16,36,70,.18); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .tab { gap: 3px; color: #2d3a52; }
    .tab-icon { width: 44px; height: 28px; background: none !important; }
    .tab-label { font-size: 11.5px; font-weight: 600; }
    .tab.is-active { color: var(--app-blue); }
    .tab.is-active .tab-label { font-weight: 700; }
    .tab.is-active .icon { fill: currentColor; fill-opacity: .16; }
    .tab-badge { top: -4px; right: 2px; background: var(--app-blue); }
}
@media (max-width: 360px) {
    .abrand-top { font-size: 15px; }
    .abrand-main { font-size: 16px; }
    .abrand-sub { display: none; }
    .ahero-slide { grid-template-columns: 1fr 34%; }
}
@media (min-width: 900px) { .cart-count.is-zero { display: none; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.contact-info { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--b-shadow); }
.contact-info h2, .contact-form h2 { font-size: 1.35rem; }
.contact-info > p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.contact-list { display: grid; gap: 10px; margin-top: 20px; }
.contact-list a, .contact-list li > div { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--b-tint); border: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--sky); }
.contact-list small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.contact-list strong { display: block; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.contact-form .field select { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--b-line); background: var(--b-tint); font: 16px var(--b-font); color: var(--b-text); }
.contact-form .btn { justify-self: start; }
@media (max-width: 899px) {
    .contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-form { order: -1; padding: 18px; }
    .contact-info { padding: 18px; }
    .contact-form .field-row { grid-template-columns: 1fr; }
    .contact-form .btn { justify-self: stretch; }
}

/* ---------- Desktop home hero: fits within one screen, no floating covers ---------- */
@media (min-width: 900px) {
    .shero { display: flex; align-items: center; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 520px; max-height: 780px; padding: 40px 0; }
    .shero > .container { width: 100%; }
    .shero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
    .shero-title { margin-top: 14px; max-width: 16ch; font-size: clamp(2.1rem, 3.4vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; }
    .shero-body { max-width: 540px; margin: 16px 0 26px; font-size: 17px; }
    .shero-tags { margin-top: 18px; }
    .shero-visual { min-height: 0; height: 100%; }
    .shero-library { width: auto; height: min(calc(100svh - var(--header-h) - 120px), 600px); max-width: 100%; }
    .shero-library picture, .shero-library img { height: 100%; width: auto; max-width: 100%; object-fit: contain; margin-inline: auto; }
}

/* ---------- Product cards: square image area, whole image always visible ---------- */
.pcard-img { aspect-ratio: 1 / 1; }
.pcard-img img, .pcard-img picture { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.pcard-img img { padding: 12px; }
.pcard:hover .pcard-img img { transform: none; }
.pcard.is-library .pcard-img img { padding: 12px; }

/* ---------- Product catalogue: category chips in one swipeable row ---------- */
.store-cats { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding: 2px 40px 4px 2px; }
.store-cats::-webkit-scrollbar { display: none; }
.store-cats .filter-chip { flex-shrink: 0; white-space: nowrap; scroll-snap-align: start; }
@media (max-width: 899px) { .store-cats { padding: 2px 40px 4px var(--gutter); scroll-padding-inline: var(--gutter); } }

/* ==========================================================================
   Mobile app pattern for every page (matches the mobile home):
   compact heroes, small headings & text, small 12px-radius cards, tight spacing.
   #main prefix lifts these above the page-specific rules without !important.
   ========================================================================== */
@media (max-width: 899px) {
    /* Section rhythm */
    #main .screen, #main .buy-section { padding: 26px 0; }
    #main .cta-screen { padding-top: 6px; }
    #main .section-head, #main .buy-head { margin-bottom: 14px; max-width: none; }
    #main .section-head.is-center, #main .buy-head { text-align: left; }
    #main .section-cta, #main .btn-row.is-center { margin-top: 14px; justify-content: stretch; }

    /* Heroes: short, left aligned, no full-screen height */
    #main .hero, #main .hero-home { min-height: 0; padding-top: calc(var(--header-h) + 14px); padding-bottom: 22px; }
    #main .page-hero { padding: 18px 0 16px; }
    #main .page-hero-inner { text-align: left; }
    #main .buy-hero { padding: 20px 0 18px; text-align: left; }
    #main .hero-grid { gap: 16px; }
    #main .hero-visual, #main .product-shot { max-width: 260px; margin-inline: auto; }
    #main .hero-home .product-shot .mock-image { height: auto; max-height: 260px; min-height: 0; width: auto; margin-inline: auto; }

    /* Type scale */
    #main .eyebrow, #main .buy-eyebrow, #main .mini-label, #main .price-eyebrow { font-size: 10px; letter-spacing: .1em; }
    #main .hero-title, #main .page-title, #main .pdp-title, #main .article-title, #main .buy-hero h1, #main .auth-card h1, #main .cart-head h1 { font-size: 23px; line-height: 1.15; letter-spacing: -.03em; margin-top: 8px; }
    #main .section-title, #main .buy-head h2, #main .cta-title, #main .quality-title { font-size: 18px; line-height: 1.22; letter-spacing: -.02em; }
    #main .hero-sub, #main .hero-tagline, #main .hero-quote, #main .hero-promise, #main .page-sub, #main .section-body,
    #main .buy-lead, #main .buy-subline, #main .cta-lead, #main .cta-sub, #main .pdp-tagline, #main .article-lead, #main .quality-lead { font-size: 13px; line-height: 1.5; margin-top: 8px; }
    #main h3 { font-size: 14px; line-height: 1.3; }
    #main h4 { font-size: 13px; }
    #main p, #main li, #main dd, #main td, #main th { font-size: 12.5px; line-height: 1.5; }
    #main .prose p, #main .prose li, #main .article-body p, #main .article-body li { font-size: 14.5px; line-height: 1.7; }
    #main .prose h2 { font-size: 18px; }
    #main .prose h3 { font-size: 15.5px; }

    /* Buttons */
    #main .btn, #main .bbtn { height: 42px; padding: 0 16px; font-size: 13.5px; border-radius: 999px; }
    #main .btn-lg, #main .bbtn-lg { height: 46px; font-size: 14px; }
    #main .btn-sm { height: 34px; font-size: 12.5px; }
    #main .filter-chip { height: 32px; padding: 0 12px; font-size: 12.5px; }

    /* Small cards */
    #main :is(.card, .bcard, .kit-card, .need-card, .program-card-lg, .layer, .family, .resource, .question, .persona, .use, .audience,
        .ba-card, .solution-card, .catcard, .durcard, .indcard, .format-card, .collection, .acct-block, .acct-head, .cart-summary,
        .auth-card, .thanks-card, .contact-info, .ask-form, .faq, .bfaq, .glance-stat, .tstat, .final-plan, .price-body, .stance, .philosophy) {
        border-radius: 12px; box-shadow: 0 1px 2px rgba(16,36,70,.04), 0 6px 16px -10px rgba(16,36,70,.18);
    }
    #main :is(.card, .bcard, .need-card, .program-card-lg, .layer, .family, .question, .persona, .use, .audience, .ba-card,
        .solution-card, .catcard, .durcard, .indcard, .collection, .acct-block, .cart-summary, .auth-card, .thanks-card,
        .contact-info, .ask-form, .glance-stat, .tstat, .final-plan, .price-body, .stance, .philosophy) { padding: 14px; }
    #main .kit-card summary { padding: 12px 14px; gap: 10px; }
    #main .kit-head strong { font-size: 14px; }
    #main .kit-head small, #main .kit-text { font-size: 12.5px; }
    #main .feature-list { gap: 12px; }
    #main .feature { gap: 12px; padding: 12px; border-radius: 12px; }
    #main .feature-visual { border-radius: 10px; }
    #main .feature-visual .show-frame.has-image { padding: 10px; aspect-ratio: 4 / 3; }
    #main .feature-info h3 { margin: 6px 0 6px; font-size: 15px; }
    #main .feature-info p { margin-bottom: 8px; }
    #main .feature-no { font-size: 10px; }
    #main .sample-card { border-radius: 12px; }
    #main .tick-list li, #main .task-list li { font-size: 12.5px; }
    #main .icon-tile, #main .kit-icon, #main .bicon { width: 34px; height: 34px; border-radius: 10px; }
    #main .icon-tile svg, #main .kit-icon svg, #main .bicon svg { width: 17px; height: 17px; }
    #main .bcard-no { top: 12px; right: 12px; font-size: 10px; }
    #main .bcard h3 { margin: 10px 0 8px; }
    #main .card-grid, #main .need-cards, #main .program-cards, #main .persona-grid, #main .use-grid,
    #main .pillar5, #main .value-grid, #main .question-grid, #main .layer-grid, #main .family-grid, #main .catgrid { gap: 10px; }
    #main .faq summary, #main .bfaq summary { padding: 13px 14px; font-size: 13.5px; }
    #main .faq p, #main .bfaq p { padding: 0 14px 13px; }

    /* Stats */
    #main .glance-num, #main .buy-stats strong, #main .tstat strong, #main .final-stats strong { font-size: 20px; }
    #main .price-amount { font-size: 28px; }

    /* Product grid & cards (catalogue, saved, related) */
    #main .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
    #main .pcard { border-radius: 12px; }
    #main .pcard h3 { font-size: 12.5px; }
    #main .pcard-cat { font-size: 9.5px; }
    #main .pprice { font-size: 14px; }
    #main .pcard-add { height: 32px; font-size: 12px; border-radius: 999px; }
    #main .store-bar { margin: 10px 0; }
    #main .store-count { font-size: 12.5px; }
    #main .store-sort select { height: 36px; font-size: 13px; }
    #main .store-search, #main .page-hero .search-field { margin-top: 12px; }
    #main .search-field { height: 44px; border-radius: 12px; }
    #main .search-field input { font-size: 15px; }

    /* Product page */
    #main .pdp { padding-top: 10px; }
    #main .pdp-main { border-radius: 12px; aspect-ratio: 1 / 1; }
    #main .pdp-main img { object-fit: contain; }
    #main .pdp-thumb { border-radius: 8px; }
    #main .pdp-price { padding: 12px 14px; border-radius: 12px; }
    #main .pdp-price strong { font-size: 24px; }
    #main .pdp-facts { padding: 10px 12px; border-radius: 12px; }
    #main .crumbs { font-size: 11.5px; }

    /* Blog */
    #main .bfeature, #main .bpost { border-radius: 12px; }
    #main .bfeature-body { padding: 14px; gap: 8px; }
    #main .bfeature-body h2 { font-size: 17px; }
    #main .bpost h3 { font-size: 13.5px; }
    #main .bmeta { font-size: 11px; }
    #main .article-cover { border-radius: 12px; }

    /* Cart & account */
    #main .cart-page, #main .acct { padding-top: 14px; }
    #main .cart-line { padding: 10px; border-radius: 12px; gap: 10px; }
    #main .cart-img { width: 64px; height: 64px; border-radius: 8px; }
    #main .cart-img img { object-fit: contain; }
    #main .cart-name { font-size: 13px; }
    #main .acct-stats strong { font-size: 18px; }
    #main .acct-tabs a { font-size: 12.5px; }

    /* Auth */
    #main .auth-page { padding: 18px 12px 30px; }

    /* Rails used across About / Topics / Samples */
    #main .rail { gap: 10px; }
    #main .table-wrap { border-radius: 12px; }
}

/* Card buttons never wrap */
.pcard-add { white-space: nowrap; }
@media (max-width: 899px) { a.pcard-add { margin-top: 8px; } }
/* Card buttons sit on the same baseline across a row */
.pcard { display: flex; flex-direction: column; }
.pcard-body { flex: 1; }
.pcard-body > .pcard-cart, .pcard-body > a.pcard-add { margin-top: auto; padding-top: 8px; }
.pcard-body > a.pcard-add { padding-top: 0; }
.pcard-foot { margin-bottom: 8px; }

/* ---------- Product page: sample PDF link & free download ---------- */
.pdp-sample { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--sky); background: var(--blue-50); font-weight: 700; font-size: 14.5px; color: var(--blue); }
.pdp-sample small { font-weight: 500; color: var(--muted); }
.pdp-sample:hover { background: var(--accent); }
.pdp-buy.is-free { display: flex; }
.pdp-buy.is-free .btn { flex: 1; }

/* ---------- Product catalogue: infinite scroll status ---------- */
.infinite { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.infinite-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: infinite-spin .8s linear infinite; }
.infinite.is-done .infinite-spin, .infinite.is-error .infinite-spin { display: none; }
[data-infinite-pager][hidden] { display: none; }
@keyframes infinite-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .infinite-spin { animation-duration: 2.4s; } }

/* Digital products: no quantity picker — Add to cart and Buy now share the row */
.pdp-buy.no-qty { grid-template-columns: 1fr 1fr; }
.pdp-buy.no-qty .pdp-now { grid-column: auto; }
.cart-qty-fixed { justify-self: center; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--tint); }

/* Mobile home: slightly larger product cards, full title only */
@media (max-width: 899px) {
    .acard { flex-basis: calc((100% - 10px) / 1.7); grid-template-columns: 76px 1fr 22px; min-height: 120px; gap: 10px; padding: 8px; }
    .athumb { width: 76px; height: 104px; }
    .acard-body strong, .fcard-body strong { font-size: 13px; line-height: 1.35; -webkit-line-clamp: unset; display: block; overflow: visible; }
    .fcard { flex-basis: calc((100% - 20px) / 2.5); }
    .fthumb { height: 124px; }
}
@media (max-width: 899px) {
    .acard { flex-basis: calc((100% - 10px) / 1.3); }
    .fcard { flex-basis: calc((100% - 20px) / 2.1); }
}

/* ==========================================================================
   Mobile home: 2-column grid of portrait cards (no horizontal scrolling)
   ========================================================================== */
@media (max-width: 899px) {
    #main .arail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; padding: 2px var(--gutter) 6px; scroll-snap-type: none; }
    #main .arail::after { content: none; }

    #main .acard, #main .fcard, #main .hbcard {
        display: flex; flex-direction: column; align-items: stretch; gap: 8px;
        flex: none; width: auto; min-height: 0; padding: 8px;
        border-radius: 12px; background: var(--surface); border: 1px solid var(--app-line);
        box-shadow: 0 1px 2px rgba(16,36,70,.04), 0 6px 16px -10px rgba(16,36,70,.18);
    }
    #main .athumb, #main .fthumb { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 8px; }
    #main .bthumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; }
    #main .athumb img, #main .fthumb img, #main .bthumb img { width: 100%; height: 100%; object-fit: contain; }
    #main .acard-body, #main .fcard-body, #main .hbcard-body { padding: 0 2px 2px; gap: 4px; }
    #main .acard-body strong, #main .fcard-body strong, #main .hbcard-body strong {
        font-size: 12.5px; line-height: 1.35; display: block; -webkit-line-clamp: unset; overflow: visible;
    }
    #main .hbcard-body time { font-size: 11px; }
    #main .acard .achev, #main .fcard .achev, #main .hbcard .achev { display: none; }
}

/* Mobile header: no inline search bar — the search icon opens the search dialog */
@media (max-width: 899px) {
    :root { --header-h: 62px; }
    .msearch { display: none !important; }
    .search-dlg { width: calc(100% - 24px); margin-top: calc(env(safe-area-inset-top) + 10px); }
}

/* Mobile home card: link area + price / cart row */
@media (max-width: 899px) {
    #main .acard { justify-content: space-between; }
    .acard-link { display: flex; flex-direction: column; gap: 8px; color: inherit; }
    .acard-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; padding: 0 2px; }
    .acard-foot form { margin: 0; }
    .acard-price { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--app-ink); line-height: 1.1; }
    .acard-price small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
    .acard-price s { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
    .acard-cart { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--app-blue); box-shadow: 0 6px 14px -6px rgba(31,95,214,.7); cursor: pointer; flex-shrink: 0; }
    .acard-cart:active { transform: scale(.94); }
}

/* ---------- Add to cart: loading, added animation, in-cart state ---------- */
.pcard-add, .acard-cart, .pdp-add { position: relative; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.is-loading { pointer-events: none; color: transparent !important; }
.is-loading > * { opacity: 0; }
.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(16,44,90,.25); border-top-color: var(--blue); animation: infinite-spin .7s linear infinite; }
.acard-cart.is-loading::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.is-added { color: #fff !important; background: var(--success) !important; border-color: var(--success) !important; animation: cart-pop .5s var(--ease); }
.is-in-cart { color: var(--success) !important; background: rgba(18,162,107,.1) !important; border-color: rgba(18,162,107,.35) !important; box-shadow: none !important; }
.acard-cart.is-in-cart { border: 1px solid rgba(18,162,107,.35); }
.is-just-added { animation: cart-settle .35s var(--ease); }
.cart-count.is-bump { animation: badge-bump .5s var(--ease); }
@keyframes cart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 65% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes cart-settle { from { opacity: .6; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes badge-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .is-added, .is-just-added, .cart-count.is-bump { animation: none; } }

/* ---------- Cart line: image · title · type, quantity only for hardcopy ---------- */
.cart-line { grid-template-columns: 80px 1fr auto; grid-template-areas: "img info remove" "img qty total"; align-items: center; gap: 6px 14px; }
.cart-img { grid-area: img; width: 80px; height: 96px; align-self: start; }
.cart-img img { object-fit: contain; object-position: center; }
.cart-info { grid-area: info; gap: 6px; align-self: start; }
.cart-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.cart-type { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--blue); background: var(--blue-50); }
.cart-type.is-physical { color: #8a6420; background: #fff4db; }
.cart-line .qty { grid-area: qty; justify-self: start; }
.cart-total { grid-area: total; align-self: end; min-width: 0; }
.cart-remove { grid-area: remove; align-self: start; }
@media (max-width: 899px) {
    #main .cart-line { grid-template-columns: 64px 1fr auto; gap: 6px 12px; padding: 10px 10px 12px; }
    #main .cart-img { width: 64px; height: 80px; }
    #main .cart-name { font-size: 13.5px; }
    #main .cart-total { font-size: 15px; }
    #main .cart-remove button { width: 32px; height: 32px; }
}

/* Footer link columns are <details>; stack their links on desktop */
@media (min-width: 900px) {
    .footer-col > a, .footer-col > span { display: block; margin-top: 10px; }
}
@media (min-width: 900px) {
    .footer-contact > a { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
}

/* ---------- Checkout: signed-in summary, sign-in prompt, button spinner ---------- */
.checkout-me { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; color: var(--muted); background: var(--tint); }
.checkout-me .icon { color: var(--blue); }
.checkout-me strong { color: var(--ink); }
.auth-checkout { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #0b7a50; background: rgba(18,162,107,.1); }
[data-store-buy] { position: relative; }
[data-store-buy].is-loading { pointer-events: none; }

/* ---------- Bottom tab bar: Master Library in the centre with the logo ---------- */
@media (max-width: 899px) {
    .tab-library { position: relative; }
    .tab-logo { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: #fff; border: 1px solid var(--app-line); box-shadow: 0 8px 20px -8px rgba(16,36,70,.35); transition: transform .2s; }
    .tab-logo img { width: 36px; height: 36px; object-fit: contain; }
    .tab-library.is-active .tab-logo { border-color: var(--app-blue); box-shadow: 0 0 0 3px rgba(31,95,214,.15), 0 8px 20px -8px rgba(31,95,214,.5); }
    .tab-library:active .tab-logo { transform: scale(.95); }
    .tab-library .tab-label { margin-top: 2px; }
}
.drawer-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--app-blue, var(--blue)); }
.drawer-badge[hidden] { display: none; }
.drawer-nav a .drawer-badge:not([hidden]) { margin-left: auto; }
.drawer-nav a .drawer-badge:not([hidden]) + .chev { margin-left: 8px; }

/* ---------- Master Library page hero with the box image ---------- */
.lib-hero { text-align: left; }
.lib-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.lib-hero-img img { width: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(16,36,70,.25)); }
@media (max-width: 899px) {
    .lib-hero-grid { grid-template-columns: 1fr; gap: 14px; }
    .lib-hero-img { order: -1; }
    .lib-hero-img img { max-height: 200px; }
}

/* Mobile hero: tagline line under the slide text */
@media (max-width: 899px) {
    .ahero-tagline { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--app-blue); }
    .ahero-slide:first-child .ahero-title { font-size: clamp(18px, 5.2vw, 22px); }
}

/* Mobile home: smaller product cards, same spacing as the category (products) grid */
@media (max-width: 899px) {
    #main .arail { gap: 10px; padding-bottom: 4px; }
    #main .acard { padding: 6px 6px 8px; gap: 6px; }
    #main .athumb { aspect-ratio: 1 / 1; }
    #main .acard-body strong { font-size: 12px; line-height: 1.3; }
    .acard-price { font-size: 13.5px; }
    .acard-cart { width: 32px; height: 32px; }
    .acard-cart svg { width: 15px; height: 15px; }
    #main .asec { padding: 12px 0 2px; }
}

/* ---------- Share buttons ---------- */
.share-btn { top: 56px; }
.pdp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.pdp-share:hover { color: var(--blue); }
@media (max-width: 899px) { .share-btn { top: 52px; width: 34px; height: 34px; } }

/* ---------- Free e-book dialog ---------- */
.free-dlg { max-width: 460px; padding: 20px; }
.free-form { display: grid; gap: 14px; }
.free-form [data-free-fields] { display: grid; gap: 12px; }
.free-form [hidden] { display: none !important; }
.free-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.free-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: var(--gradient-brand); }
.free-head h2 { font-size: 1.2rem; }
.free-head p { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.free-submit { width: 100%; position: relative; }
.free-note { font-size: 12px; color: var(--muted); text-align: center; }
.free-done { display: grid; justify-items: center; gap: 12px; padding: 6px 0 4px; text-align: center; }
.free-done-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--success); }
.free-done p { font-size: 14.5px; color: var(--text); }
.free-done .btn { width: 100%; }

/* Mobile home: compact product cards (fixed image height, whole cover visible) */
@media (max-width: 899px) {
    #main .athumb { aspect-ratio: auto; height: 132px; }
    #main .acard-body strong { font-size: 11.5px; }
}
/* Master Library hero: actions follow the left-aligned copy */
.lib-hero .buy-actions { justify-content: flex-start; }
.lib-hero .buy-lead { margin-left: 0; }
/* Centre tab label "Master Library" fits on one line */
@media (max-width: 899px) { .tab-library .tab-label { white-space: nowrap; font-size: 10.5px; } }
/* Centre tab: two-line label, logo raised a little more */
@media (max-width: 899px) {
    .tab-library { gap: 2px; }
    .tab-library .tab-logo { margin-top: -34px; }
    .tab-library .tab-label { white-space: normal; text-align: center; line-height: 1.1; font-size: 10.5px; margin-top: 0; }
}

/* ---------- Mobile home hero banner (single, organised) ---------- */
@media (max-width: 899px) {
    .hbanner { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 18px 16px 16px; border-radius: 18px; background: radial-gradient(80% 70% at 100% 40%, #cfe0fb 0%, transparent 70%), linear-gradient(150deg, #eef4ff 0%, #f8fbff 60%, #e6effd 100%); border: 1px solid #dde7f7; }
    .hbanner-eyebrow { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--app-blue); background: rgba(31,95,214,.08); }
    .hbanner-title { font-size: clamp(21px, 6.2vw, 25px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--app-ink); }
    .hbanner-mid { display: grid; grid-template-columns: 1fr 112px; gap: 10px; align-items: center; }
    .hbanner-text { font-size: 12.5px; line-height: 1.55; color: #3d4a60; }
    .hbanner-img img { width: 100%; height: 132px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(16,36,70,.25)); }
    .hbanner-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .hbanner-chips li { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--app-ink); background: #fff; border: 1px solid #d6e2f5; }
    .hbanner-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; font-size: 14.5px; font-weight: 700; white-space: nowrap; color: #fff; background: var(--app-blue); box-shadow: 0 10px 20px -10px rgba(31,95,214,.75); }
    .hbanner-btn:active { transform: scale(.98); }
}

/* Mobile home cards: image edge-to-edge (no inner padding), tighter card spacing */
@media (max-width: 899px) {
    #main .arail { gap: 8px; }
    #main .acard { padding: 0 0 8px; gap: 6px; overflow: hidden; }
    #main .acard-link { gap: 6px; }
    #main .athumb { border-radius: 0; }
    #main .acard-body { padding: 0 8px; }
    #main .acard-foot { padding: 0 8px; }
}

/* ==========================================================================
   Mobile: product cards on every page match the homepage card —
   edge-to-edge image, title, then price + round cart button.
   ========================================================================== */
@media (max-width: 899px) {
    #main .pgrid { gap: 8px; }
    #main .pcard { display: flex; flex-direction: column; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--app-line); box-shadow: 0 1px 2px rgba(16,36,70,.04), 0 6px 16px -10px rgba(16,36,70,.18); }
    #main .pcard-img { aspect-ratio: auto; height: 132px; border-radius: 0; }
    #main .pcard-img img, #main .pcard.is-library .pcard-img img { padding: 0; object-fit: contain; }
    #main .pcard .pcard-cat, #main .pcard .pcard-meta, #main .pcard .pcard-view, #main .pcard .share-btn { display: none; }
    #main .pcard .pbadge { top: 6px; left: 6px; padding: 2px 7px; font-size: 9.5px; }
    #main .pcard .save-btn { top: 6px; right: 6px; width: 28px; height: 28px; }
    #main .pcard .save-btn svg { width: 15px; height: 15px; }

    #main .pcard-body { flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; align-items: end; gap: 6px; padding: 6px 8px 8px; }
    #main .pcard h3 { grid-column: 1 / -1; align-self: start; font-size: 11.5px; line-height: 1.3; -webkit-line-clamp: unset; display: block; overflow: visible; }
    #main .pcard h3 a { color: var(--app-ink); }
    #main .pcard-foot { grid-column: 1; margin: 0; align-self: center; }
    #main .pprice { font-size: 13.5px; font-weight: 800; color: var(--app-ink); }
    #main .pprice small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
    #main .pprice s { font-size: 11px; }
    #main .pcard-body > .pcard-cart, #main .pcard-body > a.pcard-add { grid-column: 2; align-self: center; margin: 0; padding-top: 0; }
    #main .pcard-add { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; gap: 0; border: 0; border-radius: 50%; font-size: 0; color: #fff; background: var(--app-blue); box-shadow: 0 6px 14px -6px rgba(31,95,214,.7); }
    #main .pcard-add svg { width: 15px; height: 15px; }
    #main .pcard-add.is-in-cart { border: 1px solid rgba(18,162,107,.35); }
}

/* ---------- Product page: sample + save/share, organised ---------- */
.pdp-tools { display: grid; gap: 10px; margin-top: 14px; }
.pdp-tools .pdp-sample { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid #cfe3f3; border-radius: 14px; background: linear-gradient(135deg, var(--blue-50), #fff); color: var(--ink); font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.pdp-tools .pdp-sample:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); background: linear-gradient(135deg, var(--blue-50), #fff); }
.pdp-sample-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--gradient-brand); }
.pdp-sample-text { display: grid; gap: 1px; min-width: 0; }
.pdp-sample-text strong { font-size: 15px; color: var(--ink); }
.pdp-sample-text small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pdp-sample-go { color: var(--blue); }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.pdp-act:hover { border-color: var(--sky); color: var(--blue); }
.pdp-act[aria-pressed="true"] { color: var(--danger); border-color: rgba(217,67,79,.35); background: var(--danger-50); }
.pdp-act[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 899px) {
    #main .pdp-tools .pdp-sample { padding: 10px 12px; border-radius: 12px; }
    #main .pdp-sample-icon { width: 38px; height: 38px; border-radius: 10px; }
    #main .pdp-sample-text strong { font-size: 13.5px; }
    #main .pdp-sample-text small { font-size: 11.5px; }
    #main .pdp-act { height: 42px; font-size: 13px; border-radius: 10px; }
}
.pdp-tools { margin-bottom: 18px; }

/* Round card buttons: centre the icon (the hidden text label must not take a row) */
@media (max-width: 899px) {
    #main .pcard-add { display: flex; align-items: center; justify-content: center; line-height: 0; }
    #main .pcard-add svg { display: block; margin: 0; }
}

/* ---------- Sign in / Create account: simple app-style screen (no card) ---------- */
.app-auth { width: min(400px, 100%); margin: 0 auto; padding: 40px 20px 56px; text-align: center; }
.app-auth-logo { width: 56px; height: 56px; margin: 0 auto 14px; object-fit: contain; }
.app-auth h1 { font-size: 24px; letter-spacing: -.03em; color: var(--ink); }
.app-auth-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.app-auth .auth-checkout { margin-top: 16px; text-align: left; }
.app-auth-form { display: grid; gap: 10px; margin-top: 24px; text-align: left; }
.app-input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #f5f7fa; color: var(--muted); transition: border-color .2s, background .2s, box-shadow .2s; }
.app-input:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,104,173,.12); color: var(--blue); }
.app-input.is-invalid { border-color: var(--danger); }
.app-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 15px var(--font); color: var(--ink); }
.app-input input::placeholder { color: #8a94a6; font-weight: 400; }
.app-input-eye { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.app-input-eye[aria-pressed="true"] { color: var(--blue); }
.app-auth-form .field-error { margin: -4px 4px 2px; font-size: 12.5px; }
.app-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 4px; font-size: 13px; }
.app-auth-row .auth-remember { font-size: 13px; }
.app-auth-row a { font-weight: 700; color: var(--blue); }
.app-auth-btn { height: 48px; margin-top: 4px; border: 0; border-radius: 12px; font: 700 15px var(--font); color: #fff; background: var(--primary); box-shadow: 0 10px 20px -12px rgba(16,44,90,.8); cursor: pointer; }
.app-auth-btn:active { transform: scale(.99); }
.app-auth-alt { margin-top: 22px; font-size: 14px; color: var(--muted); }
.app-auth-alt a { font-weight: 700; color: var(--blue); }
@media (max-width: 899px) {
    #main .app-auth { padding: 28px 18px 40px; }
    #main .app-auth h1 { font-size: 22px; margin: 0; }
    #main .app-auth-sub { font-size: 13px; }
    #main .app-input { height: 46px; }
}
.app-auth-logo { border-radius: 14px; background: #fff; padding: 4px; box-shadow: 0 6px 16px -8px rgba(16,36,70,.3); }

/* Mobile: roomier product cards and clearer gaps between homepage sections */
@media (max-width: 899px) {
    #main .arail, #main .pgrid { gap: 12px; }
    #main .acard { padding-bottom: 10px; gap: 8px; }
    #main .acard-link { gap: 8px; }
    #main .acard-body, #main .acard-foot { padding: 0 10px; }
    #main .pcard-body { padding: 8px 10px 10px; gap: 8px; }
    #main .asec { padding: 26px 0 4px; }
    #main .asec + .asec { border-top: 1px solid #e9eef5; margin-top: 10px; }
    #main .asec-head { padding-bottom: 14px; }
}

/* Product cards: whole image visible everywhere, roomier spacing between cards and sections */
.pdp-thumb img, .lib-cover img { padding: 4px; }
.pgrid { gap: 28px; }
@media (max-width: 1199px) { .pgrid { gap: 22px; } }
@media (max-width: 899px) {
    .pgrid, #main .pgrid { gap: 16px; }
    #main .arail { gap: 16px; padding-bottom: 8px; }
    #main .asec { padding: 22px 0 10px; }
    .msec { padding: 26px 0 10px; }
}

/* Mobile hero slider: text banner + admin image slides, all in one fixed 4:5 frame. */
@media (max-width: 899px) {
    .hslider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
    .hslider-track::-webkit-scrollbar { display: none; }
    .hslide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; border-radius: 18px; }
    .hslide .hbanner { height: 100%; box-sizing: border-box; align-content: space-between; }
    .hslide-img { display: block; height: 100%; background: #eef4ff; border: 1px solid #dde7f7; border-radius: 18px; overflow: hidden; }
    .hslide-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .hslider-dots { display: flex; justify-content: center; gap: 7px; padding: 10px 0 0; }
    .hslider-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #c9d3e3; transition: width .25s, background .25s; }
    .hslider-dots button.is-active { width: 20px; background: var(--app-blue); }
}
@media (max-width: 379px) {
    .hslide .hbanner { gap: 9px; padding: 14px 14px 14px; }
    .hslide .hbanner-title { font-size: 20px; }
    .hslide .hbanner-text { font-size: 12px; line-height: 1.5; }
    .hslide .hbanner-img img { height: 116px; }
    .hslide .hbanner-btn { height: 42px; }
}

/* Mobile cards: fixed square image area, whole image always visible (never cropped). */
@media (max-width: 899px) {
    #main .athumb, #main .pcard-img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f6fb; }
    #main .athumb > img, #main .pcard-img img, #main .pcard.is-library .pcard-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; object-fit: contain; object-position: center; }
    #main .athumb > svg { position: absolute; inset: 0; margin: auto; }
}

/* Mobile footer: compact Products / Resources / Company / Contact dropdowns */
@media (max-width: 899px) {
    .footer-grid { gap: 6px !important; }
    .footer-brand { margin-bottom: 4px; }
    .footer-col { padding: 0 14px; border-radius: 12px; }
    .footer-col > summary { padding: 10px 0; }
    .footer-col > summary h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
    .footer-col > summary .icon { width: 15px; height: 15px; }
    .footer-col > a, .footer-col > span { padding: 8px 0; font-size: 12.5px; }
    .footer-col .footer-contact > a, .footer-contact > a { font-size: 12.5px; }
}

/* Footer: "A product of" STDS, with logo, linking to stdsglobal.org */
.footer-stds { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s; }
.footer-stds-mobile { display: none; }
.footer-stds:hover { border-color: var(--blue); }
.footer-stds img { width: 40px; height: auto; }
.footer-stds small { display: block; font-size: 11px; color: var(--muted); }
.footer-stds strong { display: block; font-size: 13px; line-height: 1.25; color: var(--ink); }
.footer-stds .icon { color: var(--muted); }

@media (max-width: 899px) {
    .footer-stds-brand { display: none; }
    .footer-stds-mobile { display: inline-flex; justify-self: stretch; width: 100%; margin-top: 4px; }
}

/* Mobile home: library stats strip under the hero */
@media (max-width: 899px) {
    .astats { padding: 12px var(--gutter) 0; }
    .astats-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #e6ebf2; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16,36,70,.04), 0 8px 18px -12px rgba(16,36,70,.2); text-decoration: none; }
    .astats-row span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; font-size: 10px; font-weight: 700; color: #64748b; border-left: 1px solid #e6ebf2; text-align: center; }
    .astats-row span:first-child { border-left: 0; }
    .astats-row b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--app-blue); }
}

@media (display-mode: standalone) { [data-install-card] { display: none !important; } }

/* ---------- Install app: mobile-menu item and the /install-app page ---------- */
.drawer-nav .drawer-hint { font-size: 12px; font-weight: 600; color: var(--muted); }
.install-page { padding: 48px 0 72px; }
.install-hero { max-width: 520px; margin: 0 auto; text-align: center; }
.install-hero-icon { display: block; margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 12px 30px rgba(15, 23, 42, .14); }
.install-hero .page-title { margin-bottom: 10px; }
.install-hero-lead { color: var(--muted); margin: 0 auto 26px; }
.install-hero .btn-lg { width: 100%; max-width: 320px; justify-content: center; }
.install-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.install-steps { margin: 18px auto 0; padding: 16px 16px 16px 36px; max-width: 420px; text-align: left; display: grid; gap: 8px; background: var(--bg); border-radius: 16px; color: var(--text); font-size: 14.5px; }
ol.install-steps { list-style: decimal; }
ul.install-steps { list-style: disc; }
.install-done { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 700; color: #059669; }
.install-perks { display: grid; gap: 12px; max-width: 760px; margin: 44px auto 0; padding: 0; list-style: none; }
.install-perks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.install-perks .icon { flex: none; color: var(--blue); margin-top: 2px; }
.install-perks strong { display: block; color: var(--ink); }
.install-perks small { display: block; color: var(--muted); font-size: 13px; }
@media (min-width: 700px) { .install-perks { grid-template-columns: repeat(3, 1fr); } }
