/* AssumeCheck — the report's design language, extended to the site.
   Every value here is taken from assumecheck/report.py so a page and a report
   sit side by side without a seam. No framework, no component library,
   no gradients. Georgia body, Arial Narrow letterspaced caps for labels,
   monospace tabular numerals for every figure, thin double-rule headers. */

:root {
  --ink:   #16233B;
  --paper: #FEFDFB;
  --line:  #D8D3C8;
  --green: #1E6E4E;
  --red:   #A33B2E;
  --brass: #8C6D2F;
  --muted: #5a5f6b;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  -webkit-text-size-adjust: 100%;
}

/* ---------- primitives shared with the report ---------- */

.num {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--brass);
}

h1 { font-size: 26px; font-weight: normal; line-height: 1.15; }
h2 {
  font-size: 13px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 12px;
  font-weight: normal;
}
h3 {
  font-size: 12px;
  font-family: Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
  font-weight: normal;
}

section { margin-bottom: 26px; }
p { margin-bottom: 10px; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); }
a:hover { color: var(--brass); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
td { padding: 6px 0; vertical-align: top; }
td.v { text-align: right; }
tr + tr td { border-top: 1px dotted var(--line); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { border: 1px solid var(--line); padding: 14px 16px; }
.big { font-size: 24px; }
.note { font-size: 14px; margin-top: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }

.badge {
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: #fff;
  padding: 5px 10px;
  white-space: nowrap;
  display: inline-block;
}
.badge.estimated { background: var(--brass); }
.badge.verified  { background: var(--green); }

.stamp {
  display: inline-block;
  border: 3px solid var(--ink);
  color: var(--ink);
  padding: 10px 18px;
  transform: rotate(-2deg);
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: .12em;
  font-size: 20px;
}

.btn {
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn:hover { color: #fff; background: #0d1728; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper); color: var(--brass); }
.btn.wide { width: 100%; text-align: center; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- site chrome ---------- */

.masthead {
  border-bottom: 3px double var(--ink);
  padding-bottom: 14px;
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.masthead .wordmark {
  font-size: 21px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink);
}
.masthead nav {
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
}
.masthead nav a { margin-left: 14px; text-decoration: none; color: var(--muted); }
.masthead nav a:hover { color: var(--brass); }

.report-bar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 18px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.report-bar a { text-decoration: none; color: var(--muted); }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
footer.site nav { margin-top: 8px; }
footer.site a { color: var(--muted); margin-right: 12px; }

/* ---------- forms ---------- */

form.check { border: 1px solid var(--line); padding: 18px 18px 20px; }
form.check .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
label {
  display: block;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
label .opt { text-transform: none; letter-spacing: 0; font-style: italic; }
input[type=text], input[type=email], input[type=number] {
  width: 100%;
  padding: 9px 10px;
  font-size: 15px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
input:focus { outline: 2px solid var(--brass); outline-offset: -2px; }
.field { margin-bottom: 4px; }
.field.wide { grid-column: 1 / -1; }
form.check button { margin-top: 16px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.flash {
  border: 1px solid var(--brass);
  border-left-width: 4px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
}
.flash.bad { border-color: var(--red); color: var(--red); }
.flash.good { border-color: var(--green); color: var(--green); }

/* ---------- paywall + pricing ---------- */

.locked {
  border: 1px solid var(--line);
  padding: 20px 18px;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    rgba(140,109,47,.05) 9px, rgba(140,109,47,.05) 10px);
}
.locked ul { margin: 10px 0 0 20px; font-size: 14px; }
.locked li { margin-bottom: 4px; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price {
  border: 1px solid var(--line);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}
.price.feature { border-color: var(--ink); border-width: 2px; }
.price .amount {
  font-size: 30px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 2px;
}
.price .per { font-size: 12px; color: var(--muted); }
.price p { font-size: 13px; margin: 10px 0 14px; }
.price form { margin-top: auto; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  text-align: center;
  line-height: 20px;
}
.steps strong { font-weight: normal; border-bottom: 1px solid var(--line); }

.townlist {
  columns: 3;
  column-gap: 20px;
  font-size: 13px;
  margin-top: 10px;
}
.townlist a { display: block; text-decoration: none; padding: 2px 0; }

/* ---------- breadcrumb ---------- */

.crumb {
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  margin: -8px 0 18px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brass); }
.crumb [aria-current] { color: var(--ink); }

/* ---------- coverage index ---------- */

/* auto-fit so a second state card slots in beside the first with no
   redesign; one card simply occupies the first column. */
.coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}
.statecard {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.statecard:hover { border-color: var(--brass); color: var(--ink); }
.statecard .big { margin-top: 2px; }
.statecard .per {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.statecard .morelink {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--brass);
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.doublerule { border: 0; border-top: 3px double var(--ink); margin: 30px 0; }

/* ---------- homepage depth ------------------------------------------------
   Two decorative layers, both fixed and both behind everything. Paper grain
   as an inline SVG turbulence filter and an oversized VERIFIED stamp, because
   a records product should look like paper — and because a stock photograph
   of a happy couple outside a house would be a claim we cannot support. No
   image requests, nothing to download, nothing to lay out. */

body.hero { position: relative; overflow-x: hidden; }

body.hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .045;
  mix-blend-mode: multiply;
}

.stampmark {
  position: fixed;
  top: 12vh;
  right: -7vw;
  z-index: 0;
  pointer-events: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: .14em;
  font-size: min(19vw, 240px);
  color: var(--ink);
  opacity: .05;
  border: .06em solid var(--ink);
  padding: .08em .3em;
  transform: rotate(9deg);
}

/* Everything real sits above both layers.
   Stated as "every child except the watermark" rather than as a list of the
   ones we happen to have today: a fixed element with a z-index paints over
   any static content, so anything left off a list would silently end up
   behind the stamp. */
body.hero > *:not(.stampmark) { position: relative; z-index: 1; }

/* ---------- the rate spread ----------------------------------------------
   The whole product in one line: somebody's rate, today's rate, and the
   hatched distance between them. Positions are set inline from the real
   figures, so the band cannot be wider than the numbers justify. */

.timeline {
  position: relative;
  height: 92px;
  margin: 26px 0 0;
}
.timeline .ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.timeline .ends b { font-weight: normal; }
.timeline .ends span:first-child b { color: var(--green); }
.timeline .ends span:last-child  b { color: var(--red); }
.timeline .bar {
  position: absolute;
  top: 38px; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.timeline .band {
  position: absolute;
  top: 30px;
  height: 18px;
  background: repeating-linear-gradient(-55deg,
    rgba(140,109,47,.28) 0 4px, transparent 4px 9px);
  transform: scaleX(0);
  transform-origin: left center;
}
.js body.reveal.on .timeline .band {
  transform: scaleX(1);
  transition: transform 900ms var(--ease) 900ms;
}
.timeline .dot {
  position: absolute;
  top: 32px;
  width: 14px; height: 14px;
  border-radius: 50%;
  transform: translate(-50%, 0) scale(0);
}
.js body.reveal.on .timeline .dot {
  transform: translate(-50%, 0) scale(1);
  transition: transform 480ms var(--ease);
}
.timeline .dot.low  { background: var(--green); transition-delay: 560ms; }
.timeline .dot.high { background: var(--red);   transition-delay: 740ms; }
.timeline .bandlabel {
  position: absolute;
  top: 62px; left: 0; right: 0;
  text-align: center;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .16em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--brass);
}

/* No JavaScript: the band is already open and the dots are already there. */
.timeline .band { transform: scaleX(1); }
.timeline .dot  { transform: translate(-50%, 0) scale(1); }
.js body.reveal .timeline .band { transform: scaleX(0); }
.js body.reveal .timeline .dot  { transform: translate(-50%, 0) scale(0); }

/* ---------- the records ticker -------------------------------------------
   Every row is a county we hold, a month we have a recorded sale in, and the
   rate that month. Generated per render from the parcel index. */

.ticker {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 8px 0;
  /* Reserve the strip before the text arrives, so nothing below it moves. */
  height: 33px;
}
.ticker .track {
  display: inline-block;
  white-space: nowrap;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  animation: ticker-slide 64s linear infinite;
}
.ticker:hover .track,
.ticker:focus-within .track { animation-play-state: paused; }

/* Backgrounded tabs. Browsers throttle timers and requestAnimationFrame when
   a tab is hidden, but a CSS animation running on the compositor is not a
   timer and can keep a phone's GPU awake behind a tab nobody is looking at,
   for as long as the tab stays open. Set from visibilitychange. */
.ticker.paused .track { animation-play-state: paused; }
.ticker b { color: var(--green); font-weight: normal; }
.ticker .sep { color: var(--line); padding: 0 14px; }

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- the standing figures ----------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.figures .fig .n {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 25px;
  line-height: 1.1;
  display: inline-block;   /* with the reserved width below, counting up
                              cannot change this element's box */
}
.figures .fig .k {
  display: block;
  margin-top: 4px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--muted);
}

@media (max-width: 620px) {
  .timeline .ends { font-size: 11px; }
  .timeline .bandlabel { font-size: 10px; letter-spacing: .12em; }
  .figures { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .figures .fig:last-child { grid-column: 1 / -1; }
  .figures .fig .n { font-size: 21px; }
  /* Sized so the stamp bleeds off the right edge as an edge, not as a word
     cut in half. Faint enough that a phone reader never has to decide
     whether it is part of the page. */
  .stampmark { font-size: 30vw; top: 7vh; right: -22vw; opacity: .035; }
}

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  body { padding: 18px 16px 44px; font-size: 16px; }
  .cols, .prices, form.check .grid { grid-template-columns: 1fr; }
  .townlist { columns: 2; }
  h1 { font-size: 22px; }
  .masthead { align-items: flex-start; }
  .stamp { font-size: 17px; padding: 8px 14px; }
}

@media (max-width: 380px) {
  .townlist { columns: 1; }
}

@media print {
  body { padding: 0; max-width: none; }
  .masthead nav, .report-bar, .cta, .locked, form.check { display: none; }
}
