/* ─────────────────────────────────────────────
   RESET + TOKENS — shared by discover-a.html / discover-b.html
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --navy:       #0D2137;
  --navy-dk:    #07111E;
  --orange:     #E8581A;
  --teal:       #1A7A6E;
  --white:      #FFFFFF;
  --lgrey:      #F4F6F8;
  --mgrey:      #D0D7DE;
  --dgrey:      #4A5568;
  --green:      #1D9E75;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-card: 16px;
  --radius-btn:  12px;
  --pad-section: clamp(56px, 9vw, 96px);
  --pad-h:       clamp(20px, 5vw, 80px);
}

body {
  font-family: var(--font-body);
  color: var(--dgrey);
  background: var(--lgrey);
  overflow-x: hidden;
  line-height: 1.6;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn-pill-orange {
  background: var(--orange);
  color: var(--white);
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 40px;
  min-height: 56px;
  border: none;
  box-shadow: 0 4px 24px rgba(232,88,26,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}
.btn-pill-orange:hover:not(:disabled) {
  transform: scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 10px 40px rgba(232,88,26,0.5);
}
.btn-pill-orange:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-pill-orange.inline { width: auto; }

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  height: 64px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-h);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--orange); }

/* ─────────────────────────────────────────────
   HERO + TOOL
───────────────────────────────────────────── */
#hero {
  background: var(--navy);
  padding: 128px var(--pad-h) 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(232,88,26,0.14) 0%, transparent 70%);
  pointer-events: none;
}

#hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(232,88,26,0.4);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

#hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* Tool card */
.tool-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.field-single { margin-bottom: 20px; }

.tool-card input[type="number"],
.tool-card input[type="text"],
.tool-card select,
.tool-card input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--lgrey);
  border: 1.5px solid var(--mgrey);
  border-radius: var(--radius-btn);
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color 150ms ease;
}
.tool-card input[type="number"]:focus,
.tool-card input[type="text"]:focus,
.tool-card select:focus,
.tool-card input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
}

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--lgrey);
  border: 1.5px solid var(--mgrey);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.chip:hover { border-color: var(--orange); }
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.form-error {
  font-size: 0.85rem;
  color: #C0392B;
  margin: -8px 0 16px;
}
.form-error:empty { display: none; }

.usage-note {
  font-size: 0.8rem;
  color: var(--dgrey);
  text-align: center;
  margin-top: 14px;
}

/* ─────────────────────────────────────────────
   RESULTS
───────────────────────────────────────────── */
#results {
  padding: var(--pad-section) var(--pad-h);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.dest-card {
  background: var(--white);
  border: 1px solid var(--mgrey);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dest-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dest-flag { font-size: 1.6rem; line-height: 1; }

.dest-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.dest-meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--teal);
}

.dest-desc {
  font-size: 0.92rem;
  color: var(--dgrey);
  flex: 1;
}

.dest-yt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--orange);
  text-decoration: none;
}
.dest-yt:hover { text-decoration: underline; }

.dest-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}
.dest-actions .btn-pill-orange {
  padding: 10px 20px;
  min-height: 40px;
  font-size: 0.82rem;
  box-shadow: none;
}

.post-signup-line {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   PAYWALL
───────────────────────────────────────────── */
.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(7,17,30,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.paywall-overlay[hidden] { display: none; }

.paywall-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
}

.paywall-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--dgrey);
  cursor: pointer;
  padding: 6px;
}

.paywall-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.paywall-card p {
  font-size: 0.95rem;
  color: var(--dgrey);
  margin-bottom: 24px;
}

.paywall-form input[type="email"] { margin-bottom: 12px; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 720px) {
  .results-grid { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   BUDGET "NOT SURE YET" TOGGLE — save-a.html / save-b.html
───────────────────────────────────────────── */
.budget-unsure-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dgrey);
  margin: -10px 0 20px;
  cursor: pointer;
}
.budget-unsure-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
}

/* ─────────────────────────────────────────────
   SAVINGS PLAN RESULTS — save-a.html / save-b.html
───────────────────────────────────────────── */
.plan-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--mgrey);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-dest {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.plan-monthly {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
}

.plan-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--lgrey);
  border-bottom: 1px solid var(--lgrey);
  padding: 14px 0;
}

.plan-stage {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
}

.plan-stage-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  min-width: 96px;
  flex-shrink: 0;
}

.plan-stage-timing {
  color: var(--dgrey);
}

.plan-line {
  font-size: 0.92rem;
  color: var(--dgrey);
}

.plan-actions {
  margin-top: auto;
}
.plan-actions .btn-pill-orange {
  padding: 10px 20px;
  min-height: 40px;
  font-size: 0.82rem;
  box-shadow: none;
}
