/* MeterEye public site
   Palette: valve-box ink, water-works teal, meter brass, paper, concrete.
   Type: Public Sans (the U.S. Web Design System face) throughout. */
:root {
  --ink: #14262b;
  --ink-soft: #3d5257;
  --teal: #1d5c63;
  --teal-deep: #123c41;
  --brass: #a8781f;
  --brass-soft: #f3e7cd;
  --paper: #fbfbf9;
  --concrete: #e2e6e3;
  --line: #c9d1cd;
  --focus: #1f6fbf;
}
* { 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: 400 18px/1.6 "Public Sans", system-ui, sans-serif; }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; max-width: 64ch; }
.lede { font-size: 21px; color: var(--ink-soft); max-width: 46ch; }

.btn { display: inline-block; font: 700 17px/1 "Public Sans", sans-serif; padding: 16px 22px; border-radius: 4px; text-decoration: none; border: 2px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.quiet { background: transparent; color: var(--teal); }
.btn.quiet:hover { background: #e6efee; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 26px; align-items: center; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--teal); text-decoration: underline; }
.top nav .btn { padding: 11px 16px; font-size: 15px; color: #fff; }

/* Hero */
.hero { padding: 72px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 22px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .fine { font-size: 15px; color: var(--ink-soft); margin-top: 16px; }

/* The bill – the one memorable thing on the page */
.bill-wrap { position: relative; }
.bill { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(20, 38, 43, .35); padding: 26px 28px 0; font-size: 14px; transform: rotate(-1.2deg); }
.bill-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.bill-head strong { font-size: 17px; display: block; }
.bill-head .acct { text-align: right; font-size: 13px; color: var(--ink-soft); }
.bill table { width: 100%; border-collapse: collapse; margin: 14px 0; font-variant-numeric: tabular-nums; }
.bill td { padding: 5px 0; border-bottom: 1px solid var(--concrete); }
.bill td:last-child { text-align: right; }
.register { display: flex; gap: 3px; margin: 6px 0 2px; }
.register span { width: 26px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 20px; border-radius: 2px; font-variant-numeric: tabular-nums; overflow: hidden; position: relative; }
.register span.tenth { background: var(--brass); }
.register-label { font-size: 12px; color: var(--ink-soft); }
.due { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 18px; }
.due b { font-size: 26px; }
.stub { margin: 0 -28px; padding: 16px 28px 20px; border-top: 2px dashed var(--line); background: var(--paper); display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.stamp { position: absolute; right: 30px; top: 118px; transform: rotate(8deg); border: 3px solid var(--teal); color: var(--teal); font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 4px; background: rgba(255,255,255,.92); }

/* Digit roll on load (one orchestrated moment) */
@keyframes roll { from { transform: translateY(-120%); } to { transform: translateY(0); } }
.register span i { font-style: normal; display: block; animation: roll .9s cubic-bezier(.2,.8,.2,1) both; }
.register span:nth-child(2) i { animation-delay: .08s; } .register span:nth-child(3) i { animation-delay: .16s; }
.register span:nth-child(4) i { animation-delay: .24s; } .register span:nth-child(5) i { animation-delay: .32s; }
.register span:nth-child(6) i { animation-delay: .40s; } .register span:nth-child(7) i { animation-delay: .48s; }
@media (prefers-reduced-motion: reduce) { .register span i { animation: none; } }

/* Sections */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.band.ink { background: var(--teal-deep); color: #e8f0ef; border-top: 0; }
.band.ink h2, .band.ink h3 { color: #fff; }
.band.ink p { color: #c7d8d6; }
.band.ink a { color: #fff; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.split > *, .hero .wrap > * { min-width: 0; }
.cost-scroll { overflow-x: auto; }
.section-intro p { margin-top: 16px; }

/* Cost table */
.costs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 17px; }
.costs th, .costs td { text-align: right; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.costs th:first-child, .costs td:first-child { text-align: left; white-space: nowrap; }
.costs thead th { font-size: 15px; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.costs tr.ours td { background: var(--brass-soft); font-weight: 800; }
.costs tr.ours td:first-child { box-shadow: inset 4px 0 0 var(--brass); }
.note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* The monthly cycle (a real sequence, so numbered) */
.cycle { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 2px solid #4f7c80; }
.cycle li { counter-increment: step; padding: 22px 26px 26px 0; position: relative; }
.cycle li::before { content: counter(step); display: block; font-weight: 800; font-size: 44px; line-height: 1; color: #8fb6b4; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.cycle li h3 { margin-bottom: 8px; }
.cycle li p { font-size: 16px; }

/* Lists of capabilities */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 48px; margin-top: 8px; }
.facts h3 { margin-bottom: 6px; }
.facts p { font-size: 16.5px; color: var(--ink-soft); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border: 1px solid var(--line); background: #fff; }
.works div { padding: 26px; border-right: 1px solid var(--line); }
.works div:last-child { border-right: 0; }
.works p { font-size: 16px; color: var(--ink-soft); margin: 8px 0 0; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border: 2px solid var(--ink); background: #fff; }
.tier { padding: 30px 28px; border-right: 1px solid var(--line); }
.tier:last-child { border-right: 0; }
.tier .size { font-size: 16px; color: var(--ink-soft); }
.tier .price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.tier .per { font-size: 16px; color: var(--ink-soft); }
.included { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; padding: 0; list-style: none; font-size: 17px; }
.included li { padding-left: 26px; position: relative; }
.included li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 7px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }

/* Demo form */
.demo form { background: #fff; border: 1px solid var(--line); padding: 30px; }
.demo label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.demo input, .demo textarea, .demo select { width: 100%; font: 400 17px "Public Sans", sans-serif; padding: 12px; border: 1px solid #9fb0ab; border-radius: 3px; background: #fff; color: var(--ink); }
.demo textarea { min-height: 110px; }
.demo .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo .f { margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; }
.thanks { background: #e6efee; border-left: 4px solid var(--teal); padding: 18px 20px; margin-bottom: 18px; }
.err { background: #fbe9e6; border-left: 4px solid #a12a2a; padding: 14px 18px; margin-bottom: 18px; }

footer { padding: 40px 0 60px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero { padding: 44px 0 56px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .bill { transform: none; }
  .stamp { display: none; }
  .stub { flex-direction: column; gap: 4px; }
  .cycle, .works, .tiers, .facts, .included { grid-template-columns: 1fr; }
  .works div, .tier { border-right: 0; border-bottom: 1px solid var(--line); }
  .top nav a:not(.btn) { display: none; }
  .demo .two { grid-template-columns: 1fr; }
  .costs { font-size: 15px; }
  .costs th:nth-child(3), .costs td:nth-child(3) { display: none; }
  .costs th:first-child, .costs td:first-child { white-space: normal; }
  .costs th, .costs td { padding: 10px 6px; }
  .band { padding: 60px 0; }
}

/* Mayor's court */
.court-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 30px; }
.court-facts h3 { font-size: 17px; margin-bottom: 4px; }
.court-facts p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }
.ticket-wrap { position: relative; padding-top: 8px; }
.ticket { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--brass); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(20, 38, 43, .35); padding: 24px 28px 26px; font-size: 14px; transform: rotate(1deg); max-width: 440px; margin-left: auto; }
.ticket-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.ticket-head strong { font-size: 17px; display: block; }
.ticket-head .acct { text-align: right; font-size: 13px; color: var(--ink-soft); }
.ticket table { width: 100%; border-collapse: collapse; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.ticket td { padding: 5px 0; border-bottom: 1px solid var(--concrete); }
.ticket td:last-child { text-align: right; }
.ticket .due { padding: 12px 0 16px; }
.ticket-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket-pay .pay { flex: 1; text-align: center; font-weight: 700; font-size: 14px; padding: 11px 10px; border-radius: 4px; background: var(--teal); color: #fff; border: 2px solid var(--teal); white-space: nowrap; }
.ticket-pay .pay.quiet { background: #fff; color: var(--teal); }
@media (max-width: 900px) {
  .court-facts { grid-template-columns: 1fr; }
  .ticket { margin: 10px auto 0; transform: none; }
}
