/* ---------- Brand tokens: light (default) and dark ---------- */
:root {
  --bg: #F3ECDF;
  --surface: #FBF8F2;
  --alt: #EAE1D1;
  --ink: #0E1E3A;
  --muted: #4A5873;
  --line: rgba(14, 30, 58, 0.14);
  --accent: #2457D6;
  --accent-hover: #1C47B3;
  --on-accent: #FFFFFF;
  --deep: #0E1E3A;
  --on-deep: #F3ECDF;
  --on-deep-muted: #B8C3D9;
  --deep-line: rgba(243, 236, 223, 0.14);
  --chip: rgba(14, 30, 58, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B1426;
  --surface: #13203A;
  --alt: #0F1A30;
  --ink: #E8ECF4;
  --muted: #A9B4C8;
  --line: rgba(232, 236, 244, 0.12);
  --accent: #6B9BFF;
  --accent-hover: #8DB2FF;
  --on-accent: #0B1426;
  --deep: #16264A;
  --on-deep: #E8ECF4;
  --on-deep-muted: #B8C3D9;
  --deep-line: rgba(232, 236, 244, 0.14);
  --chip: rgba(232, 236, 244, 0.1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
b, strong { font-weight: 600; }
img { max-width: 100%; display: block; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--alt); }
.section.dark { background: var(--deep); color: var(--on-deep); }
.section.dark .eyebrow { color: var(--accent); }
:root[data-theme="light"] .section.dark .eyebrow { color: #8DB2FF; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9em;
}
.lead { font-size: 1.2rem; }
.fine, .source { font-size: .85rem; color: var(--muted); }
.section.dark .source { color: var(--on-deep-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease, border-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Concept bar + nav ---------- */
.concept-bar {
  background: var(--deep);
  color: var(--on-deep-muted);
  text-align: center;
  font-size: .8rem;
  padding: 8px 16px;
}
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .92rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy > p:not(.eyebrow):not(.fine) { max-width: 52ch; color: var(--muted); }
.hero-copy .lead { color: var(--ink) !important; font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-media { aspect-ratio: 4 / 5; }

/* Photos */
.photo { margin: 0; border-radius: 20px; overflow: hidden; position: relative; background: var(--alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 50% 30%; }
.hero-media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--surface); color: var(--ink);
  font-size: .85rem; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(14, 30, 58, .18);
}
.hero-media::after {
  content: ""; position: absolute; right: -1px; top: -1px;
  width: 30%; height: 30%;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: .9;
}

/* ---------- Proof ---------- */
.proof { border-block: 1px solid var(--line); padding: 36px 0 28px; }
.stats { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.stats span { font-size: .9rem; color: var(--muted); }
.trusted { margin-bottom: 4px; }

/* ---------- Problem ---------- */
.pain-grid { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pain-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pain-grid strong { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); margin-right: 6px; }
.reframe { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 500; border-left: 3px solid var(--accent); padding-left: 18px; }

/* ---------- 80/20 week ---------- */
.week { display: grid; gap: 28px; margin: 32px 0 16px; }
.week-label { font-weight: 600; margin-bottom: 10px; }
.bar { display: flex; gap: 6px; min-height: 104px; }
.seg { border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.seg-title { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips i { font-style: normal; font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--chip); white-space: nowrap; }
.seg-you-all { flex: 1; background: var(--surface); border: 1px solid var(--line); }
.seg-you-all .chips i.hi { background: var(--accent); color: var(--on-accent); }
.seg-rh { flex: 0 0 calc(80% - 3px); background: var(--deep); color: var(--on-deep); }
.seg-rh .chips i { background: var(--deep-line); }
.seg-you { flex: 0 0 calc(20% - 3px); background: var(--accent); color: var(--on-accent); }
.seg-you .chips i { background: rgba(255, 255, 255, .22); }
:root[data-theme="dark"] .seg-you .chips i { background: rgba(11, 20, 38, .18); }

/* the "wow": the split animates in when the section enters the screen */
.js .week[data-animate] .seg-rh,
.js .week[data-animate] .seg-you { transition: flex-basis 1.1s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; }
.js .week[data-animate]:not(.in) .seg-rh { flex-basis: 50%; opacity: .35; }
.js .week[data-animate]:not(.in) .seg-you { flex-basis: 50%; opacity: .35; }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.compare-col ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.compare-col li + li { margin-top: 6px; }
.compare-col.featured { border: 2px solid var(--accent); }
.compare-col.featured ul { color: var(--ink); }
.compare-col.featured li::marker { color: var(--accent); }

/* ---------- Steps ---------- */
.how-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; margin-top: 32px; align-items: stretch; }
.how-photo { min-height: 100%; }
.how-photo img { position: absolute; inset: 0; object-position: 50% 40%; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 600; margin-bottom: 16px; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.card h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 14px; }

/* ---------- Offer ---------- */
.offer-table { margin-top: 32px; border: 1px solid var(--deep-line); border-radius: var(--radius); overflow: hidden; }
.offer-head, .offer-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 16px 22px; }
.offer-head { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); background: rgba(255, 255, 255, .04); }
.offer-row { border-top: 1px solid var(--deep-line); }
.offer-row span:last-child { color: var(--on-deep-muted); font-style: italic; }
.offer-row b { color: var(--on-deep); }
.offer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.offer-cta p { margin: 0; font-size: 1.1rem; }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.founder-photo { margin: 0; position: sticky; top: 100px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px var(--alt), 0 0 0 10px var(--accent); max-width: 400px; justify-self: center; width: 100%; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.founder-id { color: var(--muted); }
.creds { padding-left: 1.1em; margin: 0 0 1.4em; }
.creds li + li { margin-top: 6px; }
.pull { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; border-left: 3px solid var(--accent); padding-left: 18px; margin: 1.4em 0; }

/* ---------- Guarantee ---------- */
.guarantee { text-align: center; }
.guarantee h2 { margin-inline: auto; }
.shield { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 12px; }

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 28px; }
.fit-col { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.fit-col ul { list-style: none; padding: 0; margin: 0; }
.fit-col li { padding-left: 28px; position: relative; }
.fit-col li + li { margin-top: 10px; }
.fit-col li::before { position: absolute; left: 0; font-weight: 600; }
.fit-col.yes { border: 2px solid var(--accent); }
.fit-col.yes li::before { content: "✓"; color: var(--accent); }
.fit-col.no li { color: var(--muted); }
.fit-col.no li::before { content: "×"; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* ---------- Book ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.countdown { border: 1px solid var(--deep-line); border-radius: var(--radius); padding: 20px; margin: 28px 0; }
.countdown-label { font-size: .85rem; color: var(--on-deep-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown-units span { display: flex; flex-direction: column; align-items: center; font-size: .8rem; color: var(--on-deep-muted); background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 12px 4px; }
.countdown-units b { font-family: var(--serif); font-size: 2rem; color: var(--on-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-done { font-weight: 600; margin: 0; }
blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
blockquote cite { display: block; margin-top: 8px; font: 400 .9rem var(--sans); color: var(--on-deep-muted); font-style: normal; }
blockquote cite::before { content: "— "; }

.book-form { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.book-form h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 4px; }
.book-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.book-form input, .book-form select, .book-form textarea {
  font: 400 1rem var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.book-form [aria-invalid="true"] { border-color: #D64545; }
.form-error { color: #D64545; font-size: .9rem; margin: 0; }
:root[data-theme="dark"] .form-error { color: #FF8A8A; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
.form-success { text-align: center; padding: 24px 0; }
.form-success h3 { color: var(--accent); }
.form-success p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer p { margin: 0; max-width: 80ch; }
.footer .credits { margin-top: 8px; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .founder-grid, .book-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { aspect-ratio: 16 / 10; }
  .founder-photo { position: static; max-width: 280px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-photo { aspect-ratio: 16 / 10; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name { font-size: 1rem; }
  .nav .btn-sm { display: none; }
  .steps, .benefits, .compare, .fit, .pain-grid { grid-template-columns: 1fr; }
  .bar.split { flex-direction: column; }
  .bar.split .seg { flex-basis: auto !important; }
  .offer-head { display: none; }
  .offer-row { grid-template-columns: 1fr; gap: 4px; }
  .countdown-units b { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
