/* ============================================================
   Homepage v3, Paper Dusk: the paper desk homepage.

   Why its own file: front-page-v3.php is the approved paper desk
   mockup (docs/mockups/paper-desk/index.html) built for real, in
   the three colour Paper Dusk system (docs/design/paper-dusk.md):
   paper, ink, terracotta and their listed shades, nothing else.
   The paper-cut pictures keep their own colours (illustrations
   are exempt). Loaded by inc/auto/home-v3.php, front page only,
   while v3 is on.

   Scope: every rule sits under main.v3 or body.aib-v3, so the
   site header and footer (styled by the sitewide Paper Dusk
   rollout) are never touched. Colours read the sitewide tokens
   (--pd-*) with the spec's hex values as fallbacks.

   The quiz (template-parts/quiz.php, quiz.css, quiz.js) is
   restyled from outside: main.v3 redefines the older theme
   variables (--gada, --nil, --kagoj...) to Paper Dusk values,
   which repaints the quiz and the wins wall without touching
   their files, and a few scoped rules below fix what was not a
   variable.

   Motion (spec, motion section): everything is visible by
   default. home-v3.js adds .v3-m to <html> only when motion is
   welcome (no prefers-reduced-motion, no Save-Data, not 2g), and
   only then are things hidden until they enter the screen.
   Transform and opacity only, except the highlight marker, which
   grows its background-size once. Reveals use animations that
   fill backwards only, so hover transforms keep working after.
   ============================================================ */

body.aib-v3 { background-color: var(--pd-paper, #EDE6D6); }

main.v3 {
  /* Paper Dusk */
  --p: var(--pd-paper, #EDE6D6);
  --p2: var(--pd-paper-2, #F6F0E3);
  --p3: var(--pd-paper-3, #E2D8C4);
  --line: #d9cfba;
  --i: var(--pd-ink, #2B2A33);
  --i2: var(--pd-ink-2, #5D5A64);
  --i3: var(--pd-ink-3, #1F1D24);
  --a: var(--pd-accent, #B9533C);
  --a2: var(--pd-accent-2, #9C4130);
  --at: var(--pd-accent-tint, rgba(185, 83, 60, .18));
  --tape: rgba(185, 83, 60, .38);
  --sh: 0 10px 24px rgba(43, 42, 51, .14);

  /* The older theme variables, repointed, so the quiz and the wins
     wall (which read them) come out in the same three colours. */
  --gada: var(--a);
  --gada-bright: var(--p);
  --gada-soft: var(--p3);
  --nil: var(--i);
  --nil-soft: var(--i3);
  --kagoj: var(--p);
  --kagoj-card: var(--p2);
  --shobuj: var(--i);
  --shobuj-soft: var(--p3);
  --dhoa: var(--p3);
  --dhoa-dark: var(--i2);
  --ink: var(--i);
  --line-light: var(--line);
  --line-dark: var(--i2);
  --shadow: 0 1px 2px rgba(43, 42, 51, .06), 0 8px 26px -14px rgba(43, 42, 51, .28);
  --f-bn: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --f-display: var(--f-bn);
  --f-latin: var(--f-bn);

  display: block;
  font-family: var(--f-bn);
  color: var(--i);
  line-height: 1.6;
  overflow-x: clip;
  background-color: var(--p);
  /* Paper grain: a faint ink speckle, tiled, no extra request. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .16 0 0 0 0 .2 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.v3 *, .v3 *::before, .v3 *::after { box-sizing: border-box; }
.v3 h1, .v3 h2, .v3 h3, .v3 h4 { font-family: inherit; color: inherit; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.v3 .mono { font-family: inherit; }
.v3 a { color: inherit; }
.v3 :focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }

.v3-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.v3-narrow { max-width: 820px; }
.v3-sec { padding: 72px 0; }
.v3 h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.v3-sub { color: var(--i2); font-size: 1.1rem; max-width: 56ch; margin: 0; }
.v3-kick {
  display: inline-block;
  margin: 0 0 10px;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--a2);
}
.v3 h2.v3-kick { font-size: .92rem; }

/* ---------------------------------------------------------------- buttons */
.v3 .v3-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--a);
  color: var(--p);
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--a2);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.v3 .v3-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--a2); }
.v3 .v3-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--a2); }
.v3 .v3-btn.v3-ghost { background: transparent; color: var(--i); box-shadow: none; border: 2px solid var(--i); }
.v3 .v3-btn.v3-ghost:hover { background: var(--p2); }
/* One gentle sheen on first sight (home-v3.js adds .v3-sheen). */
.v3 .v3-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(246, 240, 227, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.v3-m .v3 .v3-btn.v3-sheen::after { animation: v3sheen 1.1s ease .4s 1; }
@keyframes v3sheen { to { transform: translateX(120%); } }
.v3-btn-wide { display: flex !important; width: 100%; }

.v3-link {
  font-weight: 600;
  color: var(--i);
  text-decoration: underline;
  text-decoration-color: var(--a);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.v3-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0; }
.v3 .v3-stars { color: var(--a); letter-spacing: 1px; }
.v3 .v3-stars i { font-style: normal; opacity: .55; }
.v3-n { font-variant-numeric: tabular-nums; display: inline-block; }

/* ---------------------------------------------------------------- 1 hero */
.v3-hero { padding: 28px 0 0; }
.v3-hero-g { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
.v3-hero-t { padding: 24px 0; }
.v3 h1 { font-size: clamp(1.55rem, 2.35vw, 2.15rem); line-height: 1.32; margin: 0; }
/* The owner's long hero line: the punchline starts its own line; its last two words never split. */
.v3 h1 .nw { white-space: nowrap; }
/* The marker: an accent tint under the words, never yellow. */
.v3 h1 .hl {
  background-image: linear-gradient(var(--at), var(--at));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 42%;
}
.v3-m .v3 h1 .hl { background-size: 0 42%; }
.v3-m .v3 h1.in .hl, .v3-m .v3 h1.v3-done .hl { background-size: 100% 42%; transition: background-size 1s cubic-bezier(.6, .1, .3, 1) .55s; }
.v3-dek { font-size: 1.15rem; color: var(--i2); margin: 16px 0 24px; max-width: 38ch; }
.v3-assure { font-size: .92rem; color: var(--i2); margin: 16px 0 0; line-height: 1.6; }
.v3-assure b { color: var(--i); font-weight: 600; }
.v3-proof { display: block; margin-top: 4px; }

/* The desk. The background picture and the objects share one box with the
   mockup's 700 x 520 proportions; every object is a real button placed in
   percentages of that box, so it scales with the screen. */
.v3-desk { position: relative; aspect-ratio: 700 / 520; }
.v3-desk-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v3-doors { position: absolute; inset: 0; }
.v3-door {
  position: absolute;
  left: var(--l);
  bottom: var(--b);
  z-index: var(--z, 2);
  width: var(--w);
  aspect-ratio: 124 / 122;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  /* Only the painted shape takes a tap, so objects that overlap do not steal
     each other's taps; focus and keyboard still work on the button. */
  pointer-events: none;
  transform: rotate(var(--r));
  transform-origin: 50% 100%;
  -webkit-tap-highlight-color: transparent;
}
.v3-door svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.v3-door svg * { pointer-events: visiblePainted; }
.v3-door:hover svg, .v3-door[aria-pressed="true"] svg { transform: translateY(-4%); }
.v3-door:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.v3-m .v3-door.v3-wob svg { animation: v3wob .55s ease; }
@keyframes v3wob {
  0% { transform: translateY(0); }
  35% { transform: translateY(-10%) rotate(-3deg); }
  70% { transform: translateY(-3%) rotate(2deg); }
  100% { transform: translateY(-4%); }
}
/* Objects settle onto the desk once, one after another. */
.v3-m .v3-desk.in .v3-door svg { animation: v3drop .7s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--k, 0) * 90ms + .2s); }
@keyframes v3drop { from { opacity: 0; transform: translateY(-18%) rotate(-4deg); } }

.v3-note {
  position: absolute;
  z-index: 3;
  top: 1%;
  left: 48%;
  width: min(270px, 74%);
  margin: 0;
  padding: 14px 16px;
  background: var(--p2);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(43, 42, 51, .22);
  transform: rotate(-1.5deg);
  font-size: .95rem;
  line-height: 1.5;
}
.v3-note::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 58px;
  height: 18px;
  margin-left: -29px;
  background: var(--tape);
  transform: rotate(2deg);
}
.v3-note b { display: block; color: var(--a2); font-size: .85rem; }
.v3-note p { margin: 4px 0 8px; }
.v3-note a { font-weight: 700; color: var(--a2); text-decoration: underline; text-underline-offset: 3px; }
.v3-m .v3-note.v3-pop { animation: v3pop .4s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes v3pop { from { opacity: 0; transform: rotate(-7deg) scale(.86) translateY(10px); } }
.v3-hint {
  position: absolute;
  left: 4%;
  bottom: 4%;
  z-index: 2;
  margin: 0;
  padding: 3px 12px;
  border-radius: 99px;
  background: rgba(237, 230, 214, .14);
  color: var(--p);
  font-size: .85rem;
  font-weight: 600;
  pointer-events: none;
}

/* ---------------------------------------------------------------- bands */
.v3-band { background: var(--i); color: var(--p); }
.v3-band .v3-kick { color: var(--p); }
.v3-band .v3-kick::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; background: var(--a); border-radius: 2px; }
.v3-band .v3-sub { color: var(--p3); }

/* ---------------------------------------------------------------- 2 problem */
.v3-problem { padding: 44px 0 72px; }
.v3-notes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v3-pn {
  position: relative;
  padding: 24px 22px 26px;
  border-radius: 3px;
  background: var(--p2);
  color: var(--i);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .2);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  transform: rotate(var(--r));
  transition: transform .25s ease;
}
.v3-pn:hover { transform: rotate(0deg) translateY(-4px); }
.v3-pn::before { content: ""; position: absolute; top: -8px; left: 40%; width: 60px; height: 18px; background: var(--tape); }
.v3-pn small { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; color: var(--a2); }

/* ---------------------------------------------------------------- 3 quiz */
.aib-v3 .v3-quiz .quiz-sec { background: transparent; padding: 64px 0 40px; }
.aib-v3 .v3-quiz .quiz.reveal { opacity: 1; transform: none; }
.aib-v3 .v3-quiz .quiz { border-radius: 10px; box-shadow: 0 1px 2px rgba(43, 42, 51, .05), 0 28px 56px -28px rgba(43, 42, 51, .4); }
.aib-v3 .v3-quiz .quiz::before { background: var(--a); }
.aib-v3 .v3-quiz .quiz-opt:hover { box-shadow: 0 10px 22px -14px rgba(43, 42, 51, .45); }
.aib-v3 .v3-quiz .quiz-opt:hover .k { color: var(--p); }
.aib-v3 .v3-quiz .quiz-opt .k { border-radius: 6px; }
.aib-v3 .v3-quiz .qz-eyebrow, .aib-v3 .v3-quiz .qz-plan-h { color: var(--a2); }
.aib-v3 .v3-quiz .qz-steps li::before { color: var(--p); }
.aib-v3 .v3-quiz .btn { font-family: inherit; border-radius: 10px; }
.aib-v3 .v3-quiz .btn-primary { background: var(--a); color: var(--p); box-shadow: 0 4px 0 var(--a2); transition: transform .15s ease, box-shadow .15s ease; }
.aib-v3 .v3-quiz .btn-primary:hover { background: var(--a); transform: translateY(-2px); box-shadow: 0 6px 0 var(--a2); }
.aib-v3 .v3-quiz .btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--a2); }
.aib-v3 .v3-quiz .btn-ghost { background: transparent; color: var(--i); border: 2px solid var(--i); }
.aib-v3 .v3-quiz .qz-pick .btn-primary { box-shadow: 0 4px 0 var(--i3); }
.aib-v3 .v3-quiz .qz-row input:focus { outline: 3px solid var(--a); }
/* Messages: ink and accent with an icon, no new colours. */
.aib-v3 .v3-quiz .qz-msg { color: var(--i); }
.aib-v3 .v3-quiz .qz-msg.is-bad { color: var(--a2); }
.aib-v3 .v3-quiz .qz-msg.is-bad::before, .aib-v3 .v3-quiz .qz-free.is-done .qz-msg::before {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--a);
  color: var(--p);
  font-size: .75rem;
  font-weight: 700;
  vertical-align: 1px;
}
.aib-v3 .v3-quiz .qz-msg.is-bad::before { content: "!"; }
.aib-v3 .v3-quiz .qz-free.is-done .qz-msg::before { content: "✓"; }

/* ---------------------------------------------------------------- 4 method */
.v3-method { padding-top: 32px; }
.v3-steps { position: relative; list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* The thread through the four numbers, drawn across as they arrive. */
.v3-steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 0; border-top: 2px dashed var(--a); opacity: .5; transform-origin: 0 50%; }
.v3-m .v3-steps:not(.in)::before { transform: scaleX(0); }
.v3-m .v3-steps.in::before { transition: transform 1.2s cubic-bezier(.6, .1, .3, 1) .2s; }
.v3-step {
  position: relative;
  padding: 26px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--p2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.v3-step:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.v3-step-n {
  position: absolute;
  top: -17px;
  left: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--a);
  color: var(--p);
  font-weight: 700;
}
.v3-m .v3-steps.in .v3-step-n { animation: v3popn .5s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--k, 0) * 120ms + .3s); }
@keyframes v3popn { from { transform: scale(0); } }
.v3-step b { display: block; font-size: 1.15rem; margin-top: 4px; }
.v3-step > span:last-child { color: var(--i2); font-size: .95rem; }

/* ---------------------------------------------------------------- 5 courses */
.v3-paths { padding-top: 32px; }
.v3-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.v3-grid > li { display: flex; }
.v3 .v3-cc {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  border-radius: 6px;
  background: var(--p2);
  color: var(--i);
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(43, 42, 51, .05), 0 1px 0 var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.v3 .v3-cc:hover, .v3 .v3-cc:focus-visible { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 14px 24px rgba(43, 42, 51, .13); }
.v3 .v3-cc:active { transform: translateY(-1px) scale(.99); }
.v3-cc-o { width: 90px; height: auto; aspect-ratio: 124 / 122; margin: -4px 0 4px -6px; overflow: visible; transform-origin: 50% 100%; }
.v3-m .v3-cc:hover .v3-cc-o { animation: v3wob .55s ease; }
.v3-cc small { font-size: .8rem; font-weight: 700; color: var(--a2); }
.v3-cc h3 { font-size: 1.08rem; line-height: 1.35; margin: 2px 0 6px; }
.v3-cc-do { flex: 1; color: var(--i2); font-size: .92rem; }
.v3-cc-f { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font-weight: 700; }
.v3-go { color: var(--a2); }
.v3-all {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 22px 0 0;
  padding: 14px 18px;
  border: 1px dashed var(--i2);
  border-radius: 8px;
}
.v3-all a { font-weight: 700; color: var(--a2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- 6 reviews */
.v3-reviews { padding-top: 32px; }
.v3-rv { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; align-items: start; }
.v3-r {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: 4px;
  background: var(--p2);
  box-shadow: 0 8px 18px rgba(43, 42, 51, .08);
  transform: rotate(var(--r));
  transition: transform .25s ease;
}
.v3-r::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--a); box-shadow: 0 2px 0 var(--a2); }
.v3-r:hover { transform: rotate(0deg) translateY(-4px); }
.v3-r q { display: block; font-weight: 600; quotes: "\201C" "\201D"; }
.v3-r cite { display: block; margin-top: 10px; font-style: normal; font-size: .8rem; color: var(--i2); }
.v3-ans { margin: 8px 0 0; font-size: .86rem; color: var(--a2); }
.v3-more { margin: 22px 0 0; }
.v3-more a { font-weight: 700; color: var(--a2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- 7 offer */
.v3-offer-s { padding-top: 32px; }
.v3-offer { display: grid; grid-template-columns: 1.2fr .8fr; margin-top: 10px; border-radius: 10px; box-shadow: 0 20px 50px rgba(43, 42, 51, .2); }
.v3-of-l { padding: 36px; border-radius: 10px 0 0 10px; background: var(--i); color: var(--p); }
.v3-of-l h2 { color: var(--p); }
.v3-inc { list-style: none; margin: 18px 0; padding: 0; }
.v3-inc li { position: relative; padding: 7px 0 7px 32px; }
.v3-inc li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--a);
  color: var(--p);
  font-size: .72rem;
  font-weight: 700;
}
.v3-alt { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .9rem; }
.v3-alt a { color: var(--p3); text-decoration: underline; text-underline-offset: 3px; }
.v3-alt a:hover { color: var(--p); }
.v3-of-r { position: relative; padding: 36px; border-radius: 0 10px 10px 0; background: var(--p2); color: var(--i); }
.v3-was { margin: 0; color: var(--i2); }
.v3-was s { position: relative; text-decoration: none; white-space: nowrap; }
.v3-was s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; background: var(--a); transform-origin: 0 50%; }
.v3-m [data-v3-seal]:not(.in) .v3-was s::after { transform: scaleX(0); }
.v3-m [data-v3-seal].in .v3-was s::after { transition: transform .6s cubic-bezier(.6, .1, .3, 1) .35s; }
.v3-price { margin: 4px 0 0; font-size: 3rem; font-weight: 700; line-height: 1.15; }
.v3-save { display: inline-block; margin: 8px 0 18px; padding: 2px 12px; border-radius: 99px; background: var(--at); color: var(--a2); font-weight: 700; font-size: .9rem; }
.v3-pay { margin: 14px 0 0; font-size: .92rem; color: var(--i2); }
.v3-pay b { color: var(--i); font-weight: 600; }
/* The rubber stamp and the seal it leaves. */
.v3-stamp { position: absolute; z-index: 2; right: 6px; top: -50px; width: 104px; height: auto; aspect-ratio: 124 / 122; overflow: visible; transform: rotate(12deg); pointer-events: none; }
.v3 .v3-seal {
  position: absolute;
  right: 26px;
  top: 52px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 3px double var(--a);
  border-radius: 50%;
  background: rgba(185, 83, 60, .06);
  color: var(--a2);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transform: rotate(-12deg);
}
.v3 .v3-seal:hover { background: var(--at); }
.v3-m [data-v3-seal]:not(.in) .v3-stamp, .v3-m [data-v3-seal]:not(.in) .v3-seal { opacity: 0; }
.v3-m [data-v3-seal].in .v3-stamp { animation: v3stamp 1.3s cubic-bezier(.5, 0, .3, 1) .2s backwards; }
.v3-m [data-v3-seal].in .v3-seal { animation: v3press .45s cubic-bezier(.2, 1.4, .4, 1) .82s backwards; }
@keyframes v3stamp {
  0% { opacity: 0; transform: translateY(-50px) rotate(12deg); }
  25% { opacity: 1; transform: translateY(-20px) rotate(4deg); }
  50% { transform: translate(-14px, 78px) rotate(0deg) scaleY(.94); }
  62% { transform: translate(-14px, 70px) rotate(0deg); }
  100% { transform: rotate(12deg); }
}
@keyframes v3press { from { opacity: 0; transform: rotate(-12deg) scale(1.35); } }

/* ---------------------------------------------------------------- 8 founder */
.v3-founder { padding-top: 32px; }
.v3-founder-g { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.v3-idc {
  --r: -2deg;
  position: relative;
  width: 260px;
  padding: 26px 22px 22px;
  border-radius: 10px;
  background: var(--p2);
  box-shadow: 0 12px 30px rgba(43, 42, 51, .14);
  text-align: center;
  transform: rotate(var(--r));
  transition: transform .25s ease;
}
.v3-idc:hover { transform: rotate(0deg) translateY(-4px); }
.v3-idc::before { content: ""; position: absolute; top: 10px; left: 50%; width: 44px; height: 8px; margin-left: -22px; border-radius: 4px; background: var(--p3); }
.v3-idc img { display: block; width: 104px; height: 104px; margin: 8px auto 10px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--p3); }
.v3-idc b { display: block; font-size: 1.1rem; }
.v3-idc span { font-size: .85rem; color: var(--i2); }
.v3-creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.v3-creds > span { padding: 6px 12px; border: 1px dashed var(--i2); border-radius: 6px; background: var(--p2); font-size: .9rem; font-weight: 600; }

/* ---------------------------------------------------------------- 9 books */
.v3-books { padding: 72px 0; }
/* A plain grid, no slider (owner, October 2026): 1, 2, then 3 per row. */
.v3-shelf {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
}
.v3-bk { min-width: 0; }
.v3 .v3-bk a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 4px; background: var(--p2); color: var(--i); text-decoration: none; box-shadow: 0 10px 0 rgba(0, 0, 0, .25); transition: transform .2s ease; }
.v3 .v3-bk a:hover, .v3 .v3-bk a:focus-visible { transform: translateY(-6px) rotate(-1deg); }
.v3-bk img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.v3-bk b { display: block; padding: 12px 14px 4px; font-size: 1.02rem; line-height: 1.4; }
.v3-bk .v3-bk-p { display: block; padding: 0 14px 16px; font-size: .9rem; line-height: 1.55; color: var(--i2); }
.v3-m [data-v3-shelf]:not(.in) > li { opacity: 0; }
.v3-m [data-v3-shelf].in > li { animation: v3slide .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes v3slide { from { opacity: 0; transform: translateY(16px); } }
.v3-bk-all { margin: 26px 0 0; font-weight: 700; line-height: 1.5; }
.v3-bk-all a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 600px) { .v3-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .v3-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- 10 FAQ, close */
.v3-faqs details { margin: 10px 0; padding: 16px 20px; border-radius: 8px; background: var(--p2); box-shadow: 0 1px 0 var(--line); }
.v3-faqs summary { position: relative; padding-right: 30px; list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 700; line-height: 1.5; }
.v3-faqs summary::-webkit-details-marker { display: none; }
.v3-faqs summary::after { content: "+"; position: absolute; right: 2px; top: -2px; color: var(--a); font-size: 1.5rem; line-height: 1.2; transition: transform .2s ease; }
.v3-faqs details[open] summary::after { transform: rotate(45deg); }
.v3-faqs details p { margin: 10px 0 0; color: var(--i2); }
.v3-faqs details a { color: var(--a2); font-weight: 600; }
.v3-close { text-align: center; padding-bottom: 88px; }
.v3-close h2 { max-width: 22ch; margin: 0 auto 22px; }
.v3-close .v3-cta { justify-content: center; }

/* ---------------------------------------------------------------- reveals
   Only with .v3-m on <html>. Animations fill backwards only. */
.v3-m [data-v3-r]:not([data-v3-r="kids"]):not(.in) { opacity: 0; }
.v3-m [data-v3-r].in { animation: v3rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0s); }
.v3-m [data-v3-r="kids"].in { animation: none; }
.v3-m [data-v3-r="kids"]:not(.in) > * { opacity: 0; }
.v3-m [data-v3-r="kids"].in > * { animation: v3rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--k, 0) * 60ms); }
.v3-m [data-v3-r="note"].in { animation: v3flut .85s cubic-bezier(.3, 1.3, .5, 1) backwards; animation-delay: var(--d, 0s); }
@keyframes v3rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes v3flut {
  from { opacity: 0; transform: translateY(-30px) rotate(calc(var(--r, 0deg) - 9deg)); }
  60% { opacity: 1; transform: translateY(4px) rotate(calc(var(--r, 0deg) + 2deg)); }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .v3-hero-g { grid-template-columns: 1fr; gap: 8px; }
  .v3-hero-t { padding-bottom: 8px; }
  .v3-notes, .v3-steps { grid-template-columns: 1fr; }
  .v3-steps { gap: 28px; }
  .v3-steps::before { display: none; }
  .v3-grid { grid-template-columns: 1fr 1fr; }
  .v3-offer, .v3-founder-g { grid-template-columns: 1fr; }
  .v3-of-l { border-radius: 10px 10px 0 0; }
  .v3-of-r { border-radius: 0 0 10px 10px; }
  .v3-idc { margin: 0 auto; }
  .v3-sec { padding: 52px 0; }
  .v3-pn { font-size: 1.15rem; }
}
@media (max-width: 700px) {
  /* The note gets its own room above the desk instead of covering it. */
  .v3-desk { margin-top: 132px; }
  .v3-note { top: -128px; left: auto; right: 0; width: min(280px, 86%); }
}
@media (max-width: 560px) {
  .v3-wrap { padding: 0 16px; }
  .v3-grid { grid-template-columns: 1fr; }
  .v3-of-l, .v3-of-r { padding: 26px 20px; }
  .v3-of-r { padding-top: 34px; }
  .v3-price { font-size: 2.5rem; }
  .v3 .v3-seal { right: 16px; top: 46px; width: 90px; height: 90px; padding: 10px; font-size: .68rem; }
  .v3-stamp { width: 84px; top: -40px; }
  .v3-cta .v3-btn { width: 100%; }
  .v3 h1 { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .v3 *, .v3 *::before, .v3 *::after { animation: none !important; transition: none !important; }
}

/* The hero does not wait for the observer: the headline paints in the first
   frame (it is the page's largest content), the lines under it rise on load
   with CSS alone, so a background tab or a slow script never leaves it blank. */
.v3-m .v3-hero-t h1[data-v3-r]:not(.in) { opacity: 1; }
.v3-m .v3-hero-t h1[data-v3-r].in { animation: none; }
.v3-m .v3-hero-t [data-v3-r]:not(h1):not(.in) { opacity: 1; animation: v3rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--d, 0s) + .15s); }
@media (prefers-reduced-motion: reduce) { .v3-m .v3-hero-t [data-v3-r] { animation: none !important; } }

/* Offer card: the second line under the heading (updates and lifetime access). */
.v3-of-sub { margin: 6px 0 14px; font-weight: 600; color: var(--pd-accent-2, #9C4130); font-size: 1.05rem; line-height: 1.5; }

/* ======================================================= copy 13 (phase 2A)
   Small additions for the new copy only; layout, palette and motion unchanged. */

/* Hero: eyebrow, the one line of facts, the quiz microcopy, the trust strip. */
.v3-hero-t > .v3-kick { margin-bottom: 8px; }
.v3-dek { margin-bottom: 10px; }
.v3-facts { margin: 0 0 22px; font-size: .95rem; font-weight: 600; color: var(--i); max-width: 46ch; }
.v3-micro { margin: 12px 0 0; font-size: .9rem; color: var(--i2); line-height: 1.55; }
.v3-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.v3-trust li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--p2); font-size: .86rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }

/* Problem: six short questions, then the way out. */
.v3-problem h2 { color: var(--p); max-width: 24ch; }
.v3-notes-q { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.v3-notes-q .v3-pn { padding: 20px 18px 20px; font-size: 1.08rem; }
.v3-pr-close { margin: 30px 0 18px; max-width: 62ch; font-size: 1.08rem; line-height: 1.65; color: var(--p); }

/* Starting paths: the cards come from beginner-flow.css. */
.v3-start { padding-bottom: 24px; }
.v3-start .aib-start { margin-bottom: 0; }

/* Course cards: the course name small, the outcome as the heading. */
.v3-cc small { line-height: 1.4; }
.v3-cc h3 { font-size: 1.04rem; }
.v3-cc-note { display: block; margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--a); font-size: .84rem; line-height: 1.5; color: var(--i2); }
.v3-cc-f { font-weight: 600; color: var(--i2); font-size: .9rem; }
.v3-cc-f b { color: var(--i); font-size: 1rem; }
.v3 .v3-cc .v3-go { display: block; margin-top: 6px; font-weight: 700; line-height: 1.4; }

/* Reviews: stars, the verified mark, who and when, our update. */
.v3-rating { margin: 12px 0 0; font-weight: 700; }
/* Masonry by columns: the long critical notes no longer leave a gap row. */
/* Three columns; a long review spans two rows and dense flow fills the
   space beside it, so the critical note never leaves a gap or an orphan. */
.v3-rv { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); grid-auto-flow: row dense; gap: 26px 22px; }
.v3-rv > .v3-r.is-long { grid-row: span 2; }
.v3-r-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.v3-r .v3-stars { color: var(--line); letter-spacing: 1px; }
.v3-r .v3-stars b { color: var(--a); font-weight: inherit; }
.v3-verified { padding: 1px 9px; border-radius: 99px; background: var(--at); color: var(--a2); font-size: .76rem; font-weight: 700; line-height: 1.6; }
.v3-verified::before { content: "✓ "; }
.v3-r q { font-weight: 500; line-height: 1.6; white-space: pre-line; }
.v3-r cite b { color: var(--i); font-weight: 700; }
.v3-r.is-crit { box-shadow: 0 8px 18px rgba(43, 42, 51, .08), inset 0 0 0 2px var(--at); }
.v3-ans { padding: 10px 12px; border-radius: 6px; background: var(--at); color: var(--i); line-height: 1.55; }
.v3-ans b { display: block; margin-bottom: 2px; color: var(--a2); }

/* Offer: the price label, the honest "when is it cheaper", the second door. */
.v3-price small { display: block; font-size: .95rem; font-weight: 700; color: var(--a2); line-height: 1.4; }
.v3-of-l .v3-of-sub { color: var(--p3); font-weight: 400; }
.v3-of-help { margin: 0 0 16px; padding: 10px 14px; border: 1px dashed rgba(237, 230, 214, .4); border-radius: 8px; color: var(--p); font-size: .95rem; line-height: 1.6; }
.v3 .v3-of-see { margin-top: 10px; }
.v3-was { max-width: calc(100% - 120px); line-height: 1.5; }

/* Founder: the way to the reviews. */
.v3-founder .v3-more { margin-top: 18px; }

/* Books: the call to action is a button on the band. */
.v3-bk-all .v3-btn { color: var(--p); text-decoration: none; }

/* Close: the body line and the WhatsApp way out. */
.v3-close-p { max-width: 56ch; margin: -6px auto 22px; color: var(--i2); font-size: 1.08rem; }
.v3-close-help { max-width: 60ch; margin: 22px auto 0; color: var(--i2); font-size: .95rem; line-height: 1.6; }
.v3-close-help a { font-weight: 700; color: var(--a2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

@media (max-width: 900px) {
  .v3-notes-q { grid-template-columns: 1fr 1fr; gap: 14px; }
  .v3-notes-q .v3-pn { font-size: 1rem; padding: 18px 14px; }
}
@media (max-width: 560px) {
  .v3-trust li { font-size: .82rem; padding: 3px 9px; }
  .v3-close .v3-cta .v3-btn { width: 100%; }
  .v3-was { max-width: calc(100% - 100px); }
}
