:root {
  --primary: #1a5c38;
  --primary-light: #2d7a50;
  --primary-dark: #0f3d25;
  --accent: #e8a020;
  --accent-light: #f0b840;
  --warm-white: #fdfaf5;
  --off-white: #f5f0e8;
  --light-gray: #e8e3d8;
  --mid-gray: #8a8070;
  --dark: #1c1a16;
  --text: #2c2820;
  --success: #1a7a40;
  --error: #c0392b;
  --cash-color: #1a5c38;
  --market-color: #1a3a6c;
  --creative-color: #6b2d7a;
  --border-radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 36px rgba(0,0,0,0.14);
  --transition: all 0.25s ease;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--warm-white); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   HOME SCREEN
   ============================================ */
.home-screen {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.home-side {
  flex: 1;
  background: linear-gradient(180deg, #c8dece 0%, #e2efe6 50%, #c8dece 100%);
  min-width: 40px;
  max-width: 200px;
}

.home-inner {
  flex: 0 1 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  margin: 0 auto;
}

.home-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.home-title em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
}

.home-sub {
  font-size: 17px;
  color: var(--mid-gray);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 420px;
}

.address-card {
  background: #fff;
  border: 1.5px solid var(--light-gray);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: left;
  margin-bottom: 20px;
  width: 100%;
  max-width: 520px;
}

.address-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.address-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.addr-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  transition: var(--transition);
}

.addr-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,92,56,0.1); background: #fff; }

.addr-row { display: grid; grid-template-columns: 1fr 52px 100px; gap: 10px; align-items: center; }

.addr-state-static {
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  padding: 13px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.home-cta {
  width: 100%;
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-cta:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,0.35); }
.cta-arrow { font-size: 20px; transition: transform 0.2s; }
.home-cta:hover .cta-arrow { transform: translateX(4px); }

.home-trust { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--mid-gray); max-width: 520px; }

/* ============================================
   QUESTIONNAIRE
   ============================================ */
.questionnaire-screen { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 24px; background: var(--warm-white); }

.q-wrapper { max-width: 640px; width: 100%; background: #fff; border-radius: 24px; padding: 48px; box-shadow: var(--shadow); border: 1px solid var(--light-gray); }

.step-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; }
.step-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--light-gray); transition: var(--transition); flex-shrink: 0; }
.step-dot.active { background: var(--primary); transform: scale(1.3); }
.step-dot.completed { background: var(--success); }
.step-line { width: 80px; height: 3px; background: var(--light-gray); transition: var(--transition); }
.step-line.completed { background: var(--success); }

.form-step { display: none; }
.form-step.active { display: block; }

.step-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step-sub { color: var(--mid-gray); font-size: 15px; margin-bottom: 28px; }

.prefill-notice { background: #fff8e8; border: 1.5px solid #f0d080; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #7a5a10; margin-bottom: 24px; line-height: 1.5; }
.highlight-word { background: #fde68a; padding: 1px 4px; border-radius: 4px; font-weight: 600; }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; color: var(--text); }
.field-hint { font-size: 13px; color: var(--mid-gray); margin-bottom: 8px; line-height: 1.5; }

.form-input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--light-gray); border-radius: 10px; font-size: 16px; font-family: var(--font-body); transition: var(--transition); background: var(--warm-white); color: var(--text); }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,92,56,0.1); background: #fff; }
.form-input.needs-fill { border-color: var(--accent); background: #fff8e8; box-shadow: 0 0 0 3px rgba(232,160,32,0.15); }

.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.button-group { display: flex; flex-wrap: wrap; gap: 10px; }
.vertical-group { flex-direction: column; }

.option-btn { padding: 12px 18px; border: 1.5px solid var(--light-gray); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; font-family: var(--font-body); cursor: pointer; transition: var(--transition); color: var(--text); text-align: left; }
.option-btn:hover { border-color: var(--primary); color: var(--primary); background: #f0f9f4; }
.option-btn.selected { background: var(--primary); border-color: var(--primary); color: #fff; }

.condition-btn { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; }
.cond-title { font-weight: 600; font-size: 15px; }
.cond-desc { font-size: 13px; opacity: 0.8; line-height: 1.4; }
.option-btn.selected .cond-desc { opacity: 0.85; }
.timeline-btn { display: flex; align-items: center; gap: 12px; font-size: 16px; padding: 16px 20px; }

.contact-prefs { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-pref-option { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1.5px solid var(--light-gray); border-radius: 10px; cursor: pointer; transition: var(--transition); font-size: 15px; font-weight: 500; background: #fff; user-select: none; }
.contact-pref-option:hover { border-color: var(--primary); color: var(--primary); }
.contact-pref-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.contact-pref-option:has(input:checked) { border-color: var(--primary); background: #f0f9f4; color: var(--primary); }

.form-nav { display: flex; gap: 12px; margin-top: 32px; }

.btn-primary { background: var(--accent); color: var(--dark); border: none; padding: 15px 32px; border-radius: 10px; font-size: 16px; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: var(--transition); display: inline-block; text-align: center; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,160,32,0.35); }
.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); padding: 13px 28px; border-radius: 10px; font-size: 16px; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: var(--transition); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.full-width { width: 100%; }

.loading { text-align: center; padding: 60px 0; }
.spinner { width: 48px; height: 48px; border: 4px solid var(--light-gray); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; color: var(--dark); }
.loading p { color: var(--mid-gray); }

.error-state { text-align: center; padding: 48px 0; }
.error-icon { font-size: 52px; margin-bottom: 16px; }
.error-state h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; color: var(--dark); }
.error-state p { color: var(--mid-gray); margin-bottom: 28px; max-width: 400px; margin-left: auto; margin-right: auto; }
.error-state .btn-secondary { margin-top: 12px; }

/* ============================================
   RESULTS SCREEN
   ============================================ */
.results-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 60px 24px; background: var(--warm-white); }
.results-inner { max-width: 1060px; width: 100%; }
.results-header { text-align: center; margin-bottom: 48px; }
.results-title { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.results-address { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }

.restart-btn { background: transparent; border: 1.5px solid var(--light-gray); color: var(--mid-gray); padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 500; font-family: var(--font-body); cursor: pointer; transition: var(--transition); }
.restart-btn:hover { border-color: var(--primary); color: var(--primary); }

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

.result-card { background: #fff; border-radius: var(--border-radius); padding: 28px 24px; box-shadow: var(--shadow); cursor: pointer; transition: var(--transition); text-align: center; border: 1.5px solid var(--light-gray); }
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cash-card { border-top: 4px solid var(--cash-color); }
.market-card { border-top: 4px solid var(--market-color); }
.creative-card { border-top: 4px solid var(--creative-color); }

.card-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.card-icon { font-size: 22px; }
.card-header h3 { font-size: 17px; font-weight: 700; color: var(--dark); }

.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
.badge-fast { background: #e0f2e9; color: var(--cash-color); }
.badge-max { background: #e0eaf8; color: var(--market-color); }
.badge-flex { background: #f3e0f8; color: var(--creative-color); }

.card-number-section { margin-bottom: 4px; }
.card-number-label { font-size: 12px; font-weight: 600; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.card-number-label.muted { color: var(--mid-gray); opacity: 0.8; }

.card-amount { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 8px; }
.flexible-amount { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--creative-color); margin: 16px 0; }

.card-divider { height: 1px; background: var(--light-gray); margin: 12px 0; }

.card-proceeds-section { margin-bottom: 12px; }
.card-proceeds-amount { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--mid-gray); }

.card-details { text-align: left; margin: 14px 0; }
.card-details p { font-size: 13px; color: var(--text); margin-bottom: 5px; }

.btn-card { width: 100%; background: transparent; border: 1.5px solid currentColor; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: var(--transition); margin-top: 14px; }
.cash-card .btn-card { color: var(--cash-color); }
.cash-card .btn-card:hover { background: var(--cash-color); color: #fff; }
.market-card .btn-card { color: var(--market-color); }
.market-card .btn-card:hover { background: var(--market-color); color: #fff; }
.creative-card .btn-card { color: var(--creative-color); }
.creative-card .btn-card:hover { background: var(--creative-color); color: #fff; }

.results-disclaimer { text-align: center; color: var(--mid-gray); font-size: 12px; max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: #fff; border-radius: 20px; padding: 40px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--light-gray); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--mid-gray); color: #fff; }
.modal h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.modal-footer { display: flex; gap: 12px; margin-top: 28px; }

.breakdown-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--light-gray); gap: 16px; }
.breakdown-label { font-weight: 600; font-size: 15px; color: var(--text); }
.breakdown-desc { font-size: 13px; color: var(--mid-gray); margin-top: 2px; line-height: 1.4; }
.breakdown-amount { font-weight: 700; font-size: 17px; white-space: nowrap; color: var(--dark); }
.breakdown-amount.negative { color: var(--error); }
.breakdown-amount.positive { color: var(--success); }
.breakdown-amount.zero { color: var(--mid-gray); }

.breakdown-subtotal { display: flex; justify-content: space-between; padding: 16px 0 8px; font-size: 20px; font-weight: 800; font-family: var(--font-display); color: var(--dark); border-top: 3px solid var(--dark); margin-top: 8px; }
.breakdown-total { display: flex; justify-content: space-between; padding: 16px 0 8px; font-size: 22px; font-weight: 800; font-family: var(--font-display); color: var(--primary); border-top: 3px solid var(--primary); margin-top: 8px; }

.privacy-note { text-align: center; font-size: 13px; color: var(--mid-gray); margin-top: 16px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: #fff; padding: 40px 24px 28px; margin-top: auto; }
.footer-center { max-width: 1060px; margin: 0 auto 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-tagline { font-size: 16px; color: rgba(255,255,255,0.7); text-align: center; }
.footer-areas { font-size: 13px; color: rgba(255,255,255,0.45); text-align: center; letter-spacing: 0.03em; }
.footer-links { display: flex; gap: 24px; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-disclaimer { max-width: 1060px; margin: 0 auto; color: rgba(255,255,255,0.35); font-size: 11px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; line-height: 1.7; }

/* ============================================
   SEO SECTIONS — SHARED LAYOUT
   ============================================ */
.section-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-inner--narrow {
  max-width: 720px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-sub {
  font-size: 17px;
  color: var(--mid-gray);
  text-align: center;
  margin-bottom: 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works-section {
  background: var(--off-white);
  padding: 80px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 28px 24px;
  border: 1.5px solid var(--light-gray);
  box-shadow: var(--shadow);
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-card p {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.65;
}

/* ============================================
   WHY TRUST US
   ============================================ */
.trust-section {
  background: var(--warm-white);
  padding: 80px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.trust-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 32px 28px;
  border: 1.5px solid var(--light-gray);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.trust-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.trust-card p {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.7;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  background: var(--off-white);
  padding: 80px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,56,0.07);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-item[open] .faq-question {
  color: var(--primary);
}

.faq-answer {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.7;
  padding: 0 24px 20px;
}

/* ============================================
   RESPONSIVE — SEO SECTIONS
   ============================================ */
@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto 32px; }
  .home-side { display: none; }
  .home-inner { padding: 40px 24px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 28px; }
}

@media (max-width: 680px) {
  .home-title { font-size: 30px; }
  .q-wrapper { padding: 32px 20px; }
  .form-row-3 { grid-template-columns: 1fr; }
  .addr-row { grid-template-columns: 1fr 52px 90px; }
  .modal { padding: 28px 20px; }
  .modal-footer { flex-direction: column; }
  .results-title { font-size: 30px; }
  .results-address { font-size: 18px; }
  .form-nav { flex-direction: column; }
  .contact-prefs { flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
  .how-it-works-section,
  .trust-section,
  .faq-section { padding: 56px 0; }
  .section-heading { font-size: 24px; }
  .section-sub { font-size: 15px; margin-bottom: 32px; }
}

@media (max-width: 400px) {
  .home-title { font-size: 26px; }
  .home-trust { flex-direction: column; align-items: center; gap: 8px; }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 12px; font-size: 15px; font-family: var(--font-body); font-weight: 500; box-shadow: 0 4px 20px rgba(0,0,0,0.15); opacity: 0; transform: translateY(-16px); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: auto; min-width: 280px; max-width: 420px; }
.toast-show { opacity: 1; transform: translateY(0); }
.toast-error { background: #fff; border-left: 4px solid var(--error); color: var(--text); }
.toast-success { background: #fff; border-left: 4px solid var(--success); color: var(--text); }
.toast-warning { background: #fff; border-left: 4px solid var(--accent); color: var(--text); }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg { line-height: 1.4; }