/* ============================================================================
   Vyra Demo Funnel — /demo and /demo/success
   Loads AFTER home.css (which provides tokens + vh- primitives). Adds only
   funnel-specific layout: qualification form, Calendly booking step, FAQ,
   progress rail, and the success page. Namespaced `vf-`. Palette inherited.
   ========================================================================== */

/* ---------- Funnel nav (minimal — paid LP, few escape routes) ---------- */
.vf-nav .vh-nav__inner {
  justify-content: space-between;
}
.vf-nav .vh-nav__login {
  margin-left: auto;
}

/* ---------- Layout ---------- */
.vf-hero {
  padding-top: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  background:
    radial-gradient(circle at 82% 10%, var(--accent-glow), transparent 44%),
    var(--bg);
}
.vf-hero__grid {
  display: grid;
  gap: 36px;
  align-items: start;
}

/* ---------- Hero copy (left) ---------- */
.vf-hero__title {
  font-size: var(--fz-display-l);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.vf-value {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 26px 0 0;
}
.vf-value li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.0625rem;
  color: var(--text-soft);
}
.vf-value li strong {
  color: var(--text);
  font-weight: 600;
}
.vf-value__tick {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--performance-cyan-soft);
  color: var(--performance-cyan);
  font-size: 0.8rem;
  font-weight: 700;
}
.vf-hero__reassure {
  margin: 26px 0 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--performance-cyan);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---------- Booking card (right) ---------- */
.vf-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-deep));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: sticky;
  top: 88px;
}
.vf-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.vf-card__head .vh-eyebrow {
  margin: 0;
}
.vf-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.vf-card__sub {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Progress rail ---------- */
.vf-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.vf-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.vf-steps li::before {
  content: attr(data-n);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.7rem;
}
.vf-steps li.is-active {
  color: var(--text);
}
.vf-steps li.is-active::before {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
}
.vf-steps li.is-done::before {
  content: "\2713";
  border-color: var(--performance-cyan);
  background: var(--performance-cyan-soft);
  color: var(--performance-cyan);
}
.vf-steps__bar {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Form ---------- */
.vf-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vf-field > span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
}
.vf-field input,
.vf-field select,
.vf-field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color-scheme: dark;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.vf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.vf-field input:focus,
.vf-field select:focus,
.vf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.vf-field input::placeholder,
.vf-field textarea::placeholder {
  color: var(--text-dim);
}
.vf-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vf-form__submit {
  width: 100%;
  margin-top: 4px;
}
.vf-form__micro {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.vf-status {
  margin: 6px 0 0;
  font-size: 0.875rem;
  min-height: 1.2em;
}
.vf-status.is-error {
  color: var(--danger);
}
.vf-status.is-info {
  color: var(--text-soft);
}
.vf-status.is-success {
  color: var(--performance-cyan);
}

/* ---------- Booking step (Calendly) ---------- */
.vf-booking[hidden] {
  display: none;
}
.vf-booking__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.calendly-inline-widget {
  min-width: 320px;
  height: 660px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.vf-booking__fallback {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.vf-booking__fallback a {
  color: var(--accent-bright);
}

/* ---------- Proof: the four systems ---------- */
.vf-systems__grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.vf-system .vh-eyebrow {
  margin-bottom: 10px;
}
.vf-system h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.vf-system p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- FAQ / objection handling ---------- */
.vf-faq {
  display: grid;
  gap: 12px;
  margin-top: 36px;
  max-width: 760px;
}
.vf-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}
.vf-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.vf-faq summary::-webkit-details-marker {
  display: none;
}
.vf-faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-bright);
  font-size: 1.3rem;
}
.vf-faq details[open] summary::after {
  content: "\2013";
}
.vf-faq p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================== Success page ============================== */
.vf-success {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 50%),
    var(--bg);
}
.vf-success__inner {
  max-width: 680px;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.vf-success__badge {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--performance-cyan-soft);
  color: var(--performance-cyan);
  font-size: 1.8rem;
}
.vf-success__title {
  font-size: var(--fz-display-l);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.vf-success__steps {
  display: grid;
  gap: 14px;
  margin: 36px auto 0;
  max-width: 520px;
  text-align: left;
}
.vf-success__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.vf-success__step .vf-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-bright);
}
.vf-success__step strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 3px;
}
.vf-success__step span {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.vf-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ============================== Responsive ============================== */
@media (min-width: 880px) {
  .vf-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: 56px;
  }
  .vf-card {
    padding: 30px;
  }
  .vf-systems__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .vf-systems__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 879px) {
  .vf-card {
    position: static;
  }
  .calendly-inline-widget {
    height: 1000px;
  }
}
