*,
*::before,
*::after {
    box-sizing: border-box;
}

.page-head h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
}

html, body {
    overflow-x: hidden;
}

.field,
.metric,
.results-head {
    min-width: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #222;
}

header {
    text-align: center;
    padding: 80px 20px;
    background: #111;
    color: white;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

main {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.coming-soon {
    opacity: 0.6;
}

.btn-selected {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-selected:hover {
  background: #000;
}

.ltv-ladder {
  margin-top: 12px;
}

.ltv-band {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 4px;
  background: #fafafa;
}

.ltv-band-active {
  background: #111;
  color: white;
  border-color: #111;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.page-head {
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-head h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #111;
}

.page-head h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.site-header {
  background: #000;
  color: #fff;
  padding: 16px 0;
}

.site-header .brand {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.site-header .nav a {
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
}

.site-header .nav a:hover {
  background: rgba(237, 237, 65, 0.543);
}
.brand {
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: #111;
}

.nav a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: #111;
}

:root {
  --accent: #2563eb;
}

.btn {
  background: var(--accent);
  color: white;
}

.btn:hover {
  background: #1d4ed8;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}


.card { border: 1px solid #e6e6e6; border-radius: 12px; padding: 16px; margin: 16px 0; }
.muted { opacity: 0.75; }
.field-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field span { display: block; margin-bottom: 6px; }
.field input { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #ddd; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.btn { padding: 10px 14px; border-radius: 10px; border: 1px solid #ccc; cursor: pointer; }
.btn-secondary { opacity: 0.85; }
.error { margin-top: 10px; color: #b00020; min-height: 1.2em; }
.results-head { display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.results-grid { display:grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.metric { padding: 12px; border: 1px solid #eee; border-radius: 12px; }
.metric-label { font-size: 0.9rem; opacity: 0.8; }
.metric-value { font-size: 1.2rem; font-weight: 600; margin-top: 6px; }
.metric-note { margin-top: 6px; font-size: 0.9rem; }
.badge { padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; border: 1px solid #ddd; }
.badge-neutral { opacity: 0.85; }
.badge-green { border-color: #2e7d32; }
.badge-amber { border-color: #f9a825; }
.badge-red { border-color: #c62828; }
.divider { border: 0; border-top: 1px solid #eee; margin: 16px 0; }
.list { margin: 0; padding-left: 18px; }
@media (max-width: 720px) {
  .field-grid, .results-grid { grid-template-columns: 1fr; }
}

details summary {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f6f6;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details summary::after {
  content: "▾";
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

.mode-switch { display: flex; gap: 10px; flex-wrap: wrap; }

.progress-wrap { margin-top: 10px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.progress-bar { width: 100%; height: 10px; background: #eee; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: #111; width: 0%; transition: width 0.2s ease; }

.guided-step { margin-top: 12px; }