:root {
  --paper: #fafafa;
  --white: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --line: #e6e6e6;
  --line-strong: #d4d4d4;
  --wash: #f3f3f3;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --nav-h: 64px;
  --ease: 160ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  word-spacing: normal;
  letter-spacing: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  word-spacing: 0.06em;
  letter-spacing: 0;
  white-space: normal;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  word-spacing: 0.06em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  color: var(--faint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 500;
}

.nav-cta:hover { opacity: 0.88; }

.nav-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.x-link {
  font-variant: normal;
  letter-spacing: -0.01em;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-tag {
  margin-top: 8px;
  font-size: 13px;
  color: var(--faint);
  max-width: 420px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--ease), opacity var(--ease), top var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ─── LAYOUT ─── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.hairline { border-top: 1px solid var(--line); }

.eyebrow {
  display: block;
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--ink);
  border-radius: 50%;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0;
  word-spacing: 0.08em;
  line-height: 1.2;
}

h1 { font-size: clamp(34px, 8vw, 64px); }
h2 { font-size: clamp(26px, 6vw, 40px); }
h3 { font-size: 20px; }

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.65;
  word-spacing: 0.06em;
  letter-spacing: 0;
}

.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity var(--ease), background var(--ease), border-color var(--ease);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.faq-q:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--white); }

.btn[disabled] { opacity: 0.55; cursor: wait; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ─── HERO ─── */
.hero {
  padding: 96px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 72px;
  align-items: center;
}

.hero-copy h1 { max-width: 13.5em; }
.hero .lede { margin-top: 20px; }
.hero-offer {
  color: var(--ink);
  font-weight: 500;
}

.aha {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 22px;
  min-height: 372px;
  display: flex;
  flex-direction: column;
}

.aha-track {
  list-style: none;
  position: relative;
  flex: 1;
  min-height: 292px;
}

.aha-beat {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: aha-cycle 15s ease-in-out infinite;
}

.aha-beat:nth-child(1) { animation-name: aha-first; animation-delay: 0s; }
.aha-beat:nth-child(2) { animation-delay: 5s; }
.aha-beat:nth-child(3) { animation-delay: 10s; }

@keyframes aha-first {
  0%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes aha-cycle {
  0%, 4% { opacity: 0; transform: translateY(10px); }
  8%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}

.aha-kicker {
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 12px;
}

.aha-beat h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.aha-beat > p {
  color: var(--muted);
  font-size: 15px;
  max-width: 34ch;
}

.aha-visual { margin-top: 22px; }

.aha-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink);
}

.aha-search-mark {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.aha-search-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  background: var(--ink);
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
}

.aha-answer {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--paper);
}

.aha-answer-src {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.aha-answer p { font-size: 15px; color: var(--ink); line-height: 1.5; }

.aha-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--faint);
}

.aha-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aha-engines span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}

.aha-progress {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.aha-progress i {
  height: 2px;
  flex: 1;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.aha-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  animation: aha-bar 15s linear infinite;
}

.aha-progress i:nth-child(1)::after { animation-delay: 0s; }
.aha-progress i:nth-child(2)::after { animation-delay: 5s; }
.aha-progress i:nth-child(3)::after { animation-delay: 10s; }

@keyframes aha-bar {
  0% { transform: scaleX(0); }
  2% { transform: scaleX(0); }
  30% { transform: scaleX(1); }
  33%, 100% { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .aha { min-height: 0; }
  .aha-track {
    position: static;
    min-height: 0;
    display: grid;
    gap: 28px;
  }
  .aha-beat {
    position: static;
    opacity: 1;
    transform: none;
    animation: none;
  }
  .aha-progress { display: none; }
}

.report {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.report-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

.report-dots { display: flex; gap: 6px; }
.report-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d9d9;
  display: block;
}

.report-body { padding: 22px 20px 8px; }

.report-query {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.report-query strong { color: var(--ink); font-weight: 600; }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.status {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.status-yes { background: var(--ink); color: var(--white); border-color: var(--ink); }
.status-gap { background: var(--wash); }

.report-note {
  padding: 16px 20px 20px;
  font-size: 12px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* ─── ENGINES / MEASURE ─── */
.engine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.measure-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.measure-item { background: var(--white); padding: 22px 24px; }
.measure-item h3 { margin-bottom: 6px; }
.measure-item p { color: var(--muted); font-size: 15px; }

/* ─── STEPS ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}

.step-num {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

.notice {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}

.notice[hidden] { display: none; }

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.tier {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: var(--paper);
  cursor: pointer;
}

.tier:has(input:checked) {
  border-color: var(--ink);
  background: var(--white);
}

.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier strong { display: block; font-size: 14px; margin-bottom: 4px; }
.tier span { font-size: 12px; color: var(--faint); }

.waitlist {
  margin-top: 20px;
  font-size: 13px;
  color: var(--faint);
}

.waitlist a { text-decoration: underline; text-underline-offset: 2px; }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card.featured { border-color: var(--ink); }

.price-kicker {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 10px;
}

.price-card h3 { font-size: 24px; margin-bottom: 8px; }
.price-card .amount {
  font-size: 40px;
  letter-spacing: -0.02em;
  word-spacing: 0.04em;
  font-weight: 600;
  margin: 18px 0 6px;
}

.price-card .amount span {
  font-size: 15px;
  color: var(--faint);
  letter-spacing: 0;
  font-weight: 400;
}

.price-card .desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.feats {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feats li::before {
  content: "–";
  color: var(--ink);
}

.price-card .btn { width: 100%; margin-top: auto; }

/* ─── FAQ ─── */
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.faq-q span { color: var(--faint); font-weight: 400; }

.faq-a {
  display: none;
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 46rem;
}

.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

/* ─── FORM ─── */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  transition: border-color var(--ease), background var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-note { margin-top: 12px; font-size: 12px; color: var(--faint); }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }

.feedback { margin-top: 12px; font-size: 14px; display: none; }
.feedback.ok, .feedback.err { display: block; }
.feedback.ok { color: var(--ink); }
.feedback.err { color: #7a1f1f; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.contact-links a:hover { color: var(--ink); }

/* ─── LEGAL ─── */
.page-hero { padding: 72px 0 40px; }
.page-hero .lede { margin-top: 16px; }
.legal { max-width: 720px; padding-bottom: 96px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 20px; margin-bottom: 16px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p { margin: 0; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer p { font-size: 13px; color: var(--faint); max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 22px; list-style: none; }
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

/* ─── COOKIE ─── */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
}

.cookie strong { display: block; margin-bottom: 6px; font-size: 14px; }
.cookie p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.cookie p a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-settings {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 70;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-cta { width: fit-content; margin-top: 8px; }
  .hero-grid,
  .split,
  .book-grid,
  .pricing-grid,
  .steps,
  .tiers { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; min-height: 0; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .hero {
    min-height: calc(100vh - var(--nav-h));
    padding: 80px 0;
  }
}

@media (max-width: 520px) {
  .hero { padding-top: 36px; }
  .cta-row .btn { width: 100%; }
  .aha { padding: 22px 20px 18px; }
  .aha-beat h3 { font-size: 20px; }
}
