/* landed.casa. LandEd brand: deep teal ground, copper + cream from the logo. */
:root {
  --teal-900: #04313a;
  --teal-800: #053e48;
  --teal-700: #0b4f5a;
  --teal-100: #dfeceb;
  --copper: #d4916b;
  --copper-dark: #a9603d;
  --cream: #f8dcb4;
  --paper: #fbf7f1;
  --ink: #12343a;
  --muted: #557075;
  --line: #e4dbcf;
  --yes: #2f7a4f;
  --yes-bg: #e5f2e9;
  --no: #a3452b;
  --no-bg: #f8e6df;
  --display: "Lexend", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: var(--copper-dark); }
img { max-width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }

/* header */
.top { background: var(--teal-800); color: var(--cream); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 600 20px var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: var(--cream); text-decoration: none; opacity: .9; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 560px) { .top nav a:not(:last-child) { display: none; } }

/* hero + checker */
.hero { background: var(--teal-800); color: #f3e6d4; padding-block: 36px 64px; }
.hero h1 { color: var(--cream); font-size: clamp(30px, 5vw, 50px); font-weight: 700; max-width: 17ch; }
.hero .lede { font-size: 18px; max-width: 56ch; margin: 14px 0 26px; color: #d9e4e2; }
.checker { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 18px; max-width: 720px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.checker form { display: flex; gap: 10px; flex-wrap: wrap; }
.checker input[type=text] { flex: 1 1 320px; min-width: 0; }
input[type=text], input[type=email] {
  font: 16px var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 14px; width: 100%;
}
input:focus-visible { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(212,145,107,.3); }
.btn { font: 600 16px var(--display); background: var(--copper); color: var(--teal-900); border: 0; border-radius: 8px; padding: 13px 22px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn:hover { background: #dd9d78; }
.btn:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.dark { background: var(--teal-800); color: var(--cream); }
.btn.dark:hover { background: var(--teal-700); }
/* Skool's full-color wordmark needs a white background to read */
.btn.skool { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.skool:hover { background: #f4f1ec; }
.btn.skool .skool-logo { height: 20px; width: auto; display: block; margin-top: -2px; }
footer .skool-link { display: inline-block; vertical-align: -2px; }
footer .skool-link .skool-logo { height: 14px; width: auto; display: block; }
.hint { font-size: 13.5px; color: var(--muted); margin: 10px 2px 0; }
.err { color: var(--no); font-size: 14.5px; margin: 10px 2px 0; }

/* result */
.result { margin-top: 16px; border-radius: var(--r); padding: 16px 18px; display: grid; gap: 6px; }
.result.yes { background: var(--yes-bg); }
.result.no { background: var(--no-bg); }
.result.unknown { background: var(--teal-100); }
.verdict { font: 700 22px var(--display); display: flex; gap: 10px; align-items: center; }
.yes .verdict { color: var(--yes); }
.no .verdict { color: var(--no); }
.verdict .dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; flex: none; }
.result .addr { font-weight: 600; }
.result .meta { font-size: 14px; color: var(--muted); }
.result .verify { display: block; margin-top: 8px; font-size: 13px; }

.gate { margin-top: 14px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; }
.gate h3 { font-size: 19px; }
.gate ul { margin: 10px 0 14px; padding-left: 20px; }
.gate li { margin: 3px 0; }
.gate .row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; }
.gate .fine { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .gate .row { grid-template-columns: 1fr; } }

/* report */
.report { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 40px; }
.report h2 { font-size: clamp(24px, 3.4vw, 32px); }
.report .sub { color: var(--muted); margin: 6px 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--paper); min-width: 0; }
.card .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.card .big { font: 700 34px var(--display); margin: 4px 0; font-variant-numeric: tabular-nums; }
.card p { margin: 6px 0 0; font-size: 14.5px; }
.card p.src { font-size: 12.5px; color: var(--muted); }
table.pay { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
table.pay td { padding: 5px 0; border-bottom: 1px solid var(--line); }
table.pay td + td { text-align: right; }
table.pay tr.tot td { font-weight: 700; border-bottom: 0; }
.lenders { margin-top: 28px; max-width: 760px; }
.lenders h3 { font-size: 20px; margin: 0 0 4px; }
.lenders .sub { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.lenders ul { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.lenders li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lenders li:first-child { border-top: 0; }
.lenders li b { display: block; font-weight: 600; }
.lenders li .n, .lenders li .note { display: block; font-size: 13.5px; color: var(--muted); }
.lenders li .tag { display: inline-block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; background: var(--line); color: var(--ink); border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
.lenders li > a { white-space: nowrap; font-size: 14px; font-weight: 600; }
.lenders .fine { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .lenders li { flex-direction: column; align-items: flex-start; gap: 6px; } }
.steps { margin-top: 28px; display: grid; gap: 10px; max-width: 70ch; }
.steps h3 { font-size: 20px; }
.steps ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.assume { font-size: 13px; color: var(--muted); margin-top: 22px; max-width: 80ch; }

/* sections */
.section { padding-block: 52px; }
.section h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 12px; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 14px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { border-left: 3px solid var(--copper); padding: 2px 0 2px 14px; }
.facts b { display: block; font-family: var(--display); }
.band { background: var(--teal-800); color: #e5ecea; }
.band h2 { color: var(--cream); }
.band a:not(.btn) { color: var(--cream); }
.toolcard { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); max-width: 640px; }
.toolcard:hover { border-color: var(--copper); }
.toolcard + .toolcard { margin-top: 12px; }
.toolcard .ico { width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(135deg, var(--cream), var(--copper) 60%, var(--teal-800)); }
.toolcard b { font-family: var(--display); font-size: 18px; display: block; }

footer { padding-block: 28px 40px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .result, .gate, .report { animation: rise .35s ease-out both; } }
@keyframes rise { from { transform: translateY(6px); opacity: .4; } to { transform: none; opacity: 1; } }

/* county finder (/find/) */
.finder { display: grid !important; grid-template-columns: 1fr 1fr 1fr; gap: 14px !important; align-items: start; }
.finder label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.finder small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.finder select { font: 16px var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 12px; width: 100%; }
.finder select:focus-visible { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(212,145,107,.3); }
.finder .money { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding-left: 12px; }
.finder .money:focus-within { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(212,145,107,.3); }
.finder .money input { border: 0; box-shadow: none !important; padding-left: 4px; font-variant-numeric: tabular-nums; }
.finder .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 720px) { .finder { grid-template-columns: 1fr; } }
.findres { background: #fff; border-bottom: 1px solid var(--line); padding-block: 40px; }
.findres h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 32px; }
.findres .sub { color: var(--muted); margin: 4px 0 14px; font-size: 14.5px; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; max-width: 760px; }
.summary .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 0; }
.summary .big { font: 700 clamp(28px, 4.5vw, 38px) var(--display); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.summary p { margin: 6px 0 0; }
.summary .headline { font-size: 17px; margin-top: 12px; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 860px; }
.clist li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--paper); }
.clist .rk { font: 700 20px var(--display); color: var(--muted); }
.clist h3 { font-size: 19px; margin: 0 0 8px; }
.clist .figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.clist .figs b { display: block; font: 700 22px var(--display); font-variant-numeric: tabular-nums; }
.clist .figs span { font-size: 12.5px; color: var(--muted); }
.clist p { margin: 10px 0 0; font-size: 14px; }
.clist .room { color: var(--yes); font-weight: 600; }
.clist .over { color: var(--no); font-weight: 600; }
.clist .links { font-size: 13.5px; }
@media (max-width: 560px) { .clist .figs { grid-template-columns: 1fr 1fr; } .clist li { grid-template-columns: 1fr; } .clist .rk { display: none; } }
.findres .gate { max-width: 760px; margin-top: 22px; }
.findres .none { max-width: 66ch; margin-top: 18px; }
.next { margin-top: 30px; max-width: 70ch; }
.next h3 { font-size: 20px; }
.next ol { padding-left: 22px; display: grid; gap: 8px; }
.summary .ok, .summary .warn { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.summary .ok { background: var(--yes-bg); color: var(--yes); }
.summary .warn { background: var(--no-bg); color: var(--no); }
