/* Hallmark · site: book.diyecom.co · theme: "cover yellow" (book-only override of shared tokens)
 * Yellow sampled from the book cover (#FECD02) and the old Simvoly page (#F8C000); black from the cover type.
 * Primary buttons = cover black with yellow text (12:1). Body text stays ink on light yellow paper.
 * macrostructure: Cinema Hero (title → big VSL sized to the viewport → one buy bar) + Split Studio sections
 */
:root {
  --color-paper: oklch(98.2% 0.025 95);
  --color-paper-2: oklch(95.5% 0.06 95);
  --color-paper-3: oklch(91% 0.08 92);
  --color-card: oklch(99.6% 0.006 95);
  --color-rule: oklch(86% 0.06 92);
  --color-rule-strong: oklch(76% 0.07 90);

  --color-cover: oklch(86.5% 0.176 91);       /* #fecd07 */
  /* round 5: buttons follow DIY ECOM CI v1 (magenta) · the book keeps its cover yellow as its own colour */
  --color-accent: oklch(50% 0.21 2);          /* #C40062 magenta, primary button */
  --color-accent-hover: oklch(44% 0.19 2);
  --color-on-accent: #fff;
  --color-cover-black: oklch(21% 0.012 90);
  --color-accent-soft: oklch(90% 0.15 95);    /* highlighter */
  --color-accent-ink: oklch(44% 0.1 65);      /* links / kickers: dark amber, 7:1 on paper */
  --color-sq-amber: oklch(86.5% 0.176 91);
  --color-night: oklch(20% 0.012 90);
  --color-night-2: oklch(27% 0.014 90);
  --shadow-card: 0 1px 0 oklch(21% 0.012 90 / 0.05), 0 10px 28px -14px oklch(21% 0.012 90 / 0.28);
}
.top { background: color-mix(in oklch, var(--color-paper) 94%, transparent); }

/* ---------- who am I: credentials beside media logos ---------- */
.who { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .who { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }
.creds { margin-top: var(--space-md); }
.creds b { font-weight: 700; }
.media { background: var(--color-paper-2); border-radius: var(--radius-lg); padding: clamp(1rem, 4vw, 1.75rem); }
.media__title { font-size: var(--text-base); font-family: var(--font-body); font-weight: 600; color: var(--color-ink-2); margin-bottom: var(--space-sm); }
.media__grid { list-style: none; margin: 0 0 var(--space-xs); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
@media (min-width: 40rem) { .media__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .media__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.media__grid a, .media__grid .media__logo { display: grid; place-items: center; height: 84px; padding: var(--space-xs); background: var(--color-card); border: var(--rule); border-radius: var(--radius-sm); transition: border-color var(--dur-fast) var(--ease-out); }
.media__grid a:hover { border-color: var(--color-ink-3); }
.media__grid img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- inside + honest note ---------- */
.inside-grid { display: grid; gap: var(--space-sm); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-md); }
.inside-grid img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-no { font-weight: 600; color: var(--color-accent-ink); white-space: nowrap; }
.honest { margin-top: var(--space-lg); background: var(--color-card); border-left: 5px solid var(--color-cover); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md); box-shadow: var(--shadow-card); }
.honest h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.honest p { color: var(--color-ink-2); }

/* ---------- story, proofs, endorsements, reasons (unchanged structure) ---------- */
.letter p { font-size: var(--text-lg); line-height: 1.85; }
.letter .sign { font-family: var(--font-display); font-weight: 700; }
.proofs { display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-xl); }
@media (min-width: 40rem) { .proofs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proofs figure { margin: 0; }
.proofs img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proofs figcaption { font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-2xs); }
.endorse figcaption img { width: 64px; height: 64px; }
.quote blockquote::before { color: var(--color-accent-ink); }
.reasons { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-md); }
.reasons li { counter-increment: r; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: var(--space-sm); }
.reasons li::before { content: counter(r); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--color-cover); color: var(--color-ink); border-radius: var(--radius-sm); }
.reasons h3 { font-size: var(--text-lg); margin-bottom: var(--space-3xs); }
.reasons p { color: var(--color-ink-2); }

/* ---------- order ---------- */
.order { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .order { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.order__side { display: grid; gap: var(--space-md); }
.order__book { display: grid; gap: var(--space-sm); grid-template-columns: 110px minmax(0, 1fr); align-items: center; }
@media (min-width: 60rem) { .order__book { grid-template-columns: minmax(0, 1fr); } .order__book img { max-width: 300px; } }
.refund a { color: inherit; font-weight: 700; }
.totals { display: grid; gap: 0.3rem; font-size: var(--text-sm); }
.totals__row { display: flex; justify-content: space-between; gap: var(--space-sm); color: var(--color-ink-2); }
.totals__row span:first-child { min-width: 0; }
.totals__row .num { white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); padding-top: var(--space-xs); margin-top: 0.2rem; border-top: var(--rule); font-weight: 600; font-size: var(--text-base); color: var(--color-ink); }
.total b { font-family: var(--font-display); font-size: var(--text-xl); }
.order-id { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.04em; }
.summary__items { list-style: none; margin: var(--space-2xs) 0 0; padding: var(--space-2xs) 0 0; border-top: var(--rule); display: grid; gap: 0.15rem; }
.summary__items li { display: flex; justify-content: space-between; gap: var(--space-sm); }
.summary__items li span:last-child { white-space: nowrap; }

/* ---------- ORDER BUMP blocks (config.js → orderBumps) ---------- */
.bumps { border: 0; margin: 0; padding: 0; min-width: 0; }
.bumps legend { font-size: var(--text-sm); font-weight: 600; padding: 0; margin-bottom: var(--space-2xs); }
.bumps legend .opt { font-weight: 400; color: var(--color-ink-3); }
#bump-list { display: grid; gap: var(--space-xs); }
.bump {
  position: relative; display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); gap: var(--space-xs); align-items: start;
  padding: var(--space-sm); border: 2px dashed var(--color-rule-strong); border-radius: var(--radius-md); background: var(--color-paper);
  cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.bump:hover { border-color: var(--color-ink-3); }
.bump:has(input:checked) { border-style: solid; border-color: var(--color-ink); background: color-mix(in oklch, var(--color-cover) 22%, var(--color-card)); }
.bump input { width: 22px; height: 22px; margin: 0.2rem 0 0; accent-color: var(--color-ink); }
.bump img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-card); }
.bump--noimg { grid-template-columns: 22px minmax(0, 1fr); }
.bump__tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; background: var(--color-ink); color: var(--color-cover); border-radius: var(--radius-pill); padding: 0.05rem 0.55rem; margin-bottom: 0.25rem; }
.bump__title { display: block; font-family: var(--font-display); font-weight: 700; line-height: 1.4; }
.bump__price { display: block; margin-top: 0.15rem; font-weight: 700; }
.bump__reg { font-weight: 400; color: var(--color-ink-3); margin-left: 0.4rem; font-size: var(--text-sm); }
.bump__desc { display: block; font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.6; margin-top: 0.25rem; }
.bump__del { display: block; font-size: var(--text-xs); color: var(--color-ink-3); margin-top: 0.25rem; }
@media (max-width: 24rem) { .bump { grid-template-columns: 22px minmax(0, 1fr); } .bump img { display: none; } }

/* ---------- UPSELL block (config.js → upsell) ---------- */
.upsell { margin-top: var(--space-lg); padding: var(--space-md); border-radius: var(--radius-md); border: 2px solid var(--color-ink); background: color-mix(in oklch, var(--color-cover) 16%, var(--color-card)); }
.upsell__kicker { display: inline-block; font-size: var(--text-xs); font-weight: 700; background: var(--color-ink); color: var(--color-cover); border-radius: var(--radius-pill); padding: 0.1rem 0.6rem; margin-bottom: var(--space-2xs); }
.upsell h3 { font-size: var(--text-xl); margin-bottom: var(--space-2xs); }
.upsell .price__now { font-size: var(--text-2xl); }
.upsell .ticks { margin-block: var(--space-sm); font-size: var(--text-sm); }
.upsell .ticks li::before { background: var(--color-ink); }

/* ============================================================
 * FUNNEL PAGES (25 Oct 2026 rebuild: one page per step, like the old Simvoly funnel)
 * check-out/ · thank-you/ · fullstack/ (upsell)
 * ============================================================ */
.back { font-size: var(--text-sm); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); font-size: var(--text-xs); color: var(--color-ink-3); counter-reset: f; }
.funnel li { counter-increment: f; border-top: 4px solid var(--color-rule); padding-top: 0.35rem; line-height: 1.5; min-width: 0; }
.funnel li::before { content: counter(f) ". "; font-weight: 700; }
.funnel li[data-done] { border-color: var(--color-ink-2); }
.funnel li[aria-current="step"] { border-color: var(--color-cover); color: var(--color-ink); font-weight: 700; }
.checkout .lead { margin-bottom: var(--space-lg); }
.checkout .order { align-items: start; }
@media (min-width: 60rem) { .checkout .order { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } .checkout .order__side { position: sticky; top: 76px; } }
.side-sum .h3 { margin-bottom: var(--space-sm); }
.side-sum .order__book { margin-bottom: var(--space-sm); grid-template-columns: 84px minmax(0, 1fr); }
.side-sum .order__book img { max-width: 84px; }
.abroad h3 { font-size: var(--text-base); margin-bottom: var(--space-3xs); }
.summary__items .summary__total { font-weight: 700; color: var(--color-ink); border-top: var(--rule); padding-top: 0.3rem; margin-top: 0.2rem; }
.howto { margin: var(--space-xs) 0 var(--space-md); padding-left: 1.3rem; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.6; }
.howto li::marker { font-weight: 700; color: var(--color-ink); }
.pay { display: grid; gap: var(--space-sm); background: var(--color-paper-2); border-radius: var(--radius-md); padding: var(--space-sm); margin-bottom: var(--space-md); }
.pay .qr { padding: var(--space-xs) 0 0; }
.payee { margin: 0; display: grid; gap: 0; background: var(--color-card); border: var(--rule); border-radius: var(--radius-sm); }
.payee > div { display: grid; grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr); gap: var(--space-xs); padding: 0.45rem var(--space-sm); border-top: var(--rule); font-size: var(--text-sm); }
.payee > div:first-child { border-top: 0; }
.payee dt { color: var(--color-ink-3); }
.payee dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.payee__missing { width: 100%; aspect-ratio: auto; font-size: var(--text-sm); }
.decline { margin-top: var(--space-md); text-align: center; font-size: var(--text-sm); }
.decline a { color: var(--color-ink-3); }

/* thank-you */
.ty-order { font-size: var(--text-base); margin-top: var(--space-xs); }
.ty-steps { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-md); }
.ty-steps > li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: var(--space-sm); align-items: start; }
.ty-steps__no { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--color-cover); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); }
.ty-steps .h3 { margin-bottom: var(--space-2xs); }
.ty-steps p { color: var(--color-ink-2); }
.ty-notes { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.ty-notes li::before { background: var(--color-ink-3); }
@media (max-width: 26rem) { .ty-steps > li { grid-template-columns: minmax(0, 1fr); } }
.ty-quote { margin: var(--space-xl) 0 0; padding: var(--space-md); border-left: 5px solid var(--color-cover); background: var(--color-card); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.ty-quote blockquote { margin: 0; font-size: var(--text-lg); line-height: 1.75; }
.ty-quote figcaption { margin-top: var(--space-xs); font-family: var(--font-display); font-weight: 700; }

/* sales page bits */
.pricebox { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-md); align-items: center; margin-top: var(--space-lg); background: var(--color-card); border: 2px solid var(--color-ink); border-radius: var(--radius-lg); padding: var(--space-md); }
@media (max-width: 26rem) { .pricebox { grid-template-columns: minmax(0, 1fr); } .pricebox img { max-width: 140px; } }
.letter h3 { margin-top: var(--space-xl); }
.proofs--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .proofs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.earn img { display: block; }

/* upsell page (sections mirror mastermind.diyecom.co / the old /diy-ecom-fullstack) */
.up-hero { background: var(--color-cover); padding-block: var(--space-lg) var(--space-2xl); }
.up-hero h1 { font-size: var(--text-3xl); line-height: 1.3; margin-bottom: var(--space-xs); }
.up-hero .lead { color: var(--color-ink); }
.up-hero .kicker, .up-hero .cta-note, .up-hero .cta-note a { color: var(--color-ink); }
.up-hero .funnel li { border-color: oklch(21% 0.012 90 / 0.2); color: var(--color-ink-2); }
.up-hero .funnel li[data-done] { border-color: var(--color-ink-2); }
.up-hero .funnel li[aria-current="step"] { border-color: var(--color-ink); color: var(--color-ink); }
.stack { display: grid; gap: 0; border-top: 2px solid var(--color-ink); }
.stack__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); padding: var(--space-md) 0; border-bottom: var(--rule); }
.stack__row h3 { font-size: var(--text-xl); margin: 0; }
.stack__row p { grid-column: 1 / -1; color: var(--color-ink-2); margin: 0; font-size: var(--text-sm); }
.stack__val { font-weight: 600; color: var(--color-ink-3); white-space: nowrap; font-size: var(--text-sm); }
.stack__total { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-md) 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
@media (max-width: 24rem) { .stack__row { grid-template-columns: minmax(0, 1fr); } }
.courses { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.course img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.course h3 { font-size: var(--text-lg); margin: var(--space-xs) 0 var(--space-3xs); }
.course p { font-size: var(--text-sm); color: var(--color-ink-2); }
.cols-2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); } }
.tools { display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tools h3 { font-size: var(--text-base); margin-bottom: var(--space-3xs); }
.tools p { font-size: var(--text-sm); color: var(--color-ink-2); }
.pillars { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); }
.pillars > div { border-left: 4px solid var(--color-sq-red); padding-left: var(--space-sm); }
.pillars > div:nth-child(2) { border-color: var(--color-sq-amber); }
.pillars > div:nth-child(3) { border-color: var(--color-sq-blue); }
.pillars h3 { font-size: var(--text-lg); margin-bottom: var(--space-3xs); }
.pillars p { color: var(--color-ink-2); font-size: var(--text-sm); }
.fit { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .fit { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
#join.sec .order { align-items: start; }

/* one action per page (owner, 27 Oct 2026): footer marks are not links */
.eco-strip .eco-mark { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; opacity: .8; }

/* ============================================================
 * ROUND 5 (27 Oct 2026) · DotCom Secrets revamp: show-don't-tell blocks, framework visuals, motion ("play")
 * ============================================================ */
:root { --font-sticker: "Sriracha", "IBM Plex Sans Thai Looped", cursive; --m-mark: oklch(90% 0.15 95); }
.sticker { display: inline-block; padding: 4px 12px; border: 2px solid var(--color-ink); border-radius: 10px; background: var(--color-sq-amber); color: var(--color-ink); font-family: var(--font-sticker); font-size: 1.1rem; line-height: 1.3; transform: rotate(var(--tilt, -4deg)); box-shadow: 2px 2px 0 var(--color-ink); white-space: nowrap; }
.btn--big { min-height: 60px; font-size: var(--text-xl); padding-inline: var(--space-lg); box-shadow: 0 4px 0 var(--color-cover-black); }
.btn--big:active { box-shadow: 0 1px 0 var(--color-cover-black); transform: translateY(3px); }
.sec--cover { background: var(--color-cover); }
.sign { font-family: var(--font-sticker); font-size: var(--text-xl); }
.measure { max-width: 40em; }

/* ---------- 3D book (CSS only, cover from the e-book PDF) ---------- */
.book3d { --bw: 200px; --bd: 26px; perspective: 1200px; width: var(--bw); }
.book3d__in { position: relative; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(4deg); animation: book-float 6s ease-in-out infinite; aspect-ratio: 640 / 908; }
.book3d__in img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 2px 6px 6px 2px; transform: translateZ(calc(var(--bd) / 2)); box-shadow: inset 4px 0 6px rgba(0,0,0,.18); backface-visibility: hidden; }
.book3d__pages { position: absolute; top: 2%; bottom: 2%; right: 0; width: var(--bd); transform: rotateY(90deg) translateZ(calc(var(--bw) - var(--bd) / 2 - 3px)); transform-origin: right; background: repeating-linear-gradient(90deg, #fff 0 2px, #e6e0d2 2px 3px); }
.book3d__spine { position: absolute; top: 0; bottom: 0; left: 0; width: var(--bd); transform: rotateY(-90deg) translateZ(0); transform-origin: left; background: linear-gradient(90deg, #e9e5da, #fff); }
.book3d::after { content: ""; display: block; height: 18px; margin: 10px auto 0; width: 80%; background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); animation: book-shadow 6s ease-in-out infinite; }
@keyframes book-float { 0%, 100% { transform: rotateY(-28deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-20deg) rotateX(2deg) translateY(-10px); } }
@keyframes book-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.85); opacity: .7; } }
.book3d--lg { --bw: min(260px, 60vw); --bd: 32px; margin-inline: auto; }

/* ---------- hero ---------- */
.bh { background: var(--color-cover); padding-block: var(--space-lg) var(--space-2xl); position: relative; overflow: hidden; }
.bh::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(oklch(21% 0.012 90 / .09) 1.2px, transparent 1.3px); background-size: 18px 18px; pointer-events: none; }
.bh .kicker { color: var(--color-ink); }
.bh .squares i:nth-child(2) { background: var(--color-ink); }
.bh__grid { position: relative; display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); align-items: center; }
.bh__h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem); line-height: 1.25; margin: 0 0 var(--space-sm); }
.bh .mk { --m-mark: #fff; }
.bh__sub { font-size: var(--text-lg); line-height: 1.65; color: var(--color-ink-2); max-width: 32em; }
.bh__buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-top: var(--space-md); }
.bh__buy .price__now { font-size: var(--text-3xl); }
.ship-chip { display: inline-block; font-weight: 700; font-size: var(--text-sm); background: var(--color-cover-black); color: var(--color-cover); border-radius: var(--radius-pill); padding: 0.2rem 0.75rem; margin-left: var(--space-2xs); white-space: nowrap; }
.bh__trust { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.bh__trust b { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); line-height: 1.2; }
.bh__media { position: relative; min-width: 0; padding-bottom: 64px; }
.bh .video--voomly .voomly-embed { outline: 3px solid var(--color-ink); box-shadow: 8px 8px 0 var(--color-ink); border-radius: var(--radius-md); }
.bh .video-note { color: var(--color-ink); margin-top: var(--space-xs); padding-right: 110px; }
.bh__book { --bw: 84px; --bd: 14px; position: absolute; right: 0; bottom: -14px; z-index: 2; }
.bh__stk1 { position: absolute; top: -18px; left: -6px; z-index: 3; }
@media (min-width: 60rem) {
  .bh { padding-block: var(--space-2xl) var(--space-3xl); }
  .bh__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-2xl); }
  .bh__book { --bw: 150px; --bd: 22px; right: -40px; bottom: -30px; }
  .bh .video-note { padding-right: 120px; }
}

/* ---------- proof bar marquee ---------- */
.proofbar { background: var(--color-card); border-block: 2px solid var(--color-ink); padding-block: var(--space-sm); }
.proofbar__label { text-align: center; font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-3); margin: 0 0 var(--space-2xs); }
.proofbar__track { list-style: none; margin: 0; padding: 0; gap: var(--space-xl); align-items: center; }
.proofbar__track li { flex: none; display: grid; place-items: center; height: 52px; padding-inline: var(--space-xs); }
.proofbar__track li.dark { background: var(--color-night); border-radius: var(--radius-sm); }
.proofbar__track img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }

/* ---------- numbers with photos ---------- */
.pstats { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .pstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pstat { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 260px; display: grid; align-items: end; border: 2px solid var(--color-ink); box-shadow: 4px 4px 0 var(--color-ink); background: var(--color-night); }
.pstat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pstat:hover img { transform: scale(1.05); }
.pstat > div { position: relative; padding: var(--space-md) var(--space-sm) var(--space-sm); background: linear-gradient(transparent, oklch(15% 0.01 90 / .88) 38%); color: #fff; }
.pstat b { display: block; font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.15; color: var(--color-cover); }
.pstat span { font-size: var(--text-sm); line-height: 1.5; }

/* ---------- framework: two paths ---------- */
.paths { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-lg); }
@media (min-width: 52rem) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.path { position: relative; border-radius: var(--radius-lg); padding: var(--space-md); border: 2px solid var(--color-ink); }
.path--bad { background: var(--color-card); color: var(--color-ink-2); }
.path--good { background: var(--color-cover); box-shadow: 6px 6px 0 var(--color-ink); }
.path__tag { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-sm); color: var(--color-ink); }
.path ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.path li { position: relative; display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) 0 var(--space-xs); font-weight: 600; }
.path li + li::before { content: ""; position: absolute; left: 17px; top: -10px; height: 18px; border-left: 2px dashed currentColor; opacity: .5; }
.path--good li + li::before { border-left-style: solid; opacity: 1; transform-origin: top; }
.js .path--good li + li::before { transform: scaleY(0); transition: transform .4s var(--ease-out); }
.js .path--good.in li + li::before { transform: scaleY(1); }
.js .path--good.in li:nth-child(2)::before { transition-delay: .5s; } .js .path--good.in li:nth-child(3)::before { transition-delay: .9s; } .js .path--good.in li:nth-child(4)::before { transition-delay: 1.3s; }
.path__ic, .path__no { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--color-paper-2); font-size: 1.05rem; }
.path__no { background: var(--color-ink); color: var(--color-cover); font-family: var(--font-display); font-weight: 700; }
.path li small { margin-left: auto; font-size: var(--text-xs); font-weight: 700; background: #fff; border: 1.5px solid var(--color-ink); border-radius: var(--radius-pill); padding: 0 0.5rem; white-space: nowrap; }
.path--bad li { text-decoration: line-through; text-decoration-color: oklch(52% 0.2 27 / .6); }
.path__end { color: var(--color-error); }
.path__end .path__ic { background: var(--color-error); color: #fff; }
.path__stk { position: absolute; right: 12px; top: -16px; }

/* ---------- peek inside ---------- */
.peek { position: relative; min-height: 320px; }
.peek img.peek__a, .peek img.peek__b { position: absolute; width: 62%; border-radius: var(--radius-sm); border: 2px solid var(--color-ink); box-shadow: 4px 4px 0 var(--color-ink); object-fit: cover; aspect-ratio: 4 / 3; background: #fff; transition: transform .5s var(--ease-pop); }
.peek__a { left: 0; top: 0; transform: rotate(-5deg); }
.peek__b { right: 0; top: 110px; transform: rotate(4deg); }
.peek:hover .peek__a { transform: rotate(-8deg) translate(-6px, -4px); }
.peek:hover .peek__b { transform: rotate(7deg) translate(6px, 4px); }
.peek__book { --bw: 130px; --bd: 18px; position: absolute; left: 22%; bottom: -10px; z-index: 2; }
@media (min-width: 60rem) { .peek { min-height: 440px; } .peek__b { top: 150px; } .peek__book { --bw: 170px; --bd: 24px; } }
.fasc { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.fasc li { position: relative; padding: var(--space-sm) var(--space-sm) var(--space-sm) 5.6rem; background: var(--color-card); border: 2px solid var(--color-ink); border-radius: var(--radius-md); font-weight: 600; line-height: 1.55; }
.fasc__pg { position: absolute; left: var(--space-xs); top: 50%; transform: translateY(-50%) rotate(-4deg); font-family: var(--font-sticker); background: var(--color-cover); border: 2px solid var(--color-ink); border-radius: 8px; padding: 0 .45rem; font-size: var(--text-sm); white-space: nowrap; }

/* ---------- Commerce × AI map ---------- */
#ai .mk { --m-mark: oklch(50% 0.21 2 / .85); }
.aimap { margin-top: var(--space-lg); display: grid; gap: var(--space-xs); }
.aimap__head, .aimap__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: var(--space-xs); }
.aimap__head { font-size: var(--text-xs); font-weight: 700; color: var(--color-on-night-2); text-transform: uppercase; }
.aimap__row b, .aimap__row span { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.4; }
.aimap__row b { background: var(--color-cover); color: var(--color-ink); }
.aimap__row span { background: var(--color-night-2); border: 1.5px solid oklch(50% 0.21 2); color: #fff; font-weight: 600; }
.aimap__flow { position: relative; height: 3px; background: oklch(96% 0.008 80 / .2); border-radius: 2px; overflow: hidden; }
.aimap__flow::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--color-cover), oklch(60% 0.22 2)); animation: flow 1.8s linear infinite; }
.aimap__row:nth-child(3) .aimap__flow::after { animation-delay: .3s; } .aimap__row:nth-child(4) .aimap__flow::after { animation-delay: .6s; } .aimap__row:nth-child(5) .aimap__flow::after { animation-delay: .9s; }
@keyframes flow { to { left: 100%; } }
@media (max-width: 30rem) { .aimap__head, .aimap__row { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 6px; } .aimap__row b, .aimap__row span { padding: 0.5rem 0.6rem; font-size: var(--text-xs); } }
.freebox { margin-top: var(--space-lg); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: center; background: var(--color-card); color: var(--color-ink); border-radius: var(--radius-lg); padding: var(--space-md); border: 3px solid var(--color-cover); }
.freebox h3 { font-size: var(--text-lg); margin-bottom: var(--space-3xs); }
.freebox p { color: var(--color-ink-2); font-size: var(--text-sm); }
.freebox__badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: oklch(50% 0.21 2); color: #fff; font-family: var(--font-sticker); font-size: 1.6rem; transform: rotate(-10deg); box-shadow: 3px 3px 0 var(--color-ink); animation: m-wiggle 3.2s ease-in-out infinite; --tilt: -10deg; }

/* ---------- author timeline ---------- */
.tl { list-style: none; margin: var(--space-lg) 0 0; padding: 0; position: relative; display: grid; gap: var(--space-lg); }
.tl::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 3px dashed var(--color-rule-strong); }
.tl__item { position: relative; display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); padding-left: 48px; }
.tl__item::before { content: ""; position: absolute; left: 8px; top: 6px; width: 23px; height: 23px; border-radius: 6px; background: var(--color-sq-red); border: 2px solid var(--color-ink); }
.tl__item:nth-child(3n+2)::before { background: var(--color-sq-amber); } .tl__item:nth-child(3n)::before { background: var(--color-sq-blue); }
.tl__item figure { margin: 0; }
.tl__item figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); border: 2px solid var(--color-ink); }
.tl__era { display: inline-block; font-family: var(--font-sticker); background: var(--color-cover); border-radius: 8px; padding: 0 .5rem; transform: rotate(-3deg); margin-bottom: var(--space-2xs); }
.tl__item h3 { font-size: var(--text-xl); margin-bottom: var(--space-3xs); }
.tl__item p { color: var(--color-ink-2); }
.tl__press, .tl__logos { list-style: none; padding: 0; margin: var(--space-xs) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.tl__press li, .tl__logos li { background: #fff; border: var(--rule); border-radius: var(--radius-sm); padding: 6px 10px; display: grid; place-items: center; }
.tl__press img { height: 22px; width: auto; } .tl__logos img { height: 30px; width: auto; max-width: 120px; }
@media (min-width: 52rem) {
  .tl::before { left: 50%; }
  .tl__item { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); padding-left: 0; align-items: center; }
  .tl__item::before { left: calc(50% - 11px); top: 50%; }
  .tl__item:nth-child(even) figure { order: 2; }
}

/* ---------- Earn + award ---------- */
.earn2 { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-lg); }
@media (min-width: 60rem) { .earn2 { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; } }
.earn2__tag { font-weight: 600; margin-bottom: var(--space-2xs); }
.earn2__tag b { color: var(--color-error); }
.earn2__tag--after b { color: var(--color-ok); }
.earn2__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs); }
.earn2__pics figure { margin: 0; }
.earn2__pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--color-ink); }
.earn2__pics figcaption { font-size: var(--text-xs); color: var(--color-ink-3); margin-top: 4px; }
.earn2__steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.earn2__steps li { counter-increment: s; display: flex; gap: var(--space-xs); align-items: center; background: var(--color-card); border: 2px solid var(--color-ink); border-radius: var(--radius-md); padding: var(--space-xs) var(--space-sm); font-weight: 600; font-size: var(--text-sm); line-height: 1.5; }
.earn2__steps li::before { content: counter(s); flex: none; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--color-sq-amber); font-family: var(--font-sticker); }
.award { margin-top: var(--space-xl); display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); background: var(--color-night); color: var(--color-on-night); border-radius: var(--radius-lg); padding: clamp(1rem, 4vw, 2rem); }
@media (min-width: 60rem) { .award { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; } }
.award h3 { font-size: var(--text-2xl); line-height: 1.35; margin: var(--space-sm) 0 var(--space-2xs); color: #fff; }
.award p { color: var(--color-on-night-2); }
.award__pics { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: var(--space-2xs); }
.award__pics figure { margin: 0; }
.award__pics figure:first-child { grid-column: 1 / -1; }
.award__pics img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.award__pics figure:nth-child(2) img { aspect-ratio: 3 / 4; }
.award__pics figure:nth-child(3) img { aspect-ratio: auto; }

/* ---------- reader quotes ---------- */
.saybar { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .saybar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.saybar li { background: var(--color-cover); border: 2px solid var(--color-ink); border-radius: 18px 18px 18px 4px; padding: var(--space-sm) var(--space-md); box-shadow: 3px 3px 0 var(--color-ink); }
.saybar li:nth-child(2) { transform: rotate(1deg); } .saybar li:nth-child(1) { transform: rotate(-1deg); }
.saybar q { display: block; font-weight: 600; line-height: 1.55; quotes: "“" "”"; }
.saybar span { display: block; margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-ink-2); }

/* ---------- offer box ---------- */
.offer { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 60rem) { .offer { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.offer__visual { position: relative; padding-top: var(--space-md); }
.offer__stk { position: absolute; top: 0; right: 10%; }
.offer__card { background: var(--color-card); border: 3px solid var(--color-ink); border-radius: var(--radius-lg); padding: clamp(1rem, 4vw, 2rem); box-shadow: 8px 8px 0 var(--color-ink); }
.offer__list { list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.offer__list li { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-xs) 0; border-bottom: 1.5px dashed var(--color-rule-strong); font-weight: 600; }
.offer__list b { white-space: nowrap; }
.offer__free b { font-family: var(--font-sticker); color: oklch(50% 0.21 2); font-size: var(--text-lg); }
.offer__total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-sm) 0 var(--space-md); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); }
.offer__total b { font-size: var(--text-3xl); }
.lastcall__tum { width: min(320px, 80%); margin: 0 auto var(--space-md); border-radius: 50% 50% var(--radius-lg) var(--radius-lg); border: 3px solid var(--color-ink); background: var(--color-cover); }

/* ---------- product mock-ups (bumps, kit, offer wall) ---------- */
.bump { grid-template-columns: 22px 96px minmax(0, 1fr); }
.bump img { width: 96px; height: auto; aspect-ratio: auto; object-fit: contain; background: transparent; border-radius: 0; filter: drop-shadow(0 6px 8px rgba(0,0,0,.15)); transition: transform .3s var(--ease-pop); }
.bump:has(input:checked) img { transform: rotate(-4deg) scale(1.06); }
.bump__head { display: block; font-weight: 700; color: var(--color-error); font-size: var(--text-sm); line-height: 1.5; margin-bottom: 0.2rem; }
.bump__yes { display: inline-flex; align-items: center; gap: 6px; }
.bump__arrow { display: inline-block; color: var(--color-error); font-weight: 700; animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
@media (max-width: 40rem) { .bump { grid-template-columns: 22px minmax(0, 1fr); } .bump img { display: block; grid-column: 2; width: 120px; } .bump__body { grid-column: 1 / -1; } }

/* ---------- reviews on checkout ---------- */
.revs { display: grid; gap: var(--space-sm); }
.rev { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-xs); align-items: start; background: var(--color-card); border: var(--rule); border-radius: var(--radius-md); padding: var(--space-sm); }
.rev img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; object-position: top; border: 1.5px solid var(--color-ink); }
.rev q { display: block; font-weight: 600; line-height: 1.55; font-size: var(--text-sm); }
.rev span { display: block; font-size: var(--text-xs); color: var(--color-ink-3); margin-top: 4px; }
.rev .stars { color: oklch(70% 0.17 75); letter-spacing: 2px; font-size: var(--text-sm); }

/* ---------- Stripe options (shown only when /api/book/config says stripe:true) ---------- */
[data-stripe] { display: none !important; }
.stripe-on [data-stripe] { display: block !important; }
.stripe-on [data-stripe].btn { display: inline-flex !important; }
.paybox { border: 2px solid var(--color-ink); border-radius: var(--radius-md); padding: var(--space-sm); background: var(--color-card); margin-bottom: var(--space-md); }
.paybox h3 { font-size: var(--text-base); margin-bottom: var(--space-2xs); }
.or { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-ink-3); font-size: var(--text-sm); margin: var(--space-sm) 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: var(--rule); }

/* ---------- OTO / downsell pages ---------- */
.oto-hero { background: var(--color-cover); padding-block: var(--space-lg) var(--space-2xl); position: relative; overflow: hidden; }
.oto-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(oklch(21% 0.012 90 / .09) 1.2px, transparent 1.3px); background-size: 18px 18px; pointer-events: none; }
.oto-hero .wrap { position: relative; }
.oto-hero .funnel li { border-color: oklch(21% 0.012 90 / 0.2); color: var(--color-ink-2); }
.oto-hero .funnel li[data-done] { border-color: var(--color-ink-2); }
.oto-hero .funnel li[aria-current="step"] { border-color: var(--color-ink); color: var(--color-ink); }
.oto-alert { display: inline-flex; gap: 8px; align-items: center; background: var(--color-error); color: #fff; font-weight: 700; border-radius: var(--radius-pill); padding: 0.3rem 0.9rem; margin-top: var(--space-md); font-size: var(--text-sm); }
.oto-alert i { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.oto-grid { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: var(--space-md); }
@media (min-width: 60rem) { .oto-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.oto-h1 { font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.1rem); line-height: 1.28; margin-bottom: var(--space-sm); }
.oto-mock { position: relative; }
.oto-mock img { width: min(520px, 100%); margin-inline: auto; animation: mock-float 5s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0,0,0,.18)); }
@keyframes mock-float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.oto-mock .sticker { position: absolute; left: 4%; top: 6%; }
.oto-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); margin: var(--space-sm) 0; }
.oto-price .price__now { font-size: var(--text-3xl); }
.oto-no { display: block; margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: underline; }
.unsell { display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .unsell { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.unsell > div { border: 2px solid var(--color-ink); border-radius: var(--radius-lg); padding: var(--space-md); background: var(--color-card); }
.unsell > div:first-child { background: var(--color-cover); }
.unsell h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
/* the 4-part machine */
.machine { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); counter-reset: m; }
@media (min-width: 40rem) { .machine { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .machine { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mpart { position: relative; counter-increment: m; border: 2px solid var(--color-ink); border-radius: var(--radius-lg); background: var(--color-card); padding: var(--space-md) var(--space-sm) var(--space-sm); box-shadow: 4px 4px 0 var(--color-ink); }
.mpart::before { content: counter(m); position: absolute; top: -16px; left: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--color-ink); background: var(--c, var(--color-sq-red)); color: #fff; font-family: var(--font-sticker); }
.mpart:nth-child(2) { --c: var(--color-sq-amber); } .mpart:nth-child(3) { --c: var(--color-sq-blue); } .mpart:nth-child(4) { --c: oklch(50% 0.21 2); }
.mpart h3 { font-size: var(--text-xl); margin: 0; }
.mpart h3 small { display: block; font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-ink-3); font-weight: 600; }
.mpart ul { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: 6px; }
.mpart li { font-size: var(--text-sm); line-height: 1.45; padding: 6px 8px; border-radius: 8px; background: var(--color-paper-2); }
.mpart li b { display: block; }
@media (min-width: 62rem) {
  .mpart:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 40%; z-index: 2; font-weight: 700; font-size: 1.4rem; color: var(--color-ink); animation: nudge 1.2s ease-in-out infinite; }
}
.day1 { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); counter-reset: d; }
@media (min-width: 52rem) { .day1 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.day1 li { counter-increment: d; background: var(--color-night-2); color: #fff; border-radius: var(--radius-md); padding: var(--space-sm); border-top: 6px solid var(--color-cover); }
.day1 li::before { content: "ช่วง " counter(d); display: block; font-family: var(--font-sticker); color: var(--color-cover); }
.day1 b { display: block; font-family: var(--font-display); font-size: var(--text-lg); }
.day1 span { font-size: var(--text-sm); color: var(--color-on-night-2); }
.pics2 { display: grid; gap: var(--space-sm); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pics2 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); border: 2px solid var(--color-ink); }
.credit-badge { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: center; border: 3px dashed var(--color-ink); border-radius: var(--radius-lg); padding: var(--space-md); background: var(--color-card); }
.credit-badge__seal { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--color-cover); border: 3px solid var(--color-ink); font-family: var(--font-display); font-weight: 700; line-height: 1.1; transform: rotate(-8deg); animation: spin-slow 14s linear infinite; }
.credit-badge__seal b { font-size: 1.9rem; display: block; }
@keyframes spin-slow { to { transform: rotate(352deg); } }
.credit-badge h3 { font-size: var(--text-lg); }

/* ---------- thank-you · offer wall ---------- */
.ty-top { background: var(--color-cover); padding-block: var(--space-lg) var(--space-xl); position: relative; overflow: hidden; }
.ty-check { width: 64px; height: 64px; border-radius: 50%; background: var(--color-ok); display: grid; place-items: center; border: 3px solid var(--color-ink); margin-bottom: var(--space-sm); }
.ty-check svg { width: 34px; height: 34px; stroke: #fff; stroke-width: 3.5; fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .3s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.slipcard { background: var(--color-card); border: 3px solid var(--color-ink); border-radius: var(--radius-lg); padding: clamp(1rem, 4vw, 1.75rem); box-shadow: 8px 8px 0 var(--color-ink); margin-top: var(--space-md); }
.slipcard .btn--line { min-height: 60px; font-size: var(--text-xl); }
.wall { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-lg); }
@media (min-width: 44rem) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { position: relative; display: grid; grid-template-rows: auto 1fr; border: 2px solid var(--color-ink); border-radius: var(--radius-lg); background: var(--color-card); overflow: hidden; box-shadow: 4px 4px 0 var(--color-ink); }
.tile__img { position: relative; background: var(--color-paper-2); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__img img.contain { object-fit: contain; padding: var(--space-sm); }
.tile__body { padding: var(--space-md); display: grid; gap: var(--space-2xs); align-content: start; }
.tile__body h3 { font-size: var(--text-xl); margin: 0; line-height: 1.35; }
.tile__body p { color: var(--color-ink-2); font-size: var(--text-sm); }
.tile__price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); }
.tile__badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.tile--free { border-color: oklch(50% 0.21 2); border-width: 3px; }
@media (min-width: 44rem) { .tile--free { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tile--free .tile__img { aspect-ratio: auto; min-height: 100%; } }
.tile--owned::after { content: "อยู่ในออเดอร์ของคุณแล้ว ✓"; position: absolute; top: 12px; right: 12px; background: var(--color-ok); color: #fff; font-weight: 700; font-size: var(--text-xs); border-radius: var(--radius-pill); padding: 0.2rem 0.7rem; }
.tile--owned .tile__go { display: none; }
.tile .btn { margin-top: var(--space-2xs); justify-self: start; }
.vault-pay { margin-top: var(--space-sm); border-top: var(--rule); padding-top: var(--space-sm); }
@media (min-width: 44rem) { .tile--wide { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .tile--wide .tile__img { aspect-ratio: auto; min-height: 100%; } }
.sec--night .lead { color: var(--color-on-night-2); }
.sec--night .h2 { color: var(--color-on-night); }
@media (min-width: 60rem) { .bh__h1 { font-size: clamp(2.2rem, 1.2rem + 1.9vw, 3rem); } }
.unsell > div:first-child .ticks li::before { background: var(--color-ink); }
.tile__img img.contain { width: auto; height: auto; max-width: 90%; max-height: 230px; object-fit: contain; padding: var(--space-xs); }

/* ==========================================================================
 * ROUND 7 (27 Oct 2026) · Stripe only · 3-step progress · one-click offers · AI explainer · new offer wall
 * ========================================================================== */
.funnel--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vat-note { display: inline-block; font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-2); margin: 0.25rem 0 0; }
.bh__buy .vat-note { display: block; margin: -0.25rem 0 var(--space-xs); }

/* ---------- check-out: cart + Stripe Embedded Checkout on one page ---------- */
.co-h1 { margin-top: var(--space-md); }
.co-main { display: grid; gap: var(--space-md); }
.cart { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; }
.cart__img { width: 64px; height: 64px; object-fit: contain; }
.cart__name { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.35; }
.cart__price { margin: 0; font-size: var(--text-sm); }
.cart__price .vat-note { display: block; margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--color-ink); border-radius: var(--radius-pill); overflow: hidden; background: var(--color-card); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 700; color: var(--color-ink); cursor: pointer; }
.qty button:disabled { color: var(--color-ink-3); cursor: default; }
.qty button:not(:disabled):hover { background: var(--color-paper-2); }
.qty output { min-width: 1.6rem; text-align: center; font-weight: 700; }
.co-totals { border-top: var(--rule); padding-top: var(--space-xs); }
#cart-rows { display: grid; gap: 0.3rem; }
.totals__vat { color: var(--color-ink); font-weight: 600; }
.co-pay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-sm); border-top: var(--rule); padding-top: var(--space-sm); }
.co-pay-head .h3 { margin: 0; }
.paylogos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.paylogos li { font-size: var(--text-xs); font-weight: 700; border: 1.5px solid var(--color-ink); border-radius: var(--radius-sm); padding: 0.1rem 0.5rem; background: var(--color-card); }
.co-tax { margin: calc(var(--space-xs) * -1) 0 0; }
.pay-embed { position: relative; min-height: 420px; border-radius: var(--radius-md); }
.pay-embed[data-loading] > :not(.pay-embed__skel) { opacity: 0.35; pointer-events: none; transition: opacity .2s; }
.pay-embed__skel { display: none; gap: 12px; padding: var(--space-sm) 0; }
.pay-embed[data-loading] .pay-embed__skel { display: grid; }
.pay-embed > iframe, .pay-embed > div:not(.pay-embed__skel) { width: 100%; }
.pay-embed__skel i { display: block; height: 46px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--color-paper-2), var(--color-paper-3), var(--color-paper-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.pay-embed__skel i:first-child { width: 60%; }
@keyframes skel { to { background-position: -200% 0; } }
.co-fine { margin: 0; }

/* reviews: screenshot opens full size */
.rev__zoom { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; width: 64px; height: 64px; display: block; }
.rev__zoom img { display: block; }
.rev__plus { position: absolute; left: 0; right: 0; bottom: -4px; margin: 0 !important; font-size: 13px !important; font-weight: 700; text-align: center; color: var(--color-ink) !important; background: var(--color-cover); border-radius: var(--radius-pill); line-height: 1.5; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(560px, 94vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: oklch(15% 0.01 90 / 0.82); }
.lightbox img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: var(--radius-md); background: #fff; }
.lightbox p { color: #fff; text-align: center; margin: var(--space-2xs) 0 0; }
.lightbox__x { position: absolute; top: -14px; right: -6px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--color-ink); background: var(--color-cover); font-size: 1.4rem; font-weight: 700; cursor: pointer; z-index: 1; }

/* ---------- step 2 offers: one click ---------- */
.paid-chip { display: inline-flex; gap: 6px; align-items: center; margin: var(--space-2xs) 0 0 var(--space-2xs); font-size: var(--text-sm); font-weight: 600; background: var(--color-card); border: 1.5px solid var(--color-ink); border-radius: var(--radius-pill); padding: 0.2rem 0.8rem; }
.paid-chip span { color: var(--color-ok); font-weight: 700; }
.oto-price .ship-chip { margin-left: 0; white-space: normal; }
.pay-how { font-size: var(--text-sm); color: var(--color-ink-2); margin: var(--space-2xs) 0 0; min-height: 1.5em; }
.buybox { display: grid; gap: var(--space-sm); background: var(--color-card); border: 2px solid var(--color-ink); border-radius: var(--radius-lg); box-shadow: 5px 5px 0 var(--color-ink); padding: clamp(1rem, 4vw, 2rem); }
.buybox > img { width: min(240px, 70%); margin: 0 auto; filter: drop-shadow(0 10px 12px rgba(0,0,0,.15)); }
.buybox .h3 { margin: 0; text-align: center; }
.buybox .decline { text-align: center; margin: 0; }

/* before / after */
.ba { display: grid; gap: var(--space-md); margin-top: var(--space-lg); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 52rem) { .ba { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); } }
.ba__col { border: 2px solid var(--color-ink); border-radius: var(--radius-lg); padding: var(--space-md); background: var(--color-card); }
.ba__col--new { background: color-mix(in oklch, var(--color-cover) 30%, var(--color-card)); box-shadow: 5px 5px 0 var(--color-ink); }
.ba__tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; border-radius: var(--radius-pill); padding: 0.1rem 0.6rem; background: var(--color-ink); color: var(--color-cover); margin: 0 0 var(--space-2xs); }
.ba__col--old .ba__tag { background: var(--color-paper-3); color: var(--color-ink-2); }
.ba__col h3 { margin: 0 0 var(--space-sm); }
.ba__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.ba__list li { display: grid; gap: 4px; font-size: var(--text-sm); }
.ba__list i { display: block; height: 10px; border-radius: 6px; background: var(--color-sq-red); width: 0; transition: width 1.1s var(--ease-pop, ease) .2s; }
.ba__col--new .ba__list i { background: var(--color-ok); }
.ba__col.in .ba__list i { width: var(--w); }
.ba__time { margin: var(--space-sm) 0 0; font-size: var(--text-sm); }
.ba__time b { font-family: var(--font-display); font-size: var(--text-lg); }
.ba__arrow { display: grid; place-items: center; }
.ba__arrow svg { width: 48px; height: 48px; fill: none; stroke: var(--color-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.ba__arrow { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (min-width: 52rem) { .ba__arrow svg { transform: none; } .ba__arrow { animation-name: nudge; } }

/* Claude / Skill / You */
.trio { display: grid; gap: var(--space-md); margin-top: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio__card { background: var(--color-card); border: 2px solid var(--color-ink); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: 4px 4px 0 var(--color-ink); }
.trio__card h3 { margin: var(--space-sm) 0 var(--space-2xs); }
.trio__card p { font-size: var(--text-sm); color: var(--color-ink-2); margin: 0; }
.trio__art { background: var(--color-paper-2); border-radius: var(--radius-md); padding: var(--space-xs); }
.trio__art svg { display: block; width: 100%; height: auto; max-height: 130px; }
.s-win { fill: var(--color-card); stroke: var(--color-ink); stroke-width: 2.5; }
.s-bar { fill: var(--color-ink); }
.s-dot { fill: var(--color-cover); }
.s-bub { transform-box: fill-box; transform-origin: left center; animation: bub 3.6s ease-in-out infinite; }
.s-bub--ai { fill: var(--color-paper-3); }
.s-bub--me { fill: var(--color-cover); stroke: var(--color-ink); stroke-width: 1.5; transform-origin: right center; animation-delay: .6s; }
.s-bub--ai:last-child { animation-delay: 1.2s; }
@keyframes bub { 0%, 10% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.s-card rect:first-child { fill: var(--color-card); stroke: var(--color-ink); stroke-width: 2.5; }
.s-card--2 { opacity: .7; } .s-card--3 { opacity: .45; }
.s-card--1 { animation: cardlift 3s ease-in-out infinite; }
@keyframes cardlift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.s-line { fill: var(--color-ink); } .s-line--soft { fill: var(--color-ink-3); }
.s-badge { fill: var(--color-ok); } .s-tick { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.s-head { fill: var(--color-cover); stroke: var(--color-ink); stroke-width: 2.5; }
.s-body { fill: none; stroke: var(--color-ink); stroke-width: 3; stroke-linecap: round; }
.s-spark { fill: none; stroke: var(--color-sq-red); stroke-width: 3; stroke-linecap: round; animation: spark 1.4s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* 4 steps + chat mock-up */
.how { display: grid; gap: var(--space-lg); margin-top: var(--space-lg); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 56rem) { .how { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); counter-reset: hs; }
.how__steps li { counter-increment: hs; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px var(--space-sm); align-items: start; }
.how__steps li::before { content: counter(hs); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); background: var(--color-cover); color: var(--color-ink); }
.how__steps b { font-family: var(--font-display); font-size: var(--text-lg); }
.how__steps span { font-size: var(--text-sm); opacity: .85; }
.how__steps--light li::before { border: 2px solid var(--color-ink); }
.chatmock { margin: 0; background: var(--color-card); color: var(--color-ink); border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--color-ink); box-shadow: 6px 6px 0 var(--color-cover); }
.chatmock__bar, .termmock__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--color-paper-2); border-bottom: 1.5px solid var(--color-ink); font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-2); }
.chatmock__bar i, .termmock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-paper-3); border: 1px solid var(--color-ink-3); }
.chatmock__bar span, .termmock__bar span { margin-left: 6px; }
.chatmock__body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 30rem) { .chatmock__body { grid-template-columns: 118px minmax(0, 1fr); } .chatmock--sm .chatmock__body { grid-template-columns: minmax(0, 1fr); } }
.chatmock__side { display: none; border-right: 1.5px solid var(--color-rule); padding: 10px; font-size: var(--text-xs); background: var(--color-paper); }
@media (min-width: 30rem) { .chatmock__side { display: grid; align-content: start; gap: 6px; } }
.chatmock__side p { margin: 0; font-weight: 700; color: var(--color-ink-3); }
.chatmock__side span { padding: 4px 6px; border-radius: 6px; }
.chatmock__side .on { background: var(--color-cover); font-weight: 700; }
.chatmock__chat { display: grid; gap: 8px; padding: 12px; align-content: start; min-height: 290px; }
.chatmock--sm .chatmock__chat { min-height: 220px; }
.cm { margin: 0; font-size: var(--text-sm); line-height: 1.55; padding: 8px 12px; border-radius: 14px; max-width: 92%; }
.cm--me { justify-self: end; background: var(--color-cover); border: 1.5px solid var(--color-ink); border-bottom-right-radius: 4px; }
.cm--ai { justify-self: start; background: var(--color-paper-2); border-bottom-left-radius: 4px; }
.cm--run { justify-self: start; background: transparent; color: var(--color-ink-2); font-size: var(--text-xs); font-weight: 700; padding: 0 4px; }
.cm__gear { display: inline-block; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cm--card { display: grid; gap: 6px; width: 92%; border: 1.5px solid var(--color-ink); background: var(--color-card); }
.cm--card em { font-style: normal; font-size: var(--text-xs); font-weight: 700; color: var(--color-ok); }
.cm__row { display: grid; grid-template-columns: 1fr; gap: 3px; font-size: var(--text-xs); }
.cm__row i { display: block; height: 8px; border-radius: 4px; background: var(--color-ok); width: 0; }
.js .chatmock .cm { opacity: 0; transform: translateY(10px); }
.chatmock.in .cm { animation: cm-in .5s var(--m-ease, ease) forwards; }
.chatmock.in .cm:nth-child(1) { animation-delay: .3s; }
.chatmock.in .cm:nth-child(2) { animation-delay: 1.2s; }
.chatmock.in .cm:nth-child(3) { animation-delay: 2.1s; }
.chatmock.in .cm:nth-child(4) { animation-delay: 3.2s; }
.chatmock--sm.in .cm:nth-child(3) { animation-delay: 2.1s; }
.chatmock.in .cm__row i { animation: grow 1s ease-out 3.8s forwards; }
.chatmock--sm.in .cm__row i { animation-delay: 2.7s; }
@keyframes cm-in { to { opacity: 1; transform: none; } }
@keyframes grow { to { width: var(--w); } }
.chatmock figcaption { font-size: var(--text-xs); color: var(--color-ink-3); padding: 6px 12px 10px; }
.termmock { margin-top: var(--space-lg); border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--color-on-night-2); max-width: 720px; }
.termmock__bar { background: var(--color-night-2); color: var(--color-on-night-2); border-color: var(--color-on-night-2); }
.termmock pre { margin: 0; padding: 14px 16px; background: oklch(14% 0.01 90); color: oklch(92% 0.02 90); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-sm); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-p { color: var(--color-cover); } .t-ok { color: oklch(78% 0.17 150); } .t-run { color: var(--color-cover); animation: spark 1s ease-in-out infinite; }
.t-cur { animation: blink 1s steps(2) infinite; }

/* engine */
.engine { margin: var(--space-md) 0 var(--space-sm); }
.engine svg { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; overflow: visible; }
.eg circle { fill: var(--color-card); stroke: var(--color-ink); stroke-width: 3; }
.eg text { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-anchor: middle; fill: var(--color-ink); }
.eg--1 circle { fill: var(--color-cover); } .eg--4 circle { fill: var(--color-cover); }
.eg__flow { fill: none; stroke: var(--color-ink); stroke-width: 4; stroke-dasharray: 8 10; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.eg__gear circle { fill: var(--color-sq-red); } .eg__gear .eg__hole { fill: var(--color-paper-2); }
.eg__gear { animation: none; }

/* ---------- thank-you ---------- */
.ty-wait { margin-top: var(--space-md); color: var(--color-ink-2); }
#ty-missing, #ty-pending { margin-top: var(--space-md); }
.summary__items .summary__sub { color: var(--color-ink-2); border-top: var(--rule); padding-top: 0.3rem; margin-top: 0.2rem; }
.ty-tax { background: var(--color-ok-soft); color: var(--color-ink); border-radius: var(--radius-sm); padding: 0.3rem 0.6rem; }
.tile__who { font-size: var(--text-xs) !important; font-weight: 700; text-transform: none; color: var(--color-ink-3) !important; margin: 0; }
.tile__body .btn { justify-self: start; margin-top: var(--space-2xs); }
.tile__img--art { aspect-ratio: 16 / 9; }
.tile__img--art svg { width: 70%; max-width: 280px; height: auto; overflow: visible; }
.art-audit { background: color-mix(in oklch, var(--color-cover) 45%, var(--color-card)); }
.g-track { fill: none; stroke: var(--color-paper-3); stroke-width: 14; stroke-linecap: round; }
.g-val { fill: none; stroke: var(--color-ink); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.tile.in .g-val { animation: dash 1.4s ease-out .3s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.g-needle { stroke: var(--color-sq-red); stroke-width: 5; stroke-linecap: round; transform-origin: 100px 100px; transform: rotate(-110deg); }
.tile.in .g-needle { animation: needle 1.4s var(--ease-pop, ease) .3s forwards; }
@keyframes needle { to { transform: rotate(0deg); } }
.g-hub { fill: var(--color-ink); } .g-txt { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-anchor: middle; fill: var(--color-ink); }
.art-expert { background: oklch(36% 0.06 160); }
.c-ring { fill: none; stroke: oklch(74% 0.11 80); stroke-width: 6; }
.c-face { fill: oklch(30% 0.05 160); }
.c-needle { fill: oklch(80% 0.12 80); transform-origin: 100px 60px; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(24deg); } }
.c-hub { fill: oklch(30% 0.05 160); stroke: oklch(80% 0.12 80); stroke-width: 2; }
.c-n { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-anchor: middle; fill: oklch(80% 0.12 80); }
.art-live { background: oklch(24% 0.03 250); }
.p-body { fill: oklch(18% 0.02 250); stroke: oklch(80% 0.13 200); stroke-width: 3; }
.p-screen { fill: oklch(30% 0.04 250); }
.p-live { fill: oklch(68% 0.22 0); animation: spark 1s ease-in-out infinite; }
.p-line { stroke: oklch(80% 0.13 200); stroke-width: 4; stroke-linecap: round; }
.p-wave { fill: none; stroke: oklch(68% 0.22 0); stroke-width: 4; stroke-linecap: round; animation: spark 1.6s ease-in-out infinite; }
.art-guide { background: oklch(28% 0.06 265); }
.e-gear circle { fill: oklch(88% 0.2 125); } .e-gear .e-hole { fill: oklch(28% 0.06 265); }
.e-gear--a { transform-origin: 78px 62px; animation: spin 6s linear infinite; }
.e-gear--b { transform-origin: 128px 44px; animation: spin 4s linear infinite reverse; }
.e-gear circle:first-child { stroke: oklch(88% 0.2 125); stroke-width: 8; stroke-dasharray: 6 6; }
.e-base { stroke: oklch(88% 0.2 125); stroke-width: 4; stroke-linecap: round; }
.e-spark { stroke: oklch(88% 0.2 125); stroke-width: 4; stroke-linecap: round; animation: spark 1.2s ease-in-out infinite; }
.tile--wide { grid-column: 1 / -1; }

/* ---- Skill robots (img/robots · 29 Oct 2026: one "employee" per Skill, replaces the paper-card box) ---- */
.bots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(520px, 100%); margin-inline: auto; }
.bots img { display: block; width: 100%; aspect-ratio: 1136 / 1408; object-fit: cover; border-radius: 12px; border: 2px solid var(--color-ink); background: #fff; box-shadow: 3px 3px 0 var(--color-ink); }
.bots img:nth-child(4n+2) { transform: translateY(6px); }
.bots img:nth-child(4n+3) { transform: translateY(-6px); }
.bots-banner { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 2px solid var(--color-ink); box-shadow: 4px 4px 0 var(--color-ink); background: #fff; margin-top: var(--space-md); }
.mpart li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: center; }
.mpart li img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--color-ink); background: #fff; }
.buybox > img.bots-banner { width: min(520px, 100%); margin-top: 0; filter: none; }
li > img.bot { float: left; width: 40px; height: 50px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--color-ink); background: #fff; margin: 2px 10px 2px 0; }
li:has(> img.bot) { overflow: hidden; }

/* 30 Oct 2026 · VAT-included lines + upsell video slot (B02) with poster fallback (config.js upsell.voomlyId / videoUrl / poster) */
.summary__items .summary__note { color: var(--color-ink-2); font-size: 0.85em; }
.up-video--frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 3px solid var(--color-ink); border-radius: var(--radius-md); box-shadow: 8px 8px 0 var(--color-ink); background: var(--color-ink); }
.up-video--frame iframe, .up-video--frame video, .up-video--frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.up-video--poster img { object-position: center 40%; }
.up-video__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.9rem; background: linear-gradient(to top, rgba(26,24,18,0.85), rgba(26,24,18,0)); color: #fff; font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.wall-more { margin-top: var(--space-md); font-size: 0.95rem; color: var(--color-ink-2); line-height: 1.8; }
.wall-more a { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* 31 Oct 2026 · kit hero: headline full width, video right under it (first screen rule), copy + robots below */
.oto-hero > .wrap > .oto-h1 { margin-top: var(--space-md); max-width: 22ch; }
@media (min-width: 60rem) { .oto-hero > .wrap > .oto-h1 { max-width: none; } .oto-hero > .wrap > .oto-h1 .m-line { display: inline; } .oto-hero > .wrap > .oto-h1 .m-line + .m-line::before { content: " "; } }
.oto-video { max-width: 800px; margin: var(--space-sm) 0 var(--space-md); }
/* 31 Oct 2026 · RULE (Tum): the VSL sits in the first screen. Phone: kicker → headline → video → copy/buy (desktop keeps 2 columns) */
@media (max-width: 59.99rem) {
  .bh__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .bh__copy { display: contents; }
  .bh__copy > .kicker { order: 1; }
  .bh__h1 { order: 2; }
  .bh__media { order: 3; margin: var(--space-sm) 0 var(--space-md); }
  .bh__sub { order: 4; }
  .bh__buy { order: 5; }
  .bh__trust { order: 6; }
}
.oto-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2xs); max-width: 800px; margin: 0 0 var(--space-md); }
.oto-cta .oto-price { margin: var(--space-2xs) 0 0; }
/* 31 Oct 2026 · STANDARD (Tum): main button DIRECTLY under the VSL, price under the button (phone + desktop) */
.bh__copy { display: contents; }
.bh__buy .btn { order: -1; }
.bh__buy .price { order: 0; }
.bh__buy .vat-note { order: 1; }
@media (max-width: 59.99rem) {
  .bh__media { order: 3; margin: var(--space-sm) 0 var(--space-xs); padding-bottom: 0; }
  .bh__media .bh__book { display: none; }
  .bh .video-note { padding-right: 0; }
  .bh__buy { order: 4; margin-top: var(--space-xs); }
  .bh__sub { order: 5; margin-top: var(--space-md); }
  .bh__trust { order: 6; }
}
@media (min-width: 60rem) {
  .bh__grid { grid-template-areas: "kick media" "h1 media" "sub media" "trust buy"; grid-template-rows: auto auto auto 1fr; align-items: start; row-gap: 0; }
  .bh__copy > .kicker { grid-area: kick; }
  .bh__h1 { grid-area: h1; }
  .bh__sub { grid-area: sub; }
  .bh__trust { grid-area: trust; }
  .bh__media { grid-area: media; align-self: end; }
  .bh__buy { grid-area: buy; margin-top: var(--space-sm); }
}
@media (max-width: 40rem) { .oto-cta { align-items: stretch; } .oto-cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; font-size: var(--text-lg); } }
/* desktop: video + its button both inside the first screen (≈860px tall laptop) */
@media (min-width: 60rem) { .oto-video, .oto-cta { max-width: 680px; } .oto-hero > .wrap > .oto-h1 { margin-top: var(--space-sm); } .bh__media { padding-bottom: 28px; } }
.oto-vwrap { position: relative; max-width: 800px; margin-top: calc(var(--space-sm) + 14px); }
.oto-vwrap .oto-video { margin-top: 0; }
.oto-vstk { position: absolute; top: -20px; left: -6px; z-index: 3; }
@media (min-width: 60rem) { .oto-vwrap { max-width: 680px; } }
@media (max-width: 40rem) { .oto-cta .btn { white-space: nowrap; font-size: 1rem; padding-inline: 14px; gap: 8px; } }
/* 31 Oct 2026 · kit headline = Tum's offer question (kicker + question + price note), sized so the video stays in the first screen */
.oto-h1--offer { font-size: clamp(1.45rem, 1.05rem + 2vw, 2.5rem); line-height: 1.35; max-width: 28ch; }
@media (min-width: 60rem) { .oto-hero > .wrap > .oto-h1--offer { max-width: 34ch; } }
.oto-h1-kick { display: block; font-size: .62em; color: var(--color-error); margin-bottom: 4px; }
.oto-h1-note { display: block; font-size: .6em; margin-top: 4px; color: var(--color-ink-2); }
@media (min-width: 60rem) { .oto-vwrap, .oto-video, .oto-cta { max-width: 600px; } .oto-h1--offer { font-size: 2.2rem; } }

/* ORDER BUMP · no Stack (Tum 1 Nov 2026): description + "ทำไมคุ้ม" (amplify + justify) + price · OTO pages: oto-v5.css */
.bump__why { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #F4F1EA; font-size: var(--text-sm); line-height: 1.6; color: var(--color-ink-2); }
.bump__why b { color: var(--color-ink); }

/* kit/ hero on short desktop screens (1280×800, 1366×768): the buy button must end inside the first screen even with the
 * "ชำระค่าหนังสือแล้ว" chip showing (video-first rule, Tum 31 Oct 2026). Tighter top spacing + the video shrinks with the viewport height. (1 Nov 2026) */
@media (min-width: 60rem) and (max-height: 960px) {
  body[data-page="upsell"] .oto-hero { padding-top: 12px; }
  body[data-page="upsell"] .oto-hero .oto-alert, body[data-page="upsell"] .oto-hero .paid-chip { margin-top: 8px; margin-bottom: 8px; }
  body[data-page="upsell"] .oto-h1--offer { margin-block: 6px 0; }
  body[data-page="upsell"] .oto-vwrap { margin-top: 26px; max-width: min(600px, calc((100svh - 470px) * 16 / 9)); }
  body[data-page="upsell"] .oto-vwrap .oto-video { margin-bottom: 14px; }
}

/* ---- thank-you Step 1-2-3 (Carl 21 Nov 2026 · R-260: one button, at step 1) ---- */
.ty-steps--auto { counter-reset: tys; margin-top: var(--space-md); }
.ty-steps--auto > li { counter-increment: tys; }
.ty-steps--auto > li::before { content: counter(tys); width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--color-cover); border: 2px solid var(--color-ink); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); }
.ty-steps--auto > li[hidden] { display: none; }
.ty-steps--auto .h3 { margin-top: 0; }
.ty-steps--auto .line-qr { margin-top: var(--space-sm); }
.ty-link { font-weight: 700; color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.ty-more { padding-block: var(--space-md) var(--space-lg); }
.ty-more .wall-more { margin-top: 0; }
.ty-more small { font-size: 0.8125rem; }

/* header buy button 16px (Blake 21 Nov) */
.top__in .btn--sm { font-size: 1rem; }
