/* AssumeAI qualifying funnel. Palette from the PMS funnel (src/funnel/styles/funnel.css):
   ink #33176d, purple #824fe8, light #a77fff, pink #ff68ab, night #1b0b3d, lavender #f6f3ff.
   Phone first: most paid traffic is a thumb in an in-app browser. Every control is 16px+
   so iOS Safari does not zoom on focus. */

:root {
  --ink: #33176d;
  --ink-soft: rgba(51, 23, 109, 0.72);
  --ink-faint: rgba(51, 23, 109, 0.42);
  --purple: #824fe8;
  --light: #a77fff;
  --pink: #ff68ab;
  --night: #1b0b3d;
  --lav: #f6f3ff;
  --lav-2: #ece5ff;
  --on-dark: rgba(235, 225, 255, 0.82);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --raleway: 'Raleway', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --dm: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gutter: clamp(1rem, 5vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: var(--night);
  color: #fff;
  font-family: var(--dm);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Background mesh, fixed so it never scrolls into a seam. */
.mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 10% -10%, rgba(167, 127, 255, 0.42), transparent 60%),
    radial-gradient(40rem 30rem at 95% 10%, rgba(255, 104, 171, 0.16), transparent 60%),
    radial-gradient(60rem 40rem at 60% 110%, rgba(130, 79, 232, 0.5), transparent 60%),
    var(--night);
}

/* ───────── Header ───────── */
.top {
  width: 100%; max-width: 64rem; margin-inline: auto;
  padding: 1.25rem var(--gutter) 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none;
  font-family: var(--raleway); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em;
}
.brand img { display: block; }

/* ───────── Hero ───────── */
.page {
  flex: 1;
  width: 100%; max-width: 46rem; margin-inline: auto;
  padding: clamp(1.75rem, 6vw, 3.5rem) var(--gutter) 2.5rem;
}
.hero { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.kicker {
  margin: 0 0 0.9rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--light);
}
.kicker.dark { color: var(--purple); }
h1 {
  margin: 0;
  font-family: var(--raleway); font-weight: 900;
  font-size: clamp(2rem, 7.2vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 span { display: block; }
h1 span:nth-child(2), h1 span:nth-child(3) {
  background: linear-gradient(92deg, #fff 0%, #d9c8ff 55%, #ffb3d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub {
  max-width: 34rem; margin: 1.1rem auto 0;
  font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.55; color: var(--on-dark);
}

/* ───────── Card ───────── */
.card {
  position: relative;
  background: #fff; color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(10, 0, 40, 0.75), 0 0 0 1px rgba(167, 127, 255, 0.25);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
  transition: height 0.4s var(--ease);
}
.warn {
  margin: -0.85rem 0 1.4rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4;
  color: #c2255c;
}
.progress { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--lav-2); }
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transition: width 0.5s var(--ease);
}

/* ───────── Steps ───────── */
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step.enter { animation: enter 0.45s var(--ease) both; }
.step.enter-back { animation: enterBack 0.45s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .step.enter, .step.enter-back, .outcome { animation: none !important; }
  .progress-fill { transition: none; }
}

.back {
  display: inline-block; margin: 0 0 0.9rem; padding: 0.2rem 0;
  background: none; border: 0; cursor: pointer;
  font-size: 0.9rem; font-weight: 500; color: var(--purple);
}
.back:hover { text-decoration: underline; }

.q {
  display: block; padding: 0; margin: 0 0 1.4rem;
  font-family: var(--raleway); font-weight: 700;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.25; letter-spacing: -0.02em;
  color: var(--ink);
}
.q-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; margin-right: 0.6rem; vertical-align: 0.15em;
  border-radius: 6px; background: var(--lav-2); color: var(--purple);
  font-family: var(--dm); font-size: 0.85rem; font-weight: 700;
}
.req { color: var(--pink); margin-left: 0.15rem; }
.nw { white-space: nowrap; }

/* Choices */
.choices { display: grid; gap: 0.6rem; }
@media (min-width: 640px) {
  .choices[data-name="revenue"], .choices[data-name="over5m"] { grid-template-columns: 1fr 1fr; }
}
/* The gate: big, easy targets, Yes first. */
.choices[data-name="over5m"] .choice { min-height: 3.75rem; font-size: 1.1rem; font-weight: 700; }
.choice {
  display: flex; align-items: center; gap: 0.85rem;
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem;
  text-align: left; font-size: 1rem; font-weight: 500; color: var(--ink);
  background: var(--lav); border: 1.5px solid var(--lav-2); border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease);
}
.choice:hover { border-color: var(--light); background: #f1ebff; }
.choice:active { transform: scale(0.99); }
.choice:focus-visible { outline: 3px solid rgba(130, 79, 232, 0.35); outline-offset: 2px; }
.choice kbd {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.65rem; height: 1.65rem; border-radius: 6px;
  border: 1.5px solid rgba(130, 79, 232, 0.35); background: #fff;
  font-family: var(--dm); font-size: 0.78rem; font-weight: 700; color: var(--purple);
}
.choice.is-selected { border-color: var(--purple); background: #efe7ff; }
.choice.is-selected kbd { background: var(--purple); border-color: var(--purple); color: #fff; }
.choice.is-selected.blink { animation: blink 0.32s steps(2) 1; }
@keyframes blink { 50% { background: var(--lav); } }

/* Text inputs: Typeform-style underline */
.row { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: block; }
.line {
  display: block; width: 100%;
  padding: 0.55rem 0 0.6rem;
  font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 400; color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid rgba(130, 79, 232, 0.28);
  border-radius: 0; outline: none;
  transition: border-color 0.2s;
}
textarea.line { resize: vertical; min-height: 5.5rem; line-height: 1.45; }
.line::placeholder { color: var(--ink-faint); }
.line:focus { border-bottom-color: var(--purple); }
.line.invalid { border-bottom-color: #d6336c; }
.other-wrap { margin-top: 1.1rem; }

.hint { margin: 0.75rem 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }
.step[data-step="notes"] .q { margin-bottom: 0.4rem; }
.step[data-step="notes"] .hint:first-of-type { margin: 0 0 1.1rem; }
.err { margin: 0.7rem 0 0; font-size: 0.92rem; font-weight: 500; color: #c2255c; }

.next {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; padding: 0.8rem 1.35rem;
  font-size: 1rem; font-weight: 700; color: #fff;
  background: var(--purple); border: 0; border-radius: 8px; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(130, 79, 232, 0.9);
  transition: background 0.15s, transform 0.15s var(--ease);
}
.next:hover { background: #6f3cd8; }
.next:active { transform: translateY(1px); }
.next[disabled] { opacity: 0.6; cursor: progress; }
.key-hint { font-size: 0.8rem; }
.key-hint kbd {
  padding: 0.05rem 0.35rem; border-radius: 4px; border: 1px solid var(--lav-2); background: var(--lav);
  font-family: var(--dm); font-size: 0.75rem;
}
@media (hover: none) { .key-hint { display: none; } }

/* ───────── Outcomes ───────── */
.outcome { animation: enter 0.5s var(--ease) both; }
.outcome h2 {
  margin: 0 0 0.75rem;
  font-family: var(--raleway); font-weight: 900;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em;
}
.lede { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); }
.calendar { margin: 1.25rem calc(-1 * clamp(0.5rem, 3vw, 1.5rem)) 0; }
.calendar iframe { display: block; width: 100%; min-height: 680px; border: 0; }

/* Phones: get the first question nearer the fold. */
@media (max-width: 480px) {
  .top { padding-top: 1rem; }
  .page { padding-top: 1.25rem; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.12em; margin-bottom: 0.7rem; }
  .sub { font-size: 0.95rem; margin-top: 0.8rem; }
  .hero { margin-bottom: 1.25rem; }
  .card { padding: 1.5rem 1.15rem 1.6rem; }
  .choice { min-height: 3rem; padding: 0.65rem 0.85rem; }
}
.link { color: var(--purple); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ───────── Footer ───────── */
.foot {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center;
  padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  font-size: 0.8rem; color: rgba(235, 225, 255, 0.5);
}
.foot p { margin: 0; }
.foot a { color: inherit; }

/* ───────── Phone verification ───────── */
.q-tick { background: #e6f7ee; color: #1f9254; }
.code-input {
  max-width: 14rem;
  font-size: clamp(1.6rem, 6vw, 2rem); font-weight: 700;
  letter-spacing: 0.5em; font-variant-numeric: tabular-nums;
}
.code-input::placeholder { letter-spacing: 0.2em; }
.code-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.resend {
  margin-top: 1.5rem; padding: 0.4rem 0;
  background: none; border: 0; cursor: pointer;
  font-size: 0.95rem; font-weight: 500; color: var(--purple);
}
.resend:hover:not([disabled]) { text-decoration: underline; }
.resend[disabled] { color: var(--ink-faint); cursor: default; }
.next .spin {
  width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── Booking step ───────── */
.bk-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: 1.6rem 0 0.7rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.bk-tz { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--ink-faint); }
.bk-durations { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .bk-durations { grid-template-columns: 1fr 1fr; } }
.bk-dur {
  display: flex; flex-direction: column; gap: 0.3rem; text-align: left;
  padding: 0.9rem 1rem; border-radius: 12px; cursor: pointer;
  background: var(--lav); border: 1.5px solid var(--lav-2); color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.bk-dur:hover { border-color: var(--light); }
.bk-dur.is-on { border-color: var(--purple); background: #efe7ff; box-shadow: inset 0 0 0 1px var(--purple); }
.bk-dur-time { font-family: var(--raleway); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.bk-dur-desc { font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }

.bk-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.bk-day {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.7rem 0.4rem; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--lav-2); color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.bk-day:hover { border-color: var(--light); }
.bk-day.is-on { background: var(--purple); border-color: var(--purple); color: #fff; }
.bk-day-name { font-weight: 700; font-size: 0.98rem; white-space: nowrap; }
.bk-day-count { font-size: 0.78rem; opacity: 0.75; }
.bk-times {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 0.45rem;
  margin-top: 0.8rem;
}
.bk-time {
  padding: 0.65rem 0.3rem; border-radius: 8px; cursor: pointer;
  background: var(--lav); border: 1.5px solid var(--lav-2); color: var(--ink);
  font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, background 0.15s;
}
.bk-time:hover { border-color: var(--light); }
.bk-time.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bk-status { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.bk-confirm {
  margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--lav); border: 1.5px solid var(--lav-2);
  animation: enter 0.35s var(--ease) both;
}
.bk-summary { margin: 0; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.bk-confirm .next { margin-top: 0.9rem; }
.bk-fallback { margin: 1.4rem 0 0; font-size: 0.93rem; color: var(--ink-soft); }
.link-btn {
  padding: 0; background: none; border: 0; cursor: pointer;
  font-weight: 700; color: var(--purple); text-decoration: underline; text-underline-offset: 3px;
}
.bk-when { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 700; color: var(--ink); }

/* ───────── Kicker: readable on the dark mesh ───────── */
.hero > .kicker {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem); font-weight: 700;
  letter-spacing: 0.01em; text-transform: none;
  color: #fff;
}
.hero > .kicker em {
  font-style: normal;
  color: #ffb3d4;
}
.hero > .kicker::before, .hero > .kicker::after {
  content: ''; display: inline-block; vertical-align: middle;
  width: 1.6rem; height: 2px; margin: 0 0.7rem;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 212, 0.8));
}
.hero > .kicker::after { background: linear-gradient(90deg, rgba(255, 179, 212, 0.8), transparent); }
@media (max-width: 480px) {
  .hero > .kicker { font-size: 0.95rem; }
  .hero > .kicker::before, .hero > .kicker::after { display: none; }
}

/* ───────── Client names: one quiet line ───────── */
.trust {
  margin: 1.75rem auto 0; max-width: 36rem; text-align: center;
  font-size: 0.88rem; line-height: 1.6; color: rgba(235, 225, 255, 0.62);
}

.bk-session { margin: 0.4rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
