/* ===================================================
   CSG COMPASS — Phase 1: Entry Experience
   Design System & Styles
   =================================================== */

/* --- CSS Custom Properties (Brand Guide) --- */
:root {
  --crimson: #B40101;
  --crimson-hover: #8f0101;
  --slate: #7D7D7D;
  --black: #000000;
  --white: #FFFFFF;
  --ivory: #FAFAF8;
  --warm-gray: #F2F0ED;
  --border-gray: #E0DEDA;
  --border-card: #D5D3CF;
  --transition-smooth: 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-quick: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--black);
  background-color: var(--ivory);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 60px;
  /* Accounts for fixed nav */
}

/* --- Global Navigation --- */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-start-over {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-quick);
  padding: 8px 12px;
}

.nav-start-over:hover {
  color: var(--crimson);
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.contact-form-container {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input {
  width: 100%;
  padding: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color var(--transition-quick);
}

.form-input:focus {
  border-color: var(--crimson);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--white);
  background: var(--crimson);
  border: none;
  border-radius: 12px;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 200ms ease-in-out, opacity 200ms ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background: var(--crimson-hover);
}

.btn-primary:active {
  opacity: 0.85;
}

.form-submit-btn {
  width: 100%;
  margin-top: 16px;
}

.form-helper {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

.form-success-msg {
  background-color: #f6fff8;
  /* Very subtle green tint */
  border: 1px solid #d4ebd8;
  color: #386641;
  padding: 16px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  text-align: center;
  margin-top: 24px;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-user-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.nav-signin-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--crimson);
  background: transparent;
  border: 1px solid var(--crimson);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--transition-quick);
}

.nav-signin-btn:hover {
  background: var(--crimson);
  color: var(--white);
}

.nav-dash-link {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  margin-right: 16px;
  transition: color var(--transition-quick);
}

.nav-dash-link:hover {
  color: var(--crimson);
}

/* --- Screen System --- */
.screen {
  display: none;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.screen.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  opacity: 1;
}

.screen.fade-in {
  opacity: 1;
}

.screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 32px;
}

/* --- Cover / Splash Screen --- */
#cover-screen {
  background-color: #E2DFD9;
  /* Medium warm gray */
  max-width: 100%;
  /* Override 480px to fill screen width */
  margin: 0;
}

.cover-inner {
  align-items: center;
  text-align: center;
  padding: 0 32px;
  max-width: 480px;
  /* Keep content constrained */
  margin: 0 auto;
}

.cover-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.cover-logo-icon {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.cover-brand-name {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--black);
  text-transform: uppercase;
  margin-right: -4px;
  /* compensate for letter spacing */
}

.cover-headline {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.cover-subline {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--slate);
}

/* --- Welcome Screen --- */
.welcome-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 56px;
}

.brand-mark {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--crimson);
}

.brand-name {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--slate);
  text-transform: uppercase;
}

.welcome-copy {
  margin-bottom: 48px;
}

.headline {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.5px;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 12px;
}

.subheadline {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--slate);
  line-height: 1.5;
}

/* --- Option Cards --- */
.option-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: opacity var(--transition-quick), border-color var(--transition-quick);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.option-card:hover {
  border-color: var(--slate);
}

.option-card:active {
  opacity: 0.7;
}

.option-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--black);
  text-align: left;
  line-height: 1.4;
}

.option-arrow {
  font-size: 22px;
  color: var(--slate);
  opacity: 0.5;
  margin-left: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.supporting-line {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  line-height: 1.6;
}

/* --- Progress Bar --- */
.progress-bar-track {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 3px;
  background: var(--warm-gray);
  z-index: 100;
}

.progress-bar-fill {
  height: 100%;
  width: 33.33%;
  background: var(--crimson);
  border-radius: 0 2px 2px 0;
  transition: width var(--transition-smooth);
}

/* --- Onboarding Steps --- */
.onboarding-step {
  display: none;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

.onboarding-step.active {
  display: block;
}

.onboarding-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-content {
  display: flex;
  flex-direction: column;
}

.step-nav-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.back-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-quick);
}

.back-link:hover {
  color: var(--crimson);
}

.step-question {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step-helper {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 36px;
}

/* --- Text Input --- */
.input-group {
  margin-bottom: 32px;
}

.text-input {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 18px 20px;
  outline: none;
  transition: border-color var(--transition-quick);
  letter-spacing: 2px;
  -webkit-tap-highlight-color: transparent;
}

.text-input::placeholder {
  color: var(--border-card);
  letter-spacing: 1px;
  font-weight: 300;
}

.text-input:focus {
  border-color: var(--slate);
}

.validation-msg {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--slate);
  margin-top: 10px;
  padding-left: 4px;
  opacity: 0;
  transition: opacity var(--transition-quick);
}

.validation-msg.show {
  opacity: 1;
}

/* --- Next / Continue Button --- */
.next-btn {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--crimson);
  border: none;
  border-radius: 12px;
  padding: 18px 32px;
  cursor: pointer;
  transition: background 200ms ease-in-out, opacity 200ms ease-in-out;
  -webkit-tap-highlight-color: transparent;
  align-self: stretch;
}

.next-btn:hover {
  background: var(--crimson-hover);
}

.next-btn:active {
  opacity: 0.85;
}

.next-btn:disabled {
  background: var(--border-card);
  cursor: default;
}

/* --- Choice Cards (Own/Rent, Timeline) --- */
.choice-cards,
.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-cards {
  flex-direction: row;
  gap: 14px;
}

.choice-card {
  flex: 1;
  background: var(--white);
  border: 2px solid var(--border-card);
  border-radius: 12px;
  padding: 22px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--black);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-quick), opacity var(--transition-quick);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.choice-card:hover {
  border-color: var(--slate);
}

.choice-card:active {
  opacity: 0.7;
}

.choice-card.selected {
  border-color: var(--crimson);
  color: var(--crimson);
}

.timeline-option {
  text-align: left;
  padding: 18px 20px;
}

/* --- Routing / Confirmation Screen --- */
.routing-content {
  text-align: center;
}

.routing-icon {
  width: 64px;
  height: 64px;
  background: var(--crimson);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 32px;
}

.routing-detail {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--slate);
  margin-top: 16px;
  line-height: 1.6;
}

/* ===================================================
   BUY VS. RENT ANALYZER — Styles
   =================================================== */

/* --- Dollar Input (underline style, large number) --- */
.dollar-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 2px solid var(--border-card);
  padding-bottom: 8px;
  transition: border-color var(--transition-quick);
}

.dollar-input-wrap:focus-within {
  border-color: var(--slate);
}

.dollar-prefix {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: var(--slate);
  line-height: 1;
}

.dollar-input {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--black);
  border: none;
  background: transparent;
  outline: none;
  letter-spacing: 1px;
  -webkit-tap-highlight-color: transparent;
}

.dollar-input::placeholder {
  color: var(--border-card);
  font-weight: 300;
}

/* --- Results Screen Layout --- */
.results-inner {
  justify-content: flex-start;
  padding-top: 40px;
  padding-bottom: 48px;
  gap: 0;
}

.results-header {
  margin-bottom: 36px;
}

.results-headline {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.results-subline {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--slate);
  line-height: 1.5;
}

/* --- Comparison Bars --- */
.comparison-section {
  margin-bottom: 32px;
}

.bar-group {
  margin-bottom: 16px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.bar-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
}

.bar-label-sub {
  font-weight: 300;
  font-size: 12px;
  color: var(--slate);
}

.bar-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
}

.bar-track {
  width: 100%;
  height: 10px;
  background: var(--warm-gray);
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width var(--transition-smooth);
  min-width: 4px;
}

.bar-fill-rent {
  background: var(--slate);
}

.bar-fill-own {
  background: var(--crimson);
}

.bar-caption {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--slate);
  margin-top: 12px;
  line-height: 1.5;
}

/* --- Breakdown Card --- */
.breakdown-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 32px;
}

.breakdown-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  gap: 16px;
}

.breakdown-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: var(--slate);
  line-height: 1.4;
}

.breakdown-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--black);
  line-height: 1.2;
}

.breakdown-accent {
  color: var(--crimson);
}

.breakdown-divider {
  height: 1px;
  background: var(--border-gray);
  margin: 18px 0;
}

/* --- Scenario Section --- */
.scenario-section {
  margin-bottom: 36px;
}

.scenario-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--black);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.scenario-sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 24px;
  line-height: 1.5;
}

.scenario-slider-group {
  margin-bottom: 20px;
}

.scenario-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.scenario-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--black);
}

.scenario-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--crimson);
}

/* --- Range Slider (crimson thumb, gray track) --- */
.scenario-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--warm-gray);
  border-radius: 2px;
  outline: none;
}

.scenario-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--crimson);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.scenario-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--crimson);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* --- CTA Buttons --- */
.results-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-save {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  background: var(--crimson);
  border: 1px solid var(--crimson);
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background var(--transition-quick), opacity var(--transition-quick);
  -webkit-tap-highlight-color: transparent;
}

.cta-save:hover {
  background: var(--crimson-hover);
}

.cta-save:active {
  opacity: 0.85;
}

.cta-advisor {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--crimson);
  background: transparent;
  border: 2px solid var(--crimson);
  border-radius: 12px;
  padding: 18px 24px;
  cursor: pointer;
  transition: all var(--transition-quick);
  -webkit-tap-highlight-color: transparent;
}

.cta-advisor:hover {
  background: var(--crimson);
  color: var(--white);
}

.cta-advisor:active {
  opacity: 0.85;
}

.floating-advisor-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  text-align: center;
  width: 100%;
}

.floating-advisor-cta span {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--slate);
}

/* ===================================================
   SELL VS. STAY ANALYZER — Styles
   =================================================== */

/* --- Year Selected Input --- */
.svs-input-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
  margin-bottom: 8px;
}

.svs-select {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px 20px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D7D7D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  margin-bottom: 24px;
}

.svs-select:focus {
  border-color: var(--slate);
}

/* --- Equity Card --- */
.svs-equity-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.svs-equity-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}

.svs-equity-amount {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: var(--crimson);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.svs-equity-sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.4;
}

/* --- Collapsible Selling Costs --- */
.svs-costs-container {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
}

.svs-costs-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.svs-chevron {
  font-size: 12px;
  color: var(--slate);
  transition: transform var(--transition-smooth);
}

.svs-costs-toggle.open .svs-chevron {
  transform: rotate(180deg);
}

.svs-costs-breakdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
  background: var(--ivory);
}

.svs-costs-breakdown.open {
  max-height: 200px;
}

.svs-cost-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--slate);
}

.svs-cost-row:first-child {
  padding-top: 16px;
}

.svs-cost-row:last-child {
  padding-bottom: 16px;
}

.svs-cost-row span:last-child {
  font-weight: 500;
  color: var(--black);
}

/* --- Wait Section (3 columns) --- */
.svs-wait-section {
  margin-bottom: 36px;
}

.svs-wait-columns {
  display: flex;
  gap: 12px;
}

.svs-wait-col {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svs-wait-col.current {
  border-color: var(--crimson);
  background: var(--ivory);
  /* Slight highlight */
}

.svs-wait-time {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 6px;
}

.svs-wait-col.current .svs-wait-time {
  color: var(--crimson);
  font-weight: 500;
}

.svs-wait-val {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
}

/* --- Proceeds Context --- */
.svs-proceeds-section {
  background: var(--warm-gray);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
}

.svs-proceeds-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--black);
  line-height: 1.6;
}

/* ===================================================
   AFFORDABILITY ANALYZER — Styles
   =================================================== */

.aff-slider-wrap {
  margin-top: 16px;
}

.aff-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 24px;
}

.aff-slider-labels span {
  flex: 1;
}

.aff-slider-labels span:last-child {
  text-align: right;
}

/* ===================================================
   DECISION GUIDE — Styles
   =================================================== */

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.roadmap-container {
  margin-top: 32px;
  margin-bottom: 48px;
}

.roadmap-step {
  display: flex;
  margin-bottom: 32px;
  position: relative;
}

.roadmap-step:last-child {
  margin-bottom: 0;
}

.roadmap-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 20px;
  position: relative;
  z-index: 2;
}

/* Vertical line connecting steps */
.roadmap-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 15px;
  width: 2px;
  height: calc(100%);
  background: var(--border-card);
  z-index: 1;
}

.roadmap-content {
  flex: 1;
  padding-top: 4px;
}

.roadmap-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--black);
  margin-bottom: 8px;
}

.roadmap-desc {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

.roadmap-desc a {
  color: var(--crimson);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-quick);
  cursor: pointer;
}

.roadmap-desc a:hover {
  border-color: var(--crimson);
}

/* ===================================================
   Responsive Fine-Tuning
   =================================================== */

@media (max-width: 380px) {
  .screen-inner {
    padding: 48px 24px;
  }

  .headline {
    font-size: 28px;
  }

  .step-question {
    font-size: 22px;
  }

  .choice-cards {
    flex-direction: column;
  }

  .breakdown-num {
    font-size: 18px;
  }
}

@media (min-width: 481px) {
  body {
    background-color: var(--warm-gray);
  }

  .screen {
    background-color: var(--ivory);
  }
}

/* ===================================================
   PHASE 5: AUTHENTICATED DASHBOARD — Styles
   =================================================== */

.dashboard-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dash-greeting {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.3px;
  color: var(--black);
  margin-bottom: 4px;
}

.dash-subhead {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--slate);
}

.dash-nudge {
  display: none;
  background: var(--white);
  border-left: 3px solid var(--crimson);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dash-nudge p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.dash-section {
  margin-bottom: 40px;
}

.dash-section-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Saved Cards Grid */
.saved-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.saved-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.delete-card-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #f9fafb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  z-index: 2;
  border: 1px solid #e5e7eb;
}

.delete-card-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.saved-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saved-card-tool {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--crimson);
}

.saved-card-date {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--slate);
}

.saved-card-headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--black);
  line-height: 1.35;
  margin-top: 4px;
}

/* Detailed Metric Grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin: 16px 0;
  padding: 16px;
  background: var(--warm-gray);
  border-radius: 10px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
}

.saved-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.saved-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: all var(--transition-quick);
}

.saved-btn-primary {
  background: var(--crimson);
  color: var(--white);
  border: 1px solid var(--crimson);
}

.saved-btn-primary:hover {
  background: var(--crimson-hover);
}

.saved-btn-secondary {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--border-card);
}

.saved-btn-secondary:hover {
  background: var(--warm-gray);
  color: var(--black);
}

/* Category Sections */
.dash-category-section {
  margin-bottom: 48px;
}

.dash-category-section:last-child {
  margin-bottom: 0;
}

.dash-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--warm-gray);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.dash-category-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.dash-compare-pill {
  background: var(--ivory);
  border: 1px solid var(--border-card);
  color: var(--slate);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Horizontal scroll variant for comparison */
.saved-cards-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
}

.saved-cards-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.saved-cards-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--border-card);
  border-radius: 10px;
}

.saved-cards-scroll-container .saved-card {
  min-width: 280px;
  flex: 0 0 auto;
}

/* Empty State */
.dash-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px dashed var(--border-card);
  border-radius: 12px;
}

.dash-empty-state p {
  font-family: 'Poppins', sans-serif;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.dash-empty-link {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--crimson);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition-quick);
}

.action-card:hover {
  border-color: var(--slate);
}

.action-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
}

.action-arrow {
  font-size: 18px;
  color: var(--slate);
  line-height: 1;
}

/* ===================================================
   PHASE 7 QUICK POLISH (LOADERS, ANIM, RESPONSIVE)
   =================================================== */

/* --- Staggered Reveals --- */
.stagger-1 {
  animation: staggerFadeIn 200ms ease-in-out 100ms both;
}

.stagger-2 {
  animation: staggerFadeIn 200ms ease-in-out 200ms both;
}

.stagger-3 {
  animation: staggerFadeIn 200ms ease-in-out 300ms both;
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Loader Top Bar --- */
.calc-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--crimson);
  width: 0;
  z-index: 9999;
  transition: width 400ms ease;
  opacity: 0;
}

.calc-loader.loading {
  opacity: 1;
  width: 100%;
  transition: width 2s cubic-bezier(0.1, 0.5, 0.2, 1);
}

/* --- Skeleton States --- */
.skeleton-block {
  background: linear-gradient(90deg, var(--warm-gray) 25%, #e8e6e3 50%, var(--warm-gray) 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s infinite;
  border-radius: 8px;
  min-height: 20px;
}

@keyframes skeletonLoad {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* --- Responsive Layout Rules --- */
@media (max-width: 480px) {

  .screen,
  #cover-screen {
    width: 100%;
  }
}

@media (min-width: 481px) {
  .screen {
    margin: 0 auto;
    max-width: 480px;
  }
}