/* ============================================================
   TalkEdIn — v2 stylesheet
   ============================================================ */
:root {
  --navy: #0f2a5c;
  --navy-deep: #0a1d42;
  --navy-soft: #1f3f7a;
  --gold: #b8862f;
  --gold-dark: #8a6420;
  --gold-light: #d9ae5c;
  --gold-tint: #f6ecd8;
  --cream: #fbf8f2;
  --cream-2: #f4efe4;
  --white: #ffffff;
  --ink: #1b2233;
  --muted: #5d6576;
  --line: #e9e2d3;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 42, 92, .05);
  --shadow: 0 10px 30px rgba(15, 42, 92, .09);
  --shadow-lg: 0 22px 50px rgba(15, 42, 92, .15);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); }
p { margin: 0 0 1em; }
button { font-family: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -.2em; }

.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .74rem; font-weight: 600; color: var(--gold); margin-bottom: 1em; }
.eyebrow i { font-style: normal; color: #d8cdb6; margin: 0 .8em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .95rem/1 var(--sans); padding: .95em 1.7em; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-sm { padding: .72em 1.25em; font-size: .86rem; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--white); }
.btn-outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline:hover { background: var(--gold-tint); }
.btn-light { background: var(--cream-2); color: var(--navy); }
.btn-light:hover { background: var(--gold-tint); }
.btn-danger { background: #b3261e; color: #fff; }
.icon-btn { background: none; border: 0; color: var(--navy); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; font-size: 1.15rem; }
.icon-btn:hover { background: var(--cream-2); }

/* ---------- header ---------- */
.demo-bar { background: var(--navy-deep); color: #dfe6f5; font-size: .82rem; text-align: center; padding: 7px 40px; position: relative; }
.demo-bar a { color: var(--gold-light); font-weight: 600; }
.demo-bar button { position: absolute; right: 10px; top: 3px; background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; gap: 12px; height: 78px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 50px; height: 50px; border-radius: 8px; background: url("../assets/logo.jpg") no-repeat; background-size: 205%; background-position: 48% 21%; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.62rem/1 var(--sans); letter-spacing: -.03em; color: var(--navy); }
.brand-tag { font-size: .5rem; letter-spacing: .32em; text-transform: uppercase; color: var(--navy); margin-top: 6px; font-weight: 600; }
.brand-light .brand-name, .brand-light .brand-tag { color: #fff; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; display: flex; align-items: center; }
.nav-link { text-decoration: none; color: var(--ink); font-size: .84rem; font-weight: 500; padding: .55em .35em .55em .6em; border-radius: 8px; transition: background .2s; }
.main-nav li:not(.has-sub) .nav-link { padding-right: .6em; }
.nav-link:hover { color: var(--gold-dark); }
.nav-link.active { background: var(--gold-tint); color: var(--navy); font-weight: 600; padding-right: .6em; }
.sub-toggle { background: none; border: 0; padding: 4px 4px 4px 0; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.sub-toggle .ic { width: 13px; height: 13px; }
.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 10; }
.sub::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.sub a { display: block; padding: .6em .8em; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .88rem; }
.sub a:hover { background: var(--cream-2); color: var(--navy); }
.has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1181px) { .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; } }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle, .nav-mobile-actions { display: none; }
.search-drop { display: none; border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.search-drop.open { display: block; }

.search-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow-sm); }
.search-bar > .ic { color: var(--muted); font-size: 1.15rem; }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 .95rem var(--sans); background: transparent; color: var(--ink); padding: 8px 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); min-height: 520px; }
.hero-inner { position: relative; z-index: 2; padding: 56px 24px 60px; }
.hero-copy { max-width: min(560px, 44vw); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.01em; margin-bottom: .45em; }
.hero h1 .gold { color: #a87a2a; }
.hero-lead { color: #3f4757; font-size: 1.06rem; margin-bottom: 22px; }
.hero .search-bar { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-actions .btn { min-width: 170px; }
.stats { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.stats li { padding: 0 22px; border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; font: 700 1.3rem var(--serif); color: var(--navy); }
.stats span { font-size: .78rem; color: var(--muted); }

.scene { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; z-index: 1; background: url("../assets/img/hero-scene.svg") center bottom / cover no-repeat; }
.scene::before { content: ""; position: absolute; inset: 0 0 0 -2px; background: linear-gradient(90deg, var(--cream) 0%, rgba(251, 248, 242, .9) 10%, rgba(251, 248, 242, .35) 22%, rgba(251, 248, 242, 0) 32%); z-index: 3; pointer-events: none; }
.book-stack { position: absolute; left: 24%; bottom: 17%; display: flex; flex-direction: column; align-items: flex-start; z-index: 2; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.book-stack span { display: block; height: 30px; padding: 0 18px 0 16px; margin-left: var(--o, 0); width: var(--w, 200px); font: 500 .82rem/30px var(--serif); letter-spacing: .06em; text-transform: uppercase; color: #e9c983; background: linear-gradient(180deg, var(--c1, #1b2a2a), var(--c2, #0e1717)); border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 2px 5px 5px 2px; box-shadow: inset -8px 0 10px rgba(0, 0, 0, .35), inset 0 -2px 0 rgba(0, 0, 0, .3); }
.book-stack span::after { content: ""; float: right; width: 14px; height: 100%; border-left: 1px solid rgba(233, 201, 131, .4); border-right: 1px solid rgba(233, 201, 131, .4); margin-right: -6px; }
.scene-quote { position: absolute; top: 9%; right: 7%; z-index: 2; font: 600 clamp(1.3rem, 2.2vw, 1.9rem)/1.15 var(--script); color: #24314f; transform: rotate(-10deg); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.scene-quote span { display: block; }
.scene-quote span:nth-child(2) { padding-left: .4em; }
.scene-quote span:nth-child(3) { padding-left: .8em; }
.scene-quote span:nth-child(4) { padding-left: 1.2em; }
.scene-quote svg { width: 75%; height: 14px; margin-left: 1.6em; stroke: #24314f; fill: none; stroke-width: 2; }
.mug { position: absolute; right: 9%; bottom: 13%; width: 92px; height: 104px; z-index: 2; background: linear-gradient(90deg, #ece4d6, #fffaf1 45%, #ddd2bf); border-radius: 6px 6px 18px 18px; box-shadow: 0 14px 20px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.mug::after { content: ""; position: absolute; right: -30px; top: 20px; width: 34px; height: 46px; border: 9px solid #e6dccb; border-left: 0; border-radius: 0 24px 24px 0; }
.mug::before { content: ""; position: absolute; top: -4px; left: 0; right: 0; height: 10px; border-radius: 50%; background: #3a2416; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); }
.mug .brand-mark { width: 50px; height: 50px; }
.laptop-logo { position: absolute; right: 13%; bottom: 40%; z-index: 2; display: flex; align-items: center; gap: 4px; color: #fff; font: 600 1.05rem var(--sans); opacity: .95; }
.laptop-logo .brand-mark { width: 34px; height: 34px; mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg); }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; padding: 26px 0 8px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 10px 18px; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.tile .ic { width: 38px; height: 38px; color: var(--gold); stroke-width: 1.4; margin-bottom: 12px; }
.tile strong { display: block; color: var(--navy); font-size: .95rem; }
.tile span { font-size: .74rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.band { background: var(--cream-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 0; }
.sec-head h2 .ic { color: var(--gold); width: 28px; height: 28px; stroke-width: 1.5; }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.view-all { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-size: .84rem; text-decoration: none; font-weight: 500; white-space: nowrap; }
.view-all:hover { color: var(--gold-dark); }
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.triple { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 0; }
.split > *, .split-even > *, .triple > * { min-width: 0; }
.triple > div { padding: 40px 28px; }
.triple > div:first-child { padding-left: 0; }
.triple > div:last-child { padding-right: 0; }
.triple > div + div { border-left: 1px solid var(--line); }
.loading { color: var(--muted); font-size: .9rem; padding: 30px 0; }
.empty { color: var(--muted); padding: 30px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* knowledge cards */
.k-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.k-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.k-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.k-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--cream-2); overflow: hidden; }
.k-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.k-card:hover .k-thumb img { transform: scale(1.04); }
.thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: var(--gold-light); }
.thumb-fallback .ic { width: 42px; height: 42px; stroke-width: 1.3; }
.k-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pill { align-self: flex-start; background: var(--gold-tint); color: var(--gold-dark); font-size: .68rem; font-weight: 600; padding: .3em .75em; border-radius: 6px; margin-bottom: 8px; }
.k-body h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: .35em; }
.k-body p { font-size: .84rem; color: var(--muted); flex: 1; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.k-meta { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.k-meta .ic { color: var(--gold); }
.soon { position: absolute; top: 10px; right: 10px; background: rgba(10, 29, 66, .85); color: #fff; font-size: .68rem; font-weight: 600; padding: .3em .7em; border-radius: 6px; letter-spacing: .02em; }

/* videos */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.v-feature { display: block; text-decoration: none; color: inherit; }
.v-thumb { position: relative; aspect-ratio: 16 / 7.5; border-radius: 8px; overflow: hidden; background: var(--navy); }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-thumb.sm { aspect-ratio: 16 / 9; width: 96px; flex-shrink: 0; border-radius: 6px; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(10, 29, 66, .75); border: 2px solid #fff; display: grid; place-items: center; color: #fff; transition: transform .2s; }
.play .ic { width: 20px; height: 20px; stroke: none; margin-left: 3px; }
.v-thumb.sm .play { width: 26px; height: 26px; border-width: 1.5px; }
.v-thumb.sm .play .ic { width: 11px; height: 11px; margin-left: 2px; }
.v-feature:hover .play, .v-row:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.v-info { padding: 10px 6px 6px; }
.v-info h3 { font-size: .98rem; font-weight: 600; margin: 0 0 2px; }
.v-info span, .v-row span, .p-row span { font-size: .75rem; color: var(--muted); }
.v-row { display: flex; gap: 12px; align-items: center; padding: 8px 6px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.v-row h4, .p-row h4 { font-size: .86rem; font-weight: 500; margin: 0 0 2px; color: var(--navy); }
.v-row:hover h4, .p-row:hover h4 { color: var(--gold-dark); }
.v-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v-grid .v-feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.v-grid .v-thumb { aspect-ratio: 16 / 9; }

/* podcasts */
.pod { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.pod-art { border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.pod-art img { width: 100%; height: 100%; object-fit: cover; }
.pod-copy h3 { font: 600 1.15rem/1.25 var(--serif); margin: 4px 0 8px; }
.pod-copy p { font-size: .8rem; color: var(--muted); }
.p-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; text-decoration: none; color: inherit; }
.p-play { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.p-play .ic { width: 11px; height: 11px; stroke: none; margin-left: 2px; }

/* learn */
.learn { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-items: center; }
.learn > img { border-radius: 8px; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: .88rem; padding: 4px 0; color: var(--ink); }
.checks .ic { color: var(--gold); stroke-width: 2.4; }

/* books carousel */
.carousel { position: relative; }
.c-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.c-track::-webkit-scrollbar { display: none; }
.c-track > * { scroll-snap-align: start; flex: 0 0 calc((100% - 48px) / 4); min-width: 120px; }
.c-btn { position: absolute; top: 38%; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; cursor: pointer; color: var(--navy); z-index: 2; }
.c-prev { left: -16px; } .c-next { right: -16px; }
.b-card { text-decoration: none; color: inherit; display: block; }
.b-card h3 { font-size: .82rem; font-weight: 600; margin: 10px 0 2px; }
.b-price { font-size: .75rem; font-weight: 600; color: var(--gold-dark); }
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; }
.b-grid .b-card h3 { font-size: .95rem; }
.cover { aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: 0 8px 18px rgba(10, 29, 66, .22), inset 4px 0 0 rgba(0, 0, 0, .12); transition: transform .25s, box-shadow .25s; position: relative; }
.b-card:hover .cover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 16px 30px rgba(10, 29, 66, .28); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.gen { display: flex; flex-direction: column; justify-content: space-between; padding: 18% 12% 10%; text-align: center; }
.cover-title { font: 600 1.15rem/1.15 var(--serif); }
.cover-brand { font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; opacity: .8; }
.cover-navy { background: linear-gradient(160deg, #1d3d75, #0a1d42); color: #f3e3bf; }
.cover-teal { background: linear-gradient(160deg, #1f5a5a, #0e3436); color: #f3e3bf; }
.cover-gold { background: linear-gradient(160deg, #d9b26a, #a07428); color: #0a1d42; }
.cover-cream { background: linear-gradient(160deg, #fbf5e8, #e8dcc2); color: #0f2a5c; }
.cover-plum { background: linear-gradient(160deg, #5a2c4a, #2c1424); color: #f3e3bf; }

/* community / ai */
.feature-img { border-radius: 10px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16 / 8; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.ai-box { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.ai-box img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ai-box p { font-size: .92rem; margin-bottom: 10px; }

/* newsletter strip */
.stay { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.stay-row { display: flex; align-items: center; gap: 22px; }
.stay-row > .ic { width: 44px; height: 44px; color: var(--gold); stroke-width: 1.3; }
.stay-row h2 { font-size: 1.3rem; margin: 0 0 2px; }
.stay-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.stay-form { margin-left: auto; display: flex; flex: 0 1 430px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 5px 5px 14px; background: #fff; }
.stay-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: .9rem var(--sans); background: transparent; }

/* footer */
.site-footer { background: #fff; padding: 40px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.6fr 1fr .9fr; gap: 36px; }
.footer-brand p { color: var(--muted); font-size: .85rem; margin-top: 14px; max-width: 320px; }
.site-footer h4 { font-size: .85rem; margin: 6px 0 12px; }
.footer-links { display: grid; gap: 6px 30px; }
.footer-links.two { grid-template-columns: auto auto; justify-content: start; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .82rem; }
.footer-links a:hover { color: var(--gold-dark); }
.social { display: flex; gap: 12px; }
.social a { color: var(--navy); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; }
.social a:hover { background: var(--cream-2); color: var(--gold-dark); }
.social .ic { width: 22px; height: 22px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; padding-bottom: 16px; }

/* ---------- inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--cream-2), var(--cream)); padding: 46px 0 28px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .2em; }
.page-hero p { color: var(--muted); margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 14px; }
.tab { padding: .6em 1.2em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500; cursor: pointer; }
.tab.active, .tab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.lib-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.lib-tools .search-bar { flex: 1 1 320px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 .8rem var(--sans); padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip.active { background: var(--gold-tint); border-color: var(--gold-light); color: var(--gold-dark); }
.lib-group h2 { font-size: 1.35rem; margin: 30px 0 16px; }
.result-count { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }

.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 60px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .86rem; margin-bottom: 26px; }
.article-cover { border-radius: 14px; overflow: hidden; margin-bottom: 30px; aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.06rem; line-height: 1.8; color: #262d3d; }
.prose h2 { font-size: 1.55rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid var(--gold); background: var(--gold-tint); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: 1.12rem; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 10px; margin: 1em 0; }
.prose code { background: var(--cream-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose a { color: var(--gold-dark); }
.related { border-top: 1px solid var(--line); padding: 40px 0 60px; }

.book-detail { display: grid; grid-template-columns: 300px 1fr; gap: 46px; padding: 44px 24px 30px; max-width: 1100px; margin: 0 auto; }
.book-detail .cover { max-width: 300px; }
.book-detail h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.price-tag { font: 700 1.6rem var(--serif); color: var(--navy); margin: 8px 0 18px; }
.price-tag small { font: 500 .85rem var(--sans); color: var(--muted); margin-left: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.pdf-frame { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.media-wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px 60px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 24px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.coming { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; position: relative; margin-bottom: 24px; display: grid; place-items: center; }
.coming img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.coming div { position: relative; color: #fff; text-align: center; padding: 20px; }
.coming h2 { color: #fff; }
audio { width: 100%; margin: 10px 0 20px; }

/* contact & forms */
.form-card { background: #fff; padding: 32px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.form-card label, .field { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--navy); }
.form-card input, .form-card select, .form-card textarea, .field input, .field select, .field textarea { font: 400 .95rem var(--sans); padding: .75em .95em; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 134, 47, .18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; padding: 50px 24px 70px; }
.contact-info p { color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 24px 0; }
.info-list li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.info-list .ic { color: var(--gold); width: 22px; height: 22px; }

.simple-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.simple-page .brand-mark { width: 120px; height: 120px; margin: 0 auto 20px; }
.simple-page p { color: var(--muted); max-width: 460px; margin: 0 auto 26px; }
.legal { max-width: 800px; margin: 0 auto; padding: 40px 24px 70px; }
.legal section { padding-top: 20px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: grid; }
  .hide-sm { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav { position: fixed; top: var(--nav-top, 78px); left: 0; right: 0; bottom: 0; visibility: hidden; background: #fff; flex-direction: column; justify-content: flex-start; overflow-y: auto; padding: 12px 20px 30px; transform: translateX(100%); transition: transform .3s ease; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 14px 6px !important; font-size: 1rem; background: none !important; }
  .nav-link.active { color: var(--gold-dark); }
  .sub-toggle { padding: 12px; }
  .sub-toggle .ic { width: 18px; height: 18px; }
  .sub { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 10px 10px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.open .sub { display: block; }
  .nav-mobile-actions { display: flex; gap: 10px; margin-top: 20px; }
  .nav-mobile-actions .btn { flex: 1; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .triple { grid-template-columns: 1fr 1fr; }
  .triple > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .triple > div:nth-child(2) { padding-right: 0; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .scene { position: relative; order: 2; width: auto; height: 340px; }
  .scene::before { background: linear-gradient(180deg, var(--cream) 0%, rgba(251, 248, 242, 0) 22%); }
  .hero-inner { padding-bottom: 10px; }
  .hero-copy { max-width: none; }
  .split, .split-even, .contact-wrap { grid-template-columns: 1fr; }
  .k-grid, .v-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-detail { grid-template-columns: 220px 1fr; gap: 28px; }
  .stay-row { flex-wrap: wrap; }
  .stay-form { flex: 1 1 100%; margin-left: 0; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .hero-inner { padding: 36px 16px 10px; }
  .scene { height: 280px; }
  .scene-quote { display: none; }
  .book-stack { left: 6%; transform: scale(.78); transform-origin: left bottom; }
  .mug { transform: scale(.75); transform-origin: right bottom; }
  .laptop-logo { display: none; }
  .hero .search-bar .btn { padding: .72em .9em; }
  .hero-actions .btn { flex: 1; min-width: 0; }
  .stats li { padding: 0 14px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .k-grid, .v-grid { grid-template-columns: 1fr; }
  .pod { grid-template-columns: 110px 1fr; }
  .pod-list { grid-column: 1 / -1; }
  .learn, .ai-box { grid-template-columns: 1fr; }
  .ai-box img { aspect-ratio: 16 / 9; }
  .triple { grid-template-columns: 1fr; }
  .triple > div { padding: 30px 0 !important; border-left: 0 !important; }
  .triple > div + div { border-top: 1px solid var(--line); }
  .c-track > * { flex-basis: calc((100% - 16px) / 2); }
  .c-prev { left: -6px; } .c-next { right: -6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .book-detail { grid-template-columns: 1fr; padding: 30px 16px; }
  .book-detail .cover { max-width: 220px; }
  .row2 { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .contact-wrap { padding: 32px 16px 50px; }
  .article { padding: 30px 16px 50px; }
  .pdf-frame { height: 70vh; min-height: 400px; }
  .sec-head { flex-wrap: wrap; }
}
