/* BG Books — design system: tokens, base, buttons */
:root {
  --ink: #0c111c;
  --ink-2: #151c2c;
  --ink-3: #283143;
  --navy: #1c2844;
  --paper: #faf7f1;
  --cream: #f3ede2;
  --cream-2: #ebe2d2;
  --line: #e4dccd;
  --line-dark: rgba(255, 255, 255, .1);
  --text: #1b1f27;
  --muted: #5f6674;
  --muted-light: #a9a59d;
  --gold: #c99a3e;
  --gold-2: #e2c27a;
  --gold-3: #f6dd9a;
  --gold-ink: #8a6420;
  --rust: #c2533b;
  --green: #2f7d5b;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 17, 28, .06), 0 2px 8px rgba(12, 17, 28, .05);
  --shadow: 0 2px 6px rgba(12, 17, 28, .06), 0 16px 36px -12px rgba(12, 17, 28, .24);
  --shadow-lg: 0 30px 70px -20px rgba(12, 17, 28, .45);
  --shadow-book: 0 1px 1px rgba(0, 0, 0, .08), 0 10px 20px -6px rgba(12, 17, 28, .28), 0 30px 50px -20px rgba(12, 17, 28, .35);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; text-decoration: none; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--muted); }
.mt { margin-top: 1.6em; }
.hp { position: absolute; left: -9999px; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s, color .2s; white-space: nowrap; overflow: hidden; isolation: isolate; }
.btn:active { transform: scale(.97); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.btn--primary:hover { background: var(--navy); box-shadow: 0 14px 30px -12px rgba(12, 17, 28, .6); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--gold { background: linear-gradient(135deg, var(--gold-3), var(--gold-2) 45%, var(--gold)); color: var(--ink); background-size: 200% 100%; background-position: 0 0; transition: background-position .5s var(--ease), box-shadow .25s, transform .25s var(--ease); }
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(226, 194, 122, .7); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--text { background: none; color: var(--muted); padding: 10px; }
.btn--text:hover { color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease); }
.link-arrow::after { content: '\2192'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: '\2190'; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: all .2s; }
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.06); }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: var(--cream); color: var(--ink); }
.chip--glass { background: rgba(12, 17, 28, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .15); }
.chip--gold { background: var(--gold-2); color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-ink); margin: 0 0 14px; }
.eyebrow--light { color: var(--gold-2); }
.save-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.price { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.price s { font-family: var(--sans); font-size: .82rem; font-weight: 400; color: var(--muted); margin-left: 4px; }
.price--xl { font-size: 2.4rem; line-height: 1; }
.fine { font-size: .82rem; color: var(--muted); }
.fine--light { color: var(--muted-light); }
.fine--light a { color: #fff; }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), var(--gold-3)); }

/* announcement bar */
.announce { background: var(--ink); color: #d9d5cc; font-size: .8rem; overflow: hidden; }
.announce-track { display: flex; justify-content: center; gap: 48px; padding: 9px 16px; }
.announce p { margin: 0; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.announce-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(226, 194, 122, .18); }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; isolation: isolate; border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(250, 247, 241, .86); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(12, 17, 28, .45); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .25s var(--ease); }
.site-header.is-scrolled .header-inner { height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: -.01em; }
.brand-tag { font-size: .6rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); margin-top: 5px; }
.brand--light { color: #fff; }
.brand--light .brand-tag { color: var(--gold-2); }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 5px; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-3); transition: background .2s, color .2s; }
.main-nav > ul > li > a:hover, .has-mega:focus-within > a { background: var(--cream); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--cream-2); }
.caret { transition: transform .25s; }
.nav-cta { display: none; }

/* mega menu */
.mega { position: absolute; top: calc(100% + 12px); left: -40px; width: 720px; display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 28px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.mega-h { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink); transition: background .15s, padding .2s; }
.mega-list a:hover { background: var(--cream); padding-left: 14px; }
.mega-list a span { font-size: .75rem; color: var(--muted); background: var(--cream); padding: 1px 8px; border-radius: 999px; }
.mega-feature { display: block; position: relative; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; height: 100%; min-height: 220px; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega-feature:hover img { transform: scale(1.06); }
.mega-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 17, 28, .1), rgba(12, 17, 28, .88)); }
.mega-feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mega-feature-body strong { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.mega-feature-body > span:last-child { font-size: .8rem; color: #d8d4cc; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--cream); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--rust); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } 100% { transform: scale(1); } }
.cart-btn.wiggle svg { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 20% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-5deg); } 100% { transform: none; } }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mouse spotlight on dark sections */
[data-spotlight] { position: relative; }
[data-spotlight]::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -200px), rgba(226, 194, 122, .09), transparent 60%); z-index: 0; }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #0a0f19 0%, #121a2b 100%); color: #e8e4dc; overflow: hidden; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; z-index: 0; animation: orb 18s ease-in-out infinite alternate; }
.hero-orb--a { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, #2b3d6b, transparent 70%); }
.hero-orb--b { width: 420px; height: 420px; left: 30%; bottom: -240px; background: radial-gradient(circle, rgba(201, 154, 62, .45), transparent 70%); animation-duration: 22s; }
@keyframes orb { to { transform: translate(-60px, 50px) scale(1.15); } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(80px, 9vw, 120px); }
.hero-inner > * { min-width: 0; }
.hero-kicker { padding: 7px 14px; border-radius: 999px; background: rgba(226, 194, 122, .1); border: 1px solid rgba(226, 194, 122, .25); letter-spacing: .1em; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #5fd3b4; box-shadow: 0 0 0 0 rgba(95, 211, 180, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95, 211, 180, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 180, 0); } }
.hero h1 { color: #fff; font-weight: 500; letter-spacing: -.025em; margin-bottom: 22px; }
.hero-line { display: block; }
.rotator { position: relative; display: inline-grid; vertical-align: bottom; }
.rotator-word { grid-area: 1 / 1; font-style: italic; font-weight: 400; background: linear-gradient(120deg, var(--gold-3), var(--gold-2) 40%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(.45em) rotateX(-60deg); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s; padding-right: .08em; }
.rotator-word.is-active { opacity: 1; transform: none; filter: none; }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-.45em) rotateX(60deg); filter: blur(6px); }
.hero-lede { font-size: 1.12rem; color: #b9b5ad; max-width: 50ch; margin-bottom: 30px; }
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 540px; padding: 7px 7px 7px 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); transition: border-color .25s, background .25s, box-shadow .25s; }
.hero-search:focus-within { border-color: rgba(226, 194, 122, .6); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 6px rgba(226, 194, 122, .12); }
.hero-search svg { color: #9d9a93; flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; padding: 8px 4px; outline: none; }
.hero-search input::placeholder { color: #8a8780; }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .84rem; color: #8a8780; }
.hero-quick a { color: #d8d4cc; text-decoration: none; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); transition: all .2s; }
.hero-quick a:hover { border-color: var(--gold-2); color: var(--gold-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas--center { justify-content: center; }

.hero-art { position: relative; height: clamp(380px, 44vw, 540px); perspective: 1200px; }
.hero-ring { position: absolute; left: 50%; top: 48%; width: 88%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(226, 194, 122, .25); animation: spin 60s linear infinite; }
.hero-ring::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 20px var(--gold-2); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-book { position: absolute; width: 42%; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 10px 20px -10px rgba(0, 0, 0, .5); transition: transform .4s var(--ease); will-change: transform; }
.hero-book img { width: 100%; }
.hero-book--1 { left: 6%; top: 16%; --r: -9deg; z-index: 1; }
.hero-book--2 { left: 29%; top: 4%; width: 46%; --r: 0deg; z-index: 3; }
.hero-book--3 { right: 4%; top: 18%; --r: 9deg; z-index: 2; }
.hero-book { transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotate(var(--r)); animation: floaty 7s ease-in-out infinite; }
.hero-book--2 { animation-delay: -2s; }
.hero-book--3 { animation-delay: -4s; }
@keyframes floaty { 50% { translate: 0 -10px; } }
.float-card { position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); font-size: .82rem; line-height: 1.3; transform: translate3d(var(--tx, 0), var(--ty, 0), 0); transition: transform .4s var(--ease); animation: cardIn .8s var(--ease) both; }
.float-card strong { display: block; font-size: .88rem; }
.float-card em { font-style: normal; color: var(--muted); font-size: .76rem; }
.float-card--a { left: -2%; bottom: 20%; animation-delay: .6s; }
.float-card--b { right: -2%; bottom: 6%; animation-delay: .9s; flex-wrap: wrap; width: 220px; }
.float-card--c { right: 2%; top: 2%; animation-delay: 1.2s; }
@keyframes cardIn { from { opacity: 0; translate: 0 20px; scale: .9; } }
.fc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: var(--ink); flex-shrink: 0; }
.fc-icon--green { background: #dff2e8; color: var(--green); }
.fc-icon--gold { background: var(--ink); color: var(--gold-2); }
.fc-bar { flex-basis: 100%; height: 5px; border-radius: 5px; background: var(--cream-2); overflow: hidden; }
.fc-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); transform-origin: 0; animation: load 3.2s var(--ease) infinite; }
@keyframes load { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.hero-glow { position: absolute; left: 10%; right: 10%; bottom: -4%; height: 30%; background: radial-gradient(closest-side, rgba(226, 194, 122, .35), transparent); filter: blur(20px); z-index: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 12px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* marquee */
.marquee { background: var(--gold-2); color: var(--ink); overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(12, 17, 28, .08); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.marquee-track i { font-style: normal; font-size: .9rem; opacity: .6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* page heroes */
.page-hero { position: relative; padding: clamp(52px, 6vw, 88px) 0 clamp(30px, 4vw, 48px); background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero--compact { padding: 40px 0 28px; }
.page-hero h1 { margin-bottom: 14px; }
.page-lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.center .page-lede { margin-left: auto; margin-right: auto; }
.page-hero .page-lede:last-child { margin-bottom: 0; }
.page-hero--photo { background: var(--ink); border: 0; padding: clamp(80px, 10vw, 150px) 0 clamp(60px, 8vw, 110px); color: #e8e4dc; }
.page-hero--photo .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transform: scale(1.08); animation: kenburns 24s ease-out forwards; }
.page-hero--photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 17, 28, .92) 0%, rgba(12, 17, 28, .55) 60%, rgba(12, 17, 28, .3) 100%); z-index: 1; }
.page-hero--photo .container { position: relative; z-index: 2; }
.page-hero--photo h1 { color: #fff; max-width: 16ch; }
.page-hero--photo .page-lede { color: #cfcbc3; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .92rem; color: #a9a59d; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: rgba(226, 194, 122, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23e2c27a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.hero-points strong { color: #fff; font-weight: 600; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 8vw, 110px); }
.section--tint { background: var(--cream); }
.section--dark { background: var(--ink); color: #cfcbc3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center h2 { max-width: 24ch; }
.section-note { margin: 0; color: var(--muted); }
.section-note strong { color: var(--green); font-size: 1.1rem; }

/* ---------- tabs ---------- */
.tabs { position: relative; display: flex; gap: 4px; padding: 5px; margin-bottom: 36px; border-radius: 999px; background: var(--cream); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .3s; }
.tab.is-active { color: #fff; }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }
.tab-pane.is-active { animation: paneIn .6s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 44px) clamp(16px, 2.4vw, 28px); }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow-book); transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--lift, 0)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); background: var(--cream-2); }
.card--course .card-media, .card--bundle .card-media { border-radius: 14px; }
.card:hover .card-media { --lift: -8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 22px 36px -10px rgba(12, 17, 28, .35), 0 44px 70px -26px rgba(12, 17, 28, .45); }
.card-link { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
.card-link > img, .card-link .poster > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-link img { transform: scale(1.04); }
.card-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%); transform: translateX(-110%); transition: transform .9s var(--ease); pointer-events: none; }
.card:hover .card-link::after { transform: translateX(110%); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(12, 17, 28, .82); color: #fff; backdrop-filter: blur(6px); }
.badge--new { background: var(--gold-2); color: var(--ink); }
.badge--gold { background: linear-gradient(135deg, var(--gold-3), var(--gold)); color: var(--ink); }
.quick-btn { position: absolute; left: 50%; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .8rem; font-weight: 600; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); opacity: 0; transform: translate(-50%, 10px); transition: opacity .3s, transform .35s var(--ease), background .2s; white-space: nowrap; }
.card:hover .quick-btn, .quick-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.quick-btn:hover { background: var(--gold-2); }
.card-meta { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-ink); margin: 0 0 6px; }
.card-kicker span + span::before { content: '\00B7'; margin-right: 10px; color: var(--line); }
.card-title { font-size: 1.14rem; margin: 0 0 4px; line-height: 1.25; }
.card-title a, .course-card h3 a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.card-title a:hover, .course-card h3 a:hover { background-size: 100% 1.5px; }
.card-sub { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.btn-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; font-size: .84rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; flex-shrink: 0; }
.btn-add:hover { background: var(--ink); color: #fff; }
.btn-add:active { transform: scale(.94); }
.btn-add.is-added { background: var(--green); border-color: var(--green); color: #fff; }
.btn-add.is-added svg { transform: rotate(45deg); transition: transform .3s; }

/* course poster (card media) */
.poster { position: absolute; inset: 0; display: block; color: #fff; }
.poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 17, 28, .05) 20%, rgba(12, 17, 28, .6) 55%, rgba(12, 17, 28, .95) 100%); }
.poster-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 16px 58px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: padding .35s var(--ease); }
.card:not(:hover) .poster-body { padding-bottom: 18px; }
.poster-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.poster-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .72rem; color: #e1ddd5; }
.poster-meta span { padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .12); }

/* bundle media */
.bundle-media { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2b3a60, var(--ink) 75%); overflow: hidden; }
.bundle-media--wellness { background: radial-gradient(circle at 50% 35%, #3d4266, #1a1d33 75%); }
.bundle-media--food { background: radial-gradient(circle at 50% 35%, #3f5a3c, #16261a 75%); }
.bundle-media--business { background: radial-gradient(circle at 50% 35%, #1f5a4f, #0c211d 75%); }
.bundle-media--tech { background: radial-gradient(circle at 50% 35%, #1f3c3c, #0b1618 75%); }
.bundle-stack { position: relative; width: 58%; aspect-ratio: 2 / 3; }
.bs-book { position: absolute; inset: 0; border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); transition: transform .6s var(--ease); }
.bs-book img { width: 100%; height: 100%; object-fit: cover; }
.bs-book--1 { transform: translateX(-26%) rotate(-10deg) scale(.88); }
.bs-book--2 { transform: translateX(26%) rotate(10deg) scale(.88); }
.bs-book--3 { z-index: 2; }
.card:hover .bs-book--1 { transform: translateX(-38%) rotate(-15deg) scale(.88); }
.card:hover .bs-book--2 { transform: translateX(38%) rotate(15deg) scale(.88); }
.card:hover .bs-book--3 { transform: translateY(-6px); }
.bundle-save { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 5px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; }
.bundle-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); transition: opacity .3s; }
.card:hover .bundle-count { opacity: 0; }

/* ---------- spotlight (flagship course) ---------- */
.spotlight { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.spotlight-media { position: relative; }
.spotlight-media > img { width: 100%; border-radius: 22px; aspect-ratio: 9 / 7; object-fit: cover; box-shadow: var(--shadow-lg); }
.spotlight-float { position: absolute; display: flex; flex-direction: column; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); animation: floaty 6s ease-in-out infinite; }
.spotlight-float strong { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.spotlight-float span { font-size: .78rem; color: var(--muted); }
.spotlight-float--a { left: -22px; bottom: 30px; }
.spotlight-float--b { right: -18px; top: 26px; animation-delay: -3s; }
.spotlight-lede { color: #b9b5ad; font-size: 1.05rem; }
.spotlight-modules { list-style: none; padding: 0; margin: 24px 0 30px; border-top: 1px solid var(--line-dark); }
.spotlight-modules li { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); color: #e8e4dc; font-size: .95rem; transition: padding .25s var(--ease), color .2s; }
.spotlight-modules li:hover { padding-left: 8px; color: #fff; }
.spotlight-modules li span { font-family: var(--serif); color: var(--gold-2); min-width: 24px; }
.spotlight-modules li em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--muted-light); white-space: nowrap; }
.spotlight-modules li.more { color: var(--muted-light); font-size: .88rem; }
.spotlight-buy { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.spotlight-buy .price { color: #fff; }

/* ---------- course carousel & cards ---------- */
.carousel-nav { display: flex; gap: 10px; }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding: 10px 0 30px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging a { pointer-events: none; }
.carousel-track { display: flex; gap: 24px; padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); width: max-content; }
.carousel .course-card { width: min(400px, 82vw); scroll-snap-align: start; }
.carousel-foot { margin-top: 8px; }
.course-card { display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.course-card:hover .course-card-media img { transform: scale(1.07); }
.course-card-media .chip { position: absolute; left: 14px; bottom: 14px; }
.course-card-body { padding: 22px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.course-card-sub { color: var(--muted); font-size: .94rem; margin-bottom: 6px; }
.course-card-by { font-size: .84rem; color: var(--ink-3); margin-bottom: 18px; }
.course-card .card-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.course-card .price { font-size: 1.45rem; }

/* ---------- budget tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 24px; min-height: 250px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, color .3s; isolation: isolate; }
.tier::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: circle(0 at 100% 0); transition: clip-path .6s var(--ease); }
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tier:hover::before { clip-path: circle(150% at 100% 0); }
.tier:hover .tier-title, .tier:hover .tier-count { color: #fff; }
.tier:hover .tier-desc { color: #b9b5ad; }
.tier-num { font-family: var(--serif); font-size: .95rem; color: var(--gold); }
.tier-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.1; transition: color .3s; }
.tier-desc { color: var(--muted); font-size: .92rem; transition: color .3s; }
.tier-count { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--ink); transition: color .3s; }
.tier-count svg { transition: transform .3s var(--ease); }
.tier:hover .tier-count svg { transform: translateX(4px); }
.tier--course { background: linear-gradient(160deg, #fff 40%, #f6ecd4); }

/* ---------- bundle spotlight ---------- */
.section--bundle { background: radial-gradient(1200px 500px at 80% 50%, #efe4cd, var(--paper) 70%); overflow: hidden; }
.bundle-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.bundle-hero-body > p { color: var(--muted); font-size: 1.05rem; }
.bundle-hero-price { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0; }
.bundle-hero-price .was { color: var(--muted); }
.bundle-fan { position: relative; height: clamp(300px, 34vw, 420px); }
.fan-book { position: absolute; left: 50%; bottom: 0; width: 34%; aspect-ratio: 2 / 3; margin-left: -17%; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: var(--shadow-book); transform-origin: 50% 140%; transform: rotate(calc(var(--i) * 9deg)) translateY(calc(var(--i) * var(--i) * 3px)); transition: transform .7s var(--ease); }
.fan-book img { width: 100%; height: 100%; object-fit: cover; }
.bundle-fan.is-in .fan-book { transform: rotate(calc(var(--i) * 10deg)) translateY(calc(var(--i) * var(--i) * 3px)); }
.bundle-fan.is-in:hover .fan-book { transform: rotate(calc(var(--i) * 13deg)) translateY(calc(var(--i) * var(--i) * 4px)); }
.bundle-fan:not(.is-in) .fan-book { transform: rotate(0) translateY(0); }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 18px; }
.cat-tile { position: relative; display: block; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.cat-tile--wide { grid-column: span 2; }
.cat-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.cat-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 17, 28, .05) 0%, rgba(12, 17, 28, .82) 100%); transition: background .4s; }
.cat-tile:hover > img { transform: scale(1.08); }
.cat-tile:hover::before { background: linear-gradient(180deg, rgba(12, 17, 28, .25) 0%, rgba(12, 17, 28, .9) 100%); }
.cat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.cat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); margin-bottom: 8px; color: var(--gold-2); }
.cat-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.cat-blurb { font-size: .88rem; color: #d8d4cc; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s; }
.cat-tile:hover .cat-blurb, .cat-tile:focus-visible .cat-blurb { max-height: 60px; opacity: 1; }
.cat-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--gold-2); }

/* ---------- steps ---------- */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps-line { position: absolute; top: 44px; left: 16%; right: 16%; height: 2px; background: var(--line); z-index: 0; }
.steps-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: 0; transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.steps.is-in .steps-line span { transform: scaleX(1); }
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-icon { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--gold-ink); transition: transform .4s var(--ease), background .3s, color .3s; }
.step:hover .step-icon { transform: translateY(-6px) rotate(-6deg); background: var(--ink); color: var(--gold-2); }
.step-num { display: block; font-family: var(--serif); color: var(--gold); font-size: .95rem; margin-bottom: 6px; }
.step h3 { font-size: 1.4rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0 auto; max-width: 32ch; }

/* ---------- stats band ---------- */
.stats-band { padding: clamp(52px, 6vw, 80px) 0; overflow: hidden; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-x { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; border-left: 1px solid var(--line-dark); }
.stat-x .stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; color: #fff; line-height: 1; background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-x .stat-label { font-size: .9rem; color: var(--muted-light); }

/* ---------- feature split ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.feature-copy > p { color: var(--muted); font-size: 1.06rem; }
.feature-photo { position: relative; transition: transform .5s var(--ease); }
.feature-photo > img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.feature-photo--tall > img { aspect-ratio: 4 / 3; }
.feature-photo-card { position: absolute; left: -20px; bottom: 32px; display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); max-width: 280px; }
.feature-photo-card strong { font-family: var(--serif); font-size: 1.2rem; }
.feature-photo-card span { font-size: .8rem; color: var(--gold-2); }
.about-side { display: grid; gap: 20px; }
.feature-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--white); padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat .stat-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat .stat-label { color: var(--muted); font-size: .88rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%238a6420' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- newsletter ---------- */
.newsletter { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 60px); border-radius: 28px; background: radial-gradient(600px 300px at 90% 0%, #2b3d6b, transparent 70%), var(--ink); color: #cfcbc3; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.newsletter-form { display: flex; gap: 8px; padding: 7px 7px 7px 20px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: border-color .25s, box-shadow .25s; }
.newsletter-form:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 6px rgba(226, 194, 122, .12); }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; border: 0; background: none; color: #fff; outline: none; }
.newsletter-form input::placeholder { color: #8a8780; }
.newsletter .fine { margin-top: 12px; }

/* ---------- FAQ teaser ---------- */
.faq-teaser { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #cfcbc3; padding: clamp(48px, 6vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 194, 122, .2), transparent); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #080c14; color: #a7a39b; padding: 72px 0 28px; font-size: .92rem; }
.footer-glow { position: absolute; left: 50%; top: -200px; width: 900px; height: 400px; margin-left: -450px; background: radial-gradient(closest-side, rgba(226, 194, 122, .1), transparent); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand p { margin: 20px 0; max-width: 38ch; }
.footer-h { font-family: var(--sans); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--gold-2); padding-left: 4px; }
.footer-legal { position: relative; padding-top: 24px; font-size: .8rem; color: #7d7a74; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: #a7a39b; }
.pay-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badges li { padding: 5px 11px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); font-size: .74rem; font-weight: 600; letter-spacing: .03em; color: #d7d3cb; }
.pay-badges--dark { justify-content: center; margin-top: 14px; }
.pay-badges--dark li { border-color: var(--line); color: var(--muted); background: var(--paper); }

/* ---------- shop ---------- */
.segs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.seg { padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: .9rem; color: var(--ink-3); cursor: pointer; transition: all .2s; }
.seg:hover { border-color: var(--ink); }
.seg.is-active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(12, 17, 28, .6); }
.shop-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-selects { display: flex; gap: 12px; flex-wrap: wrap; }
.search-field { position: relative; flex: 1 1 320px; max-width: 480px; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; padding: 13px 16px 13px 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.search-field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(201, 154, 62, .18); }
.sort-field { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.sort-field select { padding: 11px 38px 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%231b1f27' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/12px no-repeat; appearance: none; -webkit-appearance: none; color: var(--ink); cursor: pointer; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-size: .86rem; font-weight: 500; cursor: pointer; transition: all .2s; color: var(--ink-3); }
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); font-weight: 600; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.result-count { color: var(--muted); font-size: .9rem; margin: 0; }
.empty-state { text-align: center; padding: 60px 20px; }
.card.is-hiding { opacity: 0; transform: scale(.94); }

/* ---------- product page ---------- */
.breadcrumb { padding: 22px 0 0; font-size: .84rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); padding-top: 36px; padding-bottom: 64px; align-items: start; }
.product-media { position: sticky; top: 110px; }
.product-title { margin-bottom: 8px; }
.product-subtitle { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-3); margin-bottom: 14px; }
.product-author { color: var(--muted); margin-bottom: 26px; }
.product-author strong { color: var(--ink); font-weight: 600; }
.product-lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }

/* 3D book */
.book3d { perspective: 1600px; padding: 20px 30px 30px; }
.book3d-inner { position: relative; width: 100%; aspect-ratio: 2 / 3; transform-style: preserve-3d; transform: rotateY(var(--by, -22deg)) rotateX(var(--bx, 4deg)); transition: transform .6s var(--ease); }
.book3d-front { position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; overflow: hidden; transform: translateZ(18px); box-shadow: 0 30px 60px -20px rgba(12, 17, 28, .5); }
.book3d-front img { width: 100%; height: 100%; object-fit: cover; }
.book3d-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .25) calc(var(--shine, 40%)), rgba(255, 255, 255, 0) calc(var(--shine, 40%) + 20%)); pointer-events: none; }
.book3d-pages { position: absolute; top: 1.2%; bottom: 1.2%; left: calc(100% - 2px); width: 34px; transform-origin: left center; transform: translateZ(17px) rotateY(90deg); background: repeating-linear-gradient(90deg, #f7f1e4 0 2px, #ddd2bd 2px 3px); }
.book3d-back { position: absolute; inset: 0; border-radius: 8px 2px 2px 8px; background: #1b2233; transform: translateZ(-18px); box-shadow: 0 40px 70px -20px rgba(12, 17, 28, .6); }
.book3d-hint { text-align: center; font-size: .78rem; color: var(--muted); margin: 0; }
.book3d-shadow { display: none; }

.buy-box { padding: 26px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 26px; }
.buy-price { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.05; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.buy-price s { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--muted); }
.buy-vat { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buy-bonus { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #fbf3de; color: var(--gold-ink); font-size: .86rem; font-weight: 600; }
.buy-trust { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .86rem; color: var(--ink-3); }
.buy-trust li { display: flex; align-items: center; gap: 8px; }
.buy-trust svg { color: var(--green); flex-shrink: 0; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec div { background: var(--paper); padding: 14px 16px; }
.spec dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.spec dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .94rem; }
.product-details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start; }
.toc-card { padding: 28px; border-radius: 20px; background: var(--ink); color: #cfcbc3; }
.toc-card h2 { color: #fff; font-size: 1.35rem; }
.toc-card ol { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: ch; }
.toc-card li { counter-increment: ch; display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); }
.toc-card li::before { content: counter(ch, decimal-leading-zero); font-family: var(--serif); color: var(--gold-2); min-width: 22px; }
.toc-note { font-size: .84rem; color: #8f8b83; margin: 0; }
.upsells { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.upsell { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 0; border-radius: 20px; overflow: hidden; text-decoration: none; background: var(--white); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.upsell:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.upsell > img { width: 100%; height: 100%; object-fit: cover; }
.upsell-stack { display: grid; place-items: center; background: var(--ink); padding: 20px; }
.upsell-stack .bundle-stack { width: 70%; }
.upsell-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.upsell-body strong { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.upsell-body > span:not(.chip):not(.upsell-cta) { color: var(--muted); font-size: .9rem; }
.upsell-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.upsell--course .chip--glass { background: var(--ink); }
.sticky-buy { display: none; }

/* ---------- course page ---------- */
.course-hero { position: relative; overflow: hidden; background: var(--ink); color: #e8e4dc; }
.course-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; transform: scale(1.08); animation: kenburns 24s ease-out forwards; }
.course-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12, 17, 28, .96) 0%, rgba(12, 17, 28, .75) 55%, rgba(12, 17, 28, .45) 100%); }
.course-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 70px); align-items: end; padding-top: 8px; padding-bottom: clamp(48px, 6vw, 80px); }
.course-hero .breadcrumb { margin-bottom: clamp(28px, 4vw, 56px); }
.course-hero .breadcrumb ol, .course-hero .breadcrumb [aria-current] { color: #a9a59d; }
.course-hero h1 { color: #fff; }
.course-hero-sub { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: #e8e4dc; margin-bottom: 10px; }
.course-hero-by { color: #a9a59d; }
.course-hero-by strong { color: #fff; }
.course-stats { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.course-stats li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #cfcbc3; }
.course-stats svg { color: var(--gold-2); }
.course-stats strong { color: #fff; }
.course-hero-buy .buy-box { margin: 0; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.outcomes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.outcomes li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-size: .94rem; transition: transform .3s var(--ease), border-color .3s; }
.outcomes li:hover { transform: translateY(-3px); border-color: var(--gold-2); }
.outcomes svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.curriculum-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1.6em; }
.curriculum-head h2 { margin: 0; }
.curriculum-sum { color: var(--muted); font-size: .92rem; margin: 6px 0 18px; }
.curriculum { border-radius: 18px; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.module + .module { border-top: 1px solid var(--line); }
.module summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto 22px; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; transition: background .2s; }
.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%2310151f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .3s var(--ease); }
.module[open] summary::after { transform: rotate(45deg); }
.module summary:hover { background: var(--paper); }
.module-num { font-family: var(--serif); color: var(--gold); font-size: 1.05rem; }
.module-title { font-weight: 600; color: var(--ink); }
.module-meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.module-body { padding: 0 20px 20px 58px; color: var(--muted); font-size: .92rem; }
.module-body p { margin: 0; }
.module-bar { height: 4px; border-radius: 4px; background: var(--cream); margin-bottom: 12px; overflow: hidden; }
.module-bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--gold), var(--gold-2)); animation: grow 1s var(--ease); transform-origin: 0; }
@keyframes grow { from { transform: scaleX(0); } }
.course-aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.aside-card { padding: 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.aside-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.aside-card--dark { background: var(--ink); border-color: var(--ink); }
.aside-card--dark h3 { color: #fff; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.includes li { display: flex; gap: 10px; }
.includes svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.bonus-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bonus-list a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; padding: 8px; margin: -8px; border-radius: 12px; transition: background .2s; }
.bonus-list a:hover { background: rgba(255, 255, 255, .06); }
.bonus-list img { width: 48px; border-radius: 2px 5px 5px 2px; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .6); }
.bonus-list strong { display: block; font-size: .95rem; }
.bonus-list em { font-style: normal; font-size: .8rem; color: var(--gold-2); }
.instructor { display: flex; gap: 16px; align-items: flex-start; }
.instructor h3 { margin-bottom: 6px; }
.instructor p { font-size: .9rem; color: var(--muted); margin: 0; }
.instructor a { color: var(--ink); }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-3), var(--gold)); color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }

/* courses listing */
.course-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ---------- bundle page ---------- */
.bundle-showcase { position: relative; padding: 70px 20px 40px; border-radius: 24px; background: radial-gradient(circle at 50% 30%, #2b3a60, var(--ink) 75%); overflow: hidden; }
.bundle-fan--page { height: clamp(260px, 30vw, 360px); }
.bundle-fan--page .fan-book { width: 36%; margin-left: -18%; transform-origin: 50% 220%; }
.bundle-fan--page.is-in .fan-book { transform: rotate(calc(var(--i) * 6deg)); }
.bundle-fan--page.is-in:hover .fan-book { transform: rotate(calc(var(--i) * 8deg)) translateY(-6px); }
.bundle-save--lg { top: 18px; right: 18px; font-size: .86rem; padding: 7px 14px; }
.bundle-items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bundle-items a { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.bundle-items a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bundle-items img { width: 56px; border-radius: 2px 5px 5px 2px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); }
.bi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bi-body .card-kicker { margin: 0; }
.bi-body strong { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.bi-body > span:last-child { font-size: .8rem; color: var(--muted); }
.bi-price { font-size: .88rem; color: var(--muted); }

/* ---------- prose / legal ---------- */
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3a3f49; }
.prose ul:not(.ticks), .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal h2 { font-size: 1.3rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .92rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--cream); font-weight: 600; color: var(--ink); }
.callout { padding: 20px 24px; border-radius: var(--radius); background: var(--cream); border-left: 4px solid var(--gold); margin-bottom: 1.6em; }
.callout p { margin: 0; }

/* ---------- info / contact ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-card h3, .info-card .h3 { margin-bottom: 10px; }
.info-card p, .info-card address { color: var(--muted); font-style: normal; margin-bottom: 10px; }
.info-card a { color: var(--ink); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-form-card { padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-aside { display: grid; gap: 16px; }
.plain-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); transition: border-color .2s, box-shadow .2s, background .2s; }
.field select { appearance: none; -webkit-appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%231b1f27' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/12px no-repeat; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(201, 154, 62, .18); }
.field .is-invalid, .check.is-invalid { border-color: var(--rust); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-3); margin-bottom: 12px; line-height: 1.5; cursor: pointer; padding: 10px 12px; border-radius: 12px; border: 1.5px solid transparent; transition: background .2s; }
.check:hover { background: var(--paper); }
.check input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.check a { color: var(--ink); }
.form-error { color: var(--rust); font-size: .9rem; font-weight: 500; }
.notice { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-size: .95rem; }
.notice--warn { background: #fbf1e3; border: 1px solid #efd4a8; }
.notice--success { background: #e9f4ee; border: 1px solid #bfdfcc; color: var(--ink); }

/* ---------- cart page ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cart-items { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); animation: paneIn .4s var(--ease); }
.cart-item img { width: 76px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 7px 7px 3px; box-shadow: 0 6px 14px -6px rgba(12, 17, 28, .35); }
.cart-item h3 { font-size: 1.1rem; margin: 0 0 2px; }
.cart-item h3 a { text-decoration: none; }
.cart-item p { margin: 0; color: var(--muted); font-size: .88rem; }
.cart-item-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.remove-btn { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: .84rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.remove-btn:hover { color: var(--rust); }
.checkout-card { position: sticky; top: 110px; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checkout-card h2 { font-size: 1.4rem; }
.summary { margin: 0 0 8px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }
.summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px !important; }
.summary-total dt, .summary-total dd { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.checkout-form { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.pay-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.cart-empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.cart-empty svg { margin: 0 auto 18px; color: var(--gold-ink); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin2 .7s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }

/* ---------- FAQ page ---------- */
.faq-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; }
.faq-nav a { padding: 9px 14px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; transition: all .2s; }
.faq-nav a:hover, .faq-nav a.is-active { color: var(--ink); background: var(--cream); }
.faq-group { margin-bottom: 44px; scroll-margin-top: 110px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 16px; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 600; color: var(--ink); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%2310151f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq[open] summary::after { transform: rotate(45deg); background-color: var(--gold-2); }
.faq summary:hover { color: var(--gold-ink); }
.faq-a { padding: 0 44px 20px 0; color: #3a3f49; }
.faq[open] .faq-a { animation: paneIn .4s var(--ease); }
.faq-a p { margin: 0; }
.faq-a a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- success / 404 ---------- */
.success-icon { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; background: #e2f1e8; color: var(--green); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; text-align: left; }
.next-steps div { padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.next-steps span { color: var(--muted); font-size: .9rem; }
.next-steps a { color: var(--ink); word-break: break-all; }
.big-404 { font-family: var(--serif); font-size: clamp(6rem, 18vw, 10rem); font-weight: 600; line-height: 1; margin: 0 0 12px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(12, 17, 28, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--paper); box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .4); transform: translateX(100%); transition: transform .45s var(--ease); outline: none; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; margin: 0; }
.drawer-head h2 span { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-items { list-style: none; padding: 0; margin: 0; }
.drawer-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); animation: slideIn .45s var(--ease) both; }
.drawer-item img { width: 58px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 6px 14px -6px rgba(12, 17, 28, .4); }
.drawer-item strong { display: block; font-family: var(--serif); font-size: 1rem; line-height: 1.25; color: var(--ink); }
.drawer-item strong a { text-decoration: none; }
.drawer-item small { color: var(--muted); font-size: .78rem; }
.drawer-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.drawer-item .price { font-size: 1rem; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
.drawer-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.drawer-foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.drawer-total strong { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.drawer-foot .fine { margin-bottom: 14px; }

/* ---------- quick view ---------- */
.quickview { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-lg); overflow: auto; }
.quickview::backdrop { background: rgba(12, 17, 28, .6); backdrop-filter: blur(4px); }
.quickview[open] { animation: qvIn .45s var(--ease); }
.quickview[open]::backdrop { animation: fadeIn .3s; }
@keyframes qvIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.qv-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--white); box-shadow: var(--shadow-sm); }
.qv-grid { display: grid; grid-template-columns: 0.85fr 1fr; }
.qv-media { position: relative; background: radial-gradient(circle at 50% 40%, #243152, var(--ink) 75%); display: grid; place-items: center; padding: 40px 36px; min-height: 100%; }
.qv-media .card-media { width: 100%; max-width: 280px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.qv-media .quick-btn, .qv-media .badge { display: none; }
.qv-body { padding: 40px 36px 36px; }
.qv-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.qv-sub { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 1.1rem; }
.qv-meta { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.qv-meta li { padding: 5px 10px; border-radius: 8px; background: var(--cream); font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.qv-summary { color: var(--muted); font-size: .95rem; }
.qv-price { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ink); margin: 18px 0; }
.qv-price s { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--muted); margin-left: 8px; }
.qv-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- toast & to-top ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 160; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .92rem; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s, transform .35s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.8); transition: opacity .3s, transform .35s var(--ease), background .2s; pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* flying thumbnail when adding to basket */
.fly { position: fixed; z-index: 170; width: 60px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); pointer-events: none; transition: transform .8s cubic-bezier(.5, -0.3, .7, 1), opacity .8s; }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.split-reveal .w { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split-reveal.is-in .w { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .split-reveal .w { opacity: 1; transform: none; }
  .rotator-word:not(.is-active) { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-list { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); background: var(--paper); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .35); padding: 96px 20px 24px; transform: translateX(100%); transition: transform .4s var(--ease); z-index: 40; visibility: hidden; overflow-y: auto; display: flex; flex-direction: column; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav > ul > li > a { padding: 14px 16px; font-size: 1.08rem; border-radius: 12px; }
  .main-nav.is-open > ul > li { animation: slideIn .5s var(--ease) both; }
  .main-nav.is-open > ul > li:nth-child(2) { animation-delay: .05s; }
  .main-nav.is-open > ul > li:nth-child(3) { animation-delay: .1s; }
  .main-nav.is-open > ul > li:nth-child(4) { animation-delay: .15s; }
  .main-nav.is-open > ul > li:nth-child(5) { animation-delay: .2s; }
  .main-nav.is-open > ul > li:nth-child(6) { animation-delay: .25s; }
  .caret, .mega { display: none; }
  .nav-cta { display: flex; margin-top: auto; }
  .header-actions { margin-left: auto; position: relative; z-index: 45; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(12, 17, 28, .45); z-index: 39; animation: fadeIn .3s; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { height: clamp(340px, 80vw, 480px); max-width: 540px; width: 100%; margin: 0 auto; }
  .scroll-cue { display: none; }
  .spotlight, .bundle-hero, .feature-split, .product-details, .contact-layout, .cart-layout, .course-grid, .course-hero-inner, .faq-teaser, .newsletter { grid-template-columns: 1fr; }
  .spotlight-float--a { left: 12px; }
  .spotlight-float--b { right: 12px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-tile--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps-line { display: none; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; max-width: 400px; margin: 0 auto; width: 100%; }
  .checkout-card, .course-aside { position: static; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .faq-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .84rem; }
  .info-cards, .next-steps { grid-template-columns: 1fr; }
  .feature-photo-card { left: 12px; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-media { padding: 32px; }
  .qv-media .card-media { max-width: 200px; }
  .page-product .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 247, 241, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .35s var(--ease); }
  .page-product .sticky-buy.is-visible { transform: none; }
  .sticky-buy div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
  .sticky-buy strong { font-family: var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy span { color: var(--muted); font-size: .9rem; }
  .page-product .site-footer { padding-bottom: 100px; }
  .page-product .to-top { bottom: 90px; }
}
@media (max-width: 700px) {
  .announce-track { justify-content: flex-start; width: max-content; animation: marquee 18s linear infinite; }
  .announce-track p:nth-child(n+2) { display: inline-flex; }
  .header-inner { height: 66px; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-word { font-size: 1.25rem; }
  .brand-tag { font-size: .54rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .card-title { font-size: 1rem; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-add { justify-content: center; }
  .quick-btn { display: none; }
  .poster-title { font-size: 1.15rem; }
  .poster-body { padding: 12px !important; gap: 6px; }
  .poster-meta span:nth-child(3) { display: none; }
  .course-list, .tiers { grid-template-columns: 1fr; }
  .tier { min-height: 0; }
  .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .cat-tile--wide { grid-column: auto; }
  .cat-blurb { max-height: 60px; opacity: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
  .buy-actions { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .module summary { grid-template-columns: auto 1fr 22px; }
  .module-meta { grid-column: 2; grid-row: 2; }
  .module-body { padding-left: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item img { width: 60px; }
  .cart-item-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .search-field { max-width: none; }
  .toolbar-selects { justify-content: space-between; }
  .segs, .pills { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .segs::-webkit-scrollbar, .pills::-webkit-scrollbar { display: none; }
  .seg, .pill { flex-shrink: 0; }
  .hero-search .btn { padding: 11px 16px; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero-kicker { font-size: .68rem; }
  .float-card { font-size: .74rem; padding: 9px 12px 9px 9px; gap: 8px; }
  .float-card strong { font-size: .8rem; }
  .fc-icon { width: 28px; height: 28px; }
  .float-card--b { width: 170px; bottom: 2%; }
  .float-card--c { top: -2%; }
  .upsell { grid-template-columns: 110px 1fr; }
  .newsletter-form { flex-direction: column; border-radius: 20px; padding: 12px; }
  .newsletter-form input[type="email"] { padding: 8px; }
  .bundle-hero-price .price--xl { font-size: 2rem; }
  .cta-actions .btn, .hero-ctas .btn { flex: 1 1 auto; }
  .stat-x { padding-left: 14px; }
}
