/* =========================================================================
   The Yet Jet — website V2
   A deeper cut of the book's world: hanging paper planets, dashed flight
   paths, roadside signs, and a day → dusk → dawn scroll arc.
   Palette & type sampled directly from the printed book.
   ========================================================================= */

:root {
  /* --teal sampled from the printed cover title (#3a917c) */
  --teal:        #3a917c;
  --teal-deep:   #2c7767;
  --teal-dark:   #1d5d50;
  --orange:      #cf4d22;
  --orange-soft: #e07a4f;
  --sky:         #bfe3ec;
  --sky-deep:    #8fc9da;
  --sage:        #a9cf9e;
  --sage-deep:   #7fb585;
  --pink:        #f0cabd;
  --mustard:     #e9b84e;
  --plum:        #b7a7d6;
  --ink:         #2a3b5c;
  --ink-soft:    #4a5a78;
  --dusk:        #232f4b;   /* the night-climb sky */
  --dusk-2:      #2e3a5c;
  --cream:       #fbf8f1;
  --cream-2:     #f3ecdd;
  --card:        #ffffff;

  --maxw: 1150px;
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 32px;
  --shadow-sm: 0 5px 16px rgba(42,59,92,.09);
  --shadow:    0 16px 44px rgba(42,59,92,.16);
  --shadow-lg: 0 32px 80px rgba(42,59,92,.22);

  /* Caveat (bold) is the closest face to the cover's hand lettering:
     tall, condensed, brush-marker strokes, swash descenders on Y & J. */
  --f-script: 'Caveat', cursive;
  --f-head:   'Fredoka', system-ui, sans-serif;
  --f-hand:   'Patrick Hand', 'Comic Sans MS', cursive;
  --f-body:   'Nunito', system-ui, sans-serif;

  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* spacing rhythm — one scale, used by every band */
  --sect:    clamp(3.5rem, 7vw, 6rem);
  --sect-sm: clamp(2.4rem, 5vw, 4rem);
  --gap:     clamp(1.4rem, 3vw, 2.4rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body);
  font-size: clamp(1.02rem, .5vw + .92rem, 1.16rem);
  line-height: 1.72; color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
h1,h2,h3,h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.08; color: var(--ink); margin: 0 0 .45em; }
h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { margin: 0 0 1em; }

.wrap  { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.center{ text-align: center; }
.eyebrow {
  font-family: var(--f-hand); font-size: 1.3rem; letter-spacing: .03em;
  color: var(--orange); margin: 0 0 .35rem;
}
.on-dark .eyebrow { color: var(--mustard); }

/* ---------- a11y ---------- */
.skip-link {
  position: absolute; left: 50%; top: -110px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .8rem 1.5rem; z-index: 999;
  border-radius: 0 0 14px 14px; font-family: var(--f-head); transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-head); font-weight: 600; font-size: 1.05rem;
  padding: .9rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 0 #a53a17, var(--shadow-sm); }
.btn-primary:hover { background: #ba431c; box-shadow: 0 7px 0 #953312, var(--shadow); }
.btn-primary:active { box-shadow: 0 2px 0 #953312; transform: translateY(4px); }
.btn-secondary { background: #fff; color: var(--teal-deep); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: #fff; }
.btn-light { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.26); }
.btn-lg { font-size: 1.14rem; padding: 1.05rem 2.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,241,.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(42,59,92,.07);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none; white-space: nowrap; }
.brand .b-script { font-family: var(--f-script); font-weight: 700; font-size: 2.05rem; color: var(--teal); line-height: 1; }
.brand .b-jet {
  width: 34px; height: 24px; transform: translateY(2px);
  transition: transform .35s var(--ease);
}
.brand:hover .b-jet { transform: translate(6px,-3px) rotate(-8deg); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--f-head); font-weight: 500; color: var(--ink); text-decoration: none;
  padding: .5rem .9rem; border-radius: 999px;
  transition: background .15s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sage); }
.nav-right { display: flex; align-items: center; gap: .5rem; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal); color: #fff; border: none; cursor: pointer;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem;
  padding: .62rem 1.05rem; border-radius: 999px;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.cart-btn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.cart-count {
  min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; background: var(--orange); color: #fff;
  border-radius: 999px; font-size: .8rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count[data-empty="true"] { display: none; }
.nav-toggle { display: none; }

/* the world toggle — flip between the book's world and Hannah's author site */
.world-toggle {
  display: inline-flex; align-items: center;
  background: #fff; border: 1.5px solid rgba(42,59,92,.16); border-radius: 999px; padding: 3px;
}
.world-toggle .seg {
  font-family: var(--f-head); font-weight: 600; font-size: .88rem; line-height: 1;
  color: var(--ink-soft); text-decoration: none; padding: .5rem .9rem; border-radius: 999px;
  transition: background .18s var(--ease), color .18s var(--ease); white-space: nowrap;
}
.world-toggle .seg:hover { color: var(--ink); }
.world-toggle .seg.is-active { background: var(--teal); color: #fff; }

/* =========================================================================
   Hero — day sky, strings & planets, drawn flight path
   ========================================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 60% at 85% -8%, rgba(240,202,189,.55), transparent 62%),
    radial-gradient(70% 50% at -10% 20%, rgba(233,184,78,.18), transparent 60%),
    linear-gradient(172deg, var(--sage) 0%, #b9ddc0 40%, var(--sky) 100%);
  padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(4.5rem, 8vw, 7rem);
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(1.6rem, 4vw, 3.6rem); align-items: center; position: relative; z-index: 4;
}
.hero h1 { margin: 0 0 .3em; }
/* Matched to the printed cover: Caveat 700, cover teal #3a917c,
   tall condensed forms, and a gentle per-letter hand-lettered bounce. */
.hero h1 .the {
  display: block; font-family: var(--f-script); font-weight: 700; color: var(--teal);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1;
  margin: 0 0 -.1em .9em; transform: rotate(-2deg); width: fit-content;
}
.hero h1 .title {
  font-family: var(--f-script); font-weight: 700; color: var(--teal);
  font-size: clamp(4rem, 10vw, 7.2rem); line-height: .88; display: inline-block;
  letter-spacing: .01em;
}
.hero h1 .title i { display: inline-block; font-style: normal; }
.hero h1 .title i:nth-child(1) { transform: rotate(-4deg) translateY(.02em); }
.hero h1 .title i:nth-child(2) { transform: rotate(2deg)  translateY(-.03em); }
.hero h1 .title i:nth-child(3) { transform: rotate(-1deg) translateY(.01em); }
.hero h1 .title i.sp { width: .32em; }
.hero h1 .title i:nth-child(5) { transform: rotate(3deg)  translateY(.03em); }
.hero h1 .title i:nth-child(6) { transform: rotate(-2deg) translateY(-.02em); }
.hero h1 .title i:nth-child(7) { transform: rotate(1.5deg) translateY(.02em); }
.hero .lede {
  font-size: clamp(1.12rem, 1.6vw, 1.38rem); max-width: 32ch; margin: 0 0 1.7rem;
}
.hero .lede em { color: var(--teal-dark); font-style: normal; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-meta { margin-top: 1.9rem; font-family: var(--f-hand); font-size: 1.18rem; color: var(--ink-soft); }
.hero-meta strong { color: var(--orange); }

/* book scene */
.hero-scene { position: relative; min-height: 400px; display: grid; place-items: center; }
.book-tilt { position: relative; z-index: 3; width: min(80%, 430px); }
.book-tilt img {
  border-radius: 10px; box-shadow: var(--shadow-lg);
  transform: rotate(-3.5deg);
  animation: hover-bob 7s ease-in-out infinite;
}
.book-tilt::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 26px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(42,59,92,.25), transparent 70%);
  filter: blur(2px); animation: shadow-bob 7s ease-in-out infinite;
}
@keyframes hover-bob { 0%,100% { transform: rotate(-3.5deg) translateY(0);} 50% { transform: rotate(-2.2deg) translateY(-16px);} }
@keyframes shadow-bob { 0%,100% { transform: scaleX(1); opacity:.85;} 50% { transform: scaleX(.82); opacity:.55;} }

/* hanging planets — the book hangs its suns & moons on strings */
.hang { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; pointer-events: none; }
.hang .string { width: 2px; background: rgba(42,59,92,.35); }
.hang .ball   { border-radius: 50%; }
.hang.h1 { left: 6%; }
.hang.h1 .string { height: 72px; }
.hang.h1 .ball { width: 52px; height: 52px; background: radial-gradient(circle at 35% 30%, #f2c869, var(--mustard)); box-shadow: inset -7px -7px 0 rgba(0,0,0,.07); }
.hang.h2 { right: 8%; }
.hang.h2 .string { height: 130px; }
.hang.h2 .ball { width: 34px; height: 34px; background: radial-gradient(circle at 40% 32%, #f7e9c4, #e8d29a); }
.hang.h3 { left: 44%; }
.hang.h3 .string { height: 38px; }
.hang.h3 .ball { width: 22px; height: 22px; background: radial-gradient(circle at 40% 32%, #e8927c, var(--orange-soft)); }
.hang { animation: sway 6.5s ease-in-out infinite; transform-origin: top center; }
.hang.h2 { animation-duration: 8s; animation-delay: .8s; }
.hang.h3 { animation-duration: 5.4s; animation-delay: .3s; }
@keyframes sway { 0%,100% { transform: rotate(1.6deg);} 50% { transform: rotate(-1.6deg);} }

/* clouds */
.cloud {
  position: absolute; background: #fff; border-radius: 999px; opacity: .6; filter: blur(2px);
  box-shadow: -24px 7px 0 -5px #fff, 26px 9px 0 -7px #fff; pointer-events: none; z-index: 1;
}
.cloud.c1 { width: 96px; height: 30px; top: 18%; right: 12%; animation: drift 26s linear infinite alternate; }
.cloud.c2 { width: 66px; height: 22px; bottom: 12%; left: 4%;  animation: drift 34s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-16px);} to { transform: translateX(26px);} }

/* the flight path + jet (driven by scroll in JS) */
.flightpath { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.flightpath path { fill: none; stroke: rgba(42,59,92,.5); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 14; }
.hero-jet { position: absolute; width: 104px; z-index: 5; top: 0; left: 0; will-change: transform; filter: drop-shadow(0 6px 8px rgba(42,59,92,.25)); }

/* the take-off jet — the boy lifts off the cover and buzzes the page on load */
.takeoff-jet {
  position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none;
  width: 170px; will-change: transform, opacity; visibility: hidden;
  filter: drop-shadow(0 12px 16px rgba(42,59,92,.3));
}

/* wave divider */
.wave { display: block; width: 100%; height: auto; margin-top: -2px; }

/* =========================================================================
   Transform band — "I can't" → "I can't… yet"
   ========================================================================= */
.transform-band { padding: var(--sect) 0; background: var(--cream); }
.transform-line {
  font-family: var(--f-head); font-weight: 600; text-align: center; line-height: 1.25;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem); margin: 0 auto 1.6rem;
}
.transform-line .cant { color: var(--ink-soft); position: relative; white-space: nowrap; }
.transform-line .cant::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 54%; height: .12em;
  background: var(--orange); border-radius: 99px; transform: scaleX(0) rotate(-2deg);
  transform-origin: left center; transition: transform .7s var(--ease-out) .15s;
}
.transform-line .becomes { font-family: var(--f-hand); font-size: .55em; color: var(--ink-soft); padding: 0 .4em; }
.transform-line .yet { color: var(--teal); white-space: nowrap; position: relative; }
.transform-line .yet::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px;
  background: var(--mustard); border-radius: 4px; transform: scaleX(0);
  transform-origin: left; transition: transform .8s var(--ease-out) .75s;
}
.transform-line.in .cant::after { transform: scaleX(1) rotate(-2deg); }
.transform-line.in .yet::after  { transform: scaleX(1); }
.transform-sub { max-width: 62ch; margin: 0 auto; text-align: center; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.card {
  background: var(--card); border-radius: var(--r); padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(42,59,92,.05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); }
.card .ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 1rem;
}
.card:nth-child(1) .ic { background: var(--sky); }
.card:nth-child(2) .ic { background: var(--pink); }
.card:nth-child(3) .ic { background: var(--sage); }
.card p { margin: 0; color: var(--ink-soft); }

/* =========================================================================
   Dusk band — the hard part of the climb (emotional beat, no spreads)
   ========================================================================= */
.dusk {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(80% 55% at 78% 0%, rgba(183,167,214,.34), transparent 62%),
    radial-gradient(60% 45% at 12% 12%, rgba(240,202,189,.16), transparent 55%),
    linear-gradient(178deg, var(--dusk) 0%, var(--dusk-2) 60%, #35558a 100%);
  padding: var(--sect) 0;
}
.dusk h2 { color: #fff; }
.dusk .lede { color: rgba(255,255,255,.85); max-width: 56ch; }
.dusk .verse {
  font-family: var(--f-hand); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.55;
  color: #fff; max-width: 44ch; margin: 2rem 0 0;
}
.dusk .verse .em { color: var(--mustard); }

/* hanging moons in the dusk */
.dusk .hang .string { background: rgba(255,255,255,.35); }
.dusk .hang.m1 { left: 8%; }  .dusk .hang.m1 .string { height: 90px; }
.dusk .hang.m1 .ball { width: 58px; height: 58px; background: radial-gradient(circle at 38% 32%, #fdf6e4, #ecdcae); box-shadow: 0 0 34px rgba(253,246,228,.5); }
.dusk .hang.m2 { right: 10%; } .dusk .hang.m2 .string { height: 150px; }
.dusk .hang.m2 .ball { width: 36px; height: 36px; background: radial-gradient(circle at 38% 32%, #f4c98e, var(--mustard)); box-shadow: 0 0 26px rgba(244,201,142,.45); }
.dusk .hang.m3 { right: 30%; } .dusk .hang.m3 .string { height: 52px; }
.dusk .hang.m3 .ball { width: 20px; height: 20px; background: #f0cabd; box-shadow: 0 0 18px rgba(240,202,189,.5); }

/* the steep mountain (from Nathan's sketch) with the boy climbing it —
   one SVG so the boy, trail and peak stay glued together at every size */
.dusk-peak {
  position: absolute; right: 0; bottom: 0;
  width: min(58%, 780px); height: auto;
  pointer-events: none;
}
.dusk-peak .boy { filter: drop-shadow(6px 10px 10px rgba(0,0,0,.35)); }
@media (max-width: 640px) {
  .dusk-peak { width: 74%; }
  /* reserve air below the signs so the summit doesn't collide with them */
  .dusk { padding-bottom: calc(var(--sect) + 30vw); }
}

/* the roadside signs */
.signs { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2.8rem; }
.sign {
  --tilt: -2deg;
  position: relative; background: #fdf8ec; color: var(--ink);
  font-family: var(--f-hand); font-size: 1.25rem; line-height: 1.15; text-align: center;
  padding: .8rem 1.3rem .9rem; border-radius: 8px; transform: rotate(var(--tilt));
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.sign::after { /* the post */
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: 8px; height: 34px; background: #6d5638; border-radius: 0 0 3px 3px;
}
.sign.s2 { --tilt: 1.8deg; } .sign.s3 { --tilt: -1.2deg; background: #fdf0d8; }
.signs { padding-bottom: 40px; }

/* mountain silhouette at the bottom of the dusk band */
.dusk-mountains { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; pointer-events: none; }

/* =========================================================================
   Who it's for
   ========================================================================= */
.suit { background: var(--cream); padding: var(--sect) 0; }
.section-head { max-width: 62ch; margin: 0 auto clamp(1.8rem, 3.5vw, 2.8rem); }
.suit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
.panel {
  background: var(--card); border-radius: var(--r-lg); padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(42,59,92,.06);
}
.panel.alt { background: transparent; box-shadow: none; border: none; padding-top: .4rem; }
.tick-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .85rem; }
.tick-list li { position: relative; padding-left: 42px; line-height: 1.5; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage); color: var(--teal-dark);
  font-family: var(--f-head); font-weight: 700;
}
.tick-list.warm li::before { background: var(--pink); color: var(--orange); }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; }
.fact { background: #fff; border: 1.5px solid rgba(42,59,92,.14); border-radius: 12px; padding: .5rem .95rem; font-size: .95rem; }
.fact b { font-family: var(--f-head); margin-right: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.chip { background: #fff; border: 2px solid var(--sage); border-radius: 999px; padding: .55rem 1.15rem; font-family: var(--f-head); font-weight: 500; }
.audience { text-align: center; margin-top: clamp(2.2rem, 4vw, 3rem); }
.audience-label { font-family: var(--f-hand); font-size: 1.3rem; color: var(--ink-soft); margin-bottom: .4rem; }

/* =========================================================================
   Peek inside — 3 spreads, deliberately limited
   ========================================================================= */
.peek { background: linear-gradient(180deg, var(--cream) 0%, #e9f1e6 100%); padding: var(--sect) 0; }
.peek-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.peek-card {
  margin: 0; background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm); transform: rotate(var(--pt, -1.3deg));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.peek-card:nth-child(2) { --pt: 1.1deg; } .peek-card:nth-child(3) { --pt: -0.7deg; }
.peek-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: var(--shadow); }
.peek-card img { width: 100%; height: auto; }
.peek-card figcaption { font-family: var(--f-hand); font-size: 1.15rem; color: var(--ink-soft); text-align: center; padding: .8rem 1rem 1.1rem; }
.peek-note { text-align: center; font-family: var(--f-hand); font-size: 1.25rem; color: var(--teal-deep); margin-top: 2.2rem; }

/* =========================================================================
   Buy
   ========================================================================= */
.buy { background: linear-gradient(180deg, #e9f1e6 0%, var(--sky) 130%); padding: var(--sect) 0; }
.buy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.buy-cover { justify-self: center; max-width: 380px; position: relative; }
.buy-cover img { border-radius: 10px; box-shadow: var(--shadow-lg); transform: rotate(2.2deg); }
.buy-cover .badge-signed {
  position: absolute; top: -18px; right: -14px; z-index: 2;
  background: var(--mustard); color: var(--ink); font-family: var(--f-hand); font-size: 1.05rem;
  padding: .55rem .95rem; border-radius: 999px; transform: rotate(6deg); box-shadow: var(--shadow-sm);
}
.price { font-family: var(--f-head); font-weight: 600; margin: .2rem 0 1rem; }
.price .amt { font-size: clamp(2.2rem, 5vw, 3rem); color: var(--orange); }
.price .cur { font-size: 1.05rem; color: var(--ink-soft); vertical-align: super; }
.spec-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.spec-list li { display: flex; gap: .6rem; align-items: baseline; }
.spec-list b { font-family: var(--f-head); font-weight: 600; min-width: 7.5rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid rgba(42,59,92,.18); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 46px; height: 46px; border: none; background: transparent; font-size: 1.35rem; cursor: pointer; color: var(--ink); font-family: var(--f-head); }
.qty button:hover { background: var(--cream-2); }
.qty input { width: 50px; text-align: center; border: none; font-size: 1.1rem; font-family: var(--f-head); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.reassure { font-family: var(--f-hand); font-size: 1.12rem; color: var(--ink-soft); margin-top: 1.1rem; }

/* =========================================================================
   About teaser
   ========================================================================= */
.about-teaser { background: var(--cream); padding: var(--sect) 0; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.6rem,5vw,3.6rem); align-items: center; }
/* the photo carries the book's own organic blob shape (transparent PNG),
   so no CSS mask is needed — just a soft drop shadow */
.author-photo { max-width: 380px; justify-self: center; }
.author-photo img { filter: drop-shadow(0 22px 44px rgba(42,59,92,.26)); }
.quote { font-family: var(--f-hand); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.5; color: var(--teal-deep); }

/* =========================================================================
   Share band
   ========================================================================= */
.share { background: var(--ink); color: #fff; padding: var(--sect-sm) 0; position: relative; overflow: hidden; }
.share h2 { color: #fff; }
.share p { color: rgba(255,255,255,.82); }
.share-btns { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.5rem; }
.share-btns button, .share-btns a {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.24);
  font-family: var(--f-head); font-weight: 500; font-size: 1rem;
  padding: .72rem 1.25rem; border-radius: 999px; text-decoration: none;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.share-btns button:hover, .share-btns a:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--cream-2); padding: var(--sect-sm) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--f-script); font-weight: 700; font-size: 2.3rem; color: var(--teal); margin: 0 0 .3rem; }
.footer-grid h4 { margin: 0 0 .6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--teal-deep); text-decoration: underline; }
.footer-note {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(42,59,92,.12);
  color: var(--ink-soft); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between;
}

/* =========================================================================
   Media & Resources page
   ========================================================================= */
.res-hero {
  background:
    radial-gradient(90% 60% at 85% -8%, rgba(240,202,189,.5), transparent 62%),
    linear-gradient(172deg, var(--sage) 0%, #b9ddc0 45%, var(--sky) 100%);
  padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(2.8rem, 5vw, 4.2rem);
  position: relative; overflow: hidden;
}
.res-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .3em; }
.res-hero .lede { max-width: 52ch; color: var(--ink); margin: 0; }
.res-band { padding: var(--sect) 0; }
.res-band.alt { background: linear-gradient(180deg, var(--cream) 0%, #eef3ec 100%); }
.res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.res-head > p { margin: 0; color: var(--ink-soft); }

/* video cards */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.video-card {
  background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(42,59,92,.06);
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; background:
    radial-gradient(70% 90% at 75% 10%, rgba(240,202,189,.5), transparent 60%),
    linear-gradient(165deg, var(--sage) 0%, var(--sky) 100%);
  display: grid; place-items: center; overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  width: 82px; height: 82px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(42,59,92,.3); transition: transform .2s var(--ease), background .2s var(--ease);
}
.play-btn:hover { transform: scale(1.08); background: #ba431c; }
.play-btn svg { margin-left: 5px; }
.video-frame .soon {
  font-family: var(--f-hand); font-size: 1.25rem; color: var(--ink);
  background: rgba(255,255,255,.85); border-radius: 999px; padding: .5rem 1.2rem;
  transform: rotate(-2deg); box-shadow: var(--shadow-sm);
}
.video-frame .v-jet { position: absolute; width: 84px; right: 6%; top: 12%; transform: rotate(-8deg); opacity: .95; }
.video-card .v-meta { padding: 1.1rem 1.3rem 1.25rem; }
.video-card h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.video-card .v-meta p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* article cards */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.article-card {
  display: flex; flex-direction: column; gap: .45rem; background: #fff;
  border-radius: var(--r); padding: 1.5rem 1.5rem 1.35rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42,59,92,.06); text-decoration: none; color: var(--ink);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
a.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card .src {
  font-family: var(--f-head); font-weight: 600; font-size: .85rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--teal-deep);
}
.article-card h3 { font-size: 1.2rem; margin: 0; }
.article-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.article-card .more { font-family: var(--f-head); font-weight: 600; color: var(--orange); font-size: .95rem; }
.article-card.soon { background: var(--cream); border-style: dashed; border-color: rgba(42,59,92,.18); box-shadow: none; }
.article-card.soon .src { color: var(--ink-soft); }

/* download cards */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.dl-card {
  background: #fff; border-radius: var(--r); padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(42,59,92,.06);
  display: flex; flex-direction: column; gap: .6rem;
}
.dl-card .ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
}
.dl-card:nth-child(1) .ic { background: var(--pink); }
.dl-card:nth-child(2) .ic { background: var(--sage); }
.dl-card:nth-child(3) .ic { background: var(--sky); }
.dl-card h3 { font-size: 1.2rem; margin: 0; }
.dl-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.dl-card .who { font-family: var(--f-hand); color: var(--teal-deep); font-size: 1.05rem; }
.dl-card .btn { margin-top: .4rem; align-self: flex-start; }
.dl-card .fsize { font-size: .82rem; color: var(--ink-soft); }

@media (max-width: 920px) {
  .video-grid, .article-grid, .dl-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Cart drawer & modals (same skeleton as v1, restyled)
   ========================================================================= */
.overlay {
  position: fixed; inset: 0; background: rgba(35,47,75,.5); z-index: 200;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(430px, 100%);
  background: var(--cream); z-index: 210; transform: translateX(102%);
  transition: transform .38s var(--ease-out); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  border-radius: 22px 0 0 22px;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.4rem; border-bottom: 1px solid rgba(42,59,92,.1); }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.icon-btn { background: transparent; border: none; cursor: pointer; padding: .4rem; border-radius: 10px; color: var(--ink); line-height: 0; }
.icon-btn:hover { background: rgba(42,59,92,.08); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.35rem; }
.drawer-foot { padding: 1.35rem; border-top: 1px solid rgba(42,59,92,.1); background: #fff; border-radius: 0 0 0 22px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 2.2rem 0; font-family: var(--f-hand); font-size: 1.35rem; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .95rem; align-items: center; padding: .95rem 0; border-bottom: 1px solid rgba(42,59,92,.08); }
.cart-line img { width: 64px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.cart-line .title { font-family: var(--f-head); font-weight: 600; font-size: 1rem; }
.cart-line .sub { color: var(--ink-soft); font-size: .9rem; }
.cart-line .qty { transform: scale(.8); transform-origin: left; margin-top: .3rem; }
.line-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: .85rem; text-decoration: underline; padding: 0; }
.cart-totals { display: flex; justify-content: space-between; font-family: var(--f-head); font-size: 1.25rem; margin-bottom: .3rem; }
.cart-totals b { color: var(--orange); }
.ship-note { color: var(--ink-soft); font-size: .9rem; margin: 0 0 1rem; }

.modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal-card {
  background: #fff; border-radius: var(--r); max-width: 530px; width: 100%; padding: 2rem;
  box-shadow: var(--shadow-lg); transform: translateY(18px); transition: transform .25s var(--ease-out);
  max-height: 90dvh; overflow: auto;
}
.modal.open .modal-card { transform: none; }
.callout { background: var(--cream-2); border-left: 4px solid var(--teal); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0; font-size: .97rem; }

/* =========================================================================
   Reveal system
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.reveal.tilt { transform: translateY(26px) rotate(1.4deg); }
.reveal.zoom { transform: translateY(14px) scale(.96); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .22s; }
.reveal[data-delay="3"] { transition-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .transform-line .cant::after, .transform-line .yet::after { opacity: 1 !important; transform: none !important; transition: none !important; }
  .transform-line.in .cant::after, .transform-line.in .yet::after { transform: scaleX(1) !important; }
  .book-tilt img, .book-tilt::after, .hang, .cloud, .hero-jet, .brand .b-jet { animation: none !important; transition: none !important; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 920px) {
  .hero-grid, .buy-grid, .about-grid, .suit-grid, .dusk-grid { grid-template-columns: 1fr; }
  .hero-scene { order: -1; min-height: 320px; }
  .cards, .peek-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-jet { width: 64px; }
}
@media (max-width: 1020px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--cream); padding: .6rem 1.2rem 1.2rem; gap: .2rem;
    border-bottom: 1px solid rgba(42,59,92,.1); box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem .9rem; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: transparent; border: 2px solid rgba(42,59,92,.2); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after  { position: absolute; top: 6px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand .b-script { font-size: 1.2rem; }
  .brand .b-jet { display: none; }
  .signs { gap: .8rem; }
  .sign { font-size: 1.05rem; }
  /* compact header: icon-only basket, tighter toggle */
  .nav { gap: .5rem; }
  .cart-btn { padding: .55rem .7rem; }
  .cart-btn .cart-label { display: none; }
  .world-toggle .seg { padding: .42rem .62rem; font-size: .78rem; }
}
