:root {
  --ink: #0E1712;
  --ink-2: #1C2A23;
  --green: #0B5D3B;
  --mint: #8FD3AE;
  --mint-2: #BDE5CF;
  --mint-3: #DDF0E5;
  --tint: #E8F1EC;
  --tint-ink: #5C7A6A;
  --muted: #4A5550;
  --muted-2: #7A857F;
  --body-2: #3A4540;
  --on-dark: #DCE3DF;
  --on-dark-2: #B9C4BE;
  --line: #E6E9E7;
  --line-2: #D5DBD8;
  --wash: #F5F7F6;
  --skeleton: #EEF1EF;
  --gutter: clamp(20px, 5vw, 64px);
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-family: 'Manrope', sans-serif; color: var(--ink); }
a { color: inherit; }
a:hover, .link:hover { opacity: .8; }
.link, a[data-go] { cursor: pointer; text-decoration: none; }
h1, h2, p { margin: 0; }
img { max-width: 100%; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[data-page] { display: none; }
[data-page].active { display: block; }
[hidden] { display: none !important; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px clamp(20px,4vw,64px); border-bottom: 1px solid var(--line); }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; background: var(--green); border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 13px; }
.nav { display: flex; flex: 1; justify-content: center; gap: clamp(8px,1.2vw,28px); white-space: nowrap; min-width: 0; font-size: clamp(12.5px,1.35vw,15px); font-weight: 500; }
.nav .link { color: var(--body-2); }
.nav .link.current { color: var(--green); font-weight: 700; }
.header-cta { white-space: nowrap; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; }

@media (max-width: 900px) {
  .header { flex-wrap: wrap; padding: 16px 16px 12px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; gap: 18px; font-size: 14px; padding-bottom: 4px; }
}

/* Shared type */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.on-dark .kicker { color: var(--mint); }
.page-title { font-size: clamp(36px,5vw,56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 620px; text-wrap: pretty; }
.h2 { font-size: 40px; letter-spacing: -0.03em; font-weight: 800; line-height: 1.08; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* Layout */
.wrap { max-width: 1152px; margin: 0 auto; }
.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.page-head { padding: 80px var(--gutter) 48px; max-width: 1152px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr)); }
.stack { display: flex; flex-direction: column; }

/* Buttons */
.btn { display: inline-block; cursor: pointer; padding: 16px 26px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: none; font-family: inherit; }
.btn-green { background: var(--green); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { border: 1.5px solid var(--ink); padding: 15px 24px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }


/* Cards */
.card { border: 1px solid var(--line); border-radius: 14px; background: #fff; }

/* Home */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px,100%),1fr)); gap: 64px; padding: 96px var(--gutter) 80px; align-items: center; max-width: 1280px; margin: 0 auto; }
.hero h1 { font-size: clamp(40px,5.5vw,64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.hero p { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 540px; text-wrap: pretty; }
.hero-img { justify-self: center; width: 100%; max-width: 560px; }
.hero-img img { width: 100%; display: block; border-radius: 16px; }

.learn-card { cursor: pointer; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.card-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card-cta { font-size: 15px; font-weight: 700; margin-top: auto; }

.lead { background: var(--green); color: #fff; border-radius: 18px; padding: clamp(28px,4vw,48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr)); gap: 40px; align-items: center; }
.lead .kicker { color: var(--mint-2); }
.lead-title { font-size: clamp(26px,3vw,34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.lead-copy { font-size: 16px; line-height: 1.55; color: var(--mint-3); }
.lead form { display: flex; flex-direction: column; gap: 10px; }
.lead input { font: inherit; font-size: 15px; padding: 14px 16px; border-radius: 10px; border: none; outline: none; color: var(--ink); }
.lead .btn { padding: 15px; }
.lead small { font-size: 13px; color: var(--mint-2); }
.lead-done { background: rgba(255,255,255,.1); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }

.svc-home { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 64px; }
@media (max-width: 800px) { .svc-home { grid-template-columns: 1fr; gap: 32px; } }
.svc-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.svc-row .t { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.svc-row .p { font-size: 19px; font-weight: 800; text-align: right; color: var(--green); }

/* Dark panels */
.dark-panel { background: var(--ink); color: #fff; border-radius: 18px; }
.dark-panel .soft { color: var(--on-dark); }
.dark-panel .softer { color: var(--on-dark-2); }


/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; }
.field textarea { resize: vertical; }
/* Honeypot: hidden from people, filled in by bots; the sheet script drops those rows */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.footer { padding: 48px var(--gutter); background: var(--wash); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Chapter placeholder lines */
.skel > div { height: 12px; background: var(--skeleton); border-radius: 3px; }

/* Designed thumbnails */
.grid-bg { background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.grid-bg-sm { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; }
.thumb { aspect-ratio: 16/9; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; }
.thumb-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.thumb-badge { font-family: var(--mono); font-size: 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.play { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.play::after { content: ""; border-left: 23px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.play.sm { width: 36px; height: 36px; }
.play.sm::after { border-left-width: 11px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 3px; }

.doc { width: 78%; aspect-ratio: 3/4; background: #fff; border-radius: 6px; box-shadow: 0 18px 36px rgba(14,23,18,.22); transform: rotate(-3deg); display: flex; flex-direction: column; overflow: hidden; }
.doc-head { background: var(--ink); color: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.doc-row { display: flex; align-items: center; gap: 8px; }
.doc-row .box { width: 10px; height: 10px; border: 1.5px solid var(--green); flex: none; }
.doc-row .line { height: 6px; background: var(--line); border-radius: 3px; }

.book { background: var(--ink); color: #fff; aspect-ratio: 2/3; border-radius: 3px 10px 10px 3px; box-shadow: 14px 18px 36px rgba(14,23,18,.25), inset 6px 0 0 rgba(255,255,255,.06); display: flex; flex-direction: column; overflow: hidden; flex: none; justify-self: center; }
.book-top { display: flex; flex-direction: column; flex: 1; }
.book-top .mono { color: var(--mint); letter-spacing: 0.08em; }
.book-title { font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.book-band { background-color: var(--green); display: flex; flex-direction: column; gap: 6px; }
.book-band .sub { line-height: 1.3; color: var(--mint-3); }
.book-band .by { font-weight: 800; letter-spacing: 0.08em; }
