/* ==========================================================================
   VibeCoding Coach — onboarding funnel (index.html + step*.html)
   Light, calm design system modeled on the reference captures in /example.
   Self-contained: no remote fonts, no dependencies.
   ========================================================================== */

:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-soft: #8b5cf6;
  --purple-tint: #faf5ff;
  --purple-line: #ede9fe;

  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --bg-card: #ffffff;
  --line: #e2e8f0;
  --track: #f1f5f9;
  --page: #f8fafc;

  --green: #16a34a;
  --green-bg: #dcfce7;

  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --amber-ink: #92400e;

  --blue-bg: #eff6ff;
  --blue-line: #bfdbfe;
  --blue-ink: #1d4ed8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lift: 0 10px 25px -5px rgba(15, 23, 42, .08), 0 4px 10px -6px rgba(15, 23, 42, .05);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--purple); }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- header ------------------------------------------------------ */

.site-head {
  background: #fff;
  padding: 22px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
}

.site-head.split { justify-content: space-between; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.brand-lockup .glyph {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.brand-lockup em { font-style: normal; color: var(--purple); }

.head-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.head-link:hover { background: var(--track); }

/* ---------- stage (gradient content area) ------------------------------- */

.stage {
  flex: 1;
  background: linear-gradient(135deg, #f6f2ff 0%, #f3f1fe 45%, #eef4ff 100%);
  padding: 40px 20px 72px;
}

.shell { max-width: 896px; margin: 0 auto; }
.shell.narrow { max-width: 680px; }
.shell.wide { max-width: 1080px; }

/* ---------- intro / hero block ------------------------------------------ */

.intro { text-align: center; margin-bottom: 36px; }

.intro .mark {
  color: var(--purple);
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
}

.intro .mark.ok {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
}

.intro h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.intro .sub { margin-top: 12px; font-size: 17px; color: var(--muted); }

/* ---------- progress ---------------------------------------------------- */

.progress-block { margin-bottom: 34px; }

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 15px;
}
.progress-row .plabel { color: var(--body); font-weight: 500; }
.progress-row .pval { color: var(--purple); font-weight: 700; }

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e0f0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 5%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-soft), var(--purple));
  transition: width .35s ease;
}

/* ---------- cards ------------------------------------------------------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 28px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.card-head.tight { margin-bottom: 0; }

.num-badge {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.num-badge.gray { background: var(--track); color: var(--muted); }

.card-head h2 { font-size: 19px; font-weight: 700; }

.pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--track);
  border-radius: 999px;
  padding: 3px 10px;
}

.head-spacer { flex: 1; }

/* ---------- forms ------------------------------------------------------- */

fieldset { border: 0; padding: 0; margin: 0; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.field .opt { color: var(--faint); font-weight: 500; }
.req { color: var(--ink); }

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  min-height: 44px;
}
.field textarea { min-height: 96px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--purple);
  outline-offset: 0;
  border-color: transparent;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}


/* collapsed extras (details/summary) */

details.extras { margin-top: 16px; }
details.extras > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--purple);
  padding: 6px 2px;
  user-select: none;
}
details.extras > summary::-webkit-details-marker { display: none; }
details.extras > summary .opt { color: var(--faint); font-weight: 500; }
details.extras > summary .chev { transition: transform .2s ease; }
details.extras[open] > summary .chev { transform: rotate(90deg); }
details.extras .extras-body { padding-top: 14px; }

/* reassurance row */

.assure-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.assure-row .item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.assure-row .item svg { flex: none; color: var(--purple); margin-top: 1px; }
.assure-row .item strong { color: var(--body); display: block; font-size: 14.5px; }

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  min-height: 46px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-dark); }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--faint); background: var(--page); }

.btn-block { width: 100%; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ---------- step1: reference + choice cards ------------------------ */

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.choice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.choice-card.primary {
  border: 2px solid var(--purple);
  box-shadow: var(--shadow-lift);
}

.choice-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--track);
  color: var(--body);
}
.choice-card.primary .choice-ic { background: var(--purple-tint); color: var(--purple); }

.choice-card h2 { font-size: 20px; margin-bottom: 10px; }
.choice-card .desc { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

.benefits { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--body);
}
.benefits svg { color: var(--green); flex: none; margin-top: 2px; }

.choice-terms { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.choice-terms strong { color: var(--ink); font-weight: 600; }
/* button + its quiet line stick to the card bottom, so both cards' buttons line up */
.choice-action { margin-top: auto; }
.choice-action .btn { width: 100%; }
.quiet-line { font-size: 13.5px; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.5; }

/* one calm line of reassurance under the choices: no icon, no box, no colour */
.reassure { text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); margin: 14px 0 22px; }

.hatch {
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 30px;
}

.skip-row { text-align: center; }
.skip-row a { color: var(--muted); font-size: 15px; }
.skip-row a:hover { color: var(--purple); }
.skip-row .minor { display: block; margin-top: 10px; font-size: 13.5px; }

/* toast */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 14px 40px 14px 16px;
  font-size: 14px;
  color: var(--body);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  z-index: 50;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast strong { display: block; color: var(--ink); margin-bottom: 3px; }
.toast .toast-x {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

/* ---------- step2: pricing ----------------------------------------- */

.currency-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin: 18px auto 0;
}
.currency-toggle button {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 8px 16px;
  cursor: pointer;
}
.currency-toggle button[aria-pressed="true"] {
  background: var(--purple-tint);
  color: var(--purple-dark);
  box-shadow: inset 0 0 0 1px var(--purple-line);
}

.picker-card { text-align: center; }
.picker-card > h2 { font-size: 21px; }
.picker-card > .sub { color: var(--muted); font-size: 15px; margin: 6px 0 22px; }

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.pkg {
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pkg { position: relative; }
/* honest anchor: the bonus hours make this the lowest effective rate */
.pkg .tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--purple); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.pkg .n { display: block; font-size: 22px; font-weight: 700; color: var(--ink); }
.pkg .u { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.pkg:hover { border-color: var(--faint); }
.pkg[aria-pressed="true"] {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple);
}
.pkg[aria-pressed="true"] .n { color: var(--purple); }

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
}
.price-card h3 { font-size: 22px; }
.price-card .big-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -.02em;
  margin-top: 6px;
}
.price-card .per { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

.feature-list {
  list-style: none;
  margin: 22px auto;
  padding: 0;
  display: grid;
  gap: 11px;
  max-width: 520px;
  text-align: left;
}
.feature-list li { display: flex; gap: 10px; font-size: 15px; color: var(--body); }
.feature-list svg { flex: none; margin-top: 2px; }
.feature-list .c-green { color: var(--green); }
.feature-list .c-purple { color: var(--purple); }

.fine-print { font-size: 13.5px; color: var(--faint); margin-top: 14px; }

.trust-row-card { padding: 30px 26px; }
.trust-row-card h2 { text-align: center; font-size: 20px; margin-bottom: 26px; }
.trust-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-cols svg { margin: 0 auto 10px; color: var(--purple); }
.trust-cols h3 { font-size: 16px; margin-bottom: 6px; }
.trust-cols p { font-size: 14px; color: var(--muted); }

.consult-line { text-align: center; font-size: 15px; color: var(--body); margin-top: 30px; }
.consult-line a { font-weight: 600; }

/* ---------- step4: dashboard --------------------------------------- */

body[data-page="dashboard"] { background: var(--page); }

.dash-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.dash-head .brand-lockup { font-size: 20px; }
.dash-nav { display: flex; gap: 6px; flex: 1; }
.dash-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.dash-nav a.active { color: var(--purple); background: var(--purple-tint); }
.dash-nav a:not(.active):hover { background: var(--track); }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--track);
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.dash-main { flex: 1; padding: 30px 28px 60px; }
.dash-shell { max-width: 1120px; margin: 0 auto; }

.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-ink);
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 18px;
}

.dash-shell > h1 { font-size: 28px; margin-bottom: 22px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--purple));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat .s-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent, var(--purple)) 12%, #fff);
  color: var(--accent, var(--purple));
  flex: none;
}
.stat .s-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat .s-val { font-size: 24px; font-weight: 800; color: var(--ink); }

.stat.blue { --accent: #3b82f6; }
.stat.purple { --accent: #8b5cf6; }
.stat.orange { --accent: #f97316; }
.stat.green { --accent: #22c55e; }

.dash-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 26px;
}

.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.dash-card > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
  margin-bottom: 16px;
}
.dash-card > h2 svg { color: var(--purple); }

.mini-proj {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.mini-proj .meta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.chip {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--track);
  color: var(--muted);
}
.chip.blue { background: #dbeafe; color: #1d4ed8; }
.chip.yellow { background: #fef9c3; color: #a16207; }
.chip.red { background: #fee2e2; color: #b91c1c; }

.ticket-item {
  border-left: 4px solid #f59e0b;
  background: var(--page);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.ticket-item h3 { font-size: 15px; margin-bottom: 3px; }
.ticket-item .t-desc { font-size: 14px; color: var(--muted); }
.ticket-item .t-meta { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.ticket-item .chips { float: right; display: flex; gap: 6px; }

.proj-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.proj-entry .p-chips { display: flex; gap: 8px; margin-bottom: 8px; }
.proj-entry .p-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.proj-entry .p-name svg { color: #3b82f6; }
.proj-entry .p-date { font-size: 13.5px; color: var(--faint); margin-top: 5px; }

.hours-banner {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius-sm);
  color: var(--amber-ink);
  font-size: 14.5px;
  padding: 13px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.hours-banner svg { flex: none; margin-top: 2px; }

.center-note { text-align: center; font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.center-actions { display: flex; justify-content: center; }

/* ---------- footer ------------------------------------------------------ */

.site-foot {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--purple); }

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .dash-cols { grid-template-columns: 1fr; }
  .dash-nav { display: none; }
}

@media (max-width: 640px) {
  .stage { padding: 26px 12px 48px; }
  .site-head { padding: 16px; }
  .brand-lockup { font-size: 20px; }
  .intro h1 { font-size: 27px; }
  .card, .choice-card { padding: 16px; margin-bottom: 18px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .two-col .field { margin-bottom: 18px; }
  .assure-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card.primary { order: -1; } /* desktop: paid left, free call right; phones: free call on top */
  .pkg-grid { grid-template-columns: 1fr 1fr; }
  .trust-cols { grid-template-columns: 1fr; }
  .num-badge { width: 28px; height: 28px; font-size: 14px; }
  .form-actions .btn, .price-card .btn { width: 100%; }
  .price-card .big-price { font-size: 34px; }
  .site-foot { flex-direction: column; text-align: center; }
  .stat-grid { grid-template-columns: 1fr; }
  .dash-head { padding: 12px 16px; }
  .dash-main { padding: 20px 14px 44px; }
  .toast { left: 12px; right: 12px; max-width: none; }
}

/* ---------- funnel: submission status + busy state (all pages) ---------- */

.form-status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}
.form-status[hidden] { display: none; }
.form-status[data-kind="busy"]  { background: #f3f0ff; border-color: #d9ccff; color: #4c1d95; }
.form-status[data-kind="ok"]    { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.form-status[data-kind="error"] { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
/* intake page: e-mail fallback, shown only after a failed submission (or without the page bundle) */
.intake-fallback {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
}
.intake-fallback[hidden] { display: none; }
.intake-fallback p { margin: 0; }
.intake-fallback a[data-contact] { color: var(--purple-dark); font-weight: 600; }
.intake-fallback .mail-img { vertical-align: middle; border: 0; }
[aria-busy="true"] .btn-primary { opacity: .7; cursor: progress; }
[aria-busy="true"] .btn-primary .btn-text::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 8px;
  vertical-align: -1px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: intake-spin .8s linear infinite;
}
@keyframes intake-spin { to { transform: rotate(360deg); } }

/* ---------- funnel: "securing your submission" panel -------------------- */
/* Visible from the tap until the next page or state. The ALTCHA proof-of-work can
   run 10–18 s on older phones; this keeps the page obviously alive. Text is
   written by src/onboarding/secure-send.ts from progress.ts. */

.secure-panel {
  margin-top: 14px;
  padding: 14px 16px 15px;
  border-radius: 10px;
  border: 1px solid #d9ccff;
  background: #f3f0ff;
  color: #4c1d95;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}
.secure-panel[hidden] { display: none; }
.sp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sp-clock { color: var(--purple); font-variant-numeric: tabular-nums; }
.sp-steps { list-style: none; margin: 10px 0 0; padding: 0; }
.sp-steps li { display: flex; align-items: baseline; gap: 10px; padding: 2px 0; }
.sp-steps li[data-state="todo"] { color: #8b7fb3; }
.sp-steps li[data-state="active"] .sp-label { font-weight: 700; }
.sp-steps li[data-state="done"] .sp-mark { color: var(--green); }
.sp-mark { flex: none; width: 1.4em; text-align: center; white-space: pre; }
.sp-bar {
  margin: 10px 0 0;
  font: inherit;
  letter-spacing: .04em;
  white-space: pre;
  overflow: hidden;
  color: var(--purple);
}
.sp-note {
  margin-top: 8px;
  font-family: var(--font);
  font-size: 13.5px;
  color: #5b21b6;
}
/* While the panel is showing, the busy sentence is for assistive tech only;
   sighted users already see the same information in the panel. */
.is-submitting .form-status[data-kind="busy"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- funnel: shared pieces (step1–3) ------------------------------ */

.ref-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--muted);
  margin: -14px 0 26px;
}
.ref-strip.below { margin: 0 0 18px; }
.ref-strip strong { color: var(--ink); font-weight: 600; }
.ref-strip .mono { font-family: var(--mono); font-weight: 700; color: var(--purple-dark); }

.context-missing {
  text-align: center;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 26px 22px;
  color: var(--amber-ink);
  margin: 0 auto 26px;
  max-width: 560px;
}
.context-missing[hidden] { display: none; }
.context-missing h2 { font-size: 20px; margin-bottom: 8px; color: #78350f; }
.context-missing p { font-size: 15px; margin-bottom: 16px; }

.email-card { text-align: center; }
.email-card h2 { font-size: 20px; margin-bottom: 8px; }
.email-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.email-card .fine { font-size: 13.5px; color: var(--faint); margin: 12px 0 0; }
.email-card .mail-img { display: inline-block; vertical-align: middle; line-height: 0; }
.email-card .mail-img img { display: block; border: 0; }
.context-missing .alt { font-size: 14px; margin: 14px 0 0; }

/* Contact links ship without an href (js/contact.js adds it on a real gesture); keep the link look. */
a[data-contact] { cursor: pointer; }
a[data-contact]:not(.btn):not(.mail-img) { text-decoration: underline; }

.skip-line { text-align: center; margin-top: 14px; font-size: 14.5px; }
.skip-line a[hidden] { display: none; }
.skip-line a { color: var(--muted); }
.skip-line a:hover { color: var(--purple); }

.after-booking { border: 2px solid var(--green); }
.after-booking h2 { font-size: 21px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.after-booking h2 svg { color: var(--green); flex: none; }
.after-booking ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; color: var(--body); font-size: 15px; }
.after-booking .ref-line { font-size: 14.5px; color: var(--muted); }
.after-booking[hidden] { display: none; }

/* ---------- step3: book-a-call widget (css/vendor/booking.css) ---------- */
/* The widget ships its own layout; only its colour/size tokens are mapped
   onto the funnel palette. It lays itself out by its own width. */

.booking-section { margin-bottom: 26px; }
#booking.bac {
  --booking-accent: var(--purple);
  --booking-accent-hover: var(--purple-dark);
  --booking-accent-soft: var(--purple-line);
  --booking-text: var(--ink);
  --booking-heading: var(--ink);
  --booking-muted: var(--muted);
  --booking-disabled: var(--faint);
  --booking-border: var(--line);
  --booking-surface: var(--bg-card);
  --booking-radius: var(--radius);
  --booking-font: var(--font);
  --booking-slots-max-height: min(570px, 100vh - 260px);
  box-shadow: var(--shadow);
  max-width: none;
}
#booking[hidden] { display: none; }
