/* AI sebagai pekerja digital SME: landing page.
   Tokens come from the ebook itself: deep teal ink, chartreuse (Ari's vest),
   cream callouts, Mona Sans for headings, Georgia for reading text. */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("../fonts/Gelasio-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("../fonts/Gelasio-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0e2c2d;
  --teal: #1b5e5e;
  --lime: #deed70;
  --cream: #faf5dc;
  --paper: #fbf9ed;
  --white: #fff;
  --muted: #435a53;
  --rule: rgba(14, 44, 45, 0.22);
  --rule-light: rgba(251, 249, 237, 0.22);
  --danger: #8a1c14;

  --sans: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, Gelasio, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
  --focus: var(--teal);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 18px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:target { scroll-margin-top: 72px; }
section[id] { scroll-margin-top: 60px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 10px 16px; background: var(--lime); color: var(--ink);
  font: 700 15px var(--sans); border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */

.h2 {
  max-width: 28ch;
  margin: 0 0 clamp(28px, 4vw, 44px);
  font: 800 clamp(28px, 3.8vw, 44px)/1.12 var(--sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2--light { color: var(--paper); }
.h3 {
  margin: 0 0 6px;
  font: 700 19px/1.3 var(--sans);
  letter-spacing: -0.01em;
}
.lead {
  max-width: 56ch;
  margin: calc(-1 * clamp(10px, 2vw, 22px)) 0 clamp(28px, 4vw, 44px);
  color: var(--muted);
  font-size: 20px;
}
.note {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--lime); color: var(--ink);
  border: 2px solid var(--lime); border-radius: 4px;
  font: 700 17px/1.2 var(--sans);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: #e9f493; border-color: #e9f493; color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--wide { width: 100%; background: var(--ink); border-color: var(--ink); color: var(--lime); }
.btn--wide:hover { background: var(--teal); border-color: var(--teal); color: var(--lime); }
.btn--go::after {
  content: "\2192";
  content: "\2192" / "";
  margin-left: 0.6em;
}
.btn--go:disabled::after { display: none; }

/* ---------- top bar ---------- */

.bar {
  --focus: var(--lime);
  position: sticky; top: 0; z-index: 10;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-light);
}
.bar__in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.bar__mark { display: flex; align-items: baseline; gap: 12px; margin-right: auto; text-decoration: none; }
.bar__ai { color: var(--paper); font: 800 18px var(--sans); letter-spacing: -0.01em; }
.bar__ed { color: var(--lime); font: 600 14px var(--sans); }
.bar__nav { display: flex; gap: 26px; }
.bar__nav a { color: var(--paper); font: 500 15px var(--sans); text-decoration: none; }
.bar__nav a:hover { color: var(--lime); }

/* ---------- hero ---------- */

.hero { --focus: var(--lime); background: var(--ink); color: var(--paper); }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 88px);
}
.hero__kicker { max-width: 34em; margin: 0 0 20px; color: var(--lime); font: 600 16px/1.45 var(--sans); }
.hero__title {
  margin: 0 0 28px;
  font: 800 clamp(32px, 4vw, 50px)/1.08 var(--sans);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__lime { color: var(--lime); }
.hero__lead { max-width: 36em; margin: 0 0 20px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; }
.hero__body { max-width: 36em; margin: 0 0 32px; color: rgba(251, 249, 237, 0.82); font-size: 17px; }
.hero__body p { margin: 0 0 0.9em; }
.hero__body p:last-child { margin-bottom: 0; }
.hero__body strong { color: var(--paper); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__price { margin: 20px 0 0; color: var(--lime); font: 700 22px var(--sans); }
.hero__price small { color: var(--paper); font: 400 16px var(--serif); }
.facts {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  margin: 36px 0 0; padding: 18px 0 0; list-style: none;
  border-top: 1px solid var(--rule-light);
  color: var(--paper); font: 500 15px var(--sans);
}
.facts li + li::before { content: "\2022"; margin: 0 12px; color: var(--lime); }

.hero__stage {
  display: grid; place-items: center;
  padding: clamp(28px, 5vw, 60px);
  background: var(--lime);
  border-radius: 6px;
}

/* The cover is rebuilt in CSS so it can say what the PDF cover says,
   without the reader-draft label, at any size. */
.cover {
  container-type: inline-size;
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px 7px 7px 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 38px 56px -28px rgba(14, 44, 45, 0.7),
    0 10px 18px -8px rgba(14, 44, 45, 0.4);
  transform: rotate(-2.5deg);
}
.cover::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3cqw;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.06) 70%, transparent);
}
.cover p { margin: 0; }
.cover__top {
  position: absolute; left: 10.4cqw; right: 10.4cqw; top: 7.4cqw;
  display: flex; justify-content: space-between;
  color: var(--lime); font: 600 2.15cqw var(--sans); letter-spacing: 0.02em;
}
.cover__title {
  position: absolute; left: 10.4cqw; right: 8cqw; top: 15cqw;
  font: 800 10.6cqw/1.02 var(--sans); letter-spacing: -0.03em;
}
.cover__title span { display: block; color: var(--lime); }
.cover__sub { position: absolute; left: 10.4cqw; width: 66cqw; top: 59cqw; font-size: 3.5cqw; line-height: 1.4; }
.cover__tag { position: absolute; left: 10.4cqw; width: 40cqw; top: 82cqw; }
.cover__tagline { color: var(--lime); font: 800 5.4cqw/1.15 var(--sans); letter-spacing: -0.02em; }
.cover__body { margin-top: 3cqw !important; font-size: 3.15cqw; line-height: 1.45; }
.cover__ari { position: absolute; right: 5cqw; bottom: 19.5cqw; width: 37cqw; height: auto; }
.cover__foot {
  position: absolute; left: 10.4cqw; right: 10.4cqw; bottom: 0; padding: 4.5cqw 0 6cqw;
  border-top: 1px solid var(--rule-light);
  font: 600 2.4cqw/1.5 var(--sans);
}

@media (prefers-reduced-motion: no-preference) {
  .cover { animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes settle {
    from { transform: translateY(24px) rotate(-6deg); opacity: 0; }
    to { transform: translateY(0) rotate(-2.5deg); opacity: 1; }
  }
}

/* ---------- sections ---------- */

.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec--cream { background: var(--cream); }
.sec--rule { border-top: 1px solid var(--rule); }
.sec:not(.sec--cream) > .wrap > .btn { margin-top: 8px; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.split__text p { margin: 0 0 1.1em; max-width: 34em; }
.split__lead { margin: 0 0 22px; font: 700 20px/1.4 var(--sans); }

/* 02 problem */
.day { margin: 0; padding: 0; list-style: none; }
.day li { padding: 18px 0; border-top: 1px solid var(--rule); font-size: 20px; line-height: 1.55; }
.day li:last-child { border-bottom: 1px solid var(--rule); }
.turn { max-width: 44em; margin-top: clamp(44px, 6vw, 72px); padding-left: 26px; border-left: 4px solid var(--teal); }
.turn p { margin: 0 0 22px; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 4px; font: 700 15px var(--sans); }

/* 03 outcome */
.not { max-width: 32em; margin-bottom: clamp(40px, 6vw, 64px); }
.not p { margin: 0 0 12px; font: 600 clamp(20px, 2.3vw, 26px)/1.35 var(--sans); letter-spacing: -0.01em; }
.not strong { box-shadow: inset 0 -0.38em 0 var(--lime); font-weight: 800; }
.benefits {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 72px);
  margin: 0; padding: 0; list-style: none;
}
.benefits li { padding-top: 20px; border-top: 6px solid var(--teal); }
.benefits .h3 { margin-bottom: 8px; font-size: clamp(20px, 2.2vw, 24px); }
.benefits p { margin: 0; max-width: 28em; }
.bridge { max-width: 30em; margin: clamp(40px, 6vw, 64px) 0 0; font: 700 clamp(20px, 2.3vw, 26px)/1.4 var(--sans); letter-spacing: -0.01em; }
.bridge strong { color: var(--teal); }

/* 04 mechanism */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 64px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--lime);
  border-radius: 50%; font: 800 20px var(--sans);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px;
  width: 2px; background: var(--rule);
}
.steps p { margin: 0; max-width: 30em; font-size: 19px; }
.pull {
  max-width: 28em; margin: clamp(36px, 5vw, 64px) 0 0; padding-left: 26px;
  border-left: 8px solid var(--teal);
  font: 800 clamp(24px, 3.2vw, 36px)/1.2 var(--sans); letter-spacing: -0.02em;
}

/* 05 demonstration */
.demo { --focus: var(--lime); padding-block: clamp(56px, 8vw, 104px); background: var(--ink); color: var(--paper); }
.demo__label {
  display: inline-block; margin: 0 0 28px; padding: 6px 12px;
  border: 1.5px solid var(--lime); border-radius: 4px;
  color: var(--lime); font: 700 14px/1.4 var(--sans);
}
.cmp { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.cmp__col { padding: clamp(22px, 3vw, 32px); }
.cmp__col--before { border: 1.5px dashed var(--rule-light); }
.cmp__col--after { background: var(--paper); color: var(--ink); border-left: 8px solid var(--lime); }
.cmp__head { margin: 0 0 14px; font: 700 15px var(--sans); }
.cmp__col--before .cmp__head { color: rgba(251, 249, 237, 0.7); }
.cmp__col--after .cmp__head { color: var(--teal); }
.cmp__quote { margin: 0; }
.cmp__quote p { margin: 0; font: 400 17px/1.65 var(--sans); }
.cmp__col--before .cmp__quote p { font-size: 22px; font-weight: 500; }
.cmp__why { margin: 18px 0 0; color: rgba(251, 249, 237, 0.82); font-size: 16px; line-height: 1.6; }
.cmp__why b { color: var(--paper); }
.demo__payoff { max-width: 40em; margin: clamp(28px, 4vw, 44px) 0 28px; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; }
.demo__payoff strong { color: var(--lime); }

/* 06 contents */
.chap {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 80px);
  margin: 0; padding: 0; list-style: none;
}
.chap li {
  display: grid; grid-template-columns: clamp(52px, 6vw, 72px) minmax(0, 1fr);
  gap: 0 8px; padding: 20px 0; border-top: 1px solid var(--rule);
}
.chap__no { color: var(--teal); font: 800 clamp(34px, 4vw, 46px)/1 var(--sans); letter-spacing: -0.04em; }
.chap__title { margin: 0 0 6px; font: 700 clamp(18px, 1.9vw, 21px)/1.25 var(--sans); letter-spacing: -0.015em; }
.chap p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.chap__foot { max-width: 44em; margin: 28px 0 0; padding-top: 24px; border-top: 2px solid var(--ink); font: 600 19px/1.5 var(--sans); }

/* 07 fit */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fit .h3 { margin-bottom: 10px; font-size: 21px; }
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 14px 0; border-top: 1px solid var(--rule); }
.fit__not { padding: clamp(22px, 3vw, 34px); background: var(--white); }
.fit__not .plain li:first-child { border-top: 0; }
.close { max-width: 34em; margin: clamp(36px, 5vw, 56px) 0 0; font: 700 clamp(20px, 2.3vw, 26px)/1.4 var(--sans); letter-spacing: -0.01em; }
.close strong { color: var(--teal); }

/* 08 previews */
.previews {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px);
  margin: 0; padding: 0; list-style: none;
}
.previews figure { margin: 0; }
.previews a { display: block; }
.previews img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 18px 28px -20px rgba(14, 44, 45, 0.55);
}
.previews figcaption { margin-top: 12px; font: 600 15px/1.3 var(--sans); }

/* 09 offer */
.offer__main {
  max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); padding: clamp(22px, 3vw, 32px);
  background: var(--ink); color: var(--paper); border-left: 8px solid var(--lime);
}
.offer__name { margin: 0 0 10px; color: var(--lime); font: 800 clamp(24px, 3.2vw, 36px)/1.1 var(--sans); letter-spacing: -0.02em; }
.offer__main p { margin: 0; max-width: 40em; }
.gifts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
  margin: 0; padding: 0; list-style: none;
}
.gifts li { padding-top: 22px; border-top: 6px solid var(--teal); }
.gifts__tag {
  display: inline-block; margin: 0 0 14px; padding: 4px 10px;
  background: var(--lime); color: var(--ink); border-radius: 3px;
  font: 700 14px/1.3 var(--sans);
}
.gifts__img {
  display: block; width: 100%; max-width: 240px; height: auto; margin: 0 0 20px;
  border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 18px 28px -20px rgba(14, 44, 45, 0.55);
}
.gifts__img--ari { aspect-ratio: 520 / 735; padding: 14px 18px 0; background: var(--white); object-fit: contain; }
.gifts__name { margin: 0 0 10px; font: 800 clamp(22px, 2.5vw, 28px)/1.1 var(--sans); letter-spacing: -0.02em; }
.gifts p { margin: 0; max-width: 24em; }
.offer__price { margin: 28px 0 8px; font: 800 clamp(24px, 3vw, 34px)/1.2 var(--sans); letter-spacing: -0.02em; }
.offer__price strong { color: var(--teal); }
.sec--cream > .wrap > .btn { margin-top: 28px; }

/* ---------- faq ---------- */

.faq { max-width: 760px; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  position: relative; padding: 20px 44px 20px 0;
  font: 700 19px/1.35 var(--sans); letter-spacing: -0.01em;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  color: var(--teal); font: 500 28px/1 var(--sans);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; max-width: 60ch; color: var(--muted); }

/* ---------- closing ---------- */

.final__in {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
  gap: clamp(24px, 5vw, 64px); align-items: end;
}
.final__copy p { max-width: 34em; margin: 0 0 1.1em; }
.final__copy .h2 { max-width: 24ch; }
.final__price { font: 800 clamp(22px, 2.6vw, 30px)/1.25 var(--sans); letter-spacing: -0.02em; }
.final__price strong { color: var(--teal); }
.final__copy .btn { margin-top: 12px; }
.final__copy .note { margin-top: 16px; }
.final__ari { display: block; width: min(100%, 280px); height: auto; margin-inline: auto; }

/* ---------- checkout ---------- */

.buy { --focus: var(--lime); background: var(--ink); color: var(--paper); padding-block: clamp(48px, 7vw, 96px); }

/* Checkout card: the look of the level cards on the main page (white card, lime panel with Ari, hard shadow), with the form inside. */
.pay {
  --focus: var(--teal);
  display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 40px);
  max-width: 960px; margin-inline: auto; padding: clamp(18px, 2.6vw, 30px);
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 8px; box-shadow: 8px 9px 0 var(--teal);
}
.pay .pay__art { padding: 56px 18px 0; }
.pay .pay__art > img { max-width: 200px; }
.pay .pay__art:has(.fan) { align-items: center; padding-bottom: 28px; }
.pay__body { min-width: 0; }
.pay__name { margin: 0 0 12px; font: 800 clamp(30px, 4.2vw, 46px)/1.05 var(--sans); letter-spacing: -0.025em; text-wrap: balance; }
.pay__price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; color: var(--muted); font: 600 15px var(--sans); }
.pay__price .level__price { padding: 3px 16px; font-size: 20px; }
.pay__line { max-width: 36em; margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.pay .form { padding: 0; background: none; border-radius: 0; }
.pay__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pay__fields .field--wide { grid-column: 1 / -1; }
.pay .agree { margin-top: 2px; }
.pay .form__fine { margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .pay .pay__art > img { animation: bob 3.4s ease-in-out infinite; }
}

.form {
  --focus: var(--teal);
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper); color: var(--ink); border-radius: 6px;
}
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font: 700 15px var(--sans); }
.opt { color: var(--muted); font-weight: 500; }
.field input {
  width: 100%; min-height: 50px; padding: 11px 14px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid rgba(14, 44, 45, 0.5); border-radius: 4px;
  font: 400 17px var(--sans);
}
.field input:focus-visible { outline-offset: 1px; border-color: var(--teal); }
.field input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.hint { margin: 6px 0 0; color: var(--muted); font: 400 14px/1.4 var(--sans); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 22px; font-size: 16px; line-height: 1.5; }
.agree input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal); }
.form__status { min-height: 1.5em; margin: 14px 0 0; font: 600 15px/1.5 var(--sans); }
.form__status[data-kind="error"] { color: var(--danger); }
.form__status[data-kind="info"] { color: var(--teal); }
.form__fine { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form[data-closed] .btn--wide { background: var(--muted); border-color: var(--muted); color: var(--paper); }

/* ---------- mobile sticky button ---------- */

.sticky { display: none; }

/* ---------- footer ---------- */

.foot { --focus: var(--lime); background: var(--ink); color: var(--paper); border-top: 1px solid var(--rule-light); }
.foot a { color: var(--paper); }
.foot a:hover { color: var(--lime); }
.foot__in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; padding-block: 32px; font: 500 15px var(--sans); }
.foot__in p { margin: 0; }
.foot__name { margin-right: auto !important; font-weight: 800; }
.foot__name span { color: var(--lime); font-weight: 600; margin-left: 8px; }
.foot__fine { flex-basis: 100%; color: rgba(251, 249, 237, 0.7); font-size: 14px; }

/* ---------- document pages (terma, terima-kasih) ---------- */

.doc { padding-block: clamp(40px, 6vw, 80px); }
.doc h1 { max-width: 20ch; margin: 0 0 12px; font: 800 clamp(34px, 5vw, 56px)/1.05 var(--sans); letter-spacing: -0.03em; }
.doc h2 { margin: 44px 0 10px; font: 800 24px/1.2 var(--sans); letter-spacing: -0.015em; }
.doc p, .doc li { max-width: 62ch; }
.doc ul { padding-left: 1.2em; }
.doc__meta { color: var(--muted); font: 500 15px var(--sans); }

.thanks { padding-block: clamp(40px, 7vw, 96px); }
.thanks__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.thanks h1 { max-width: 16ch; margin: 0 0 16px; font: 800 clamp(34px, 5.4vw, 60px)/1.04 var(--sans); letter-spacing: -0.03em; }
.thanks__lead { max-width: 34em; margin: 0 0 28px; font-size: 20px; }
.thanks__ari { width: min(100%, 320px); margin-inline: auto; }
.downloads { max-width: 640px; margin: 0 0 24px; padding: 0; list-style: none; }
.downloads li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); font: 700 18px/1.3 var(--sans); }
.downloads li:last-child { border-bottom: 1px solid var(--rule); }
.downloads small { display: block; color: var(--muted); font: 400 14px var(--sans); }
.downloads .btn { flex: none; min-height: 44px; padding: 0 20px; background: var(--ink); border-color: var(--ink); color: var(--lime); font-size: 15px; }
.downloads .btn:hover { background: var(--teal); border-color: var(--teal); }
.thanks__note { max-width: 56ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.start { max-width: 640px; margin: 36px 0 0; padding-top: 24px; border-top: 2px solid var(--ink); }
.start h2 { margin: 0 0 12px; font: 800 clamp(22px, 2.6vw, 28px)/1.15 var(--sans); letter-spacing: -0.02em; }
.start ol { margin: 0 0 16px; padding-left: 1.3em; }
.start li { margin: 10px 0; }
.start__note { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.start code { padding: 1px 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; font: 500 0.88em ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__in, .split, .cmp, .fit, .final__in, .thanks__in { grid-template-columns: minmax(0, 1fr); }
  .gifts { grid-template-columns: minmax(0, 1fr); }
  .gifts li { max-width: 560px; }
  .hero__stage { padding: 28px 20px 36px; }
  .cover { width: min(100%, 300px); }
  .final__ari { width: min(60%, 220px); margin-inline: 0; }
  .bar__nav { display: none; }
  .previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .chap, .benefits { grid-template-columns: minmax(0, 1fr); }
  .pay { grid-template-columns: minmax(0, 1fr); }
  .pay .pay__art { padding: 44px 18px 0; }
  .pay .pay__art > img { max-width: 100px; }
  .pay .pay__art:has(.fan) { padding-bottom: 24px; }
  .pay .fan { max-width: 240px; }
  .pay__fields { grid-template-columns: minmax(0, 1fr); }

  .bar .btn { display: none; }
  .sticky {
    position: fixed; inset: auto 0 0 0; z-index: 15;
    display: flex; align-items: center; gap: 14px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--rule-light);
  }
  .sticky .btn { flex: 1; min-height: 48px; padding: 0 16px; font-size: 16px; }
  .sticky__price { margin: 0; color: var(--lime); font: 800 20px/1 var(--sans); white-space: nowrap; }
  .foot { padding-bottom: 72px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero__cta .btn, .demo .btn, .sec--cream > .wrap > .btn, .final__copy .btn { width: 100%; }
  .downloads li { flex-direction: column; align-items: stretch; }
  .downloads .btn { width: 100%; }
}

/* ---------- series pages (Kit Agent, and the other books later) ---------- */

/* A short list of files, shown as a plain text tree. */
.tree {
  margin: 18px 0 0; padding: 18px 20px; overflow-x: auto;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  color: var(--ink); font: 500 15px/1.7 ui-monospace, "Cascadia Mono", Consolas, monospace;
  white-space: pre;
}
.cmp .tree { white-space: pre-wrap; overflow-wrap: anywhere; }
.offer__lab {
  max-width: 760px; margin-top: clamp(32px, 5vw, 52px); padding: clamp(22px, 3vw, 32px);
  background: var(--white); border: 1.5px solid var(--ink); border-left: 8px solid var(--lime);
}
.offer__lab p { margin: 0; max-width: 42em; }
.offer__lab .gifts__tag { margin-bottom: 10px; }

/* "Before you buy": what you need, what it costs, what was and was not tested. */
.need { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px) clamp(28px, 5vw, 72px); }
.need li { padding-top: 18px; border-top: 6px solid var(--teal); }
.need p { margin: 0; max-width: 32em; }
.need a { overflow-wrap: anywhere; }

.guarantee {
  max-width: 760px; padding: clamp(22px, 3vw, 34px);
  background: var(--cream); border-left: 8px solid var(--teal);
}
.guarantee__tag { margin: 0 0 8px; color: var(--teal); font: 700 14px/1.3 var(--sans); letter-spacing: 0.03em; text-transform: uppercase; }
.guarantee h2 { margin: 0 0 14px; font: 800 clamp(24px, 3vw, 34px)/1.12 var(--sans); letter-spacing: -0.02em; }
.guarantee p { margin: 0 0 12px; max-width: 42em; }
.guarantee p:last-child { margin-bottom: 0; }

.ladder {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px);
  margin: 0; padding: 0; list-style: none;
}
.ladder li { padding-top: 16px; border-top: 6px solid var(--rule); }
.ladder li[aria-current] { border-top-color: var(--teal); }
.ladder__no { margin: 0 0 4px; color: var(--teal); font: 700 14px/1.3 var(--sans); letter-spacing: 0.03em; text-transform: uppercase; }
.ladder__name { margin: 0 0 6px; font: 800 20px/1.2 var(--sans); letter-spacing: -0.015em; }
.ladder p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.ladder .ladder__no { margin-bottom: 4px; }

/* Pack page: the four covers side by side in the hero. */
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); width: min(100%, 420px); margin: 0; padding: 0; list-style: none; }
.covers img { display: block; width: 100%; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: 0 18px 28px -18px rgba(14, 44, 45, 0.7); }

/* Terms page: the guarantee stands out from the rest of the text. */
.doc__box { max-width: 62ch; margin: 18px 0; padding: 16px 22px; background: var(--cream); border-left: 6px solid var(--teal); }
.doc__box p, .doc__box li { max-width: none; }
.doc h3 { margin: 26px 0 6px; font: 700 19px/1.3 var(--sans); }

/* Thank-you page: help group. */
.thanks__support { max-width: 640px; margin: 28px 0 0; padding: 16px 22px; background: var(--cream); border-left: 6px solid var(--teal); }
.thanks__support h2 { margin: 0 0 6px; font: 800 20px/1.25 var(--sans); }
.thanks__support p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.thanks__support p:last-child { margin-bottom: 0; }
.thanks__support div + div { margin-top: 16px; }
.thanks__steps { margin: 0 0 12px; padding-left: 1.3em; }
.thanks__steps li { margin: 8px 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.thanks__fine { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 900px) {
  .need { grid-template-columns: minmax(0, 1fr); }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ladder { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- main page (hub): Ari's bubble, the trail, the pack, the four levels, three rules ---------- */

.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.btn--dark:hover { background: var(--teal); border-color: var(--teal); color: var(--lime); }

/* Ari and his speech bubble in the hero. */
.hub-stage { align-content: center; gap: clamp(20px, 3vw, 30px); }
.bubble {
  position: relative; width: min(100%, 360px); padding: 16px 20px 14px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 5px 0 var(--ink);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -10px;
  width: 20px; height: 20px; background: var(--paper);
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.bubble__text { min-height: 2.5em; margin: 0 0 10px; font: 800 clamp(20px, 2.3vw, 25px)/1.2 var(--sans); letter-spacing: -0.02em; }
.bubble__more {
  min-height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--lime); border: 0; border-radius: 4px;
  font: 700 15px var(--sans); cursor: pointer;
}
.bubble__more:hover { background: var(--teal); }
.hub-stage__ari { display: block; width: min(100%, 250px); height: auto; }

/* Intro of the levels section: tag, big heading with a lime swipe, lead. */
.path-intro { max-width: 780px; margin-bottom: clamp(26px, 4vw, 40px); }
.path-intro__tag {
  display: inline-block; margin: 0 0 16px; padding: 5px 14px;
  background: var(--ink); color: var(--lime); border-radius: 999px;
  font: 700 13px/1.3 var(--sans); letter-spacing: 0.05em; text-transform: uppercase;
}
.h2--path { max-width: 20ch; margin-bottom: 18px; font-size: clamp(32px, 5.2vw, 60px); line-height: 1.05; }
.swipe {
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 90% / 100% 0.34em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.path-intro__lead { max-width: 56ch; margin: 0; color: var(--muted); font-size: 20px; }

/* The trail: four stops joined by a line. */
.trail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 clamp(34px, 5vw, 54px); padding: 0; list-style: none; }
.trail__stop { position: relative; }
.trail__stop:nth-child(2) { --i: 1; }
.trail__stop:nth-child(3) { --i: 2; }
.trail__stop:nth-child(4) { --i: 3; }
.trail__stop::before, .trail__stop::after {
  content: ""; position: absolute; top: 24px; left: 50%; width: 100%; height: 6px; margin-top: -3px; border-radius: 3px;
}
.trail__stop::before { background: var(--rule); }
.trail__stop::after { background: var(--teal); transform-origin: 0 50%; }
.trail__stop:last-child::before, .trail__stop:last-child::after { display: none; }
.trail a { display: block; padding: 0 4px; color: var(--ink); text-align: center; text-decoration: none; }
.trail__dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 48px; height: 48px; margin: 0 auto 10px;
  background: var(--lime); border: 3px solid var(--ink); border-radius: 50%;
  font: 800 20px var(--sans);
}
.trail__dot::after { content: ""; position: absolute; inset: -3px; border: 3px solid var(--teal); border-radius: 50%; opacity: 0; }
.trail__name { display: block; font: 800 18px/1.2 var(--sans); letter-spacing: -0.01em; }
.trail__what { display: block; margin-top: 2px; color: var(--muted); font: 500 14px/1.3 var(--sans); }
.trail a:hover .trail__name { text-decoration: underline; text-underline-offset: 0.2em; }

/* One card per level, and the pack card above them. */
.levels {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 40px);
  margin: 0; padding: 0; list-style: none;
}
.levels > :nth-child(even) { --i: 1; }
.level {
  display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: clamp(14px, 2vw, 22px);
  padding: clamp(16px, 2.2vw, 26px); scroll-margin-top: 84px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 6px 7px 0 var(--ink);
}
.level__art {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  padding: 44px 8px 0; background: var(--lime); border-radius: 6px; overflow: hidden;
}
.level__art > img { display: block; width: 100%; max-width: 126px; height: auto; transform-origin: 50% 90%; }
.level__badge {
  position: absolute; left: 8px; top: 8px; z-index: 5;
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--ink); color: var(--lime); border-radius: 50%;
  font: 800 18px var(--sans);
}
.level__no { margin: 0 0 4px; color: var(--teal); font: 700 14px/1.3 var(--sans); letter-spacing: 0.03em; text-transform: uppercase; }
.level__name { margin: 0 0 8px; font: 800 clamp(24px, 2.6vw, 30px)/1.1 var(--sans); letter-spacing: -0.02em; }
.level__what { margin: 0 0 12px; font-size: 17px; line-height: 1.55; }
.level__pass { margin: 0 0 12px; padding: 10px 14px; background: var(--cream); border-left: 4px solid var(--teal); font-size: 15px; line-height: 1.5; }
.level__pass b { font: 700 14px var(--sans); }
.level__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px; color: var(--muted); font: 600 14px var(--sans); }
.level__price { padding: 2px 12px; background: var(--lime); color: var(--ink); border-radius: 999px; font-weight: 800; }

.level--pack {
  --focus: var(--lime);
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: clamp(18px, 3vw, 34px);
  margin-bottom: clamp(22px, 3.4vw, 40px);
  background: var(--ink); color: var(--paper); box-shadow: 6px 7px 0 var(--teal);
}
.level--pack .level__art { align-items: center; padding: 52px 22px 24px; }
.level--pack .level__no { color: var(--lime); }
.level--pack .level__name { color: var(--white); font-size: clamp(30px, 3.8vw, 46px); }
.level--pack .level__what, .level--pack .level__pass { max-width: 42em; }
.level--pack .level__pass { color: var(--ink); }
.level--pack .level__meta { color: rgba(251, 249, 237, 0.85); }
.level__badge--pill { width: auto; height: auto; padding: 6px 12px; border-radius: 999px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.level__save { padding: 2px 12px; border: 2px dashed var(--lime); border-radius: 999px; color: var(--lime); font-weight: 800; }

/* The four covers, fanned out like a hand of cards. */
.fan { position: relative; width: 100%; max-width: 250px; aspect-ratio: 1 / 0.8; margin: 0; padding: 0; list-style: none; }
.fan li { position: absolute; bottom: 0; width: 43%; transform-origin: 50% 100%; transition: transform 0.3s ease; }
.fan li:nth-child(1) { left: 6%; z-index: 1; transform: rotate(-10deg); }
.fan li:nth-child(2) { left: 21%; z-index: 2; transform: rotate(-3deg); }
.fan li:nth-child(3) { left: 36%; z-index: 3; transform: rotate(4deg); }
.fan li:nth-child(4) { left: 51%; z-index: 4; transform: rotate(11deg); }
.fan img { display: block; width: 100%; max-width: none; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: 0 10px 16px -8px rgba(14, 44, 45, 0.7); }

/* Three rules on the dark band. */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.rules > :nth-child(2) { --i: 1; }
.rules > :nth-child(3) { --i: 2; }
.rule {
  position: relative; overflow: hidden; padding: clamp(22px, 2.8vw, 32px);
  background: rgba(251, 249, 237, 0.03); border: 2px solid var(--lime); border-radius: 8px;
}
.rule p { position: relative; margin: 0; }
.rule__no {
  position: absolute; right: 12px; top: -8px;
  color: rgba(222, 237, 112, 0.14); font: 800 clamp(84px, 9vw, 120px)/1 var(--sans); pointer-events: none;
}
.rule__icon {
  display: block; width: 64px; height: 64px; margin-bottom: 16px; padding: 12px;
  color: var(--lime); border: 2px solid currentColor; border-radius: 50%;
}
.rules__name { margin-bottom: 10px !important; color: var(--lime); font: 800 clamp(26px, 3vw, 36px)/1.05 var(--sans); letter-spacing: -0.02em; }

@media (prefers-reduced-motion: no-preference) {
  .hub-stage__ari { animation: bob 3.4s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-7px); } }
  .bubble--pop { animation: pop 0.28s ease-out; }
  @keyframes pop { from { transform: scale(0.94); } to { transform: scale(1); } }

  /* Scroll reveal: hub.js adds .reveal, then .is-in when the block comes into view. */
  .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
  .reveal.is-in { animation: reveal-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 110ms); }
  @keyframes reveal-in { from { opacity: 0; transform: translateY(24px); } }

  /* Heading: the lime swipe is drawn under the words. */
  .swipe { transition: background-size 0.9s ease-out 0.5s; }
  .reveal:not(.is-in) .swipe { background-size: 0 0.34em; }

  /* Trail: dots pop in one by one, the line fills between them, then a ring pulses along. */
  .reveal-trail:not(.is-in) .trail__dot { transform: scale(0); }
  .reveal-trail:not(.is-in) .trail__stop::after { transform: scaleX(0); }
  .reveal-trail.is-in .trail__dot { animation: dot-pop 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) backwards; animation-delay: calc(var(--i, 0) * 0.32s); }
  .reveal-trail.is-in .trail__stop::after { animation: line-fill 0.5s ease-out backwards; animation-delay: calc(var(--i, 0) * 0.32s + 0.25s); }
  .reveal-trail.is-in .trail__dot::after { animation: ping 4.8s ease-out infinite; animation-delay: calc(2.2s + var(--i, 0) * 0.5s); }
  @keyframes dot-pop { from { transform: scale(0); } }
  @keyframes line-fill { from { transform: scaleX(0); } }
  @keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 45%, 100% { transform: scale(1.75); opacity: 0; } }

  /* Pack: the covers bob one after another; the saving chip pops in. */
  .fan li { animation: fan-bob 3.6s ease-in-out infinite; }
  .fan li:nth-child(2) { animation-delay: -0.6s; }
  .fan li:nth-child(3) { animation-delay: -1.2s; }
  .fan li:nth-child(4) { animation-delay: -1.8s; }
  @keyframes fan-bob { 50% { translate: 0 -6px; } }
  .level__save:not([hidden]) { animation: chip-in 0.45s cubic-bezier(0.3, 1.7, 0.5, 1); }
  @keyframes chip-in { from { transform: scale(0.5); opacity: 0; } }

  /* A level card flashes when the trail jumps to it. */
  .level:target { animation: flash 1.3s ease-out; }
  @keyframes flash { 30% { box-shadow: 6px 7px 0 var(--ink), 0 0 0 8px rgba(222, 237, 112, 0.95); } }

  /* Rules: cards rise in, icons draw themselves, then a spotlight walks along the three cards. */
  .rule.is-in {
    animation: reveal-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards, spot 7.2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 140ms), calc(1.6s + var(--i, 0) * 2.4s);
  }
  @keyframes spot {
    0%, 34%, 100% { box-shadow: 0 0 0 0 rgba(222, 237, 112, 0); translate: 0 0; }
    8%, 26% { box-shadow: 0 0 0 5px rgba(222, 237, 112, 0.28), 0 16px 28px -12px rgba(222, 237, 112, 0.5); translate: 0 -6px; }
  }
  .rule.is-in .rule__icon { animation: icon-beat 7.2s ease-in-out infinite; animation-delay: calc(1.6s + var(--i, 0) * 2.4s); }
  @keyframes icon-beat { 0%, 34%, 100% { scale: 1; } 8%, 26% { scale: 1.14; } }
  .rule.is-in .rule__no { animation: float-no 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
  @keyframes float-no { 50% { translate: 0 8px; } }

  .rule.is-in .draw { animation: draw 0.9s ease-out backwards; animation-delay: calc(var(--i, 0) * 140ms + 0.5s); }
  .rule.is-in .draw--tick { animation-delay: calc(var(--i, 0) * 140ms + 1.1s); }
  @keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
  .rule.is-in .ic-ring { transform-box: fill-box; transform-origin: center; animation: ring-zoom 2.6s ease-in-out infinite; }
  .rule.is-in .ic-ring--b { animation-delay: 0.3s; }
  @keyframes ring-zoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.86); } }
  .rule.is-in .ic-dot { transform-box: fill-box; transform-origin: center; animation: dot-blink 1.3s ease-in-out infinite; }
  @keyframes dot-blink { 50% { transform: scale(1.5); } }
  .rule.is-in .ic-line { animation: scan 3.6s ease-in-out infinite; }
  .rule.is-in .ic-line--b { animation-delay: 0.4s; }
  .rule.is-in .ic-line--c { animation-delay: 0.8s; }
  @keyframes scan { 0%, 60%, 100% { opacity: 0.35; } 20%, 40% { opacity: 1; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .level { transition: transform 0.15s, box-shadow 0.15s; }
  .level:hover { transform: translate(-2px, -2px); box-shadow: 8px 9px 0 var(--ink); }
  .level--pack:hover { box-shadow: 8px 9px 0 var(--teal); }
  .level__art > img { transition: transform 0.2s; }
  .level:hover .level__art > img { transform: rotate(-4deg) scale(1.05); }
  .level--pack:hover .fan li:nth-child(1) { transform: translateX(-5%) rotate(-19deg); }
  .level--pack:hover .fan li:nth-child(2) { transform: translateX(-2%) rotate(-7deg); }
  .level--pack:hover .fan li:nth-child(3) { transform: translateX(2%) rotate(6deg); }
  .level--pack:hover .fan li:nth-child(4) { transform: translateX(5%) rotate(18deg); }
  .trail__dot { transition: transform 0.2s; }
  .trail a:hover .trail__dot { transform: translateY(-4px) scale(1.1); }
  .rule { transition: background-color 0.25s, color 0.25s; }
  .rule:hover { background: var(--lime); color: var(--ink); }
  .rule:hover .rules__name, .rule:hover .rule__icon { color: var(--ink); }
  .rule:hover .rule__no { color: rgba(14, 44, 45, 0.14); }
}
@media print {
  .reveal:not(.is-in) { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 900px) {
  .levels, .rules { grid-template-columns: minmax(0, 1fr); }
  .hub-stage { padding-block: 28px; }
}
@media (max-width: 720px) {
  .level--pack { grid-template-columns: minmax(0, 1fr); }
  .level--pack .level__art { padding: 54px 22px 24px; }
  .fan { max-width: 280px; }
}
@media (max-width: 480px) {
  .level { grid-template-columns: minmax(0, 92px) minmax(0, 1fr); gap: 14px; }
  .level__art { padding-top: 42px; }
  .level__art > img { max-width: 76px; }
  .level .btn { width: 100%; }
  .level--pack { grid-template-columns: minmax(0, 1fr); }
  .level--pack .level__art { padding-top: 54px; padding-bottom: 24px; }
  .trail__dot { width: 42px; height: 42px; font-size: 18px; }
  .trail__stop::before, .trail__stop::after { top: 21px; }
  .trail a { padding: 0; }
  .trail__name { font-size: 16px; }
  .trail__what { font-size: 13px; }
}
@media (max-width: 360px) {
  .trail__name { font-size: 15px; }
}

/* ---------- cart on the main page: tick ebooks, see them in a basket, one form ---------- */

.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.level--pack .btn--line { border-color: rgba(251, 249, 237, 0.7); color: var(--paper); }
.level--pack .btn--line:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.level__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* The tick box on each card, drawn as a button. The real checkbox stays visible, so it works without :has(). */
.pick {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 12px;
  background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
  font: 800 15px/1.2 var(--sans); cursor: pointer; user-select: none;
}
.pick input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.pick:hover { background: #e9f493; }
.pick__on { display: none; }
.pick.is-on { background: var(--ink); color: var(--lime); }
.pick.is-on .pick__on { display: inline; }
.pick.is-on .pick__off { display: none; }
.pick.is-on input { accent-color: var(--lime); }
.pick:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.level--pack .pick { border-color: var(--lime); }
.level--pack .pick.is-on { background: var(--lime); color: var(--ink); }
.level--pack .pick.is-on input { accent-color: var(--ink); }
.level.level--picked, .level.level--picked:hover { box-shadow: 0 0 0 4px var(--lime), 6px 7px 0 var(--ink); }
.level--pack.level--picked, .level--pack.level--picked:hover { box-shadow: 0 0 0 4px var(--lime), 6px 7px 0 var(--teal); }

/* The cart: a bar fixed to the bottom of the screen, with the basket and the form in a panel that opens above it. */
body.has-cart { padding-bottom: 104px; }
.cart { --focus: var(--lime); position: fixed; inset: auto 0 0 0; z-index: 30; }
.cart[hidden] { display: none; }
.cart__bar { background: var(--ink); color: var(--paper); border-top: 3px solid var(--lime); box-shadow: 0 -12px 30px -14px rgba(14, 44, 45, 0.7); }
.cart__bar-in { display: flex; align-items: center; gap: 16px; min-height: 76px; padding-block: 10px; }
.cart__sum { min-width: 0; margin-right: auto; }
.cart__count { margin: 0; font: 800 17px/1.2 var(--sans); }
.cart__names { margin: 2px 0 0; overflow: hidden; color: rgba(251, 249, 237, 0.8); font: 500 14px/1.3 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.cart__total { margin: 0; color: var(--lime); font: 800 clamp(22px, 3vw, 30px)/1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; }
.cart__clear { min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--paper); font: 600 14px var(--sans); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.cart__clear:hover { color: var(--lime); }
.cart__next { min-width: 120px; }

/* Little covers of what is in the cart, overlapping in the bar. */
.cart__thumbs { display: flex; flex: none; align-items: center; padding-left: 14px; }
.cart__thumb {
  display: block; flex: none; width: 34px; height: 48px; margin-left: -14px;
  border: 2px solid var(--ink); border-radius: 3px; object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--paper), 0 6px 10px -4px rgba(0, 0, 0, 0.6);
}
.cart__thumb:nth-child(odd) { transform: rotate(-4deg); }
.cart__thumb:nth-child(even) { transform: rotate(3deg) translateY(-2px); }

/* The panel: basket on the left, form on the right. */
.cart__panel {
  max-height: calc(100vh - 146px); max-height: calc(100dvh - 146px); overflow-y: auto;
  background: var(--paper); color: var(--ink); border-top: 3px solid var(--lime);
  --focus: var(--teal);
}
.cart__panel[hidden] { display: none; }
.cart__grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px);
  padding-block: 26px 22px;
}
.cart__h { margin: 0 0 14px; font: 800 clamp(22px, 2.6vw, 28px)/1.2 var(--sans); letter-spacing: -0.02em; }
.cart__h-count { margin-left: 8px; padding: 2px 12px; background: var(--lime); border-radius: 999px; font: 800 16px var(--sans); vertical-align: 3px; }

.cart__items { margin: 0 0 14px; padding: 0; list-style: none; }
.cart__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  max-height: 140px; margin-bottom: 10px; padding: 10px 10px 10px 12px; overflow: hidden;
  background: var(--white); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 3px 4px 0 var(--ink);
}
.cart__cover { display: block; width: 52px; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 0 6px 10px -5px rgba(14, 44, 45, 0.6); }
.cart__cover--fan { position: relative; width: 78px; height: 56px; }
.cart__cover--fan img { position: absolute; bottom: 0; width: 30px; height: auto; border: 1px solid var(--ink); border-radius: 2px; box-shadow: 0 4px 6px -3px rgba(14, 44, 45, 0.6); }
.cart__cover--fan img:nth-child(1) { left: 0; transform: rotate(-9deg); }
.cart__cover--fan img:nth-child(2) { left: 15px; transform: rotate(-3deg); }
.cart__cover--fan img:nth-child(3) { left: 30px; transform: rotate(3deg); }
.cart__cover--fan img:nth-child(4) { left: 46px; transform: rotate(9deg); }
.cart__info { min-width: 0; }
.cart__kicker { margin: 0; color: var(--teal); font: 700 12px/1.3 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.cart__name { margin: 1px 0 0; font: 800 clamp(18px, 2vw, 21px)/1.15 var(--sans); letter-spacing: -0.015em; }
.cart__price { margin: 0; padding: 2px 12px; background: var(--lime); border-radius: 999px; font: 800 15px var(--sans); white-space: nowrap; }
.cart__remove {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: none; color: var(--ink); border: 2px solid transparent; border-radius: 50%;
  font: 700 24px/1 var(--sans); cursor: pointer;
}
.cart__remove:hover { background: var(--ink); color: var(--lime); }
.cart__remove:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.cart__total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 4px 0; border-top: 2px solid var(--ink); font: 700 16px var(--sans); }
.cart__total-row strong { font: 800 clamp(26px, 3vw, 34px)/1 var(--sans); letter-spacing: -0.02em; }
.cart__save { margin: 8px 4px 0; color: var(--teal); font: 700 15px/1.4 var(--sans); }
.cart__hint { margin: 14px 0 0; padding: 10px 14px; background: var(--cream); border-left: 4px solid var(--teal); font-size: 15px; line-height: 1.5; }
.cart__swap { padding: 0; background: none; border: 0; color: var(--teal); font: 700 15px var(--sans); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.cart__swap:hover { color: var(--ink); }
.cart__pay .pay__fields { margin-top: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .cart:not([hidden]) .cart__bar { animation: cart-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes cart-in { from { transform: translateY(100%); } }
  .cart__panel:not([hidden]) { animation: panel-in 0.25s ease-out; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }

  /* A book slides into the basket and pops into the bar; leaving, it slides out and the rest close up. */
  .cart__item--new { animation: item-in 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15); }
  .cart__item--leaving { animation: item-out 0.25s ease-in forwards; pointer-events: none; }
  @keyframes item-in { from { opacity: 0; transform: translateX(-28px) scale(0.96); max-height: 0; margin-bottom: 0; padding-block: 0; } }
  @keyframes item-out { to { opacity: 0; transform: translateX(32px) scale(0.96); max-height: 0; margin-bottom: 0; padding-block: 0; border-width: 0; } }
  .cart__thumb--new { animation: thumb-in 0.45s cubic-bezier(0.3, 1.7, 0.5, 1); }
  .cart__thumb--leaving { animation: thumb-out 0.2s ease-in forwards; }
  @keyframes thumb-in { from { opacity: 0; scale: 0.3; translate: 0 18px; } }
  @keyframes thumb-out { to { opacity: 0; scale: 0.3; translate: 0 18px; } }
  .cart__bump { animation: bump 0.4s cubic-bezier(0.3, 1.8, 0.5, 1); }
  @keyframes bump { 40% { transform: scale(1.18); } }
  .cart__item:hover .cart__cover { transform: rotate(-4deg) scale(1.06); }
  .cart__cover { transition: transform 0.2s; }
}

@media (max-width: 860px) {
  .cart__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  body.has-cart { padding-bottom: 96px; }
  .cart__bar-in { gap: 10px; min-height: 68px; }
  .cart__names { display: none; }
  .cart__clear { display: none; }
  .cart__next { min-width: 0; padding: 0 16px; }
  .cart__item { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .cart__price { grid-column: 2; justify-self: start; grid-row: 2; }
  .cart__remove { grid-column: 3; grid-row: 1 / span 2; }
  .level__actions .btn, .level__actions .pick { width: 100%; }
}
@media (max-width: 480px) {
  .cart__thumbs { display: none; }
}

/* ---------- checkout card with packages (sales pages): this page's package on top, others to add, then total and payment ---------- */

.buy-card {
  --focus: var(--teal);
  position: relative; display: block; max-width: 960px; margin-inline: auto; padding: clamp(18px, 2.6vw, 30px);
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 8px; box-shadow: 8px 9px 0 var(--teal);
}

/* A package option: a label around a hidden checkbox. JS keeps .is-on in step with the checkbox. */
.opt {
  position: relative; display: block; cursor: pointer;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.opt:hover { transform: translateY(-3px); box-shadow: 4px 6px 0 var(--ink); }
.opt:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.opt.is-on { background: #f7fbd9; box-shadow: 0 0 0 3px var(--lime), 4px 5px 0 var(--ink); }
.opt.is-on:hover { box-shadow: 0 0 0 3px var(--lime), 5px 8px 0 var(--ink); }
.opt.is-closed { cursor: not-allowed; opacity: 0.55; }
.opt.is-closed:hover { transform: none; box-shadow: none; }

.opt__tick { position: absolute; top: 10px; right: 10px; z-index: 3; display: block; width: 26px; height: 26px; }
.opt__tick--main { top: 14px; right: 14px; width: 34px; height: 34px; }
.opt__tick svg { display: block; width: 100%; height: 100%; overflow: visible; }
.opt__tick circle { fill: var(--white); stroke: var(--ink); stroke-width: 2; transition: fill 0.2s; }
.opt__tick path { fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.3s ease 0.08s; }
.opt.is-on .opt__tick circle { fill: var(--ink); }
.opt.is-on .opt__tick path { stroke-dashoffset: 0; }
.opt__tick::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--lime); border-radius: 50%; opacity: 0; pointer-events: none; }

.opt__price { display: inline-block; padding: 2px 12px; background: var(--lime); color: var(--ink); border-radius: 999px; font: 800 15px var(--sans); white-space: nowrap; }
.opt__no { color: var(--teal); font: 700 11px/1.3 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; }

/* The package of this page: the big card on top. */
.opt--main { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 28px); padding: 14px; }
.opt--main::before { content: ""; position: absolute; inset: -3px; border-radius: 10px; pointer-events: none; }
.opt--main .opt__art { padding: 48px 12px 0; }
.opt--main .opt__art > img { max-width: 150px; }
.opt--main .opt__art:has(.fanx) { align-items: center; padding-bottom: 20px; }
.opt__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 6px 48px 6px 0; }
.opt--main .level__no { margin-bottom: 4px; }
.opt--main .opt__name { display: block; margin: 0 0 10px; font: 800 clamp(30px, 4.2vw, 46px)/1.05 var(--sans); letter-spacing: -0.025em; text-wrap: balance; }
.opt__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; color: var(--muted); font: 600 15px var(--sans); }
.opt--main .opt__price { padding: 3px 16px; font-size: 20px; }
.opt__line { display: block; max-width: 34em; color: var(--muted); font-size: 17px; line-height: 1.55; }

.fanx { position: relative; display: block; width: 100%; max-width: 170px; aspect-ratio: 1 / 0.8; }
.fanx > span { position: absolute; bottom: 0; width: 43%; transform-origin: 50% 100%; }
.fanx > span:nth-child(1) { left: 6%; z-index: 1; transform: rotate(-10deg); }
.fanx > span:nth-child(2) { left: 21%; z-index: 2; transform: rotate(-3deg); }
.fanx > span:nth-child(3) { left: 36%; z-index: 3; transform: rotate(4deg); }
.fanx > span:nth-child(4) { left: 51%; z-index: 4; transform: rotate(11deg); }
.fanx img { display: block; width: 100%; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: 0 8px 12px -6px rgba(14, 44, 45, 0.7); }

/* The other packages: small cards that can be ticked. */
.packs { margin-top: 24px; }
.packs__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; color: var(--muted); font: 600 15px var(--sans); }
.packs__label strong { color: var(--ink); font: 800 clamp(18px, 2.2vw, 22px)/1.2 var(--sans); letter-spacing: -0.01em; }
.packs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.packs__grid > :nth-child(2) { --i: 1; }
.packs__grid > :nth-child(3) { --i: 2; }
.packs__grid > :nth-child(4) { --i: 3; }
.opt--mini { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 18px 10px 12px; text-align: center; }
.opt--mini .opt__cover { display: grid; place-items: center; min-height: 78px; margin-bottom: 4px; transition: transform 0.25s; }
.opt--mini .opt__cover img { display: block; width: 54px; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 0 8px 12px -6px rgba(14, 44, 45, 0.6); }
.opt--mini .opt__name { font: 800 17px/1.15 var(--sans); letter-spacing: -0.015em; }
.opt__note { min-height: 1em; color: var(--teal); font: 700 12px/1.2 var(--sans); }
.opt--mini .opt__cover--fan { position: relative; display: block; width: 90px; height: 78px; }
.opt--mini .opt__cover--fan img { position: absolute; bottom: 0; width: 30px; border: 1px solid var(--ink); border-radius: 2px; box-shadow: 0 5px 8px -4px rgba(14, 44, 45, 0.6); }
.opt--mini .opt__cover--fan img:nth-child(1) { left: 0; transform: rotate(-10deg); }
.opt--mini .opt__cover--fan img:nth-child(2) { left: 19px; transform: rotate(-3deg); }
.opt--mini .opt__cover--fan img:nth-child(3) { left: 38px; transform: rotate(3deg); }
.opt--mini .opt__cover--fan img:nth-child(4) { left: 57px; transform: rotate(10deg); }
.opt:hover .opt__cover { transform: rotate(-5deg) scale(1.1); }
.opt.is-on .opt__cover { transform: rotate(-3deg) scale(1.06); }

/* Total, saving, hint. */
.buy-sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 24px 0 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.buy-sum__what { min-width: 0; margin: 0; }
.buy-sum__count { display: block; font: 800 18px/1.2 var(--sans); }
.buy-sum__names { display: block; margin-top: 2px; color: var(--muted); font: 500 14px/1.3 var(--sans); }
.buy-sum__total { display: flex; align-items: baseline; gap: 12px; margin: 0; font: 700 16px var(--sans); }
.buy-sum__total strong { display: inline-block; min-width: 3.4em; text-align: right; transform-origin: 100% 60%; font: 800 clamp(32px, 4.2vw, 46px)/1 var(--sans); letter-spacing: -0.02em; }
.buy-save { margin: 8px 0 0; color: var(--teal); font: 700 15px/1.4 var(--sans); text-align: right; }
.buy-hint { margin: 12px 0 0; padding: 10px 14px; background: var(--cream); border-left: 4px solid var(--teal); font-size: 15px; line-height: 1.5; }
.buy-swap { padding: 0; background: none; border: 0; color: var(--teal); font: 700 15px var(--sans); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.buy-swap:hover { color: var(--ink); }
.buy-card .pay__fields { margin-top: 22px; }
.buy-card .agree { margin-top: 2px; }
.buy-card[data-closed] .btn--wide { background: var(--muted); border-color: var(--muted); color: var(--paper); }

/* Pay button: a shine that sweeps across it, and the arrow that nudges. */
.buy .btn--wide { position: relative; overflow: hidden; }
.buy .btn--wide:disabled { opacity: 0.55; cursor: not-allowed; }

@media (prefers-reduced-motion: no-preference) {
  .opt--main .opt__art > img { animation: bob 3.4s ease-in-out infinite; }
  .opt--main.is-on::before { box-shadow: 0 0 0 0 rgba(222, 237, 112, 0.8); animation: halo 2.6s ease-out infinite; }
  @keyframes halo { 70%, 100% { box-shadow: 0 0 0 16px rgba(222, 237, 112, 0); } }
  .opt.is-popped { animation: opt-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
  @keyframes opt-pop { 40% { transform: scale(1.05); } }
  .opt.is-popped .opt__tick::after { animation: tick-burst 0.6s ease-out; }
  @keyframes tick-burst { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
  .opt--mini .opt__cover { animation: cover-float 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
  @keyframes cover-float { 50% { translate: 0 -5px; } }
  .buy-sum__total strong.buy-bump { animation: buy-bump 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
  @keyframes buy-bump { 40% { transform: scale(1.14); } }
  .buy-save:not([hidden]) { animation: chip-in 0.45s cubic-bezier(0.3, 1.7, 0.5, 1); }
  .buy-hint:not([hidden]) { animation: hint-in 0.35s ease-out; }
  @keyframes hint-in { from { opacity: 0; transform: translateY(-8px); } }
  .buy .btn--wide:not(:disabled)::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(222, 237, 112, 0.4), transparent);
    transform: skewX(-20deg); animation: shine 3.8s ease-in-out infinite; pointer-events: none;
  }
  @keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
  .buy .btn--wide:not(:disabled)::after { animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(5px); } }
}
@media (prefers-reduced-motion: reduce) {
  .opt__tick path { transition: none; }
}

@media (max-width: 860px) {
  .packs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .opt--main { grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 12px; padding: 12px; }
  .opt--main .opt__art { padding: 40px 8px 0; }
  .opt--main .opt__art > img { max-width: 84px; }
  .opt--main .opt__art:has(.fanx) { padding-bottom: 14px; }
  .opt__body { padding-right: 34px; }
  .opt--main .opt__name { font-size: 25px; }
  .opt--main .opt__price { font-size: 17px; padding: 2px 12px; }
  .opt__line { font-size: 15px; }
  .opt__tick--main { top: 10px; right: 10px; width: 28px; height: 28px; }
  .buy-sum { flex-direction: column; align-items: flex-start; gap: 6px; }
  .buy-save { text-align: left; }
}

/* ---------- phone layer (up to 720px wide) ----------
   Added after the phone review: a short first screen with the price and the buy button, level cards that
   keep their text wide, long sections folded into tap-to-open rows (main.js adds .fold and the button;
   the text stays in the page), swipe strips for the previews and the bonuses, and 44px tap targets.
   Wider screens are not touched by anything below. */
@media (max-width: 720px) {

  /* header: a taller tap area for the title link */
  .bar__in { min-height: 56px; }
  .bar__mark { align-items: center; min-height: 48px; }

  /* first screen: kicker, headline, lead, price and the button come first; the cover and the long text follow */
  .hero__in { align-items: start; gap: 0; padding-block: 26px 40px; }
  .hero__copy { display: contents; }
  .hero__kicker { order: 1; margin: 0 0 12px; font-size: 15px; }
  .hero__title { order: 2; margin: 0 0 16px; font-size: 31px; line-height: 1.1; }
  .hero__lead { order: 3; margin: 0 0 18px; font-size: 18px; line-height: 1.55; }
  .hero__price { order: 4; margin: 0 0 14px; }
  .hero__cta { order: 5; }
  .hero__stage { order: 6; margin-top: 30px; padding: 22px 16px 28px; }
  .hero__body { order: 7; margin: 26px 0 0; font-size: 17px; }
  .facts { order: 8; margin-top: 22px; padding-top: 14px; }
  .cover { width: min(62%, 220px); }

  /* main page: Ari and his bubble side by side instead of one tall block */
  .hub-stage { display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 14px; padding: 18px 16px; }
  .hub-stage__ari { flex: none; width: 108px; }
  .bubble { flex: 1; width: auto; min-width: 0; padding: 14px 16px 12px; }
  .bubble::after { bottom: auto; left: -11px; top: 50%; margin: -10px 0 0; transform: rotate(135deg); }
  .bubble__text { margin-bottom: 8px; font-size: 19px; }

  /* spacing and reading size */
  .sec, .demo { padding-block: 44px; }
  .buy { padding-block: 40px; }
  .h2 { margin-bottom: 22px; font-size: 27px; }
  .lead { margin: -6px 0 24px; font-size: 18px; }
  .day li { padding: 14px 0; font-size: 18px; }
  .turn { margin-top: 32px; padding-left: 18px; }
  .turn p { font-size: 18px; }
  .steps p { font-size: 17px; }
  .path-intro__lead { font-size: 17px; }
  .offer__main, .offer__lab, .guarantee { padding: 20px; }
  .final__ari { width: min(44%, 150px); }

  /* long sections folded into rows */
  .fold { padding-block: 0; border-top: 1px solid var(--rule); }
  .demo.fold { border-top-color: var(--rule-light); }
  .fold > .wrap > h2 { max-width: none; margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; text-wrap: pretty; }
  .fold__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    width: 100%; min-height: 76px; padding: 20px 0;
    background: none; border: 0; color: inherit;
    font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .fold__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
  .fold__label { min-width: 0; }
  .fold__icon { position: relative; flex: none; width: 38px; height: 38px; border: 2px solid currentColor; border-radius: 50%; }
  .fold__icon::before, .fold__icon::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px;
    background: currentColor; border-radius: 2px;
    transition: transform 0.25s ease;
  }
  .fold__icon::after { transform: rotate(90deg); }
  .fold:not(.is-folded) .fold__icon::after { transform: rotate(0deg); }
  .fold.is-folded > .wrap > :not(h2) { display: none; }
  .fold:not(.is-folded) { padding-bottom: 40px; }
  .fold:not(.is-folded) > .wrap > h2 { margin-bottom: 6px; }
  .fold > .wrap > .lead { margin-top: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .fold.fold-anim > .wrap > :not(h2) { animation: fold-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
    @keyframes fold-in { from { opacity: 0; transform: translateY(-10px); } }
  }

  /* swipe strips: the page previews and the bonuses sit in one row you slide with a thumb */
  .previews, .gifts {
    display: flex; gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 20px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .previews::-webkit-scrollbar, .gifts::-webkit-scrollbar { display: none; }
  .previews li { flex: none; width: 62%; max-width: 260px; scroll-snap-align: start; }
  .gifts li { flex: none; width: 76%; max-width: 300px; padding-top: 16px; scroll-snap-align: start; }
  .gifts__img { max-width: 150px; margin-bottom: 14px; }

  /* the file list wraps instead of scrolling sideways; a wrapped line is indented under its own file name */
  .tree { padding: 14px 14px 14px calc(14px + 6ch); font-size: 12.5px; line-height: 1.6; text-indent: -6ch; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }

  /* footer: links big enough for a thumb */
  .foot__in { gap: 4px 24px; padding-block: 24px; }
  .foot__links { line-height: 1; }
  .foot__links a { display: inline-block; padding: 14px 4px; }

  /* links that stand alone, and the tick box of the form, big enough for a thumb */
  .guarantee p:last-child a { display: inline-block; padding: 12px 0; }
  .agree input { width: 24px; height: 24px; margin-top: 1px; }

  /* main page: each level card is a header (Ari, tahap, name) over the text, so the text uses the full width */
  .level:not(.level--pack) { grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 16px; }
  .level:not(.level--pack) .level__body { display: contents; }
  .level:not(.level--pack) .level__art { grid-column: 1; grid-row: 1 / span 2; width: 84px; height: 84px; padding: 0; align-items: flex-start; }
  .level:not(.level--pack) .level__art > img { width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 6%; }
  .level:not(.level--pack) .level__badge { left: 6px; top: 6px; width: 26px; height: 26px; font-size: 14px; }
  .level:not(.level--pack) .level__no { grid-column: 2; align-self: end; margin: 0 0 2px; }
  .level:not(.level--pack) .level__name { grid-column: 2; align-self: start; margin: 0; font-size: 26px; }
  .level:not(.level--pack) .level__what,
  .level:not(.level--pack) .level__pass,
  .level:not(.level--pack) .level__meta,
  .level:not(.level--pack) .level__actions { grid-column: 1 / -1; }
  .level:not(.level--pack) .level__what { margin-top: 14px; font-size: 16.5px; }
  .level--pack .level__art { padding: 46px 18px 18px; }
  .level .btn--small, .pick { min-height: 48px; }
  .level__actions { gap: 10px; }

  .rule { padding: 22px; }
  .rule__icon { width: 52px; height: 52px; margin-bottom: 12px; padding: 10px; }
  .rules__name { font-size: 26px; }

  /* download page: the name and size on the left and the button beside them, so 19 files are not 19 tall blocks */
  .downloads li { flex-direction: row; align-items: center; gap: 12px; padding: 12px 0; font-size: 17px; }
  .downloads li > span { min-width: 0; }
  .downloads .btn { width: auto; flex: none; min-width: 104px; min-height: 44px; padding: 0 14px; font-size: 15px; }

  /* very small labels */
  .opt__no, .opt__note { font-size: 12px; }
}

/* the smallest phones */
@media (max-width: 360px) {
  .hero__title { font-size: 27px; }
  .h2 { font-size: 25px; }
  .fold > .wrap > h2 { font-size: 19px; }
}

/* ---------- sales-page flow: launch strip, ticker, roadmap, level table, price cards, reviews ----------
   Added for the Wani-style flow. Only the five package pages use these classes; the main page and its cart do not.
   The launch strip, the countdown and the slots are filled in by launch.js from the Worker (/api/prices), and stay
   hidden when no launch is on. The review block stays hidden until config.js holds real reviews (reviews.js). */

.eyebrow {
  display: block; margin: 0 0 12px;
  color: var(--teal); font: 800 13px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.hero .eyebrow, .demo .eyebrow, .buy .eyebrow, .root .eyebrow { color: var(--lime); }

/* launch strip, under the header */
.launchbar { --focus: var(--ink); background: var(--lime); color: var(--ink); border-bottom: 2px solid var(--ink); }
.launchbar__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px;
  padding-block: 10px; font: 700 15px/1.35 var(--sans);
}
.launchbar__in p { margin: 0; }
.launchbar__note { font-weight: 600; }
.launchbar a { color: var(--ink); font-weight: 800; }

/* the countdown: four small boxes */
.clock { display: inline-flex; gap: 6px; margin: 0; }
.clock__u {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 46px; padding: 5px 6px 4px;
  background: var(--ink); color: var(--lime); border-radius: 4px;
  font: 800 20px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.clock__u small { margin-top: 3px; color: var(--paper); font: 600 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }

/* slots left: a number and a bar */
.slots__line { margin: 0 0 8px; font: 700 16px/1.35 var(--sans); }
.slots__line strong { font: 800 24px/1 var(--sans); }
.slots__bar { height: 10px; background: rgba(14, 44, 45, 0.2); border-radius: 99px; overflow: hidden; }
.slots__fill { display: block; width: var(--w, 100%); height: 100%; background: var(--ink); border-radius: inherit; transition: width 0.6s ease; }

/* running strip under the hero (decorative; still when the visitor prefers less motion) */
.ticker { overflow: hidden; background: var(--teal); color: var(--lime); border-block: 2px solid var(--ink); }
.ticker__track { display: flex; width: max-content; padding-block: 12px; font: 800 14px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.ticker__set { flex: none; padding-right: 2.2em; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 40s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { width: auto; justify-content: center; flex-wrap: wrap; }
  .ticker__set[data-dup] { display: none; }
}

/* roadmap: four short steps */
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); margin: 0; padding: 0; list-style: none; counter-reset: road; }
.road li {
  position: relative; padding: 22px 20px; counter-increment: road;
  background: var(--white); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 5px 6px 0 var(--teal);
}
.road li::before {
  content: counter(road); display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 14px;
  background: var(--ink); color: var(--lime); border-radius: 50%; font: 800 19px var(--sans);
}
.road__t { margin: 0 0 6px; font: 800 19px/1.2 var(--sans); letter-spacing: -0.015em; }
.road p:not(.road__t) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* "punca sebenar": the root cause, in a dark box inside a light section */
.root {
  max-width: 52em; margin: clamp(36px, 5vw, 56px) 0 0; padding: clamp(20px, 3vw, 30px);
  background: var(--ink); color: var(--paper); border-left: 8px solid var(--lime); border-radius: 0 6px 6px 0;
}
.root__tag { margin: 0 0 8px; color: var(--lime); font: 800 13px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.root p:not(.root__tag) { margin: 0; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; }
.root strong { color: var(--lime); }

/* tables: the four levels, and the costs */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); font: 400 16px/1.5 var(--sans); }
.tbl caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tbl th, .tbl td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.tbl thead th { background: var(--ink); color: var(--lime); border-top: 0; font: 800 12px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.tbl tbody th { font: 800 18px/1.25 var(--sans); letter-spacing: -0.01em; }
.tbl--lvl tbody th { width: 17%; }
.tbl--cost td:first-child { font-weight: 700; }
.tbl__no { display: block; margin-bottom: 4px; color: var(--teal); font: 800 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.tbl__pass { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.tbl__pass b { color: var(--ink); }
.tbl__price { white-space: nowrap; font: 800 20px/1.2 var(--sans); }
.tbl__after { display: block; margin-top: 3px; color: var(--muted); font: 600 13px/1.35 var(--sans); white-space: normal; }
.tbl tr[aria-current] { background: #f6f9d3; }
.tbl tr[aria-current] th { box-shadow: inset 6px 0 0 var(--teal); }
.tbl__here {
  display: inline-block; margin-top: 8px; padding: 2px 8px;
  background: var(--lime); border: 1.5px solid var(--ink); border-radius: 3px;
  font: 800 11px/1.5 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
}
.tbl a { font-weight: 700; }
.tbl-note { max-width: 58em; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* syllabus summary above the chapter list: what you end up with, and what you need first */
.syl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 clamp(28px, 4vw, 40px); background: var(--cream); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.syl > div { padding: 18px 22px; }
.syl > div + div { border-left: 2px solid var(--ink); }
.syl dt { margin: 0 0 4px; color: var(--teal); font: 800 12px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.syl dd { margin: 0; font-size: 17px; line-height: 1.55; }

/* price cards */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 40px); align-items: stretch; max-width: 980px; margin: 0; padding: 0; list-style: none; }
.pcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.pcard {
  position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 32px);
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 8px 9px 0 var(--teal);
}
.pcard--best { --focus: var(--lime); background: var(--ink); color: var(--paper); box-shadow: 8px 9px 0 var(--lime); }
.pcard__flag {
  position: absolute; top: -15px; left: 22px; margin: 0; padding: 4px 12px;
  background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
  font: 800 12px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.pcard__tag { margin: 0 0 4px; color: var(--teal); font: 800 13px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.pcard--best .pcard__tag { color: var(--lime); }
.pcard__name { margin: 0 0 12px; font: 800 clamp(26px, 3vw, 34px)/1.1 var(--sans); letter-spacing: -0.02em; }
.pcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 6px; }
.pcard__price strong { font: 800 clamp(40px, 5vw, 56px)/1 var(--sans); letter-spacing: -0.03em; }
.pcard--best .pcard__price strong { color: var(--lime); }
.pcard__price span { color: var(--muted); font: 600 15px var(--sans); }
.pcard--best .pcard__price span { color: rgba(251, 249, 237, 0.8); }
.pcard__after {
  align-self: flex-start; margin: 0 0 14px; padding: 6px 10px;
  background: var(--cream); color: var(--ink); border-radius: 4px; font: 700 14px/1.4 var(--sans);
}
.pcard--best .pcard__after { background: rgba(222, 237, 112, 0.16); color: var(--lime); }
.pcard__math { margin: 0 0 14px; font: 600 16px/1.5 var(--sans); }
.pcard--best .pcard__math { color: rgba(251, 249, 237, 0.92); }
.pcard__list { margin: 0 0 22px; padding: 0; list-style: none; }
.pcard__list li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.5; }
.pcard--best .pcard__list li { border-top-color: var(--rule-light); }
.pcard__list li::before { content: "\2713"; position: absolute; left: 0; top: 9px; color: var(--teal); font: 800 16px/1.5 var(--sans); }
.pcard--best .pcard__list li::before { color: var(--lime); }
.pcard .btn { margin-top: auto; }
.pcard:not(.pcard--best) .btn { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.pcard:not(.pcard--best) .btn:hover { background: var(--teal); border-color: var(--teal); }
.pcard a:not(.btn) { color: inherit; }
.pcard__rows { margin: 0 0 18px; padding: 0; list-style: none; }
.pcard__rows li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.4; }
.pcard__rows li span:last-child { font: 800 16px var(--sans); white-space: nowrap; }
.price-line { max-width: 980px; margin: clamp(28px, 4vw, 40px) 0 0; padding: 14px 20px; background: var(--white); border: 2px solid var(--ink); border-radius: 6px; font: 600 17px/1.55 var(--sans); white-space: pre-line; }
.price-line[hidden] { display: none; }
.price-line strong { color: var(--teal); }

/* the big launch box above the price cards */
.launch {
  max-width: 980px; margin: 0 0 clamp(36px, 5vw, 52px); padding: clamp(18px, 2.6vw, 26px);
  background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 6px 7px 0 var(--ink);
}
.launch__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.launch__label { margin: 0 0 8px; font: 800 13px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.launch .clock { gap: 8px; }
.launch .clock__u { min-width: 64px; padding: 9px 8px 7px; font-size: 32px; }
.launch .clock__u small { font-size: 11px; }
.launch .slots { flex: 1 1 260px; min-width: 0; }
.launch__note { margin: 16px 0 0; font: 700 16px/1.45 var(--sans); }
.launch__fine { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }

/* closing: where you could be, and where you could stay; then the results note */
.future { max-width: 40em; margin: 0 0 18px; }
.future p { margin: 0 0 0.9em; }
.future__yes { font: 700 clamp(19px, 2vw, 23px)/1.4 var(--sans); letter-spacing: -0.01em; }
.future__no { color: var(--muted); }
.future__done { margin: 0 0 22px; font: 800 clamp(20px, 2.2vw, 26px)/1.3 var(--sans); letter-spacing: -0.01em; }
.disclaimer { max-width: 62ch; margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* real reviews (hidden until there are some) */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.sec--teal { --focus: var(--lime); background: var(--teal); color: var(--paper); }
.sec--teal .h2 { color: var(--paper); }
.sec--teal .eyebrow { color: var(--lime); }
.sec--teal .lead { color: rgba(251, 249, 237, 0.86); }
.sec--teal .review { box-shadow: 6px 7px 0 var(--ink); }
.review { height: 100%; margin: 0; padding: 24px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 6px 7px 0 var(--teal); }
.review blockquote { margin: 0 0 16px; }
.review blockquote p { margin: 0; font: italic 400 18px/1.6 var(--serif); }
.review figcaption strong { display: block; font: 800 16px/1.3 var(--sans); }
.review figcaption span { color: var(--muted); font: 500 14px/1.4 var(--sans); }

.hero__after { margin: 8px 0 0; color: var(--paper); font: 600 15px/1.45 var(--sans); }
.hero__after strong { color: var(--lime); }

@media (max-width: 1000px) {
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcards--3, .reviews { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .pcards { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .launch, .price-line { max-width: 560px; }
}

@media (max-width: 720px) {
  .launchbar__in { gap: 6px 14px; padding-block: 9px; font-size: 14px; }
  .launchbar__what { flex-basis: 100%; text-align: center; }
  .clock__u { min-width: 40px; padding: 4px 5px 3px; font-size: 17px; }
  .launch .clock { width: 100%; }
  .launch .clock__u { flex: 1; min-width: 0; padding: 8px 4px 6px; font-size: 26px; }
  .ticker__track { padding-block: 10px; font-size: 12.5px; }
  .road { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .road li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; box-shadow: 4px 5px 0 var(--teal); }
  .road li::before { grid-row: 1 / span 2; margin: 0; }
  .root { margin-top: 28px; padding: 18px; }
  .syl { grid-template-columns: minmax(0, 1fr); }
  .syl > div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .syl > div { padding: 16px 18px; }

  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl { background: none; border: 0; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { margin-bottom: 14px; padding: 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; }
  .tbl th, .tbl td { padding: 0; border: 0; }
  .tbl td { margin-top: 12px; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--teal); font: 800 11px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
  .tbl--lvl tbody th { width: auto; }
  .tbl tr[aria-current] th { box-shadow: none; }
  .tbl tr[aria-current] { box-shadow: inset 6px 0 0 var(--teal); }
  .tbl__price { white-space: normal; }

  .pcard__list--spec { display: none; }
  .pcard { box-shadow: 5px 6px 0 var(--teal); }
  .pcard--best { box-shadow: 5px 6px 0 var(--lime); }
  .pcards { gap: 30px; }
  .hero__after { order: 4; margin: -4px 0 14px; }
  .review { padding: 20px; }
}
