/* TenantSaver. System fonts only: fast, and no third-party requests. */
:root {
  --ink: #12211c;
  --green: #123a30;
  --green-2: #1d5a4a;
  --mint: #7fe0b1;
  --mint-soft: #e4f4ec;
  --paper: #faf8f3;
  --card: #ffffff;
  --muted: #56645f;
  --line: #dfe5e1;
  --money: #0c7a47;
  --money-soft: #e3f5ea;
  --urgent: #c2381f;
  --urgent-soft: #fdebe7;
  --fix: #b5600b;
  --fix-soft: #fdf1e2;
  --check: #3a5fa8;
  --check-soft: #e9eef9;
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: var(--green-2); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--mint); color: var(--green); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font: 600 22px/1 var(--serif); }
.brand b { color: var(--green-2); font-weight: 700; }
.brand svg { width: 32px; height: 32px; }
.top nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--green); }
@media (max-width: 480px) { .top nav { display: none; } }

/* hero + checker */
.hero { background: radial-gradient(ellipse at 0% 0%, var(--mint-soft), transparent 55%), var(--paper); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-2); }
h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 14px 0 18px; color: var(--green); }
.hl { background: linear-gradient(transparent 62%, var(--mint) 62%, var(--mint) 92%, transparent 92%); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.promises { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.promises li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.promises li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23123a30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checker-card { background: var(--card); border-radius: 22px; box-shadow: 0 1px 0 var(--line), 0 30px 60px rgba(18, 58, 48, 0.12); padding: 32px; scroll-margin-top: 16px; }
#checker { scroll-margin-top: 24px; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .checker-card { padding: 22px 18px; border-radius: 18px; }
}

.progress { height: 6px; background: var(--mint-soft); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green-2); border-radius: 99px; transition: width 0.4s ease; }
.step-count { margin-top: 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.step-title { font-size: 28px; color: var(--green); margin: 4px 0 6px; outline: none; }
.q { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.q-text { display: block; font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 4px; }
.q-help { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: block; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.opt:hover span { border-color: var(--green-2); }
.opt input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--green-2); outline-offset: 2px; }
.money { display: flex; align-items: center; max-width: 220px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); margin-top: 8px; }
.money span { padding: 0 4px 0 14px; font-weight: 700; color: var(--muted); }
.money input { border: 0; background: transparent; font: inherit; padding: 11px 12px 11px 2px; width: 100%; outline: none; }
.money:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px var(--mint-soft); }

.btn { font: 700 16px/1 var(--sans); border: 0; border-radius: 12px; padding: 14px 22px; cursor: pointer; }
.btn-go { background: var(--green); color: #fff; }
.btn-go:hover { background: var(--green-2); }
.btn-go:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--green-2); }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.nav-right { display: flex; gap: 10px; flex-wrap: wrap; }

/* results */
.results-title, .all-clear h2, .stop h2 { font-size: 30px; color: var(--green); outline: none; }
.all-clear p, .stop p { margin-top: 12px; color: var(--muted); }
.stop .links { margin-bottom: 24px; }
.tally { list-style: none; padding: 0; margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.tally li { padding: 6px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.t-urgent { background: var(--urgent-soft); color: var(--urgent); }
.t-money { background: var(--money-soft); color: var(--money); }
.t-fix { background: var(--fix-soft); color: var(--fix); }
.t-check { background: var(--check-soft); color: var(--check); }
.finding { --c: var(--check); --s: var(--check-soft); margin-top: 18px; padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--c); }
.k-urgent { --c: var(--urgent); --s: var(--urgent-soft); }
.k-money { --c: var(--money); --s: var(--money-soft); }
.k-fix { --c: var(--fix); --s: var(--fix-soft); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c); background: var(--s); padding: 4px 10px; border-radius: 99px; }
.finding h3 { font-size: 22px; margin: 10px 0 8px; }
.amount { font-size: 17px; margin-bottom: 8px; color: var(--money); }
.amount b { font-size: 22px; }
.finding h4 { font-size: 15px; margin: 14px 0 4px; }
.finding ol { margin: 0; padding-left: 20px; }
.finding ol li { margin: 4px 0; }
.links { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.help-box { margin-top: 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--mint-soft); }
.help-box h3 { font-size: 20px; margin-bottom: 6px; }
.small { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* content sections */
.section { padding: 80px 0; }
.section.alt { background: #f1efe8; }
.section h2 { font-size: clamp(30px, 4vw, 44px); color: var(--green); }
.section-lede { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 22px; margin-bottom: 8px; color: var(--green); }
.card p { color: var(--muted); font-size: 16px; }
.card b { color: var(--ink); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .section { padding: 56px 0; } }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 24px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green-2); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); }

.foot { background: var(--green); color: #cfe3da; padding: 36px 0; font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot b { color: #fff; }
.foot a { color: var(--mint); }

.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page h2 { font-size: 24px; margin: 28px 0 8px; color: var(--green); }
.page p { margin-top: 10px; }

@media print {
  .top, .hero > .wrap > div:first-child, .section, .foot, .nav-row, .skip { display: none !important; }
  body, .hero { background: #fff; padding: 0; }
  .hero-grid { display: block; }
  .checker-card { box-shadow: none; padding: 0; }
  .finding { break-inside: avoid; }
  .links a::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 12px; }
}
