:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f1e1b;
  --muted: #6b6860;
  --line: #e7e4dc;
  --dot: #e2ddd0;
  --accent: #e8553a;
  --accent-ink: #ffffff;
  --accent-soft: #fde9e4;
  --highlight: #fff3c4;
  --highlight-ink: #6e5600;
  --green: #2f8f5b;
  --green-soft: #e3f3ea;
  --blue: #2d5fa8;
  --blue-soft: #e6effc;
  --code-bg: #1f1e1b;
  --code-ink: #f2efe7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 30, 27, .06), 0 12px 32px rgba(31, 30, 27, .08);
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #151412;
  --surface: #1e1d1a;
  --ink: #f3efe6;
  --muted: #a7a297;
  --line: #2f2d28;
  --dot: #2a2824;
  --accent: #f0654a;
  --accent-ink: #ffffff;
  --accent-soft: #3a1f19;
  --highlight: #3a3216;
  --highlight-ink: #f6d77a;
  --green: #63d39c;
  --green-soft: #17322a;
  --blue: #8db8f5;
  --blue-soft: #1a2940;
  --code-bg: #0e0d0c;
  --code-ink: #f2efe7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo {
  font-family: var(--hand); font-size: 24px; text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; margin-right: auto;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 20px;
  transform: rotate(-6deg); transition: transform .3s ease;
}
.logo:hover .logo-mark { transform: rotate(6deg) scale(1.06); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform .3s ease, border-color .2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 22px/1 var(--hand); letter-spacing: .01em;
  padding: 15px 28px; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .2s ease, box-shadow .2s ease, opacity .15s;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: 9px 18px; font-size: 18px; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.eyebrow {
  display: inline-block; font-family: var(--hand); font-size: 19px;
  background: var(--highlight); color: var(--highlight-ink);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 18px;
  transform: rotate(-1.5deg);
}
h1, h2 { font-family: var(--hand); font-weight: 400; letter-spacing: 0; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(54px, 9vw, 96px); }
h2 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 14px; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }

.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg {
  position: absolute; left: -4%; bottom: -14px; width: 108%; height: 22px;
  overflow: visible; pointer-events: none;
}
.scribble path {
  fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: draw 1s .9s cubic-bezier(.6, .1, .2, 1) forwards;
}

.lead { font-size: 20px; color: var(--muted); max-width: 620px; margin: 24px auto 32px; }
.cta-row { position: relative; display: inline-block; }
.note {
  position: absolute; left: calc(100% + 18px); top: -6px; width: 170px; text-align: left;
  font-family: var(--hand); font-size: 20px; line-height: 1.1; color: var(--muted);
  transform: rotate(4deg);
}
.note svg { display: block; width: 46px; height: 34px; margin: 2px 0 0 -6px; color: var(--muted); }
.trust { margin-top: 16px; font-size: 14px; color: var(--muted); }
.trust span + span::before { content: "·"; margin: 0 10px; }
.checkout-error { color: var(--accent); font-size: 14px; margin-top: 12px; min-height: 1em; }

/* ---------- Product mockup ---------- */
.stage { position: relative; margin: 64px auto 0; max-width: 920px; perspective: 1400px; }
.stage::before {
  content: ""; position: absolute; inset: 10% 8% -6%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  filter: blur(40px);
}
.mockup {
  text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1));
  transform-origin: 50% 0;
  will-change: transform;
}
.mockup-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mockup-bar i:first-child { background: #f2786a; }
.mockup-bar i:nth-child(2) { background: #f6c75a; }
.mockup-bar i:nth-child(3) { background: #6cc98a; }
.mockup-body { padding: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.mockup-title { grid-column: 1 / -1; font-size: 26px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.panel h4 { margin: 0 0 10px; font-size: 15px; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.row:last-child { border-bottom: 0; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip.red { background: var(--accent-soft); color: var(--accent); }
.chip.yellow { background: var(--highlight); color: var(--highlight-ink); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.courses { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.course { border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; }
.course b { display: block; margin-bottom: 8px; }
.dots { display: flex; align-items: center; gap: 4px; }
.dots i {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--accent); background: transparent;
  transition: background-color .25s ease, transform .25s ease;
  transition-delay: calc(var(--n, 0) * 90ms + 400ms);
}
.dots i.on { background: var(--accent); }
.dots small { color: var(--muted); margin-left: 6px; font-size: 12px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.card .icon { font-size: 30px; margin-bottom: 10px; display: inline-block; transition: transform .3s ease; }
.card:hover .icon { transform: rotate(-10deg) scale(1.15); }
.card h3 { font-family: var(--hand); font-weight: 400; font-size: 26px; line-height: 1.1; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.problem .card { background: transparent; }
.problem .card h3::before { content: "✗ "; color: var(--accent); }

.prompt-box {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px; font: 14px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace;
  text-align: left; box-shadow: var(--shadow);
}
.prompt-box .ln { display: block; min-height: 1.7em; white-space: pre-wrap; }
.prompt-box .ph { color: #ffb4a3; }
.prompt-box .caret {
  display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px;
  background: var(--accent); animation: blink 1s steps(1) infinite;
}
.prompt-label { font-family: var(--hand); font-size: 20px; color: var(--muted); margin-bottom: 8px; text-align: left; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul { padding-left: 0; list-style: none; }
.split li { padding: 8px 0 8px 30px; position: relative; }
.split li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 24px/1 var(--hand); margin-bottom: 14px;
  transform: rotate(-8deg);
}

/* ---------- Pricing ---------- */
.price-card {
  max-width: 460px; margin: 0 auto; text-align: left; position: relative;
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: 20px; padding: 36px; box-shadow: 8px 8px 0 var(--accent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--accent); }
.price { font-family: var(--hand); font-size: 76px; line-height: 1; }
.price small { font-family: var(--sans); font-size: 16px; color: var(--muted); margin-left: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; }
.price-card li { padding: 7px 0 7px 30px; position: relative; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card .btn { width: 100%; }
.guarantee { font-size: 14px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; }
details[open] p { animation: rise .35s ease both; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav a { margin-left: 18px; text-decoration: none; }
footer nav a:first-child { margin-left: 0; }
footer nav a:hover { color: var(--ink); }

/* ---------- Legal / simple pages ---------- */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(44px, 7vw, 64px); margin-bottom: 8px; }
.page h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin: 32px 0 8px; }
.page .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.page p, .page li { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }

/* ---------- Thank-you ---------- */
.thanks { text-align: center; padding: 80px 0; }
.thanks .big { font-size: 56px; display: inline-block; animation: pop .6s .1s cubic-bezier(.3, 1.6, .5, 1) both; }
.access-box {
  margin: 32px auto 0; max-width: 520px; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.access-box h3 { font-family: var(--hand); font-weight: 400; font-size: 28px; }
.access-box ol { padding-left: 20px; margin: 16px 0 0; }
.access-box li { margin-bottom: 8px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(1deg) translateY(-3px); } }

.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
.note { animation: wiggle 3s ease-in-out infinite; }

html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .mockup .chip { opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1); transition-delay: var(--d, 0ms); }
html.js .mockup.in .chip { opacity: 1; transform: none; }
html.js .prompt-box .ln { opacity: 0; transform: translateX(-6px); transition: opacity .35s ease, transform .35s ease; transition-delay: var(--d, 0ms); }
html.js .prompt-box.in .ln { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  .mockup { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .note { display: none; } }
@media (max-width: 860px) {
  .split { gap: 28px; }
  .mockup-body { padding: 22px; gap: 22px; }
  .card { padding: 22px; }
}
@media (max-width: 700px) {
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .mockup-body { grid-template-columns: 1fr; padding: 18px; }
  .courses { grid-template-columns: 1fr; }
  .split { gap: 28px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .lead { font-size: 18px; }
  .btn { font-size: 19px; padding: 14px 20px; }
  .logo { font-size: 20px; gap: 6px; }
  .logo-mark { width: 26px; height: 26px; font-size: 17px; }
  .nav .wrap { gap: 8px; }
  .nav .btn-sm { padding: 8px 12px; font-size: 16px; }
  .theme-toggle { width: 36px; height: 36px; }
  .eyebrow { font-size: 16px; }
  section { padding: 56px 0; }
  .trust span { display: block; }
  .trust span + span::before { content: none; }
  footer nav a { margin: 0 14px 0 0; }
}
