:root {
  --bg: #fbfaf8;
  --panel: #fff;
  --ink: #16181d;
  --muted: #5f6672;
  --line: #e6e3dd;
  --accent: #2f6f4f;
  --accent-ink: #fff;
  --accent-soft: #eaf3ee;
  --warn-bg: #fff4dc;
  --warn-ink: #7a4f00;
  --danger: #b42318;
  --shade: rgba(22, 24, 29, .04);
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 8px 24px -12px rgba(20, 22, 26, .18);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --panel: #171a20;
    --ink: #eceef2;
    --muted: #99a1ae;
    --line: #262b34;
    --accent: #6fcf9a;
    --accent-ink: #0d1a13;
    --accent-soft: #17251d;
    --warn-bg: #2a2112;
    --warn-ink: #f2c46b;
    --danger: #ff8a80;
    --shade: rgba(255, 255, 255, .03);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.error { color: var(--danger); font-size: 15px; margin: 12px 0 0; }

/* Demo bar and header */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}
.demo-bar.warn { background: var(--warn-bg); color: var(--warn-ink); }
.demo-bar label { display: inline-flex; align-items: center; gap: 8px; }
.demo-bar select {
  max-width: 100%;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 4px 8px;
}
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
}
header nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
header nav a { color: var(--muted); font-weight: 500; text-decoration: none; }
header nav a:hover { color: var(--ink); }
@media (max-width: 420px) { header nav { gap: 14px; font-size: 14px; } }

/* Type */
main { padding-bottom: 80px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -.025em; font-weight: 750; margin: 0 0 16px; max-width: 18ch; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 56ch; margin: 0 0 32px; }
.hero { padding: 72px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
section { scroll-margin-top: 80px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 56px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.section-head p { margin: 0; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  padding: 11px 18px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.disabled { background: transparent; color: var(--muted); border: 1px dashed var(--line); cursor: default; filter: none; }
.btn.disabled:hover { filter: none; }
.btn.big { width: 100%; padding: 15px 22px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions > :first-child { flex: 1; }

/* Product cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product { display: flex; flex-direction: column; overflow: hidden; }
.product .body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 6px; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.tagline { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.price { font-size: 26px; font-weight: 750; letter-spacing: -.01em; margin: auto 0 14px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price s { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.cover-link { display: block; text-decoration: none; padding: 28px 24px; background: var(--shade); border-bottom: 1px solid var(--line); }
.pill {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bundle { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .bundle { flex-direction: row; }
  .bundle .cover-link { flex: 0 0 42%; display: grid; place-items: center; border-bottom: 0; border-right: 1px solid var(--line); }
  .bundle .body { padding: 28px; }
}

/* Ebook covers (flat, typographic) */
.cover {
  container-type: inline-size;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 190px;
  margin: 0 auto;
  display: flex;
  border-radius: 3px 8px 8px 3px;
  background: var(--cover);
  color: #fff;
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, .18), 0 10px 20px -14px rgba(0, 0, 0, .55);
}
/* Container units resolve against .cover / .coach-art, so the padding sits on the inner element. */
.art-in { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 9cqi 8cqi; }
.cover-brand, .cover-kind { font-size: 5.6cqi; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.cover-title { font-size: 11cqi; line-height: 1.12; font-weight: 750; letter-spacing: -.01em; }
.stack { display: flex; justify-content: center; width: 100%; max-width: 380px; margin: 0 auto; }
.stack .cover { flex: 0 0 32%; margin: 0 -1%; }
.stack .cover:nth-child(2) { position: relative; z-index: 1; transform: translateY(-6%); }
.coach-art {
  container-type: inline-size;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  display: flex;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
}
.coach-art .cover-title { font-size: 12cqi; }
.coach-art.alt { background: #24456b; color: #fff; }

ul.ticks { list-style: none; margin: 0 0 18px; padding: 0; font-size: 15px; }
ul.ticks li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); }
ul.ticks li:first-child { border-top: 0; }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 20px; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 750;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Product page */
.product-page { display: grid; gap: 32px; padding: 48px 0; }
@media (min-width: 800px) { .product-page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; } }
.product-visual { display: grid; place-items: center; padding: 40px 24px; background: var(--shade); border: 1px solid var(--line); border-radius: var(--radius); }
.product-visual .cover { max-width: 280px; }
.product-page h1 { font-size: clamp(30px, 4.6vw, 44px); }
.product-page .lede { margin-bottom: 20px; }
.product-page .price { margin: 0 0 16px; font-size: 32px; }
.product-page h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 32px 0 8px; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.back { display: inline-block; margin-top: 32px; color: var(--muted); font-size: 15px; }

/* Buy area: notes for methods that need setup, and Stripe embeds */
.buy-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.buy-note code, .note code { font-size: 13px; }
.method-tag { display: block; color: var(--muted); font-size: 13px; margin-top: 10px; }
.embed { margin-top: 8px; }
.pricing { padding: 8px 0 0; }

/* Extras on the checkout form: add-on and daily tip opt-in */
.extras { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.extras legend { padding: 0; margin: 0 0 12px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.extra {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.extra:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.extra input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.extra strong { display: block; font-size: 15px; }
.extra small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.extra b { font-size: 15px; white-space: nowrap; }
.lines-mini { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; }
.lines-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--muted); }

/* Upsell page */
.offer { max-width: 760px; padding: 48px 0 0; }
.offer .panel { padding: 28px; margin-top: 8px; }
.offer .price { margin: 0 0 18px; font-size: 32px; }
.offer .btn.big + .btn { margin-top: 10px; }
.offer .btn.ghost.big { font-weight: 600; }

/* Checkout page */
.page-head { padding: 40px 0 0; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 0; }
.checkout-page { display: grid; gap: 24px; padding: 28px 0 0; }
@media (min-width: 860px) { .checkout-page { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.checkout-page.single { grid-template-columns: minmax(0, 1fr); }
.summary { padding: 24px; }
@media (min-width: 860px) { .summary { position: sticky; top: 88px; } }
.summary .cover, .summary .stack { max-width: 150px; margin: 0 0 18px; }
.summary .coach-art { max-width: 200px; margin: 0 0 18px; }
.summary h2 { font-size: 20px; margin: 0 0 6px; }
.summary .tagline { margin-bottom: 18px; }
.total { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 750; }
.then { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.pay-form { padding: 24px; }
.pay-form h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.pay-form h2:not(:first-child) { margin-top: 28px; }
.field { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.field input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.pay-form .btn.big { margin-top: 24px; }
#embedded-checkout { min-height: 420px; }

/* Thank-you page */
.thanks { max-width: 760px; padding: 56px 0 0; }
.thanks .panel { padding: 24px; margin-top: 20px; }
.thanks .panel h2 { font-size: 20px; margin: 0 0 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row strong { font-weight: 650; }

.ref { color: var(--muted); font-size: 13px; margin-top: 28px; overflow-wrap: anywhere; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
