:root {
  --orange: #ff6a00;
  --orange-soft: #ff8a3d;
  --ink: #0e0f13;
  --ink-2: #16181f;
  --ink-3: #1e2129;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --line: #e7e7e2;
  --text: #14151a;
  --muted: #6b6f7a;
  --muted-dark: #a2a7b4;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.28);
}

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

/* The `hidden` attribute must win over component display rules such as
   `.btn { display: inline-flex }`, which otherwise have equal specificity. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

#book { scroll-margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Stop iOS inflating text in landscape, and kill the grey tap flash. */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Inputs must be >=16px or iOS Safari zooms the page on focus. */
input, textarea, select { font-size: max(16px, 1rem); }

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
}
.btn-primary:hover { background: var(--orange-soft); box-shadow: 0 10px 30px rgba(255, 106, 0, 0.45); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: inherit; }
.section .btn-ghost { border-color: var(--line); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Page header (compact — traffic arrives already interested) ---------- */
.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.quick-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}
.quick-facts span {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.quick-facts strong { color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem); max-width: 1150px; margin: 0 auto; }
.section-dark { max-width: none; background: var(--ink); color: #fff; }
.section-dark .section-head h2, .section-dark .eyebrow { color: #fff; }
.section-dark .eyebrow { color: var(--orange-soft); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.section-sub, .section-head p { color: var(--muted); margin-top: 0.8rem; font-size: 1.05rem; }
.section-dark .section-sub { color: var(--muted-dark); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.step-num {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); }

/* Testimonials */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); padding: 1.8rem;
}
.quote blockquote { font-size: 1.08rem; margin-bottom: 1rem; }
.quote figcaption { color: var(--orange-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- Wizard ---------- */
/* No hero above it, so it shouldn't start halfway down the screen. */
.book-section { max-width: 720px; padding-top: clamp(2rem, 4vw, 3.25rem); }
.wizard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-width: 0;
}
.wizard-progress { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.wizard-progress-bar { height: 100%; width: 16.6%; background: var(--orange); border-radius: 999px; transition: width 0.3s ease; }
.wizard-step-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin: 0.7rem 0 1.4rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* fieldset defaults to min-inline-size: min-content, which makes wide content
   (the day strip) stretch the panel instead of scrolling inside it. */
.step-panel { border: none; display: none; animation: fade 0.25s ease; min-width: 0; }
.step-panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-panel legend { font-size: 1.45rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.01em; }
.optional-tag {
  display: inline-block;
  vertical-align: middle;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}
.field-hint { color: var(--muted); margin: -0.4rem 0 1.2rem; font-size: 0.95rem; }

.options { display: grid; gap: 0.7rem; }
.options-grid { grid-template-columns: repeat(2, 1fr); }
.option {
  text-align: left;
  font: inherit;
  font-weight: 600;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.option small { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.option:hover { border-color: var(--orange-soft); }
.option.selected { border-color: var(--orange); background: rgba(255, 106, 0, 0.08); }
.option.selected small { color: var(--orange); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.field-note { color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { resize: vertical; }

/* ---------- Calendar ---------- */
.cal {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.4rem;
}
/* Keep cells a sensible square size instead of stretching across the card. */
.cal > * { max-width: 24rem; margin-left: auto; margin-right: auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.cal-title { font-weight: 800; font-size: 1.05rem; }
.cal-nav {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font: 700 1.25rem/1 "Inter", sans-serif;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cal-nav:hover:not(:disabled) { background: var(--paper-2); border-color: var(--orange); }
.cal-nav:disabled { opacity: 0.25; cursor: not-allowed; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.cal-dow { margin-bottom: 0.3rem; }
.cal-dow span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 11px;
  background: none;
  font: 600 0.95rem "Inter", sans-serif;
  color: #c4c4bd;
  cursor: default;
  /* Lifts the number so the availability dot below it never collides. */
  padding: 0 0 0.4rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
/* A day with at least one free session */
.cal-day.is-open {
  background: var(--paper-2);
  border-color: var(--line);
  color: var(--text);
  cursor: pointer;
}
.cal-day.is-open:hover { border-color: var(--orange); background: rgba(255, 106, 0, 0.07); }
.cal-day.is-open::after {
  content: "";
  position: absolute;
  bottom: 0.3rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.cal-day.selected { background: var(--orange); border-color: var(--orange); color: #fff; }
.cal-day.selected::after { background: #fff; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--muted); }
.cal-day.is-empty { visibility: hidden; }

.cal-legend { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted); }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; }

.times-head { font-weight: 700; margin-bottom: 0.7rem; font-size: 0.98rem; }
.times-head span { color: var(--muted); font-weight: 500; }
.slot-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.slot-loading { color: var(--muted); font-size: 0.95rem; padding: 0.6rem 0; }
.linkish { background: none; border: none; font: inherit; color: var(--orange); font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }
.slot-time {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.slot-time.selected { border-color: var(--orange); background: rgba(255, 106, 0, 0.08); color: var(--orange); }

/* Summary */
.summary {
  margin-top: 1.4rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  font-size: 0.95rem;
}
.summary h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.6rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { font-weight: 600; text-align: right; }
.summary-total { border-top: 1px dashed var(--line); margin-top: 0.6rem; padding-top: 0.7rem; font-size: 1.05rem; }

/* Wizard nav */
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.wizard-nav .btn-next-solo, #btn-next { margin-left: auto; }
.btn-pay { margin-left: auto; }
.wizard-error { color: #d92d20; font-weight: 600; margin-top: 0.9rem; min-height: 1.2rem; text-align: center; }
.wizard-secure { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 460px; margin: 0 auto;
  background: var(--ink); color: #fff;
  border-radius: 22px; padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pricing-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.pricing-top h3 { font-size: 1.2rem; }
.price-amt { font-family: "Anton", sans-serif; font-size: 2.6rem; color: var(--orange-soft); }
.price-per { color: var(--muted-dark); font-weight: 600; }
.pricing-list { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.6rem; color: var(--muted-dark); }
.pricing-fine { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq details {
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; padding: 0.4rem 1.2rem;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--orange-soft); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted-dark); padding-bottom: 1rem; }

/* ---------- Final CTA + footer ---------- */
.final-cta {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) 1rem;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 106, 0, 0.2), transparent 70%),
    var(--ink-2);
  color: #fff;
}
.final-cta h2 { font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; margin-bottom: 1.6rem; }

.footer { background: var(--ink); color: var(--muted-dark); text-align: center; padding: 3rem 1rem; }
.footer-fine { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 620px) {
  .footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }

  /* Tight rhythm: the quiz should be the first thing on screen. */
  .section { padding: 1.75rem 1.15rem 3rem; }

  .btn-lg { padding: 1.05rem 1.5rem; }
  .quick-facts { gap: 0.4rem; margin-top: 1.1rem; }
  .quick-facts span { font-size: 0.82rem; padding: 0.35rem 0.75rem; }

  .section-head { margin-bottom: 1.6rem; }
  .section-head h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .section-sub, .section-head p { font-size: 0.98rem; }

  /* Wizard */
  .wizard { padding: 1.25rem 1.1rem 1.5rem; border-radius: 18px; }
  .step-panel legend { font-size: 1.25rem; }
  .options-grid, .slot-times { grid-template-columns: repeat(2, 1fr); }
  .option { padding: 0.9rem 1rem; }

  /* Stack the nav buttons: primary action gets the full width. */
  .wizard-nav { flex-direction: column-reverse; gap: 0.6rem; margin-top: 1.5rem; }
  .wizard-nav .btn { width: 100%; margin-left: 0; }

  .cal { padding: 0.75rem; }
  .cal-day { font-size: 0.9rem; border-radius: 9px; }
  .cal-grid { gap: 0.22rem; }
  .summary { padding: 1rem; }
  .summary-row { font-size: 0.92rem; }
}

@media (max-width: 380px) {
  .cal-dow span { font-size: 0.62rem; }
  .slot-times { grid-template-columns: repeat(2, 1fr); }
}
