/* The VA Full Guide: landing page
   Same fonts and colours as the PDF. Flat colour grounds, no gradient backgrounds.
   The app icons and the page pictures are the book's own artwork.
   Built for phones first: most visitors come from TikTok. */

@font-face { font-family: "VA Inter"; src: url("assets/fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VA Inter"; src: url("assets/fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "VA Inter"; src: url("assets/fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "VA Inter Display"; src: url("assets/fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "VA Inter Display"; src: url("assets/fonts/inter-display-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Colours from the PDF */
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --hair: #e8e8ed;
  --fill: #f5f5f7;
  --paper: #ffffff;

  /* Buy button and links */
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-press: #006edb;
  --link: #0066cc;

  /* The pink of the cover title, used only for AI */
  --pink: #ff2e54;

  /* Part colours from the PDF */
  --c-start: #1d1d1f;
  --c-ai: #7f4ef5;
  --c-blue: #0071e3;
  --c-orange: #c2410c;
  --c-green: #1e7f37;
  --c-teal: #0e7c86;

  --text: "VA Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --disp: "VA Inter Display", "Inter Display", "VA Inter", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 980px;
  --wide: 1180px;
  --gutter: 22px;
  --nav-h: 52px;
  --section: clamp(76px, 10vw, 132px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* The sprite of app icons stays in the page but takes no space */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { display: block; flex: none; width: 48px; height: 48px; filter: drop-shadow(0 4px 7px rgba(24, 28, 60, 0.16)); }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font: 500 17px/1 var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.15s ease, transform 0.15s var(--ease), box-shadow 0.15s ease;
}
.btn:active { background: var(--blue-press); transform: scale(0.97); }
.btn-lg {
  min-height: 54px;
  padding: 0 32px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 12px 26px -10px rgba(0, 113, 227, 0.6);
}
.btn-sm { min-height: 32px; padding: 0 15px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.link { color: var(--link); text-decoration: none; }
.link-more { display: inline-flex; align-items: center; gap: 4px; }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
  .btn:active { background: var(--blue-press); transform: translateY(0) scale(0.98); }
  .btn-lg:hover { box-shadow: 0 16px 30px -10px rgba(0, 113, 227, 0.65); }
  .link:hover { text-decoration: underline; text-underline-offset: 0.18em; }
  .link-more:hover { text-decoration: none; }
  .link-more:hover .chev { transform: translateX(3px); }
}

/* The cover drawn as a book: a hinge on the left, page edges on the right */
.book { position: relative; display: block; border-radius: 3px 6px 6px 3px; }
.book img {
  width: 100%;
  border-radius: 3px 6px 6px 3px;
  background: #fff;
  box-shadow:
    1px 1px 0 #fff, 2px 2px 0 #dcdce1, 3px 3px 0 #fff, 4px 4px 0 #dcdce1,
    5px 5px 0 #fff, 6px 6px 0 #d2d2d7,
    0 30px 50px -18px rgba(0, 0, 0, 0.42);
}
.book::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 4.5%;
  border-radius: 3px 0 0 3px;
  background: rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--ink-2); text-decoration: none; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-buy { display: flex; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100vh - var(--nav-h)), 900px);
  min-height: min(calc(100svh - var(--nav-h)), 900px);
  padding: 44px 0 56px;
  overflow: hidden;
  text-align: center;
}
.hero-in { position: relative; z-index: 1; width: 100%; }

/* The hero arrives once: the badge, the headline word by word, then the rest */
.enter { animation: fade-up 0.6s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

.h1 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(48px, 8.6vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 10.5em;
  margin: 22px auto 0;
  text-wrap: balance;
}
.h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.02em 0.14em; margin-bottom: -0.14em; }
.h1 .w > span { display: inline-block; animation: rise 0.8s var(--ease-out) both; animation-delay: calc(90ms + var(--i) * 45ms); }
@keyframes rise { from { transform: translateY(108%); } }

.lead {
  max-width: 24em;
  margin: 22px auto 0;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.38;
  letter-spacing: -0.016em;
  color: var(--muted);
  text-wrap: balance;
}
.cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 30px; margin-top: 34px; }
.cta .link { font-size: 18px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--faint); letter-spacing: -0.005em; }

.facts { display: flex; justify-content: center; max-width: 500px; margin: 40px auto 0; }
.facts > div { flex: 1; display: flex; flex-direction: column-reverse; align-items: center; padding: 2px 10px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dd {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.facts dt { margin-top: 7px; font-size: 14px; line-height: 1.2; color: var(--muted); }

/* The pink AI badge: the sparkle turns, small stars pop around it, a shine runs across */
.ai-badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  padding: 0.56em 1.05em 0.56em 0.85em;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font: 700 16px/1 var(--disp);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ai-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(255, 46, 84, 0.16), 0 8px 26px rgba(255, 46, 84, 0.55);
  opacity: 0.55;
  animation: halo 2.4s ease-in-out infinite;
}
@keyframes halo { 50% { opacity: 1; } }
.ai-badge-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  clip-path: inset(0 round 999px);
  pointer-events: none;
}
.ai-badge-clip::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 34%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(5px);
  transform: translateX(-180%) skewX(-22deg);
  animation: shine 3.6s var(--ease) 1.4s infinite;
}
@keyframes shine {
  0% { transform: translateX(-180%) skewX(-22deg); }
  32%, 100% { transform: translateX(440%) skewX(-22deg); }
}
.ai-spark { position: relative; width: 1.22em; height: 1.22em; fill: currentColor; overflow: visible; }
.ai-spark .s1 { transform-origin: 10.5px 12.5px; animation: spark-turn 2.4s var(--ease-out) infinite; }
.ai-spark .s2 { transform-origin: 19px 5px; animation: spark-blink 2.4s ease-in-out infinite; }
@keyframes spark-turn {
  0% { transform: rotate(0deg) scale(1); }
  16% { transform: rotate(90deg) scale(1.38); }
  30%, 100% { transform: rotate(90deg) scale(1); }
}
@keyframes spark-blink {
  0%, 30%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.1; transform: scale(0.3); }
  60% { opacity: 1; transform: scale(1.25); }
  72% { transform: scale(1); }
}
.ai-badge-text { position: relative; }
.pop {
  position: absolute;
  width: var(--ps, 12px);
  height: var(--ps, 12px);
  fill: var(--pink);
  opacity: 0;
  transform: scale(0);
  animation: pop 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
.pop-1 { --ps: 13px; left: -11px; top: -9px; animation-delay: 0.1s; }
.pop-2 { --ps: 10px; right: 14px; top: -14px; animation-delay: 0.42s; }
.pop-3 { --ps: 15px; right: -13px; bottom: -10px; animation-delay: 0.74s; }
@keyframes pop {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  10% { opacity: 1; transform: scale(1) rotate(45deg); }
  26%, 100% { opacity: 0; transform: scale(0) rotate(90deg); }
}

/* App icons floating beside the headline (wide screens only) */
.hero-icons { position: absolute; inset: 0; display: none; pointer-events: none; }
.hi { position: absolute; width: var(--s); height: var(--s); animation: icon-in 0.9s var(--ease-out) both; animation-delay: var(--d); }
.hi svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 18px rgba(24, 28, 60, 0.18));
  animation: bob var(--t) ease-in-out infinite alternate;
}
@keyframes icon-in { from { opacity: 0; transform: translateY(24px) scale(0.6); } }
@keyframes bob {
  from { transform: translateY(-7px) rotate(var(--rot)); }
  to { transform: translateY(7px) rotate(var(--rot)); }
}
@media (min-width: 1180px) { .hero-icons { display: block; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
.intro {
  max-width: 34em;
  margin-top: 18px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.014em;
  color: var(--muted);
  text-wrap: pretty;
}
.src { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--faint); }

/* ---------- Look inside: the book with its pages fanned out ---------- */
.look { background: var(--fill); overflow: hidden; }
.fan {
  --cw: min(300px, 44vw);
  --pw: calc(var(--cw) * 0.86);
  position: relative;
  height: calc(var(--cw) * 1.416 + 64px);
  margin: clamp(40px, 6vw, 64px) auto 0;
}
.fan-item {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: block;
  width: var(--pw);
  margin-left: calc(var(--pw) / -2);
  border-radius: 4px;
  transform-origin: 50% 190%;
  transform: rotate(var(--r, 0deg));
  transition: transform 1.15s var(--ease-out) var(--d, 0s);
  cursor: zoom-in;
}
.fan-item img {
  width: 100%;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 20px 40px -18px rgba(0, 0, 0, 0.35);
}
.fan-cover { z-index: 5; width: var(--cw); margin-left: calc(var(--cw) / -2); }
.fan-i1 { --r: -9deg; z-index: 3; }
.fan-i2 { --r: 9deg; z-index: 3; }
.fan-o1 { --r: -18deg; z-index: 1; }
.fan-o2 { --r: 18deg; z-index: 1; }
/* Before the section comes into view, the pages wait behind the cover */
.fan.is-closed .fan-item { transform: rotate(0deg); transition-duration: 0s; }

@media (hover: hover) and (pointer: fine) {
  .fan-item:hover { transform: rotate(var(--r, 0deg)) translateY(-14px); transition-duration: 0.4s; transition-delay: 0s; }
}

/* ---------- Five parts ---------- */
.parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: clamp(40px, 6vw, 64px);
}
.parts-col { display: grid; gap: 20px; }
.part { padding: clamp(24px, 3vw, 34px); background: var(--fill); border-radius: 28px; }
.part-head { display: flex; align-items: center; gap: 16px; }
.part-head .ico { width: 58px; height: 58px; }
.part-label { color: var(--c); font-size: 15px; font-weight: 600; }
.part h3 {
  margin-top: 1px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.026em;
}
.part-desc { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.chapters { margin-top: 16px; }
.chapters li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 16px;
  line-height: 1.35;
}
.chapters .n {
  flex: none;
  width: 1.5em;
  text-align: right;
  color: var(--c);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- AI: a dark band ---------- */
.dark { background: #000; color: #f5f5f7; }
.dark .intro { color: #a1a1a6; }
.dark .src { color: #8e8e93; }
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "head chat"
    "more chat";
  grid-template-rows: auto 1fr;
  column-gap: 72px;
  align-items: start;
}
.ai-head { grid-area: head; }
.ai-more { grid-area: more; }
.chat-wrap { grid-area: chat; align-self: center; }
.ai-does { margin-top: 30px; display: grid; gap: 14px; }
.ai-does li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.ai-does .star { width: 18px; height: 18px; flex: none; fill: var(--pink); }
.ai-stat { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ai-stat-v {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(54px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--pink);
}
.ai-stat-l { margin-top: 10px; font-size: 19px; font-weight: 500; letter-spacing: -0.016em; }
.ai-stat-src { margin-top: 8px; font-size: 14px; color: #8e8e93; }

/* The chat: a messy note in, a clear message out (from chapter 1) */
.chat {
  padding: 18px 16px 22px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
}
.chat-head { text-align: center; font-size: 13px; font-weight: 600; color: #8e8e93; }
.msg { position: relative; display: flex; flex-direction: column; margin-top: 14px; }
.msg.you { align-items: flex-end; }
.msg.ai { align-items: flex-start; }
.who { margin: 0 12px 5px; font-size: 12px; font-weight: 500; color: #8e8e93; }
.bubble {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 20px;
  font-size: 16.5px;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: #fff;
}
.you .bubble { background: #0a84ff; border-bottom-right-radius: 6px; }
.ai .bubble { background: #3a3a3c; border-bottom-left-radius: 6px; }
.typing {
  position: absolute;
  left: 0;
  top: 22px;
  display: flex;
  gap: 5px;
  padding: 15px 16px;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  background: #3a3a3c;
  opacity: 0;
  pointer-events: none;
}
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* The chat plays once when it comes into view (script.js); without script it simply shows */
.chat.is-armed .msg.you,
.chat.is-armed .msg.ai .who,
.chat.is-armed .msg.ai .bubble { opacity: 0; transform: translateY(12px) scale(0.97); }
.chat.is-armed .msg.you { transform-origin: 100% 100%; }
.chat.is-armed .msg.ai .bubble { transform-origin: 0 100%; }
.chat.is-armed .wd { opacity: 0; }
.chat.show-you .msg.you { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.55s var(--ease-out); }
.chat.show-typing .typing { opacity: 1; transition: opacity 0.2s ease; }
.chat.show-ai .msg.ai .who,
.chat.show-ai .msg.ai .bubble { opacity: 1; transform: none; transition: opacity 0.3s ease, transform 0.5s var(--ease-out); }
.chat.show-ai .wd { opacity: 1; transition: opacity 0.25s ease; transition-delay: calc(120ms + var(--i) * 55ms); }

.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.chat-foot .src { margin-top: 0; }
.chat-replay {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  white-space: nowrap;
  border: 0;
  background: none;
  color: #2997ff;
  font: 500 15px/1 var(--text);
  cursor: pointer;
}
.chat-replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- How it teaches ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "ana try"
    "ana prompt"
    "need need";
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
}
.tile { padding: clamp(28px, 4vw, 44px); background: var(--fill); border-radius: 28px; }
.tile h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.024em;
}
.tile h3 + p { max-width: 30em; margin-top: 10px; color: var(--muted); }
.tile-ana { grid-area: ana; display: flex; flex-direction: column; }
.tile-ana .shift { margin-top: auto; }
.tile-ana h3 + p { margin-bottom: 28px; }
.tile-try { grid-area: try; }
.tile-prompt { grid-area: prompt; }
.tile-need { grid-area: need; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: center; }

.shift { padding: 6px 20px 8px; background: var(--paper); border-radius: 20px; }
.shift-title { padding: 14px 0 8px; font-size: 14px; color: var(--faint); }
.shift li {
  display: grid;
  grid-template-columns: 30px 5.3em minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
  font-size: 16px;
  line-height: 1.4;
}
.shift .ico { width: 30px; height: 30px; margin-top: -3px; filter: drop-shadow(0 2px 4px rgba(24, 28, 60, 0.16)); }
.shift time { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.box { margin-top: 24px; padding: 18px 22px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.box-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.box-label svg { width: 14px; height: 14px; fill: currentColor; }
.box-try { background: #eaf3fd; }
.box-try .box-label { color: var(--link); }
.box-prompt { background: var(--paper); }
.box-prompt .box-label { color: var(--c-ai); margin-bottom: 0; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.copy-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #f3eefe;
  color: var(--c-ai);
  font: 600 14px/1 var(--text);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.15s ease, transform 0.15s var(--ease);
}
.copy-btn:active { transform: scale(0.96); }
.copy-btn.is-done { background: var(--c-green); color: #fff; }
.ph { padding: 0 3px; border-radius: 5px; background: #f3eefe; color: var(--c-ai); font-weight: 500; }

.need-title { font-size: 14px; color: var(--faint); margin-bottom: 4px; }
.need li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.016em;
}
.need li:first-child { border-top: 0; }
.tick { flex: none; width: 24px; height: 24px; }
.tick circle { fill: var(--c-green); }
.tick path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- What VA work pays ---------- */
.pay { background: var(--fill); }
.rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.rate { padding: clamp(24px, 3vw, 32px); background: var(--paper); border-radius: 24px; }
.rate-k { display: flex; justify-content: space-between; align-items: center; color: var(--c-teal); font-size: 15px; font-weight: 600; }
.level { display: flex; gap: 4px; }
.level i { width: 18px; height: 6px; border-radius: 3px; background: #d5eaec; }
.level i.on { background: var(--c-teal); }
.rate-v {
  margin-top: 16px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.rate-l { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.pay .src { margin-top: 20px; }

/* ---------- FAQ ---------- */
.qa { max-width: 820px; margin-top: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.qa details { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.018em;
  -webkit-user-select: none;
  user-select: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa .icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); transition: background-color 0.2s ease; }
.qa details[open] .icon { background: var(--ink); }
.qa .icon::before,
.qa .icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.qa .icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa details[open] .icon::before,
.qa details[open] .icon::after { background: #fff; }
.qa details[open] .icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa .a { max-width: 40em; padding: 0 56px 26px 0; color: var(--muted); }
.qa .a p + p { margin-top: 10px; }
/* Answers slide open where the browser can animate it; elsewhere they just open */
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.32s var(--ease), content-visibility 0.32s allow-discrete;
  }
  .qa details[open]::details-content { height: auto; }
}

/* ---------- Buy ---------- */
.buy { padding-top: 0; }
.buy-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 44px 72px;
  padding: clamp(32px, 6vw, 72px);
  background: var(--fill);
  border-radius: clamp(28px, 3vw, 34px);
}
.buy-visual { display: flex; justify-content: center; }
.buy-visual .book { width: 100%; max-width: 320px; }
.buy-body h2 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 52px);
  line-height: 1;
  letter-spacing: -0.042em;
}
.edition { margin-top: 10px; color: var(--muted); }
.price {
  margin-top: 28px;
  font-family: var(--disp);
  font-weight: 800;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price-note { margin-top: 8px; color: var(--muted); }
.buy-body .btn-block { margin-top: 26px; }
.after { margin-top: 12px; font-size: 14px; color: var(--faint); text-align: center; }
.incl { margin-top: 24px; }
.incl li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.incl .tick { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.foot { padding: 22px 0 36px; background: var(--fill); font-size: 12px; line-height: 1.5; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Buy bar on phones ---------- */
.buybar { display: none; }

/* ---------- Page viewer: a plain overlay, so it works in every browser ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 76px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(20, 20, 22, 0.88);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.viewer.is-open { opacity: 1; }
.viewer-page { width: min(100%, 940px); margin-block: auto; cursor: default; touch-action: pan-y pinch-zoom; transform: scale(0.97); transition: transform 0.3s var(--ease-out); }
.viewer.is-open .viewer-page { transform: none; }
.viewer-page img { width: 100%; height: auto; border-radius: 8px; background: #fff; -webkit-user-select: none; user-select: none; }
.viewer-close,
.viewer-nav {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s ease;
}
.viewer-close:active,
.viewer-nav:active { transform: scale(0.94); }
.viewer-close { top: 14px; right: 14px; font: 400 26px/1 var(--text); }
.viewer-nav { top: 50%; margin-top: -22px; }
.viewer-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
.viewer-count {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
html.viewer-open { overflow: hidden; }

/* Note when the payment link is not set yet */
.toast {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.3s var(--ease-out);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1068px) {
  .tile-need { grid-template-columns: minmax(0, 1fr); }
  .ai-grid { gap: 48px 48px; }
}

/* ---------- Phone ---------- */
@media (max-width: 734px) {
  :root { --gutter: 20px; --section: 76px; }
  body { font-size: 17px; }
  .nav-links { display: none; }
  .brand { font-size: 17px; }

  .hero { padding: 32px 0 44px; }
  .h1 { margin-top: 20px; }
  .ai-badge { font-size: 15px; }
  .lead { max-width: 19em; margin-top: 18px; font-size: 19px; }
  .cta { flex-direction: column; gap: 18px; margin-top: 30px; }
  .cta .btn { width: 100%; max-width: 340px; }
  .fine { margin-top: 16px; }
  .facts { margin-top: 32px; }
  .facts dt { font-size: 13px; }

  .h2 { font-size: 36px; }
  .intro { font-size: 18px; }

  .fan { --cw: 44vw; height: calc(var(--cw) * 1.416 + 50px); }
  .fan-i1 { --r: -8deg; }
  .fan-i2 { --r: 8deg; }
  .fan-o1 { --r: -16deg; }
  .fan-o2 { --r: 16deg; }

  .parts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .parts-col { gap: 14px; }
  .part { padding: 24px 22px 18px; border-radius: 26px; }
  .part-head .ico { width: 52px; height: 52px; }
  .part-desc { margin-top: 14px; font-size: 16px; }
  .chapters { margin-top: 12px; }
  .chapters li { gap: 10px; padding: 7px 0; font-size: 15.5px; }

  .ai-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "chat" "more"; grid-template-rows: none; row-gap: 36px; }
  .ai-does { margin-top: 0; }
  .ai-does li { font-size: 17px; }
  .chat { padding: 16px 12px 20px; border-radius: 26px; }
  .bubble { font-size: 16px; }

  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ana" "try" "prompt" "need"; gap: 14px; }
  .tile { padding: 28px 22px; border-radius: 26px; }
  .shift { padding: 4px 16px 6px; }
  .shift li {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas: "ico time" "ico text";
    column-gap: 12px;
    row-gap: 1px;
    font-size: 16px;
  }
  .shift .ico { grid-area: ico; width: 30px; height: 30px; margin-top: 2px; }
  .shift time { grid-area: time; font-size: 14px; color: var(--ink); }
  .shift li span { grid-area: text; }
  .box { padding: 16px 18px; }

  .rates { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rate { padding: 22px 22px 24px; }
  .rate-v { font-size: 38px; margin-top: 12px; }

  .qa summary { padding: 22px 0; }
  .qa .a { padding-right: 0; }

  .buy-card { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 40px 22px 28px; }
  .buy-visual .book { max-width: 210px; }
  .price { font-size: 56px; }

  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }

  .buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.32s var(--ease-out), visibility 0s linear 0.32s;
  }
  .buybar.is-on { transform: none; visibility: visible; transition: transform 0.32s var(--ease-out), visibility 0s; }
  .buybar-cover { width: 30px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.16); }
  .buybar-text { min-width: 0; }
  .buybar-title { font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar-sub { margin-top: 2px; font-size: 13px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
  .buybar .btn { margin-left: auto; min-height: 44px; padding: 0 24px; font-weight: 600; }
  .buybar.is-on ~ .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  .viewer { padding: 60px 12px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .viewer-nav { top: auto; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
  .viewer-prev { left: calc(50% - 60px); }
  .viewer-next { right: calc(50% - 60px); }
  .viewer-count { top: 26px; }
}

/* Very narrow phones */
@media (max-width: 359px) {
  .h1 { font-size: 42px; }
  .facts dd { font-size: 28px; }
  .buybar-sub { display: none; }
}

/* Reduced motion: everything rests in its final place */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
