/* What It Costs Today — shared stylesheet. Mobile-first, system fonts, light+dark. */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #20242b;
  --muted: #5f6773;
  --line: #e6e2d9;
  --accent: #c2610a;
  --accent-strong: #9a4d06;
  --accent-soft: #fdf1df;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181d;
    --surface: #1d2128;
    --ink: #e9e7e2;
    --muted: #a0a8b3;
    --line: #2d333d;
    --accent: #f59e0b;
    --accent-strong: #fbbf24;
    --accent-soft: #2a2318;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
}

main { max-width: 52rem; margin: 0 auto; padding: 0 1rem 3rem; }
main.wide { max-width: 64rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-top: 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.4rem; }
.breadcrumbs a { color: var(--muted); }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.75rem 0 0.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }

.trust-line {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1rem 0;
}

.cost-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0.4rem solid var(--accent);
  border-radius: 0.6rem;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}
.cost-callout .label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}
.cost-callout .range { font-size: 2rem; font-weight: 800; margin: 0.2rem 0; letter-spacing: -0.02em; }
.cost-callout .sub { font-size: 0.95rem; color: var(--muted); margin: 0.2rem 0 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
th { background: var(--accent-soft); }

.ad-slot {
  margin: 2.25rem 0;
  min-height: 110px;
  border: 1.5px dashed var(--line);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--surface);
}

.leadgen {
  margin: 2.5rem 0 1.5rem;
  padding: 1.4rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 0.75rem;
  background: var(--surface);
}
.leadgen h2 { margin-top: 0; }
.leadgen .note { font-size: 0.82rem; color: var(--muted); }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}
.btn:hover { background: var(--accent-strong); }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.btn-secondary:hover { color: var(--accent-strong); }

details {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  margin: 0.5rem 0;
  padding: 0.15rem 0.9rem;
}
summary { font-weight: 600; cursor: pointer; padding: 0.5rem 0; }
details[open] { padding-bottom: 0.75rem; }
details p { margin: 0.25rem 0 0.5rem; }

.email-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0; }
.email-form input {
  flex: 1 1 14rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink);
}

.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
}
.card a { text-decoration: none; font-weight: 700; }
.card p { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted); }
.card .from { font-size: 0.85rem; color: var(--accent); font-weight: 700; display: block; margin-top: 0.5rem; }

.hero { padding: 2rem 0 0.5rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }

.estimator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
}
.estimator label { display: block; font-weight: 600; margin: 0.9rem 0 0.25rem; font-size: 0.95rem; }
.estimator select, .estimator input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
}
.est-result {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 0.6rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
}
.est-range { font-size: 1.9rem; font-weight: 800; margin: 0; }
.est-typical { margin: 0.2rem 0 0; font-weight: 600; }
.est-note { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0.75rem; }

.callout-note {
  border: 1px solid var(--line);
  border-left: 0.3rem solid var(--accent);
  border-radius: 0.4rem;
  background: var(--surface);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; }
.site-footer .bar { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.9rem; margin-bottom: 1rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { font-size: 0.8rem; color: var(--muted); margin: 0.25rem 0; }

ul, ol { padding-left: 1.35rem; }
li { margin: 0.3rem 0; }

@media (min-width: 40rem) {
  h1 { font-size: 2.3rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 60rem) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
