/* Space Coast Prosper — VIP Founding Partner Checkout
   Design tokens */
:root {
  /* Space Coast Prosper brand — pulled from spacecoastprosper.com */
  --navy: #113861;
  --navy-2: #0c2843;
  --coral: #ef4444;
  --coral-dark: #dc2626;
  --bg: #ffffff;
  --bg-tint: #f7f8f9;
  --card: #ffffff;
  --border: #e3e6ea;
  --text: #17212b;
  --text-soft: #55636f;
  --text-faint: #8a94a0;
  --success: #16843b;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(17, 56, 97, 0.04), 0 8px 20px -14px rgba(17, 56, 97, 0.28);
  --shadow-soft: 0 1px 2px rgba(17, 56, 97, 0.05);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.logo-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
}
.logo-context {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.topbar-contact {
  font-size: 13.5px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-contact a { font-weight: 600; color: var(--navy); text-decoration: none; }
.topbar-contact a:hover { color: var(--coral); }
@media (max-width: 640px) {
  .topbar-contact span { display: none; }
}

/* ---------- Hero photo backdrop (real Space Coast photo, blurred+darkened) ---------- */
.hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center 55%;
  filter: blur(18px) brightness(0.85) saturate(1.05);
  transform: scale(1.1);
  z-index: 0;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(9, 26, 44, 0.86), rgba(9, 26, 44, 0.74));
  z-index: 1;
}
.hero-photo > .wrap {
  position: relative;
  z-index: 2;
}

/* ---------- Hero grid ---------- */
.hero {
  padding: 64px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
}

h1.headline {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
  color: #fff;
  max-width: 18ch;
}
h1.headline .word {
  display: inline-block;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(16px);
  animation: wordIn 0.9s var(--ease) forwards;
}

@keyframes wordIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.subhead {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin: 0 0 32px;
}
.subhead strong { color: #fff; font-weight: 700; }

.features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feat-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.feat-icon svg { width: 18px; height: 18px; }
.feat-title {
  font-weight: 700;
  font-size: 15.5px;
  color: #fff;
  margin: 0 0 2px;
}
.feat-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin: 0;
}

.reassurance {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.reassurance .icon {
  flex: none;
  width: 34px; height: 34px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.reassurance .icon svg { width: 20px; height: 20px; }
.reassurance strong { color: #fff; }
.reassurance p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.75); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ---------- Checkout card ---------- */
.checkout-col { position: relative; }
.checkout-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 48px -20px rgba(9, 26, 44, 0.55);
  padding: 28px;
  position: sticky;
  top: 92px;
}
@media (max-width: 980px) {
  .checkout-card { position: static; }
}

.checkout-head { margin-bottom: 22px; }
.checkout-head h2 {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.checkout-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-faint);
}

.step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 26px 0 12px;
}
.step-label:first-of-type { margin-top: 0; }
.step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fcfcfb;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input::placeholder { color: #b5bcc4; }
.field input:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 69, 0.1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field.invalid input { border-color: #e0433a; background: #fff6f5; }
.field-error {
  font-size: 12px;
  color: #e0433a;
  margin-top: 5px;
  display: none;
}
.field.invalid .field-error { display: block; }

/* Tier options */
.tier {
  display: flex;
  gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  position: relative;
}
.tier:hover { border-color: #d7cfc4; }
.tier.selected {
  border-color: var(--coral);
  background: rgba(239, 68, 68, 0.05);
}
.tier.plan-free {
  border-style: dashed;
}
.tier.plan-free .tier-price { color: var(--text-faint); }
.tier-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--coral);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tier-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 4px;
}
.tier-price { color: var(--coral-dark); font-weight: 800; white-space: nowrap; }
.tier-desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; margin: 0; }
.tier-save {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--success);
  background: rgba(31, 157, 85, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Two-panel checkout: path picker, then contact + payment */
.hide { display: none !important; }

.plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.change-plan-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  flex: none;
}
.change-plan-link:hover { color: var(--coral-dark); }

/* Payment (Stripe Payment Element mounts into #payment-element) */
.payment-hint {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 14px;
  line-height: 1.5;
}
#payment-element {
  margin-bottom: 6px;
}
.payment-message {
  font-size: 13px;
  color: #dc2626;
  margin: 10px 0 0;
  display: none;
}
.payment-message.show { display: block; }

.submit-btn {
  width: 100%;
  margin-top: 20px;
  background: var(--coral);
  color: #1a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
.submit-btn:hover { background: var(--coral-dark); color: #fff; }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.75; cursor: progress; transform: none; }

.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(0,0,0,0.25);
  border-top-color: #1a0a0a;
  animation: spin 0.7s linear infinite;
  display: none;
}
.submit-btn.loading .spinner { display: inline-block; }
.submit-btn.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.secure-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Footer of card */
.alt-option {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.alt-option a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(11,30,51,0.25);
  text-underline-offset: 3px;
}
.alt-option a:hover { color: var(--coral); }

.trust-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 600;
}
.trust-badge svg { width: 15px; height: 15px; flex: none; }

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  text-align: center;
}
.site-footer p {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.site-footer a { font-weight: 700; color: var(--navy); text-decoration: none; }
.site-footer a:hover { color: var(--coral); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  display: none;
  transform: translateY(120%);
  transition: transform 0.35s var(--ease);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta button {
  width: 100%;
  background: var(--coral);
  color: #1a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 980px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 12px; }
}

/* ---------- Toast (client-side validation) ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
  box-shadow: var(--shadow-card);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= Onboarding page ================= */
.onboard-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px 80px;
}
.onboard-card {
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
@media (max-width: 640px) { .onboard-card { padding: 28px 22px; } }

.onboard-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.onboard-card h1 {
  font-size: 25px;
  text-align: center;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.onboard-card > p.lead {
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.5;
}

.sms-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
}
.sms-preview .icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--success);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.sms-preview .label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.sms-preview p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 18px;
  background: #fcfcfb;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--coral); background: #fff6f3; }
.upload-zone .icon { color: var(--navy); margin-bottom: 8px; }
.upload-zone .icon svg { width: 24px; height: 24px; }
.upload-zone .title { font-weight: 700; color: var(--navy); font-size: 14.5px; margin-bottom: 3px; }
.upload-zone .hint { font-size: 12.5px; color: var(--text-faint); }
.upload-zone input[type="file"] { display: none; }
.upload-preview {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.upload-preview.show { display: flex; }
.upload-preview img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.upload-preview .name { font-weight: 600; color: var(--navy); }

.deal-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--coral); color: var(--coral-dark); }

.onboard-success {
  display: none;
  text-align: center;
  padding: 20px 0 4px;
}
.onboard-success.show { display: block; }
.onboard-success .icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(31, 157, 85, 0.12);
  color: var(--success);
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.onboard-success h2 { color: var(--navy); font-size: 21px; margin: 0 0 8px; }
.onboard-success p { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; margin: 0 auto; max-width: 40ch; }
.onboard-form.hide { display: none; }
