/* ── Brushed Up tokens — Smile Curve theme (light-first) ──── */
:root {
  --ink-black: #000814;
  --prussian-blue: #001d3d;
  --regal-navy: #003566;
  --school-bus-yellow: #ffc300;
  --gold: #ffd60a;
  --parchment: #f2efe9;

  --ink-dim: rgba(0, 8, 20, 0.8);
  --text-light: var(--parchment);
  --text-light-dim: rgba(242, 239, 233, 0.78);
  --hairline-dark: rgba(0, 8, 20, 0.1);
  --hairline-gold: rgba(255, 214, 10, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --max: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* ── base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink-black);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6.5vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; }

/* marker-highlight emphasis on light; plain gold on dark */
em {
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(255, 195, 0, 0.75) 60%);
  padding: 0 0.06em;
}
.dark em { background: none; color: var(--gold); padding: 0; }

a { color: inherit; }

::selection { background: var(--school-bus-yellow); color: var(--ink-black); }

:focus-visible { outline: 2px solid var(--regal-navy); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--gold); }

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--gutter);
}

.wordmark { display: inline-flex; align-items: center; }
.wordmark img { height: 30px; width: auto; display: block; }
footer .wordmark img { height: 24px; }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9rem 1.9rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form select { cursor: pointer; }

.btn-gold {
  background: var(--school-bus-yellow);
  color: var(--ink-black);
}
.btn-gold:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 195, 0, 0.45);
}

.btn-ghost {
  color: var(--regal-navy);
  border: 1.5px solid rgba(0, 53, 102, 0.45);
}
.btn-ghost:hover { border-color: var(--regal-navy); background: rgba(0, 53, 102, 0.06); }
.dark .btn-ghost { color: var(--text-light); border-color: rgba(242, 239, 233, 0.45); }
.dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: none; }

.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.15rem; }

/* ── layout ───────────────────────────────────────────────── */
section { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }

.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner.narrow { max-width: 46rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--regal-navy);
  margin-bottom: 1.25rem;
}

.micro {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* ── dark sections (the leak + the close) ─────────────────── */
.dark { background: var(--prussian-blue); color: var(--text-light); }
.dark .eyebrow { color: var(--school-bus-yellow); }
.dark .micro { color: var(--text-light-dim); }
.dark p { color: var(--text-light-dim); }

/* ── hero — the smile curve ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  overflow: hidden;
}

.hero-arc {
  position: absolute;
  left: 0; right: 0; bottom: -6%;
  width: 100%;
  height: 62%;
  z-index: 0;
  pointer-events: none;
}

.hero-arc path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-arc 1.5s cubic-bezier(0.55, 0, 0.15, 1) 0.35s forwards;
}

@keyframes draw-arc { to { stroke-dashoffset: 0; } }

.hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; position: relative; z-index: 1; }

.hero h1 { max-width: 14ch; margin-bottom: 1.75rem; }

.lead {
  max-width: 33rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-dim);
  margin-bottom: 2.5rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }

/* hero staggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.25s; }
.reveal:nth-child(3) { animation-delay: 0.45s; }
.reveal:nth-child(4) { animation-delay: 0.65s; }
.reveal:nth-child(5) { animation-delay: 0.85s; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ── scroll-in sections ───────────────────────────────────── */
[data-io] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-io].lit { opacity: 1; transform: none; }

/* ── stats — the one dark, sharp moment ───────────────────── */
.stat-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-dim);
  margin: 2.75rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline-gold);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
}

.stat { display: flex; flex-direction: column; gap: 0.7rem; }

/* dot pictogram: 10 patient dots, the gold share is what slips away */
.stat-viz {
  position: relative;
  height: 14px;
  max-width: 240px; /* exactly 10 dots at 24px spacing */
}
.stat-viz::before,
.stat-viz::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle 6px at 7px 7px, currentColor 98%, transparent);
  background-size: 24px 14px;
  background-repeat: repeat-x;
}
.stat-viz::before { color: rgba(242, 239, 233, 0.16); }
.stat-viz::after {
  color: var(--school-bus-yellow);
  width: 0;
  overflow: hidden;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.stat.lit .stat-viz::after { width: var(--pct, 0%); }

.stat-total { margin-top: 0.25rem; }

.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 214, 10, 0);
  transition: text-shadow 0.8s ease;
}
.stat.lit .stat-num { text-shadow: 0 0 24px rgba(255, 214, 10, 0.4); }

.plus { color: var(--school-bus-yellow); }

.stat-label { color: var(--text-light-dim); font-size: 0.95rem; max-width: 30rem; }

.stat-disclaimer {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light-dim);
}

/* ── pain ─────────────────────────────────────────────────── */
.pain p { margin-bottom: 1.4rem; color: var(--ink-dim); font-size: 1.1rem; }

.pain-kicker {
  color: var(--ink-black) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem !important;
  border-left: 3px solid var(--school-bus-yellow);
  padding-left: 1.25rem;
  margin-top: 2.25rem;
}

/* ── promise ──────────────────────────────────────────────── */
.promise-list { list-style: none; margin-top: 2.5rem; max-width: 46rem; }

.promise-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline-dark);
  color: var(--ink-dim);
}
.promise-list li:first-child { border-top: 1px solid var(--hairline-dark); }

.promise-icon {
  flex: none;
  width: 72px;
  height: 72px;
  background: #fffdf9;
  border: 1px solid var(--hairline-dark);
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.promise-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.promise-list strong { color: var(--ink-black); font-weight: 600; display: block; margin-bottom: 0.2rem; }

/* ── plan ─────────────────────────────────────────────────── */
.steps { list-style: none; margin-top: 3rem; display: grid; gap: 2.75rem; max-width: 48rem; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}

.step-visual { position: relative; flex: none; width: 92px; height: 92px; }

.step-icon {
  width: 100%;
  height: 100%;
  background: #fffdf9;
  border: 1px solid var(--hairline-dark);
  border-radius: 18px;
  object-fit: cover;
}

.step-num {
  position: absolute;
  top: -0.6rem;
  left: -0.6rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-black);
  background: var(--school-bus-yellow);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-dim); }

.plan-kicker {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--regal-navy);
}

/* ── proof — guarantees as paper certificates ─────────────── */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
}

.guarantee {
  position: relative;
  border: 1px solid var(--hairline-dark);
  border-top: 3px solid var(--school-bus-yellow);
  background: #fffdf9;
  box-shadow: 0 2px 16px rgba(0, 8, 20, 0.06);
  padding: 2rem;
  padding-right: 6.5rem;
  border-radius: 16px;
}

.guarantee .seal {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.guarantee h3 { margin-bottom: 0.75rem; color: var(--regal-navy); }
.guarantee p { color: var(--ink-dim); }

.founder { max-width: 46rem; color: var(--ink-dim); }

.compliance {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.compliance img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--hairline-dark);
  object-fit: cover;
}

/* ── pricing (contact-for-pricing — fees live in the funnel) ── */
.pricing-lead { color: var(--ink-dim); max-width: 40rem; margin-bottom: 2.5rem; }
.pricing .micro { margin-top: 1.25rem; }

/* ── faq — the pushback, answered ─────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.25rem 3rem;
  margin-top: 2.5rem;
  max-width: 62rem;
}

.faq-item h3 {
  font-size: 1.15rem;
  color: var(--regal-navy);
  margin-bottom: 0.5rem;
}

.faq-item p { color: var(--ink-dim); font-size: 0.98rem; }

/* ── final cta + contact form ─────────────────────────────── */
.final-cta { text-align: center; }

.final-cta h2 { color: var(--text-light); }
.final-cta p { max-width: 34rem; margin: 0 auto 2.5rem; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
}

.contact-form input,
.contact-form select {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink-black);
  background: #fffdf9;
  border: 1px solid rgba(0, 8, 20, 0.15);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  width: 100%;
}

.contact-form input::placeholder { color: rgba(0, 8, 20, 0.5); }
.contact-form select:invalid { color: rgba(0, 8, 20, 0.5); }

.contact-form select,
.contact-form .pms-other,
.contact-form button,
.contact-form .form-note,
.contact-form .form-status { grid-column: 1 / -1; }

.contact-form .pms-other[hidden] { display: none; }

.contact-form button { margin-top: 0.4rem; }

.form-note { text-align: center; margin-top: 0.25rem; }

.form-status {
  text-align: center;
  font-weight: 600;
  color: var(--gold);
  min-height: 1.4em;
}

.contact-form.sent input,
.contact-form.sent select,
.contact-form.sent button,
.contact-form.sent .form-note { display: none; }

.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

/* ── footer ───────────────────────────────────────────────── */
footer {
  background: var(--ink-black);
  color: var(--text-light-dim);
  padding: 2rem var(--gutter);
  font-size: 0.85rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  margin-top: 1.1rem;
  font-size: 0.78rem;
}
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--gold); }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88svh; }
  .hero-arc { height: 34%; bottom: -3%; }

  /* steps: smaller icon chip, text wraps beside it */
  .step { gap: 1rem; }
  .step-visual { width: 64px; height: 64px; }
  .step-icon { border-radius: 14px; }
  .step-num { font-size: 0.72rem; padding: 0.2rem 0.45rem; }

  .guarantee { padding: 2rem 1.5rem 1.75rem; }
  .guarantee h3 { padding-right: 4rem; }
  .guarantee .seal { width: 56px; height: 56px; top: 1.1rem; right: 1.1rem; }

  .promise-icon { width: 60px; height: 60px; border-radius: 14px; }
}

/* ── reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-io] {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hero-arc path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .stat-viz::after { transition: none; width: var(--pct, 0%); }
  .btn { transition: none; }
}

@media (max-width: 720px) {
  .contact-form { grid-template-columns: 1fr; }
}
