:root {
  --bg: #FAF9F6;
  --bg-alt: #F2F0EA;
  --ink: #16150F;
  --muted: #6B6862;
  --line: #E3E0D8;
  --accent: #1E3A2F;
  --accent-ink: #FAF9F6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

h1, h2, h3, .wordmark, .result-range {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

a { color: inherit; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-small { padding: 9px 18px; font-size: 0.85rem; }

/* Hero */
.hero { padding: 110px 0 90px; }
.hero .lede {
  max-width: 560px;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 14px; margin-top: 2.25rem; flex-wrap: wrap; }

/* Fit band */
.band {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 72px 0;
}
.band h2 { margin-bottom: 1rem; }
.band p { color: rgba(250, 249, 246, 0.78); margin-bottom: 1rem; max-width: 480px; }
.band-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.fit-list { list-style: none; }
.fit-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(250, 249, 246, 0.18);
  font-size: 0.95rem;
}
.fit-list li:first-child { border-top: 1px solid rgba(250, 249, 246, 0.18); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-sub { color: var(--muted); max-width: 520px; margin-top: 0.75rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps p { color: var(--muted); font-size: 0.92rem; }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 0.75rem;
}

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 3rem;
  align-items: start;
}
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.calc-form label span:first-child {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.calc-form small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 6px;
  line-height: 1.45;
}
.input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.input-wrap:focus-within { border-color: var(--accent); }
.input-wrap .prefix, .input-wrap .suffix {
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}
.input-wrap .prefix { border-right: 1px solid var(--line); }
.input-wrap .suffix { border-left: 1px solid var(--line); }
.input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: var(--sans);
  background: transparent;
}
.calc-form select {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: var(--sans);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  outline: none;
}
.calc-form select:focus { border-color: var(--accent); }
.calc-form .btn { align-self: flex-start; margin-top: 4px; }

.calc-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 36px;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.result-empty { color: var(--muted); width: 100%; text-align: center; }
.result-filled { width: 100%; }
.result-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.result-range {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0.5rem 0 0.25rem;
}
.result-multiple { color: var(--muted); font-size: 0.95rem; }
.result-basis { font-size: 0.9rem; line-height: 1.5; margin-top: 1rem; }

/* Comparable multiples */
.comps { margin-top: 48px; max-width: 720px; }
.comps-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.comps-table th, .comps-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.comps-table th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.comps-table td:last-child, .comps-table th:last-child { text-align: right; white-space: nowrap; }
.comps-source { color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.result-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 1.25rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--muted);
}
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 12px; max-width: 620px; }

/* About */
.about { text-align: center; }
.about p { color: var(--muted); margin: 1.25rem auto 2rem; max-width: 520px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.footer-row a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-row a:hover { color: var(--ink); }
.legal {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links { gap: 18px; }
}
@media (max-width: 860px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .footer-row { flex-direction: column; gap: 8px; align-items: flex-start; }
}
