/* Aprendio cost funnel. Brand tokens match aprendio.ai. */
:root {
  --paper: #fcfaf7;
  --white: #ffffff;
  --ink: #191a1f;
  --ink-soft: #303339;
  --slate: #5b5f6a;
  --rule: #e4e1da;
  --brand: #f6722b;
  --brand-deep: #d9561a;
  --brand-wash: #fdeee4;
  --ok: #1f7a4d;
  --error: #b42318;

  --measure: 40rem;
  --gutter: 1.25rem;
  --radius-control: 0.75rem;
  --radius-sheet: 1.25rem;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.4vw, 4.25rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- frame ---------- */
.top {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 0;
}
.top img { height: 1.375rem; width: auto; }
main {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}
main.wide { max-width: calc(52rem + 2 * var(--gutter)); }
.foot {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  font-size: var(--step--1);
}
.foot p { margin: 0 0 0.5rem; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); line-height: 1.2; }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; margin-top: 1rem; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0.875rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 var(--brand-deep), 0 10px 24px -12px rgba(217, 86, 26, 0.7);
  transition: transform 120ms ease, background-color 120ms ease;
}
.btn:hover { background: var(--brand-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.quiet:hover { background: var(--ink); color: var(--white); }
.btn-note { margin-top: 0.75rem; font-size: var(--step--1); color: var(--slate); }

/* ---------- landing ---------- */
.hero { padding-top: 1rem; }
.hero h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.035em; }
.hero .btn { margin-top: 1.75rem; }
.byline {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.byline img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.byline p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.45; }
.byline strong { color: var(--ink); }

/* ---------- quiz ---------- */
#quiz:empty { display: none; }
.progress { height: 4px; background: var(--rule); border-radius: 999px; overflow: hidden; margin-bottom: 2rem; }
.progress span { display: block; height: 100%; width: 6%; background: var(--brand); border-radius: inherit; transition: width 300ms ease; }
.step-count { margin: 0 0 0.5rem; color: var(--slate); font-size: var(--step--1); }
.step-q { font-size: var(--step-3); outline: none; }
.step-q.long { font-size: var(--step-2); line-height: 1.25; }
.step-help { margin-top: 0.75rem; color: var(--slate); }
.step-head { margin-bottom: 1.5rem; }
.choices { display: grid; gap: 0.625rem; }
.choice {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-control);
  font: inherit;
  font-size: var(--step-1);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.choice small { font-size: var(--step--1); font-weight: 400; color: var(--slate); }
.choice:hover { border-color: var(--ink); }
.choice.is-chosen { border-color: var(--brand); background: var(--brand-wash); }
.back {
  appearance: none;
  margin-top: 1.25rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--slate);
  font: inherit;
  font-size: var(--step--1);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.field { display: grid; gap: 0.375rem; margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 0.75rem; grid-template-columns: 1fr 1fr; }
label { font-weight: 600; font-size: var(--step--1); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-control);
  font: inherit;
  font-size: var(--step-1);
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.45; margin-bottom: 0.5rem; }
input:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--brand-wash); }
.field-error { min-height: 1.5rem; margin: 0 0 0.5rem; color: var(--error); font-size: var(--step--1); font-weight: 600; }
.field-error:empty { min-height: 0; }
.contact-step .btn, .text-step .btn { width: 100%; }
.consent { margin-top: 1rem; font-size: 0.75rem; line-height: 1.5; color: var(--slate); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- the bill ---------- */
.bill {
  margin: 1.75rem 0 0;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sheet);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(25, 26, 31, 0.35);
  position: relative;
  font-variant-numeric: tabular-nums;
}
.bill-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 1rem; font-size: var(--step--1); color: var(--slate); }
.bill-title strong { color: var(--ink); font-size: var(--step-0); }
.bill dl { margin: 0; }
.bill .line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.bill dt { color: var(--ink-soft); }
.bill dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.bill .op { color: var(--slate); font-weight: 400; margin-right: 0.25rem; }
.bill .total { border-bottom: 0; padding-top: 1rem; }
.bill .total dt { font-weight: 700; color: var(--ink); align-self: center; }
.bill .total dd { font-size: var(--step-4); line-height: 1; letter-spacing: -0.04em; color: var(--brand-deep); font-weight: 800; }
.bill-foot { margin: 0.75rem 0 0; font-size: var(--step--1); color: var(--slate); }

.reveal .line { opacity: 0; transform: translateY(4px); animation: lineIn 380ms ease forwards; }
.reveal .line:nth-child(2) { animation-delay: 220ms; }
.reveal .line:nth-child(3) { animation-delay: 440ms; }
.reveal .line:nth-child(4) { animation-delay: 660ms; }
.reveal .line:nth-child(5) { animation-delay: 1000ms; }
@keyframes lineIn { to { opacity: 1; transform: none; } }

.fte { margin-top: 2rem; font-size: var(--step-1); line-height: 1.45; }

/* ---------- video ---------- */
.vsl-head { margin: 3rem 0 1rem; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius-sheet);
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(25, 26, 31, 0.55);
}
.player video { width: 100%; height: 100%; object-fit: cover; }
.sound {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: linear-gradient(to bottom, rgba(25, 26, 31, 0) 40%, rgba(25, 26, 31, 0.35));
  cursor: pointer;
  font: inherit;
}
.sound span {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.375rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: var(--step-1);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.sound svg { width: 1.375rem; height: 1.375rem; flex: none; }
.sound.is-paused span::after { content: " and play"; }
.sound[hidden] { display: none; }

.cta-block { margin-top: 2rem; }
.cta-block .btn { width: 100%; }

/* ---------- inline notes ---------- */
.note {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 0.25rem;
  background: var(--brand-wash);
  border-radius: var(--radius-control);
}
.note h3 { margin-bottom: 0.5rem; }

/* ---------- booked page ---------- */
.steps { list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  border-left: 2px solid var(--rule);
  margin-left: 1.125rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: -1.1875rem;
  top: -0.125rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: var(--step--1);
}
.steps h3 { margin-bottom: 0.375rem; }
.steps p { color: var(--ink-soft); margin-bottom: 0; }

.case {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sheet);
}
.case h2 { color: var(--white); margin-bottom: 1rem; }
.case p { color: #d9d6cf; }
.case .figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; font-variant-numeric: tabular-nums; }
.case .figures div { border-top: 2px solid var(--brand); padding-top: 0.625rem; }
.case .figures strong { display: block; font-size: var(--step-2); color: var(--white); letter-spacing: -0.02em; line-height: 1.1; }
.case .figures span { font-size: var(--step--1); color: #b9b6ae; }

.calendar-frame { width: 100%; min-height: 760px; border: 0; border-radius: var(--radius-sheet); background: var(--white); }

.share-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.share-row .btn { flex: 1 1 14rem; }

@media (max-width: 30rem) {
  .field-row { grid-template-columns: 1fr; }
  .bill { padding: 1.25rem 1rem 1rem; }
  .bill .total { grid-template-columns: 1fr; gap: 0.375rem; }
  .bill .total dd { text-align: left; }
  .case .figures { grid-template-columns: 1fr; }
  .btn { font-size: var(--step-0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .reveal .line { opacity: 1; transform: none; }
}
