@charset "UTF-8";
/*
 * Registry99 — warm graphite + copper.
 * Lane claimed in BRAND-THEMES.md: #1C1917 anchor, #A4450F primary, #35517A secondary,
 * #F8F6F3 surface. Confirmed states are slate-blue; there is no decorative green anywhere.
 *
 * Hand-written, no framework and no build step: the host runs PHP only, and a stylesheet
 * this size does not need a toolchain.
 */

/* ------------------------------------------------------------------ tokens */
:root {
  --ink:        #1C1917;
  --ink-2:      #3B3531;
  --ink-3:      #6B615A;
  --ink-4:      #9A8F86;
  --rule:       #E3DED7;
  --rule-soft:  #EFEAE3;
  --paper:      #F8F6F3;
  --card:       #FFFFFF;
  --card-2:     #FDFBF8;

  --copper:     #A4450F;
  --copper-600: #8A3A0C;
  --copper-300: #D98B57;
  --copper-50:  #FBF0E8;

  --slate:      #35517A;
  --slate-600:  #2A4364;
  --slate-50:   #EEF2F8;

  --warn:       #8A5A00;
  --warn-50:    #FBF3E2;
  --danger:     #A32820;
  --danger-50:  #FBEDEC;

  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(28,25,23,.06), 0 1px 3px rgba(28,25,23,.05);
  --shadow:     0 2px 4px rgba(28,25,23,.05), 0 8px 24px -8px rgba(28,25,23,.14);
  --shadow-lg:  0 4px 8px rgba(28,25,23,.05), 0 24px 56px -16px rgba(28,25,23,.22);

  --wrap:       1140px;
  --gutter:     16px;

  --sans: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --devanagari: "Noto Sans Devanagari", "Nirmala UI", "Mangal", var(--sans);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --fs-h1: clamp(1.75rem, 1.15rem + 2.6vw, 3rem);
  --fs-h2: clamp(1.35rem, 1.05rem + 1.3vw, 1.95rem);
  --fs-h3: clamp(1.1rem, .98rem + .55vw, 1.35rem);
}

:root[data-theme="dark"],
html:not([data-theme="light"]) {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --ink:       #F2EDE8;
    --ink-2:     #D6CDC5;
    --ink-3:     #A79C93;
    --ink-4:     #7C726A;
    --rule:      #2E2926;
    --rule-soft: #262220;
    --paper:     #141110;
    --card:      #1C1917;
    --card-2:    #201C1A;

    --copper:     #F0A06A;
    --copper-600: #F5B889;
    --copper-300: #A4450F;
    --copper-50:  #2A1C13;

    --slate:      #8FB0DC;
    --slate-600:  #AAC4E7;
    --slate-50:   #17202D;

    --warn:       #E0B45F;
    --warn-50:    #2A2213;
    --danger:     #E98B83;
    --danger-50:  #2C1917;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow:    0 2px 4px rgba(0,0,0,.45), 0 10px 28px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 4px 10px rgba(0,0,0,.5), 0 28px 64px -18px rgba(0,0,0,.7);
  }
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--devanagari);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--sans); }

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.012em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1em; }
a  { color: var(--copper); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-600); }
:focus-visible { outline: 2.5px solid var(--slate); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.head-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { display: grid; place-items: center; }
.bm-page  { fill: none; stroke: var(--ink-4); stroke-width: 1.6; }
.bm-front { fill: var(--card); stroke: var(--ink); stroke-width: 1.8; }
.bm-lines { stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; }
.bm-seal  { fill: var(--copper); opacity: .92; }
.brand-text strong { display: block; font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-99 { color: var(--copper); }
.brand-text small { display: block; font-size: .7rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .5rem .7rem; border-radius: var(--radius-sm); font-size: .92rem;
  color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.nav a:hover { background: var(--rule-soft); color: var(--ink); }
.nav .nav-cta {
  background: var(--copper); color: #fff; margin-left: .35rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav .nav-cta:hover { background: var(--copper-600); color: #fff; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .nav .nav-cta { color: #1C1917; } }
.nav .nav-lang {
  border: 1px solid var(--rule); margin-left: .35rem; font-size: .82rem; color: var(--ink-3);
}

.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius-sm); width: 42px; height: 38px; padding: 9px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s, opacity .22s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1rem;
    gap: .1rem; box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .6rem; font-size: 1rem; }
  .nav .nav-cta, .nav .nav-lang { margin-left: 0; text-align: center; margin-top: .4rem; }
}

/* ------------------------------------------------------------- breadcrumbs */
.crumbs { border-bottom: 1px solid var(--rule-soft); background: var(--card-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: .6rem 0; font-size: .82rem; }
.crumbs li + li::before { content: "›"; color: var(--ink-4); margin-right: .3rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--copper); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(2rem, 1rem + 4vw, 4rem); }
.hero::before {
  /* a slow copper/slate wash — decoration only, never carries meaning */
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background:
    radial-gradient(42% 46% at 18% 24%, color-mix(in srgb, var(--copper) 16%, transparent) 0%, transparent 62%),
    radial-gradient(38% 44% at 82% 16%, color-mix(in srgb, var(--slate) 15%, transparent) 0%, transparent 60%),
    radial-gradient(52% 38% at 60% 92%, color-mix(in srgb, var(--copper) 9%, transparent) 0%, transparent 70%);
  filter: blur(6px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  /* ruled-paper grid, fading out downward */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px);
  background-size: 100% 34px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 72%);
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.08fr .92fr; align-items: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--copper); background: var(--copper-50);
  border: 1px solid color-mix(in srgb, var(--copper) 25%, transparent);
  padding: .34rem .7rem; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.hero h1 { margin-bottom: .6rem; text-wrap: balance; }
.hero-sub { font-size: clamp(1rem, .96rem + .3vw, 1.16rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 1.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: var(--radius-sm); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--copper-600); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-4); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .btn-primary { color: #1C1917; } }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0 2.2rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.hero-stats div { padding: .35rem 0; }
.hero-stats b { display: block; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); }
.hero-stats span { font-size: .8rem; color: var(--ink-3); }

/* the animated document/receipt in the hero */
.hero-art { position: relative; perspective: 1200px; }
.doc {
  position: relative; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.3rem; box-shadow: var(--shadow-lg);
  transform: rotate(-1.1deg);
  animation: doc-in .7s cubic-bezier(.22,1,.36,1) both;
}
.doc::before, .doc::after {
  /* two sheets peeking out behind, so it reads as a file and not a card */
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: var(--card-2); border: 1px solid var(--rule); z-index: -1;
}
.doc::before { transform: rotate(2.6deg) translate(8px, 7px); }
.doc::after  { transform: rotate(5deg) translate(15px, 14px); opacity: .6; }
@keyframes doc-in {
  from { opacity: 0; transform: rotate(-4deg) translateY(22px) scale(.97); }
  to   { opacity: 1; transform: rotate(-1.1deg) translateY(0) scale(1); }
}

.doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--rule); margin-bottom: .9rem; }
.doc-head h2 { font-size: .95rem; margin: 0; letter-spacing: .01em; }
.doc-head span { font-size: .74rem; color: var(--ink-3); }

.doc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .92rem; }
.doc-row .lbl { color: var(--ink-2); }
.doc-row .pct { color: var(--ink-4); font-size: .78rem; margin-left: .35rem; }
.doc-row .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.doc-row.total {
  margin-top: .6rem; padding-top: .8rem; border-top: 2px solid var(--ink);
  font-size: 1.05rem;
}
.doc-row.total .amt { font-size: 1.35rem; color: var(--copper); letter-spacing: -.02em; }

.doc-seal {
  position: absolute; right: 1.1rem; bottom: 1rem; width: 84px; height: 84px;
  display: grid; place-items: center; text-align: center;
  border: 2.5px solid var(--copper); border-radius: 50%; color: var(--copper);
  font-size: .6rem; font-weight: 700; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase;
  transform: rotate(-14deg); opacity: .9;
  animation: seal-press .5s cubic-bezier(.3,1.5,.5,1) .75s both;
}
@keyframes seal-press {
  from { opacity: 0; transform: rotate(-14deg) scale(2.1); }
  to   { opacity: .9; transform: rotate(-14deg) scale(1); }
}

/* the hero is fully legible with every animation switched off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .doc, .doc-seal { opacity: 1; transform: rotate(-1.1deg); }
  .doc-seal { transform: rotate(-14deg); }
}

/* ----------------------------------------------------------------- section */
.section { padding: clamp(2.4rem, 1.4rem + 3.5vw, 4.5rem) 0; }
.section-alt { background: var(--card-2); border-block: 1px solid var(--rule-soft); }
.section-head { max-width: 62ch; margin-bottom: 1.8rem; }
.section-head p { color: var(--ink-3); margin-bottom: 0; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow-sm);
}
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; display: block; }
a.card:hover { border-color: var(--copper); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .3rem; font-size: 1.02rem; }
.card p { margin: 0; font-size: .9rem; color: var(--ink-3); }

/* ------------------------------------------------------------------ search */
.search { position: relative; }
.search label { display: block; font-weight: 600; margin-bottom: .45rem; font-size: .95rem; }
.search-row { display: flex; gap: .5rem; }
.search input[type="search"], .search input[type="text"] {
  flex: 1; min-width: 0; padding: .85rem 1rem; font: inherit;
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
}
.search input:focus { border-color: var(--slate); outline: none; box-shadow: 0 0 0 3px var(--slate-50); }
.search-help { font-size: .82rem; color: var(--ink-3); margin: .45rem 0 0; }

.suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + .35rem);
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 58vh; overflow-y: auto;
}
.suggest:empty { display: none; }
.suggest a {
  display: block; padding: .7rem .9rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--rule-soft);
}
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--copper-50); }
.suggest .s-name { font-weight: 600; font-size: .93rem; }
.suggest .s-meta { font-size: .78rem; color: var(--ink-3); display: flex; gap: .5rem; justify-content: space-between; }
.suggest .s-rate { color: var(--copper); font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------------- lists */
.rows { display: grid; gap: .5rem; }
.row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-sm); text-decoration: none; color: inherit;
  transition: border-color .15s, background-color .15s;
}
.row-item:hover { border-color: var(--copper); background: var(--card-2); }
.row-item .ri-name { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.row-item .ri-meta { font-size: .78rem; color: var(--ink-3); }
.row-item .ri-rate { text-align: right; white-space: nowrap; }
.row-item .ri-rate b { display: block; color: var(--copper); font-variant-numeric: tabular-nums; }
.row-item .ri-rate span { font-size: .72rem; color: var(--ink-4); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--card);
  font-size: .85rem; text-decoration: none; color: var(--ink-2);
}
.chip:hover { border-color: var(--copper); color: var(--copper); }
.chip b { color: var(--ink-4); font-weight: 500; font-size: .78rem; }

.tag {
  display: inline-block; padding: .16rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.tag-urban { background: var(--slate-50); color: var(--slate); }
.tag-rural { background: var(--copper-50); color: var(--copper); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
caption { text-align: left; padding: .9rem 1rem; font-weight: 700; border-bottom: 1px solid var(--rule); }
th, td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--rule-soft); }
thead th { background: var(--card-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.rate { font-weight: 600; color: var(--copper); }
td.muted { color: var(--ink-4); font-weight: 400; font-size: .86rem; }
tbody tr.group-head td { background: var(--card-2); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }

/* -------------------------------------------------------------- calculator */
.calc { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }

.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input[type="text"], .field input[type="number"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; padding: .78rem .9rem; font: inherit;
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--slate); outline: none; box-shadow: 0 0 0 3px var(--slate-50);
}
.field .hint { font-size: .8rem; color: var(--ink-3); margin: .35rem 0 0; }
.field .words { font-size: .8rem; color: var(--copper); margin: .3rem 0 0; min-height: 1.2em; font-weight: 600; }
.field.err input, .field.err select { border-color: var(--danger); }
.field .err-msg { color: var(--danger); font-size: .8rem; margin: .3rem 0 0; }

.check { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem; border: 1.5px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; }
.check:has(input:checked) { border-color: var(--slate); background: var(--slate-50); }
.check input { margin-top: .22rem; width: 18px; height: 18px; accent-color: var(--slate); flex: none; }
.check .c-title { font-weight: 600; font-size: .92rem; display: block; }
.check .c-help { font-size: .8rem; color: var(--ink-3); }

.result { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.result-head { padding: 1rem 1.2rem; border-bottom: 1px dashed var(--rule); background: var(--card-2); }
.result-head .r-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.result-head .r-value { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-head .r-basis { font-size: .78rem; color: var(--ink-3); }
.result-body { padding: .6rem 1.2rem 1.2rem; }
.result-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; background: var(--ink); color: var(--paper);
}
.result-total .t-label { font-size: .9rem; opacity: .85; }
.result-total .t-value { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.result-total .t-pct { font-size: .78rem; opacity: .75; display: block; text-align: right; }

.saving {
  margin: .9rem 0 0; padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: var(--slate-50); border: 1px solid color-mix(in srgb, var(--slate) 22%, transparent);
  font-size: .88rem; color: var(--slate-600);
}

/* ------------------------------------------------------------------ notice */
.notice {
  border: 1px solid var(--rule); border-left: 4px solid var(--copper);
  background: var(--card); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; font-size: .9rem; color: var(--ink-2);
}
.notice h3 { font-size: .95rem; margin-bottom: .35rem; color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }
.notice-slate { border-left-color: var(--slate); }
.notice-warn { border-left-color: var(--warn); background: var(--warn-50); }
.notice ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.notice li { margin-bottom: .3rem; }

/* --------------------------------------------------------------------- faq */
.faq details {
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--card); margin-bottom: .6rem; overflow: hidden;
}
.faq summary {
  padding: .9rem 1.1rem; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .96rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-size: 1.3rem; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--rule-soft); }
.faq .faq-body { padding: .9rem 1.1rem; color: var(--ink-2); font-size: .93rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose table { margin: 1.2rem 0; }

/* --------------------------------------------------------------- lead form */
.lead {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); box-shadow: var(--shadow);
}
.lead h2 { margin-bottom: .4rem; }
.lead > p { color: var(--ink-3); font-size: .95rem; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-msg { margin-top: .9rem; padding: .9rem 1.05rem; border-radius: var(--radius-sm); font-size: .92rem; }
.lead-msg.ok { background: var(--slate-50); border: 1px solid color-mix(in srgb, var(--slate) 25%, transparent); color: var(--slate-600); }
.lead-msg.bad { background: var(--danger-50); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); color: var(--danger); }
.lead-msg .ref { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }
.lead-privacy { font-size: .8rem; color: var(--ink-4); margin: .8rem 0 0; }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--card-2); border-top: 1px solid var(--rule); padding: 3rem 0 1.5rem; margin-top: 3.5rem; font-size: .9rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot-brand strong { font-size: 1.15rem; display: block; margin-bottom: .5rem; }
.foot-brand p { color: var(--ink-3); font-size: .88rem; max-width: 34ch; }
.foot-note { color: var(--ink-4) !important; font-size: .8rem !important; }
.foot-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); margin-bottom: .7rem; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; padding: .22rem 0; font-size: .88rem; }
.foot-col a:hover { color: var(--copper); text-decoration: underline; }

.foot-jv {
  margin-top: 2.5rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem;
}
.jv-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); }
.jv-partners { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.jv-partners a { font-weight: 600; color: var(--ink); text-decoration: none; font-size: .95rem; }
.jv-partners a:hover { color: var(--copper); text-decoration: underline; }
.jv-x { color: var(--ink-4); }

.foot-legal { margin: 1.2rem 0 0; font-size: .8rem; color: var(--ink-4); }
.foot-legal a { color: var(--ink-3); }

/* ------------------------------------------------------------------- admin */
.admin-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.admin-stats div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .8rem 1.1rem; min-width: 110px; }
.admin-stats b { display: block; font-size: 1.5rem; }
.admin-stats span { font-size: .75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.score-hot { color: var(--danger); font-weight: 700; }
.score-warm { color: var(--warn); font-weight: 700; }
.score-cold { color: var(--ink-4); }

@media print {
  .site-head, .site-foot, .crumbs, .nav, .lead, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; color: #000; }
  .result { box-shadow: none; border: 1px solid #000; }
}

/* ------------------------------------------------------------------ magnet */
/* The three lead magnets. Deliberately not a popup and not an overlay: they sit
   in the flow at the moment they are relevant, and nothing is blocked if ignored. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.magnet {
  display: grid; gap: 1.2rem; align-items: center;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg); padding: clamp(1.3rem, 1rem + 1.6vw, 2.2rem);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
@media (min-width: 860px) { .magnet { grid-template-columns: 1.15fr .85fr; gap: 2rem; } }
.magnet::before {
  content: ""; position: absolute; inset: auto -12% -60% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--copper) 42%, transparent), transparent 66%);
  pointer-events: none;
}
.magnet-body { position: relative; }
.magnet h2 { font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); margin-bottom: .45rem; color: var(--paper); }
.magnet p { margin: 0; font-size: .92rem; opacity: .82; max-width: 44ch; }

.magnet-form { position: relative; }
.magnet-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.magnet-row + .magnet-row { margin-top: .5rem; }
.magnet-row input[type="tel"], .magnet-row select {
  flex: 1 1 11rem; min-width: 0; padding: .8rem .95rem; font: inherit;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
}
.magnet-row input:focus, .magnet-row select:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 35%, transparent);
}
.magnet-row .btn { flex: 0 0 auto; }
.magnet-note { margin: .7rem 0 0; font-size: .76rem; opacity: .6; }
.magnet .lead-msg.ok { background: color-mix(in srgb, var(--paper) 14%, transparent); border-color: transparent; color: var(--paper); }
.magnet .lead-msg.bad { background: color-mix(in srgb, var(--danger) 26%, transparent); border-color: transparent; color: var(--paper); }

/* -------------------------------------------------------- districts strip */
.districts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.district-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem;
  border-radius: 999px; font-size: .88rem; text-decoration: none;
  border: 1px solid var(--rule); background: var(--card); color: var(--ink);
}
.district-pill.live { border-color: color-mix(in srgb, var(--copper) 45%, transparent); }
.district-pill.live b { color: var(--copper); font-weight: 600; font-size: .76rem; }
.district-pill.soon { color: var(--ink-4); border-style: dashed; }
.district-pill.soon b { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
a.district-pill:hover { border-color: var(--copper); color: var(--copper); }

/* --------------------------------------------------------- sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 45; gap: .5rem;
    padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(12px); border-top: 1px solid var(--rule);
  }
  .sticky-cta .btn { flex: 1; padding: .7rem .8rem; font-size: .92rem; }
  body { padding-bottom: 4.2rem; }
}

/* ------------------------------------------------------------- checklist */
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative; padding-left: 2rem; margin-bottom: .6rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.05rem; height: 1.05rem; border: 1.5px solid var(--ink-4);
  border-radius: 3px;
}
@media print {
  .no-print { display: none !important; }
  .checklist li::before { border-color: #000; }
  .prose { max-width: none; }
  a[href]::after { content: ""; }
}

/* the unit picker that sits beside an area field */
.unit-select {
  flex: 0 0 10.5rem; padding: .78rem .9rem; font: inherit;
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
}
.unit-select:focus { border-color: var(--slate); outline: none; box-shadow: 0 0 0 3px var(--slate-50); }

/* A submit button stretched across a wide card reads as a banner, not a button.
   Full width is right on a phone, where the thumb needs the target; on a desktop
   it only needs to be comfortably wide. */
.lead .btn-block {
  width: auto;
  min-width: 18rem;
  padding-inline: 2rem;
}
@media (max-width: 640px) {
  .lead .btn-block { width: 100%; min-width: 0; }
}

/* ------------------------------------------------------------------ finder */
.finder { margin: 1.6rem 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.tabs { display: flex; gap: .35rem; margin-bottom: 1rem; overflow-x: auto; }
.tab {
  flex: 0 0 auto; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--rule);
  background: var(--paper); color: var(--ink-2);
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab:focus-visible { outline: 3px solid var(--slate-50); outline-offset: 2px; }
.tab-panel { position: relative; }
.tab-panel[hidden], [data-when][hidden], .finder-form[hidden] { display: none; }

.filters { margin-top: 1rem; border-top: 1px solid var(--rule-soft); padding-top: .8rem; }
.filters summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--slate); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 1rem; margin-top: .9rem; }
.filter-grid .field { margin-bottom: .8rem; }
.filter-grid .field label { font-size: .84rem; }
.filter-grid .field select, .filter-grid .field input { padding: .6rem .7rem; }
.filter-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.results-head { font-size: 1.1rem; margin-top: 1.4rem; }
.row-item .ri-colony { display: block; font-size: .78rem; color: var(--slate); margin-bottom: .1rem; }
.row-item .ri-colony b { font-weight: 600; }
.row-item .ri-multi { display: grid; gap: .3rem; }
.row-item .ri-line small { display: block; font-size: .7rem; color: var(--ink-3); }
.suggest .s-colony { display: block; font-size: .75rem; color: var(--slate); }
.finder + .notice, .notice + .notice, .notice + .results-head { margin-top: .8rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; font-size: .9rem; color: var(--ink-3); }

.map-box { position: relative; }
.map { height: 380px; border-radius: var(--radius-sm); border: 1px solid var(--rule); background: var(--paper); z-index: 0; }
.map-locate { position: absolute; right: .6rem; bottom: .6rem; z-index: 500; background: var(--card); box-shadow: var(--shadow); }
.map-where { font-size: .82rem; color: var(--ink-3); margin: .8rem 0 .5rem; }
#map-results { margin-top: .8rem; }

@media (max-width: 600px) {
  .finder { padding: .8rem; }
  .map { height: 320px; }
  .row-item { align-items: flex-start; }
  .row-item .ri-multi { min-width: 42%; }
  .row-item .ri-rate { white-space: normal; }
}
