/* ========================================================
   Car TCO Calculator Denmark — style.css
   Design: clean modern light, brand #ff3131
   ======================================================== */

:root {
  --primary:       #ff3131;
  --primary-dark:  #d42020;
  --primary-light: #fff0f0;
  --bg:            #f4f6f8;
  --card:          #ffffff;
  --text:          #0f172a;
  --text-2:        #64748b;
  --text-3:        #94a3b8;
  --border:        #e5e7eb;
  --border-focus:  #ff3131;
  --green:         #059669;
  --green-light:   #d1fae5;
  --red:           #dc2626;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     8px;
  --shadow:        0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.10);

  --car1: #0891b2;
  --car2: #7c3aed;
  --car3: #d97706;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Nav ── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.nav-logo-img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 56px 24px 48px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem; font-weight: 600;
  padding: 5px 16px; border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.hero h1 {
  font-size: 2.625rem; font-weight: 800;
  line-height: 1.15; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 14px;
}
.hero p {
  font-size: 1.0625rem; color: var(--text-2);
  max-width: 520px; margin: 0 auto;
  line-height: 1.65;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 0.9375rem; font-weight: 700;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}

/* ── Form elements ── */
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.875rem; font-family: inherit;
  color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,49,49,.12);
}
input.err { border-color: var(--red); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 36px; cursor: pointer;
}

.input-suffix { position: relative; }
.input-suffix input { padding-right: 80px; }
.input-suffix span.suf {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-3); pointer-events: none;
  white-space: nowrap; letter-spacing: 0.02em;
}

.hint { font-size: 0.75rem; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.hint code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: .7rem; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Tooltip ── */
.tt {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #f1f5f9; color: var(--text-3);
  font-size: 0.6rem; font-weight: 700; cursor: help;
  position: relative; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.tt:hover { background: var(--primary); color: #fff; }
.tt:hover .tip, .tt:focus .tip { display: block; }
.tip {
  display: none;
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--text); color: #fff;
  font-size: 0.75rem; font-weight: 400; line-height: 1.55;
  padding: 10px 14px; border-radius: 10px;
  width: 240px; z-index: 1000;
  white-space: normal; pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.tip a { color: #93c5fd; text-decoration: underline; }
.tip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--text);
}

/* ── Pill group (Purchase / Lease toggle) ── */
.pill-group {
  display: flex; border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); overflow: hidden;
}
.pill-group label {
  flex: 1; text-align: center;
  padding: 9px 10px;
  font-size: 0.8125rem; font-weight: 500;
  cursor: pointer; background: #fff; color: var(--text-2);
  transition: background .15s, color .15s;
  border-right: 1px solid var(--border);
  user-select: none;
}
.pill-group label:last-of-type { border-right: none; }
.pill-group input[type="radio"] { display: none; }
.pill-group input[type="radio"]:checked + label {
  background: var(--primary); color: #fff; font-weight: 600;
}

/* ── Global settings ── */
.global-settings { margin-bottom: 16px; }
.global-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}

/* ── Fuel price / config toggle ── */
.fuel-prices-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer; font-size: 0.875rem; font-weight: 600;
  color: var(--text-2);
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}
.fuel-prices-toggle:hover {
  border-color: var(--primary); color: var(--primary); background: var(--primary-light);
}
.chevron { font-size: 0.65rem; transition: transform .2s; display: inline-block; }
.chevron.open { transform: rotate(180deg); }
.fuel-prices-content { padding-top: 16px; }
.fuel-price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 8px;
}

/* ── Cars section ── */
.cars-section { margin-bottom: 16px; }

/* ── Cars grid ── */
.cars-grid { display: grid; gap: 16px; align-items: start; }
.cars-grid.cols-1 { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
.cars-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cars-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Car card ── */
.car-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s;
}
.car-card:hover { box-shadow: var(--shadow-md); }

.car-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; color: #fff;
}
.color-1 { background: var(--car1); }
.color-2 { background: var(--car2); }
.color-3 { background: var(--car3); }

.car-label {
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.8; white-space: nowrap; flex-shrink: 0;
}
.car-nickname {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px; color: #fff;
  font-size: 0.875rem; font-weight: 600;
  padding: 5px 10px; flex: 1; min-width: 0;
  font-family: inherit;
}
.car-nickname::placeholder { color: rgba(255,255,255,.5); }
.car-nickname:focus {
  outline: none; border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.25); box-shadow: none;
}
.btn-remove-car {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 6px;
  padding: 4px 10px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: background .15s; flex-shrink: 0;
  font-family: inherit;
}
.btn-remove-car:hover { background: rgba(255,255,255,.3); }
.car-card-body { padding: 18px; }

/* ── Brand / model row ── */
.brand-model-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}

/* ── Optional toggle (checkbox inline with label) ── */
.optional-toggle {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.optional-toggle input[type="checkbox"] { accent-color: var(--primary); cursor: pointer; }

/* ── Add car button ── */
.add-car-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 18px;
  border: 2px dashed #d1d5db;
  border-radius: var(--radius);
  background: #fff; color: var(--text-2);
  font-size: 0.9375rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  margin-top: 4px;
}
.add-car-btn:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light);
}
.add-car-btn .plus-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}

/* ── Calculate button ── */
.calculate-row { margin-bottom: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 22px; border: none;
  border-radius: var(--radius-xs);
  font-family: inherit; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 3px rgba(255,49,49,.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(255,49,49,.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: #fff; color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-3); color: var(--text); }
.btn-lg { padding: 15px 32px; font-size: 1rem; width: 100%; border-radius: var(--radius-sm); }

.error-msg {
  margin-top: 10px; padding: 11px 16px;
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--radius-xs); font-size: 0.875rem; color: var(--red);
}

/* ── Results ── */

/* Winner banner — white to avoid competing with the red premium upsell above */
.winner-banner {
  background: #fff;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 24px 28px;
  color: var(--text);
  display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.winner-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.winner-text { flex: 1; min-width: 0; }
.winner-label {
  font-size: 0.75rem; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600;
}
.winner-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.winner-tco {
  font-size: 1.5rem; font-weight: 800; color: var(--primary);
  text-align: right; white-space: nowrap; flex-shrink: 0;
  letter-spacing: -0.02em;
}

/* Metric cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.metric-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  border-top: 4px solid var(--border);
}
.metric-card.car-color-1 { border-top-color: var(--car1); }
.metric-card.car-color-2 { border-top-color: var(--car2); }
.metric-card.car-color-3 { border-top-color: var(--car3); }
.metric-car-name {
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-3); margin-bottom: 10px;
}
.metric-tco {
  font-size: 1.5rem; font-weight: 800;
  color: var(--text); margin-bottom: 4px;
  line-height: 1.2; letter-spacing: -0.02em;
}
.metric-equiv { font-size: 0.8125rem; color: var(--text-2); margin-bottom: 1px; }
.metric-equiv-year { font-size: 0.8125rem; color: var(--text-3); }
.metric-winner-badge {
  display: inline-block;
  background: var(--green-light); color: var(--green);
  font-size: 0.6875rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  margin-top: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Charts */
.chart-card { margin-bottom: 16px; }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap-tall { /* height now set dynamically by JS */ }

/* Breakdowns */
.breakdowns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.breakdown-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.breakdown-header {
  padding: 13px 18px;
  font-size: 0.875rem; font-weight: 700; color: #fff;
}
.breakdown-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 18px; font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
}
.breakdown-item:last-child { border-bottom: none; }
.breakdown-item .bi-label { color: var(--text-2); }
.breakdown-item .bi-value { font-weight: 600; color: var(--text); text-align: right; }
.breakdown-item.credit .bi-value { color: var(--green); }
.breakdown-item.total-row { background: #f8fafc; border-top: 2px solid var(--border); }
.breakdown-item.total-row .bi-label { color: var(--text); font-weight: 700; }
.breakdown-item.total-row .bi-value { font-weight: 800; font-size: 0.9375rem; }

/* ── Premium upsell ── */
.premium-section {
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid #e2e8f0;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(255,49,49,0.06);
}
/* Red accent bar at top */
.premium-top-bar {
  background: linear-gradient(90deg, #cc0000 0%, #ff3131 60%, #ff6060 100%);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.premium-top-icon { font-size: 1.1rem; flex-shrink: 0; }
.premium-body { padding: 28px 28px 24px; }
.premium-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
}
.premium-title {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); line-height: 1.15; margin-bottom: 6px;
}
.premium-subtitle {
  font-size: 0.9375rem; color: var(--text-2); margin-bottom: 0;
}
.premium-price-badge {
  flex-shrink: 0;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 10px;
  font-size: 1.25rem; font-weight: 800;
  padding: 6px 16px;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.premium-divider {
  border: none; border-top: 1px solid var(--border); margin: 20px 0;
}
.premium-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px;
}
.premium-feature {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.875rem; color: var(--text);
}
.premium-feature-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: #dcfce7; border: 1px solid #86efac;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: #15803d; font-weight: 700;
}
.btn-premium {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 17px 32px;
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1.0625rem; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,49,49,.4);
  transition: all .15s; letter-spacing: -0.01em;
}
.btn-premium:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 28px rgba(255,49,49,.5);
  transform: translateY(-1px);
}
.premium-note {
  text-align: center; margin-top: 12px;
  font-size: 0.75rem; color: var(--text-3);
}
.premium-email-row { margin-bottom: 14px; }
.premium-email-row input[type="email"] {
  width: 100%; padding: 12px 16px;
  background: #f8fafc; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9375rem;
  box-sizing: border-box;
}
.premium-email-row input[type="email"]::placeholder { color: var(--text-3); }
.premium-email-row input[type="email"]:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,49,49,.12);
}
.premium-email-error { font-size: 0.8125rem; color: var(--primary); margin-top: 6px; min-height: 18px; }

/* ── Payment recovery banner ── */
.recovery-banner {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fffbeb; color: #78350f;
  border: 1px solid #fcd34d; border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 16px;
  font-size: 0.9rem; line-height: 1.55;
}
.recovery-banner-icon {
  font-size: 1.25rem; color: #d97706; flex-shrink: 0; line-height: 1.3;
}

/* ── Email dispatched banner ── */
.email-dispatched-banner {
  display: flex; align-items: center; gap: 12px;
  background: #d1fae5; color: #065f46;
  border: 1px solid #6ee7b7; border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 20px;
  font-size: 0.9rem; font-weight: 500;
}
.email-dispatched-banner--err {
  background: #fee2e2; color: #991b1b; border-color: #fca5a5;
}
.email-dispatched-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Full analysis ── */
.full-analysis { margin-bottom: 16px; }
.full-analysis-header {
  background: #064e3b;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 24px; color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.full-analysis-header-icon { font-size: 1.5rem; }
.full-analysis-header h2 { font-size: 1.125rem; font-weight: 700; }
.full-analysis-header p { font-size: 0.8125rem; opacity: .7; margin-top: 2px; }

.guide-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 12px;
}
.guide-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.checklist {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--text-2); line-height: 1.5;
}
.checklist-num {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.6875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.checklist a { color: var(--primary); text-decoration: none; }
.checklist a:hover { text-decoration: underline; }
.insurance-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-top: 12px;
}
.insurance-option {
  border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 14px 16px;
}
.insurance-option-name { font-weight: 700; font-size: 0.875rem; margin-bottom: 4px; }
.insurance-option-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }

/* ── Download & email ── */
.download-email-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.btn-download {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px;
  background: #059669; color: #fff; border: none; border-radius: var(--radius-xs);
  font-family: inherit; font-size: 0.9375rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 2px 8px rgba(5,150,105,.25);
  transition: all .15s;
}
.btn-download:hover {
  background: #047857; box-shadow: 0 4px 14px rgba(5,150,105,.35);
  transform: translateY(-1px);
}
.btn-download-secondary {
  background: #334155; box-shadow: 0 2px 8px rgba(51,65,85,.2);
}
.btn-download-secondary:hover {
  background: #1e293b; box-shadow: 0 4px 14px rgba(51,65,85,.3);
}
.email-send-row { display: flex; gap: 10px; }
.email-send-row input { flex: 1; }
.btn-send-email {
  padding: 10px 20px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-xs);
  font-family: inherit; font-size: 0.875rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.btn-send-email:hover { background: var(--primary-dark); }
.email-status { font-size: 0.8125rem; margin-top: 8px; min-height: 20px; }
.email-status.ok { color: var(--green); }
.email-status.err { color: var(--red); }

/* ── Disclaimer ── */
.disclaimer {
  background: #fefce8; border: 1px solid #fde68a;
  border-radius: var(--radius-xs); padding: 13px 18px;
  font-size: 0.8125rem; color: #92400e; line-height: 1.6; margin-bottom: 16px;
}

/* ── Back bar (top of results) ── */
.back-bar {
  display: flex; align-items: center;
  margin-bottom: 20px;
}
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: #fff; color: var(--text-2);
  border: 1.5px solid var(--border); border-radius: var(--radius-xs);
  font-family: inherit; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── Recalculate ── */
.recalculate-row { text-align: center; margin-bottom: 24px; }

/* ── Footer ── */
.footer {
  text-align: center; padding: 28px 0;
  font-size: 0.75rem; color: var(--text-3); line-height: 1.9;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.footer a { color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ════════════════════════════════
   Responsive
   ════════════════════════════════ */
@media (max-width: 900px) {
  .cars-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .premium-features { grid-template-columns: 1fr; }
  .download-email-row { grid-template-columns: 1fr; }
}
/* ── Input form helper links ───────────────────────────── */
.helper-link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
  padding: 8px 12px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.helper-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.helper-link:hover { text-decoration: underline; }

/* ── Results resources section ─────────────────────────── */
.resources-card {
  padding: 20px 24px;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.resource-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.resource-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  color: var(--primary);
}
.resource-icon { font-size: 1.1rem; flex-shrink: 0; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.875rem; }
  .hero { padding: 40px 20px 32px; }
  .cars-grid.cols-2,
  .cars-grid.cols-3 { grid-template-columns: 1fr; }
  .global-grid { grid-template-columns: 1fr; gap: 12px; }
  .fuel-price-grid { grid-template-columns: 1fr; gap: 10px; }
  .brand-model-row { grid-template-columns: 1fr; }
  .winner-banner { flex-wrap: wrap; }
  .winner-tco { width: 100%; text-align: left; font-size: 1.25rem; }
  .tip { width: 200px; }
  .btn-lg { font-size: 0.9375rem; }
  .email-send-row { flex-direction: column; }
  .premium-features { grid-template-columns: 1fr; }
  .download-email-row { grid-template-columns: 1fr; }
  .container { padding: 20px 14px 48px; }
}
