/* ============================================================
   Autoloantool.com – Global Styles
   Clean, professional dark console aesthetic
   No Tailwind dependency
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette */
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-elevated: #1a2332;
  --bg-input: #0f172a;
  --bg-console: linear-gradient(160deg, #0f172a 0%, #0c1a1a 100%);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-dim: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --blue: #3b82f6;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing & radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-console: 0 25px 50px -12px rgba(0, 0, 0, 0.55),
                    0 0 0 1px rgba(255, 255, 255, 0.05),
                    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Layout */
  --max-width: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Typography ---------- */
.font-mono {
  font-family: var(--font-mono);
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-amber { color: var(--amber); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo:hover {
  color: var(--text-primary);
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-text span {
  color: var(--accent);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

/* ---------- Calculator Console ---------- */
.console-wrapper {
  margin-bottom: 1.5rem;
}

.console {
  background: var(--bg-console);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-console);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .console {
    padding: 2.25rem 2.5rem;
  }
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .console-grid {
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
  }
}

/* Inputs */
.console-inputs h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.console-inputs h2::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input-field::placeholder {
  color: var(--text-muted);
}

select.input-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

/* Results */
.console-results h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.console-results h2::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--amber);
  border-radius: 2px;
}

.payment-card {
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.payment-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.payment-amount {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.payment-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.metric-card.amber {
  border-left: 3px solid var(--amber);
}
.metric-card.blue {
  border-left: 3px solid var(--blue);
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Amortization preview */
.amort-preview {
  margin-top: 0.5rem;
}

.amort-preview h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.amort-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.amort-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.amort-table th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.amort-table td {
  padding: 0.45rem 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.amort-table tr:last-child td {
  border-bottom: none;
}

.amort-table .num {
  text-align: right;
}

.amort-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Disclaimer */
.disclaimer {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 3rem;
}

.disclaimer strong {
  color: var(--amber);
}

/* ---------- Content Sections ---------- */
.content-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 1.75rem 0 0.65rem;
  color: var(--text-primary);
}

.content-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 68ch;
  line-height: 1.7;
}

.content-section ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
  max-width: 68ch;
}

.content-section li {
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  line-height: 1.6;
  position: relative;
  padding-left: 0.35rem;
}

.content-section li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: -1rem;
  font-weight: 700;
}

.content-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* TCO Cards */
.tco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .tco-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tco-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.tco-card h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.tco-card .value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tco-card .note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.15rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: block;
  color: inherit;
}
.tool-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.04);
  color: inherit;
}

.tool-card h3 {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

.tool-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  max-width: none;
}

/* Ad placeholder zones */
.ad-zone {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.015);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: #080b12;
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* ---------- Utility ---------- */
.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;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .ad-zone,
  .nav-links,
  .disclaimer {
    display: none !important;
  }
  body {
    background: white;
    color: #111;
  }
  .console {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    padding-top: 2rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .content-section {
    padding: 2.5rem 0;
  }
}

/* ============================================================
   Amortization Schedule page styles
   ============================================================ */

.amort-full-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.amort-full-scroll {
  max-height: 520px;
  overflow: auto;
}

.amort-full-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.amort-full-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.amort-full-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: #1a2332;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.amort-full-table td {
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.amort-full-table tbody tr:hover td {
  background: rgba(16, 185, 129, 0.04);
}

.amort-full-table .num {
  text-align: right;
}

.amort-full-table .month-col {
  color: var(--text-muted);
  width: 4rem;
}

.results-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .results-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.result-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  text-align: center;
}

.result-pill .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.result-pill .value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-pill.highlight {
  background: var(--accent-dim);
  border-color: rgba(16, 185, 129, 0.25);
}

.result-pill.highlight .value {
  color: var(--accent-hover);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: var(--accent-dim);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-hover);
}

.btn-primary:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

/* Print styles for amortization */
@media print {
  .site-header,
  .site-footer,
  .ad-zone,
  .nav-links,
  .disclaimer,
  .tool-actions,
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: #111 !important;
    font-size: 11pt;
  }

  .console,
  .amort-full-wrap {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: white !important;
  }

  .amort-full-scroll {
    max-height: none !important;
    overflow: visible !important;
  }

  .amort-full-table th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 2px solid #0f172a !important;
  }

  .amort-full-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .result-pill {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
  }

  .result-pill .value {
    color: #0f172a !important;
  }

  .content-section {
    border-top: none !important;
  }

  .content-section h2,
  .content-section h3,
  .content-section p,
  .content-section li {
    color: #1e293b !important;
  }

  a {
    color: #0f172a !important;
    text-decoration: none !important;
  }

  .print-header {
    display: block !important;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0f172a;
    font-family: var(--font-mono);
    font-size: 10pt;
    color: #64748b;
  }
}

.print-header {
  display: none;
}

/* ============================================================
   Refinance Calculator styles
   ============================================================ */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 720px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.compare-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-card h3::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--text-muted);
}

.compare-card.current h3::before { background: var(--amber); }
.compare-card.new h3::before { background: var(--accent); }

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row .label {
  color: var(--text-secondary);
}

.compare-row .value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.verdict-box {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.verdict-box.positive {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.verdict-box.neutral {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.verdict-box.negative {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.verdict-box .verdict-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.verdict-box.positive .verdict-title { color: var(--accent-hover); }
.verdict-box.neutral .verdict-title { color: var(--amber); }
.verdict-box.negative .verdict-title { color: #f87171; }

.verdict-box p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.savings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .savings-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   Affordability Calculator styles
   ============================================================ */

.afford-hero-result {
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.afford-hero-result .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.afford-hero-result .big-price {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.afford-hero-result .summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  line-height: 1.45;
}

.sensitivity-note {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.5;
}

.sensitivity-note strong {
  color: var(--amber);
}

/* ============================================================
   Guides hub + article styles
   ============================================================ */

.guides-intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.guides-intro p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.05rem;
}

.guide-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  display: block;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
  height: 100%;
}

.guide-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.04);
  color: inherit;
}

.guide-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.guide-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.guide-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Article page */
.article-header {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-body {
  max-width: 42rem;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 1.75rem 0 0.65rem;
  color: var(--text-primary);
}

.article-body p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.35rem 1.35rem;
}

.article-body li {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 0.25rem;
}

.article-body ul li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: -1.1rem;
  font-weight: 700;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.callout strong {
  color: var(--accent-hover);
}
