/* ==========================================================
   ASCEND LAB — styles
   Palette: warm whites + soft beiges, accented with deep green
   Fonts: Lora (headings) + Poppins (body), self-hosted
   ========================================================== */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/Lora.ttf") format("truetype"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/Lora-Italic.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("../assets/fonts/Poppins-Light.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); }

:root {
  --white: #FBF9F4;
  --paper: #F5F0E8;
  --beige: #EBE4D6;
  --sand: #D9CFBC;
  --oak: #C4AD8A;
  --olive: #4A5240;
  --deep: #2F3629;
  --sage: #7D8C6C;
  --ink: #2C2C2C;
  --muted: #6A6C63;
  --line: rgba(74, 82, 64, .18);
  --serif: "Lora", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1160px;
  --H: clamp(230px, 40vh, 400px); /* book height on the shelf */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--olive); }
h1, h2 { text-wrap: balance; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--deep); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .72rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.1rem;
}
.lede { font-size: 1.13rem; color: var(--muted); max-width: 60ch; }
.center .lede { margin-inline: auto; }
.serif-i { font-family: var(--serif); font-style: italic; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--white); padding: 10px 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid var(--olive); border-radius: 2px;
  padding: 1em 1.7em; background: var(--olive); color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--deep); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--olive); }
.btn.ghost:hover { background: var(--olive); color: var(--white); }
.btn.light { background: var(--paper); color: var(--deep); border-color: var(--paper); }
.btn.light:hover { background: var(--white); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(245, 240, 232, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.logo svg { width: 26px; height: 26px; color: var(--olive); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a, .nav .drop-btn {
  font-family: var(--sans); font-weight: 400; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; position: relative;
}
.nav > a::after, .nav .drop-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--olive);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav .drop:hover .drop-btn::after, .nav .drop.current .drop-btn::after { transform: scaleX(1); }
.drop { position: relative; }
.drop-btn svg { display: inline-block; width: 10px; height: 10px; margin-left: 6px; transition: transform .3s var(--ease); }
.drop-panel {
  position: absolute; top: 100%; left: -18px; min-width: 220px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(47, 54, 41, .35); padding: 8px 0;
  visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease), visibility 0s .4s;
}
.drop:hover .drop-panel, .drop:focus-within .drop-panel, .drop.open .drop-panel { visibility: visible; clip-path: inset(0); transition: clip-path .4s var(--ease); }
.drop:hover .drop-btn svg, .drop:focus-within .drop-btn svg, .drop.open .drop-btn svg { transform: rotate(180deg); }
.drop-panel a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 18px; letter-spacing: .1em; }
.drop-panel a:hover { background: var(--beige); }
.drop-panel small { font-size: .62rem; color: var(--sage); letter-spacing: .08em; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--deep); cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--olive); color: var(--white); font: 600 .65rem/18px var(--sans); text-align: center;
  transform: scale(0); transition: transform .35s var(--ease);
}
.cart-count.on { transform: scale(1); }
.menu-btn { display: none; }

/* ---------- Reading-room scene + bookshelf (home) ---------- */
:root { --H: clamp(230px, 39vh, 400px); }
.scene {
  --wall-a: #FBF8F1; --wall-b: #EFE8DA; --txt: #2F3629; --txt-2: #6A6C63; --sky-a: #DDEBE6; --sky-b: #F7F3E4;
  --table-a: #E2CDA6; --table-b: #C9AE82; --card: rgba(251, 249, 244, .88); --card-line: rgba(74, 82, 64, .16);
  position: relative; overflow: hidden; height: calc(100svh - 74px); min-height: 600px; max-height: 920px;
  background: linear-gradient(105deg, var(--wall-b), var(--wall-a) 38%, var(--wall-a) 70%, var(--wall-b));
  color: var(--txt); transition: background 1s var(--ease), color 1s var(--ease);
}
.scene.night {
  --wall-a: #2A3142; --wall-b: #1D2231; --txt: #F3EEE2; --txt-2: #C5C6BC; --sky-a: #0F1A33; --sky-b: #27365A;
  --table-a: #8A6A3C; --table-b: #4B3A22; --card: rgba(29, 33, 46, .88); --card-line: rgba(243, 238, 226, .16);
}
.scene h1, .scene h2 { color: var(--txt); transition: color 1s var(--ease); }
.decor { position: absolute; top: 0; bottom: 0; pointer-events: none; transition: filter 1s var(--ease); }
.decor svg { width: 100%; height: 100%; max-width: none; }
.decor.case { left: 0; width: clamp(70px, 13vw, 190px); }
.decor.window { right: 0; width: clamp(110px, 24vw, 350px); }
.scene.night .decor.case { filter: brightness(.5) saturate(.8) sepia(.25); }
.scene.night .decor.window { filter: brightness(.55) saturate(.7) hue-rotate(25deg); }
.decor .sky-a { stop-color: var(--sky-a); transition: stop-color 1s; } .decor .sky-b { stop-color: var(--sky-b); transition: stop-color 1s; }
.decor .stars { opacity: 0; transition: opacity 1s; } .scene.night .decor .stars { opacity: 1; }
.sunlight { position: absolute; inset: 0; pointer-events: none; opacity: .75; transition: opacity 1s var(--ease); }
.sunlight svg { width: 100%; height: 100%; max-width: none; }
.scene.night .sunlight { opacity: 0; }
.lamp { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease);
  background: radial-gradient(60% 75% at 8% 78%, rgba(240, 176, 74, .55), rgba(240, 176, 74, 0) 70%); }
.scene.night .lamp { opacity: 1; }
.table { position: absolute; left: 0; right: 0; bottom: 0; height: 23%; pointer-events: none;
  background: linear-gradient(var(--table-a), var(--table-b)); box-shadow: 0 -1px 0 rgba(255,255,255,.35), 0 -18px 40px -22px rgba(60, 45, 20, .35); transition: background 1s var(--ease); }
.table::before { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply;
  background: repeating-linear-gradient(93deg, rgba(120, 85, 40, 0) 0 38px, rgba(120, 85, 40, .22) 38px 39px, rgba(120, 85, 40, 0) 39px 97px, rgba(120, 85, 40, .14) 97px 99px); }
.table::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 50% 0%, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 70%); }

.scene-head { position: absolute; left: 0; right: 0; top: clamp(18px, 4.5vh, 48px); text-align: center; z-index: 3; padding: 0 clamp(20px, 16vw, 260px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.scene-head .pill { display: inline-flex; gap: 10px; align-items: center; padding: 5px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-line);
  font: 400 .78rem var(--serif); margin-bottom: clamp(10px, 2.4vh, 24px); }
.scene-head .pill i { width: 1px; height: 12px; background: var(--card-line); }
.scene-head .pill u { font: 600 .62rem var(--sans); letter-spacing: .12em; text-transform: uppercase; text-underline-offset: 3px; }
.scene-head h1 { font-weight: 400; font-size: clamp(1.9rem, 4.3vw, 3.5rem); margin: 0 auto .25em; max-width: 22ch; }
.scene-head h1 em { font-style: italic; color: var(--sage); }
.scene.night .scene-head h1 em { color: #B9C7A6; }
.scene-head p { color: var(--txt-2); margin: 0 auto; max-width: 56ch; font-size: clamp(.9rem, 1.2vw, 1.05rem); transition: color 1s; }
.now { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(8px, 1.6vh, 16px); font: 400 .9rem var(--serif); min-height: 1.6em; }
.now::before, .now::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .3; }
.now small { font: 600 .6rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--txt-2); }
.now .mask { overflow: hidden; display: inline-flex; gap: 10px; align-items: baseline; }

.daynight { position: absolute; top: clamp(16px, 4vh, 40px); right: clamp(16px, 3vw, 40px); z-index: 30; width: 54px; height: 28px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); cursor: pointer; padding: 0; }
.daynight span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #E3B34C; box-shadow: 0 0 10px rgba(227, 179, 76, .7); transition: transform .6s var(--ease), background .6s, box-shadow .6s; }
.scene.night .daynight span { transform: translateX(26px); background: #E9EDF5; box-shadow: inset -6px -2px 0 #9AA5BF; }

.shelf { position: absolute; inset: 0; perspective: 2200px; perspective-origin: 50% 60%; user-select: none; -webkit-user-select: none; z-index: 2; }
.stage { position: absolute; left: 50%; bottom: 11%; width: 0; height: 0; transform-style: preserve-3d; }
.bk { position: absolute; left: 0; bottom: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; transition: opacity .6s var(--ease); }
.face { position: absolute; bottom: 0; backface-visibility: hidden; border-radius: 2px 3px 3px 2px; overflow: hidden; }
.face::after { content: ""; position: absolute; inset: 0; background: #1b1e16; opacity: var(--shade, 0); pointer-events: none; }
.sp { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6%; padding: 0; border: 0; cursor: default; color: inherit; font: inherit;
  box-shadow: inset 5px 0 8px -5px rgba(255,255,255,.45), inset -6px 0 10px -6px rgba(0,0,0,.35), 0 10px 14px -8px rgba(40, 30, 10, .55); }
.sp::before { content: ""; position: absolute; left: 0; right: 0; top: 3.2%; bottom: 3.2%; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .45; pointer-events: none; }
.bk.titled .sp { cursor: pointer; }
.sp .label { margin-top: 22%; width: 62%; height: 36%; background: #F7F2E6; color: #2F3629; display: grid; place-items: center; border-radius: 1px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sp .label.blank { opacity: .92; }
.sp .t { writing-mode: vertical-rl; font-family: var(--serif); font-weight: 600; letter-spacing: .04em; white-space: nowrap; font-size: calc(var(--H) * .04); }
.sp .mark { width: 40%; opacity: .8; }
.cv { text-decoration: none; cursor: pointer; box-shadow: 0 14px 20px -10px rgba(40, 30, 10, .55); }
.cv img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.soon { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 12% 10%; outline: 1px solid currentColor; outline-offset: calc(var(--H) * -.03); }
.soon .k { font: 600 calc(var(--H) * .024)/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.soon .n { font: 600 calc(var(--H) * .09)/1.02 var(--serif); letter-spacing: -.01em; }
.soon svg { width: 60%; opacity: .9; }
.soon .s { font: italic 400 calc(var(--H) * .038)/1.3 var(--serif); }

/* detail mode: the other books step back, one book opens */
.scene.detail .bk:not(.sel) { opacity: 0; pointer-events: none; }
.scene.detail .scene-head { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.openbook { position: absolute; z-index: 20; perspective: 2000px; visibility: hidden; }
.openbook.on { visibility: visible; }
.openbook .pg { position: absolute; inset: 0; background: linear-gradient(90deg, #E9E3D4, #FBF8F0 9%, #FBF8F0); color: #2F3629; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12%; box-shadow: 0 30px 40px -24px rgba(40, 30, 10, .55); border-radius: 0 3px 3px 0; }
.openbook .pg svg { width: 58%; color: #7D8C6C; margin-bottom: 8%; }
.openbook .pg q { font: 400 1.25em/1.35 var(--serif); quotes: "“" "”"; }
.openbook .pg small { position: absolute; bottom: 7%; left: 0; right: 0; font: 600 .5em var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #8D9082; }
.openbook .leaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.openbook.open .leaf { transform: rotateY(-180deg); }
.openbook .leaf > * { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; border-radius: 0 3px 3px 0; }
.openbook .front img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.openbook .back { transform: rotateY(180deg); background: linear-gradient(270deg, #E9E3D4, #FBF8F0 9%, #FBF8F0); color: #2F3629; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12%; border-radius: 3px 0 0 3px; }
.openbook .back .k { font: 600 .5em var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #8D9082; margin-bottom: 1.2em; }
.openbook .back .n { font: 400 1.6em/1.15 var(--serif); }
.openbook .back .a { font: italic 400 .8em var(--serif); color: #6A6C63; margin-top: .7em; }

.panel { position: absolute; z-index: 21; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 26px 26px 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 50px -30px rgba(30, 30, 20, .5); visibility: hidden; opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.panel.in { visibility: visible; opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.panel h2 { font-weight: 400; font-size: 1.7rem; margin: 0 24px .2em 0; }
.panel .st { font: 600 .62rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--txt-2); }
.panel p { font-size: .9rem; line-height: 1.6; margin: .9rem 0; }
.panel dl { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; margin: 0 0 .9rem; justify-content: start; }
.panel dt { font: 600 .55rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--txt-2); grid-row: 1; }
.panel dd { margin: 0; font: 600 .95rem var(--serif); grid-row: 2; }
.panel blockquote { margin: 0 0 1.1rem; padding-left: 12px; border-left: 2px solid var(--sage); font: italic 400 .88rem/1.5 var(--serif); }
.panel .btn { width: 100%; border-radius: 8px; }
.scene.night .panel .btn { background: #F3EEE2; color: #2F3629; border-color: #F3EEE2; }
.panel .x { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--card-line); background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; }
.panel .esc { display: block; text-align: center; margin-top: 12px; font: 600 .55rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--txt-2); }
.shelf-fallback { list-style: none; padding: 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; position: absolute; left: 0; right: 0; bottom: 30%; z-index: 5; }

@media (max-width: 760px) {
  :root { --H: clamp(200px, 30svh, 290px); }
  .decor.case { display: none; }
  .decor.window { opacity: .4; }
  .scene-head { padding: 0 20px; }
  .now::before, .now::after { width: 20px; }
  .panel { padding: 18px 18px 14px; transform: translateY(20px); }
  .panel h2 { font-size: 1.35rem; }
  .panel p { margin: .5rem 0; font-size: .85rem; }
  .panel blockquote, .panel .esc { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vh, 120px) 0; position: relative; }
.section.white { background: var(--white); }
.section.beige { background: var(--beige); }
.section.deep { background: var(--deep); color: #E9E4D8; }
.section.deep h2, .section.deep h3 { color: var(--paper); }
.section.deep .eyebrow { color: #A9B598; }
.section-head { margin-bottom: clamp(36px, 6vh, 64px); }
.rule { width: 48px; height: 1px; background: var(--sage); border: 0; margin: 1.6rem 0; }
.center .rule { margin-inline: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }

.principle { padding-top: 26px; border-top: 1px solid var(--line); }
.principle .num { font: italic 400 1rem var(--serif); color: var(--sage); display: block; margin-bottom: .8rem; }
.principle p { color: var(--muted); margin: 0; }
.section.deep .principle { border-top-color: rgba(233, 228, 216, .2); }
.section.deep .principle p { color: #C9C6B8; }

/* Decorative botanical sprigs */
.sprig { position: absolute; pointer-events: none; color: var(--sage); opacity: .55; }
.sprig.a { width: 260px; left: -40px; top: 30px; transform: rotate(8deg); }
.sprig.b { width: 300px; right: -50px; bottom: 10px; transform: scaleX(-1) rotate(12deg); }

/* Featured book */
.book-figure { position: relative; display: grid; place-items: center; padding: 30px 0; }
.book-figure::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--beige); }
.section.beige .book-figure::before { background: var(--sand); opacity: .6; }
.book-figure img { position: relative; width: min(330px, 70%); border-radius: 3px; transform: rotate(-3.5deg); box-shadow: 0 40px 60px -30px rgba(30, 34, 24, .6), 0 2px 0 rgba(255,255,255,.2) inset; transition: transform .7s var(--ease); }
.book-figure:hover img { transform: rotate(-1deg) translateY(-6px); }
.book-figure .sprig { width: 210px; right: 2%; bottom: -10px; opacity: .7; transform: rotate(-30deg); }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg) scale(.8); transform-origin: left; }
.price-line { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price-line .from { font: 600 1.5rem var(--serif); color: var(--deep); }
.price-line .from small { font: 400 .8rem var(--sans); color: var(--muted); letter-spacing: .04em; }

/* Range cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 34px 30px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.card:hover { transform: translateY(-6px); box-shadow: 0 30px 44px -30px rgba(47, 54, 41, .45); }
.card .tag { font: 600 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.2rem; }
.card p { color: var(--muted); flex: 1; }
.card .more { font: 600 .76rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.card svg.ico { width: 44px; height: 44px; color: var(--olive); margin-bottom: 1.4rem; }

/* Packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.packs.single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.pack { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 38px 30px 32px; display: flex; flex-direction: column; }
.pack.best { background: var(--olive); color: #EEEADF; border-color: var(--olive); box-shadow: 0 36px 50px -32px rgba(47, 54, 41, .7); }
.pack.best h3 { color: var(--white); }
.pack .flag { position: absolute; top: -13px; left: 30px; background: var(--paper); color: var(--deep); font: 600 .64rem/26px var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 0 12px; border: 1px solid var(--line); }
.pack .who { color: var(--muted); font-size: .95rem; min-height: 3.2em; }
.pack.best .who { color: #D5D8C8; }
.pack .price { font: 600 2.4rem/1 var(--serif); color: var(--deep); margin: 1rem 0 1.4rem; }
.pack .price small { font: 400 .9rem var(--sans); letter-spacing: .08em; margin-left: .3em; }
.pack.best .price { color: var(--white); }
.pack ul { list-style: none; padding: 1.3rem 0 0; margin: 0 0 1.8rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; flex: 1; font-size: .96rem; }
.pack.best ul { border-top-color: rgba(255,255,255,.25); }
.pack li { position: relative; padding-left: 26px; }
.pack li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) scale(.8); transform-origin: left; opacity: .7; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 11vh, 130px) 0 clamp(48px, 8vh, 90px); background: linear-gradient(var(--white), var(--paper)); text-align: center; }
.page-hero .narrow, .soon-page .narrow { position: relative; z-index: 1; }
.page-hero .sprig.a { top: 10px; } .page-hero .sprig.b { top: 40px; bottom: auto; }
.prose p { font-size: 1.08rem; }
.prose p:first-of-type::first-letter { font: 600 3.6em/.8 var(--serif); float: left; padding: .08em .12em 0 0; color: var(--olive); }

/* Video overview section */
.video-wrap { max-width: 860px; margin: 0 auto; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--deep); color: var(--paper);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 36px 56px -30px rgba(30, 34, 24, .55); display: grid; place-items: center; text-align: center; padding: 24px;
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-placeholder { position: relative; z-index: 1; max-width: 44ch; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.video-play {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(245, 240, 232, .14); border: 1px solid rgba(245, 240, 232, .4);
  display: grid; place-items: center; color: var(--paper); transition: transform .35s var(--ease), background .35s var(--ease);
}
.video-frame:hover .video-play { transform: scale(1.06); background: rgba(245, 240, 232, .24); }
.video-placeholder span { font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #A9B598; }
.video-placeholder p { margin: 0; color: #D5D8C8; font-size: .95rem; }
.video-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(245, 240, 232, .32); background: rgba(245, 240, 232, .08); font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #E9E4D8; }

/* ---------- Breadcrumbs, Book GEO/Pricing & Evidence Guides ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 400 .78rem var(--sans); color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--olive); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s; }
.crumbs a:hover { border-bottom-color: var(--olive); }
.crumbs span[aria-hidden] { opacity: .45; }
.byline { font: 400 .88rem var(--sans); color: var(--muted); margin: -.35rem 0 1.2rem; }
.byline strong { font-weight: 600; color: var(--deep); }
.price-compare { margin: .85rem 0 0; font: 400 .86rem/1.55 var(--sans); color: var(--muted); }
.price-compare strong { color: var(--deep); font-weight: 600; }
.price-compare s { opacity: .75; }

.answer-box {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--olive);
  border-radius: 3px; padding: 22px 26px; margin: 1.8rem 0 2.4rem;
}
.section.white .answer-box { background: var(--paper); }
.answer-box .k { display: block; font: 600 .66rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--olive); margin-bottom: .45rem; }
.answer-box p { margin: 0; font-size: 1.01rem; color: var(--ink); line-height: 1.65; }

.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ref-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 8px;
}
.section.white .ref-card { background: var(--paper); }
.ref-card .k { font: 600 .64rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.ref-card h3 { margin: 0; font-size: 1.15rem; }
.ref-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }

.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 28px 26px;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.section.white .guide-card { background: var(--paper); }
.guide-card:hover { transform: translateY(-5px); box-shadow: 0 26px 40px -28px rgba(47, 54, 41, .42); }
.guide-card .tag { font: 600 .64rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--olive); margin-bottom: .9rem; }
.guide-card h3 { font-size: 1.2rem; margin: 0 0 .55rem; }
.guide-card p { color: var(--muted); font-size: .93rem; flex: 1; margin: 0 0 1.2rem; }
.guide-card .more { font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }

.guide-prose h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); margin: 2.3rem 0 .65rem; }
.guide-prose h3 { font-size: 1.18rem; margin: 1.5rem 0 .45rem; }
.guide-prose ul, .guide-prose ol { margin: .7rem 0 1.4rem; padding-left: 1.3rem; display: grid; gap: .5rem; }
.guide-prose li { color: var(--ink); }

.data-table-wrap { overflow-x: auto; margin: 1.6rem 0 2rem; border: 1px solid var(--line); border-radius: 3px; background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.data-table th {
  font: 600 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--deep); background: var(--beige); padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.sev { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 600 .64rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.sev-major { background: rgba(155, 59, 59, .12); color: #7E2626; }
.sev-mod { background: rgba(155, 123, 59, .14); color: #6E531A; }
.sev-minor { background: rgba(74, 82, 64, .12); color: var(--deep); }

.citations { margin: 2rem 0 0; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.section.paper .citations, .section.beige .citations { background: var(--white); }
.citations h3 { font-size: 1.05rem; margin: 0 0 .7rem; }
.citations ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .86rem; color: var(--muted); }

.guide-cta {
  margin-top: 2.8rem; padding: 32px 30px; background: var(--deep); color: var(--paper);
  border-radius: 3px; display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center;
}
.guide-cta h3 { color: var(--white); margin: 0 0 .4rem; font-size: 1.45rem; }
.guide-cta p { color: #CFCDBF; margin: 0; font-size: .95rem; max-width: 56ch; }
.guide-cta .actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* FAQ */
.faq-group { margin-bottom: 56px; }
.faq-group h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 14px; }
.faq-group h2::before { content: ""; width: 28px; height: 1px; background: var(--sage); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 1.08rem/1.4 var(--serif); color: var(--deep); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
details p { color: var(--muted); padding: 0 40px 22px 0; margin: 0; }
.help-box { background: var(--white); border: 1px solid var(--line); padding: 44px 30px; text-align: center; border-radius: 3px; }
.help-box .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* Coming soon */
.soon-page { min-height: 68vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; padding: 80px 0; }
.soon-page svg.big { width: 110px; margin: 0 auto 30px; color: var(--olive); }

.note { font-size: .86rem; color: var(--muted); border-left: 2px solid var(--sage); padding: 4px 0 4px 16px; max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #CFCDBF; padding: 72px 0 28px; position: relative; overflow: hidden; }
.site-footer .sprig { width: 320px; right: -40px; top: -30px; color: #6F7C5F; opacity: .35; transform: scaleX(-1) rotate(20deg); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; position: relative; }
.site-footer .logo { color: var(--paper); } .site-footer .logo svg { color: #A9B598; }
.site-footer h4 { font: 600 .7rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #A9B598; margin-bottom: 1.3rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.site-footer a { color: #CFCDBF; text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--white); }
.site-footer .signoff { font: italic 400 1.15rem var(--serif); color: var(--paper); margin-top: 1.2rem; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(233,228,216,.15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .78rem; letter-spacing: .06em; color: #9C9D8F; position: relative; }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(30, 34, 24, .45); z-index: 90; visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility 0s .4s; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--white); z-index: 100; display: flex; flex-direction: column; transform: translateX(102%); transition: transform .55s var(--ease), visibility 0s .55s; visibility: hidden; }
body.cart-open .scrim { visibility: visible; opacity: 1; transition: opacity .4s var(--ease); }
body.cart-open .cart { transform: none; visibility: visible; transition: transform .55s var(--ease); box-shadow: -30px 0 60px -40px rgba(30,34,24,.6); }
.cart header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart header h2 { font-size: 1.4rem; margin: 0; }
.cart-items { flex: 1; overflow: auto; padding: 8px 24px; }
.cart-empty { color: var(--muted); text-align: center; padding: 60px 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item .nm { font: 600 1.02rem var(--serif); color: var(--deep); }
.cart-item .pr { font-weight: 600; }
.cart-item .qty { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; }
.cart-item .qty button, .cart-item .rm { background: none; border: 1px solid var(--line); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--deep); }
.cart-item .rm { border: 0; width: auto; font: 400 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: underline; justify-self: end; }
.cart footer { padding: 22px 24px 28px; border-top: 1px solid var(--line); }
.cart .total { display: flex; justify-content: space-between; font: 600 1.25rem var(--serif); color: var(--deep); margin-bottom: 14px; }
.cart-email-wrap { margin-bottom: 14px; }
.cart-email-label { display: block; font: 600 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cart-email-input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--paper); color: var(--ink); font: 400 .92rem var(--sans);
}
.cart-email-input:focus { outline: 2px solid var(--olive); background: var(--white); }
.cart .btn { width: 100%; }
.cart .msg { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; min-height: 1.4em; }

/* Platform badges & post-purchase app cards */
.platforms-bar { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.platforms-bar strong { font-weight: 600; color: var(--deep); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
.platform-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--deep); font-weight: 400; font-size: .76rem; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.app-card .tag { font: 600 .65rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.app-card h3 { margin: 0; font-size: 1.25rem; }
.app-card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.app-card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (only when JS is on; no opacity fades) ---------- */
.js .reveal { clip-path: inset(0 0 100% 0); transform: translateY(28px); transition: clip-path 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { clip-path: inset(-20% -20% -20% -20%); transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .packs, .guide-list, .ref-grid-3 { grid-template-columns: 1fr; }
  .grid-2, .ref-grid, .guide-cta { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pack .who { min-height: 0; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 22px;
    visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .nav.open { visibility: visible; clip-path: inset(0); transition: clip-path .45s var(--ease); }
  .nav > a, .nav .drop-btn { padding: 14px 0; text-align: left; width: 100%; }
  .nav > a::after, .nav .drop-btn::after { display: none; }
  .drop-panel { position: static; visibility: visible; clip-path: none; border: 0; box-shadow: none; background: none; padding: 0 0 6px 14px; }
  .drop-btn svg { display: none; }
  .sprig.a { width: 150px; left: -50px; } .sprig.b { width: 170px; right: -60px; top: 60px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { clip-path: none; transform: none; }
}
