/* ============================================================
   SmartSwipe — landing page styles
   Palette: deep indigo/navy base, warm gold accent, teal for savings
   Type: Space Grotesk (display) + Inter (body)
   ============================================================ */

:root {
  --navy-950: #0A0C24;
  --navy-900: #12163F;
  --navy-800: #1B2050;
  --navy-700: #262C66;
  --navy-600: #383F82;

  --gold-300: #F2D48A;
  --gold-500: #E7B94C;
  --gold-600: #CE9F32;

  --teal-500: #16B39F;
  --teal-600: #0F8F7E;

  --cream-100: #F5F2E9;
  --bg-page: #F7F7FB;
  --bg-card: #FFFFFF;

  --ink-900: #14162E;
  --ink-700: #3C3F5C;
  --ink-500: #6A6D8C;

  --line: #E4E3F0;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(18, 22, 63, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 22, 63, 0.12);
  --shadow-gold: 0 10px 28px rgba(231, 185, 76, 0.35);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --shell-width: 1120px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- buttons & inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  padding: 13px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { background: var(--gold-600); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--cream-100);
  border: 1.5px solid rgba(245, 242, 233, 0.35);
}
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-300); }
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-900);
}
.input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(38, 44, 102, 0.12);
}
.input::placeholder { color: var(--ink-500); }

/* ---------- nav ---------- */

.nav {
  background: var(--navy-900);
  padding: 16px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__word {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand__word--bold { font-weight: 700; color: var(--cream-100); }
.brand__word--light { font-weight: 400; color: var(--gold-500); }

.brand--footer .brand__word--bold { color: var(--cream-100); }

/* ---------- hero ---------- */

.hero {
  background: var(--navy-900);
  background-image:
    radial-gradient(600px 400px at 85% -10%, rgba(231, 185, 76, 0.16), transparent 60%),
    radial-gradient(500px 400px at -10% 90%, rgba(22, 179, 159, 0.14), transparent 60%);
  padding: 44px 0 64px;
}

.hero__inner {
  display: grid;
  gap: 40px;
}

.hero__headline {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700;
  color: var(--cream-100);
  max-width: 15ch;
}

.hero__subhead {
  margin-top: 18px;
  font-size: 17px;
  color: rgba(245, 242, 233, 0.78);
  max-width: 46ch;
}

.hero__form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}
@media (min-width: 480px) {
  .hero__form { flex-direction: row; }
}

.hero__microcopy {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(245, 242, 233, 0.55);
}
.hero__microcopy.is-success { color: var(--teal-500); font-weight: 600; }
.hero__microcopy.is-error { color: #F0A28C; font-weight: 600; }

.hero__demo-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(245, 242, 233, 0.45);
  text-align: center;
}

/* ---------- demo widget ---------- */

.demo {
  background: var(--navy-800);
  border: 1px solid rgba(245, 242, 233, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.demo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.demo__route {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream-100);
  font-size: 15px;
}
.demo__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(245, 242, 233, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.demo__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 0 rgba(22, 179, 159, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 179, 159, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(22, 179, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 179, 159, 0); }
}

.demo__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(245, 242, 233, 0.18);
  background: transparent;
  color: rgba(245, 242, 233, 0.75);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--gold-500); color: var(--cream-100); }
.chip.is-active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}

.demo__result {
  background: var(--navy-900);
  border-radius: var(--radius-md);
  padding: 20px;
}
.demo__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 233, 0.5);
  margin-bottom: 8px;
}
.demo__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.demo__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 38px);
  color: var(--cream-100);
  font-variant-numeric: tabular-nums;
}
.demo__strike {
  font-size: 15px;
  color: rgba(245, 242, 233, 0.4);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.demo__ota {
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(245, 242, 233, 0.65);
}
.demo__savings {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--teal-500);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.demo__savings strong { font-variant-numeric: tabular-nums; }

/* ---------- section shared ---------- */

.section-heading {
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 700;
  max-width: 20ch;
}
.section-heading--light { color: var(--cream-100); }

/* ---------- problem ---------- */

.problem { padding: 64px 0; }

.problem__grid {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .problem__grid { grid-template-columns: 1fr 1fr; }
}

.problem__card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.problem__stat {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.problem__card p { color: var(--ink-700); font-size: 15.5px; }

.problem__line {
  margin-top: 24px;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-900);
  border-left: 3px solid var(--gold-500);
  padding-left: 16px;
}

/* ---------- how it works ---------- */

.how { padding: 64px 0; background: var(--bg-card); }

.how__steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .how__steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.how__step {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
}
.how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.how__step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.how__step p { color: var(--ink-700); font-size: 15px; }

/* ---------- waitlist ---------- */

.waitlist {
  background: var(--navy-900);
  padding: 64px 0;
}
.waitlist__shell {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .waitlist__shell { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.waitlist__intro p {
  margin-top: 14px;
  color: rgba(245, 242, 233, 0.72);
  font-size: 16px;
  max-width: 42ch;
}

.waitlist__form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; border: none; padding: 0; margin: 0; }
.field label, .field legend {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
  padding: 0;
}
.field__optional { font-weight: 400; color: var(--ink-500); }

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-chip, .radio-chip {
  position: relative;
  cursor: pointer;
}
.check-chip input, .radio-chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.check-chip span, .radio-chip span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.15s ease;
}
.check-chip input:checked + span,
.radio-chip input:checked + span {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-300);
}
.check-chip input:focus-visible + span,
.radio-chip input:focus-visible + span {
  outline: 2px solid var(--navy-700);
  outline-offset: 2px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waitlist__status {
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}
.waitlist__status.is-success { color: var(--teal-600); }
.waitlist__status.is-error { color: #C4432B; }

.waitlist__form.is-done > *:not(.waitlist__status) { display: none; }
.waitlist__status.is-final {
  font-size: 18px;
  color: var(--navy-900);
  min-height: 0;
}

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

.footer {
  background: var(--navy-950);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__line {
  color: rgba(245, 242, 233, 0.8);
  font-size: 15px;
  max-width: 50ch;
}
.footer__meta {
  color: rgba(245, 242, 233, 0.4);
  font-size: 13px;
}

/* ---------- large screens ---------- */

@media (min-width: 1024px) {
  .hero { padding: 72px 0 96px; }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .problem, .how, .waitlist { padding: 88px 0; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo__dot { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
