/* Potty Patrol — public website (landing + town pages).
   Design idea: New Zealand public wayfinding signage. Big, plain, high-contrast,
   pictograms, distances. The app has its own stylesheet (app.css). */
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url(/vendor/fonts/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(/vendor/fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(/vendor/fonts/nunito-latin-900-normal.woff2) format('woff2'); }

:root {
  --sign: #1F5FC4;      /* wayfinding blue, white text passes AA */
  --sign-dark: #174A9C;
  --navy: #0F2347;      /* ink + night bands */
  --yellow: #FFD23F;    /* signal yellow */
  --concrete: #E9ECF1;  /* footpath grey */
  --line: #D5DBE4;
  --ink-2: #44526E;
  --now: #C2410C;       /* urgent orange, white text passes AA */
  --green: #1C7A43;
  --teal: #0B6273;
  --max: 1180px;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.55; color: var(--navy); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sign); text-underline-offset: 3px; }
a:hover { color: var(--sign-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 900; line-height: 1.04; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 900; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 900; font-size: 18px; text-decoration: none; border: 0; cursor: pointer; }
.btn svg { width: 22px; height: 22px; }
.btn-now { background: var(--now); color: #fff; }
.btn-now:hover { background: #A8370A; color: #fff; }
.btn-sign { background: var(--sign); color: #fff; }
.btn-sign:hover { background: var(--sign-dark); color: #fff; }
.btn-line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-line:hover { background: var(--concrete); color: var(--navy); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #F5C51C; color: var(--navy); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 39px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 800; font-size: 16px; }
.nav a:hover { color: var(--sign); }
.top .btn { min-height: 44px; font-size: 16px; padding: 0 20px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); }
.hero .lede { margin-top: 22px; font-size: 21px; color: var(--ink-2); max-width: 30ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.hero .fine strong { color: var(--navy); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 28px; } }

/* The sign post — the page's one big idea */
.post { position: relative; padding: 0 0 0 26px; }
.post::before { content: ''; position: absolute; left: 0; top: -40px; bottom: -120px; width: 14px; border-radius: 7px; background: linear-gradient(90deg, #AEB6C3, #CDD3DC 45%, #9EA7B5); }
.signs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sign { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 84px; padding: 12px 18px 12px 12px; background: var(--sign); color: #fff; border-radius: var(--r); box-shadow: 0 2px 0 var(--sign-dark), 0 14px 28px -18px rgba(15,35,71,.6); text-decoration: none; }
.sign::before { content: ''; position: absolute; left: -22px; top: 50%; width: 22px; height: 8px; margin-top: -4px; background: #8E98A8; border-radius: 3px; }
.sign .pic { width: 56px; height: 56px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.sign .pic svg { width: 34px; height: 34px; }
.sign .what { font-weight: 900; font-size: 21px; line-height: 1.15; }
.sign .what small { display: block; font-weight: 700; font-size: 14px; color: #D3E1F8; margin-top: 2px; }
.sign .how { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sign .arrow { width: 34px; height: 34px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.sign.now { background: var(--now); box-shadow: 0 2px 0 #8F2F09, 0 14px 28px -18px rgba(15,35,71,.6); }
.sign.now small { color: #FFE0D2; }
a.sign:hover { filter: brightness(1.06); color: #fff; }
.post-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); min-height: 22px; }
.post-actions { margin-top: 18px; }
@media (max-width: 520px) {
  .sign { grid-template-columns: 46px minmax(0, 1fr) auto; min-height: 72px; gap: 10px; padding-right: 12px; }
  .sign .pic { width: 46px; height: 46px; } .sign .pic svg { width: 28px; height: 28px; }
  .sign .what { font-size: 17px; } .sign .how { font-size: 18px; } .sign .arrow { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .signs.swing .sign { animation: hang .7s cubic-bezier(.2,.9,.3,1.3) both; }
  .signs.swing .sign:nth-child(2) { animation-delay: .08s; }
  .signs.swing .sign:nth-child(3) { animation-delay: .16s; }
  .signs.swing .sign:nth-child(4) { animation-delay: .24s; }
  @keyframes hang { from { transform: translateX(-18px) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Directory board (real numbers) */
.board { background: var(--navy); color: #fff; padding: 64px 0; }
.board h2 { font-size: clamp(30px, 4vw, 46px); max-width: 22ch; }
.board .rows { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.board li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); }
.board li svg { width: 40px; height: 40px; flex-shrink: 0; }
.board li span { flex: 1; font-size: 19px; color: #CFD8E8; }
.board li b { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--yellow); }
.board .src { margin-top: 22px; font-size: 14px; color: #9FB0CC; }
.board .src a { color: #CFD8E8; }
@media (max-width: 760px) { .board .rows { grid-template-columns: 1fr; } }

/* Generic section */
.sec { padding: 96px 0; }
.sec h2 { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; }
.sec .intro { margin-top: 18px; font-size: 20px; color: var(--ink-2); max-width: 52ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .sec { padding: 72px 0; } }

/* Emergency band */
.night { background: #142A52; color: #fff; }
.night .intro { color: #C9D6EE; }
.night .points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; color: #DCE5F5; max-width: 46ch; }
.night .points li { padding-left: 30px; position: relative; }
.night .points li::before { content: ''; position: absolute; left: 0; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); }

/* Phone (built from HTML so it stays sharp and light) */
.phone { width: min(330px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 44px; background: #0C1A33; padding: 12px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), inset 0 0 0 2px #2B3F66; }
.screen { height: 100%; border-radius: 34px; background: #142A52; color: #fff; padding: 34px 20px 20px; display: flex; flex-direction: column; overflow: hidden; }
.screen .bar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 900; color: #FFB48A; letter-spacing: .04em; }
.screen .bar span:last-child { color: #C9D6EE; letter-spacing: 0; }
.screen .lbl { margin-top: 22px; font-size: 13px; color: #C9D6EE; }
.screen .dist { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.screen .dist span { font-size: 26px; }
.screen .walk { font-size: 15px; font-weight: 800; margin-top: 4px; }
.screen .card { margin-top: 18px; background: #1E3A6E; border-radius: 16px; padding: 14px; font-size: 13px; }
.screen .card b { display: block; font-size: 16px; }
.screen .card .sub { color: #C9D6EE; }
.screen .meter { height: 8px; border-radius: 4px; background: #2E4C82; margin-top: 10px; overflow: hidden; }
.screen .meter i { display: block; height: 100%; width: 88%; background: #3DC17A; border-radius: 4px; }
.screen .go { margin-top: auto; background: var(--now); border-radius: 999px; text-align: center; padding: 16px; font-weight: 900; font-size: 17px; }

/* The Patrol: try-it report buttons */
.report { margin-top: 32px; padding: 26px; border-radius: 22px; background: var(--concrete); max-width: 520px; }
.report h3 { font-size: 22px; letter-spacing: -0.01em; }
.report p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.report .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.report button { min-height: 54px; border-radius: 14px; border: 2px solid currentColor; background: #fff; font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; }
.report button[aria-pressed="true"] { color: #fff !important; }
.r-open { color: var(--green); } .r-open[aria-pressed="true"] { background: var(--green); }
.r-closed { color: #B42318; } .r-closed[aria-pressed="true"] { background: #B42318; }
.r-clean { color: var(--sign); } .r-clean[aria-pressed="true"] { background: var(--sign); }
.r-att { color: #9A4A00; } .r-att[aria-pressed="true"] { background: #9A4A00; }
.report .result { margin-top: 14px; font-weight: 900; min-height: 28px; color: var(--green); }
.ranks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.ranks li { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ranks .pts { font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--sign); }
.ranks b { font-size: 19px; }
.ranks small { display: block; color: var(--ink-2); font-size: 15px; }
.ranks .chev { width: 28px; height: 28px; }

/* Features as a building directory */
.directory { margin-top: 44px; border-top: 3px solid var(--navy); }
.directory > div { display: grid; grid-template-columns: 64px minmax(0, 15rem) minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.directory .ico { width: 64px; height: 64px; border-radius: 14px; background: var(--sign); display: grid; place-items: center; }
.directory .ico svg { width: 36px; height: 36px; }
.directory .ico.y { background: var(--yellow); }
.directory .ico.t { background: var(--teal); }
.directory h3 { font-size: 24px; padding-top: 4px; letter-spacing: -0.015em; }
.directory p { color: var(--ink-2); font-size: 18px; padding-top: 6px; max-width: 58ch; }
.directory .plus { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 8px; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 900; vertical-align: 4px; letter-spacing: 0; }
@media (max-width: 760px) { .directory > div { grid-template-columns: 52px 1fr; gap: 6px 16px; } .directory .ico { width: 52px; height: 52px; grid-row: span 2; } .directory .ico svg { width: 30px; height: 30px; } .directory p { padding-top: 0; font-size: 17px; } }

/* Towns */
.towns { columns: 4 180px; column-gap: 32px; margin: 36px 0 0; padding: 0; list-style: none; }
.towns li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.towns a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; font-weight: 800; color: var(--navy); }
.towns a:hover { color: var(--sign); }
.towns span { color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Business + Plus */
.biz { background: #EAF6F8; }
.biz .price { margin-top: 26px; display: flex; align-items: baseline; gap: 10px; }
.biz .price b { font-size: 56px; font-weight: 900; letter-spacing: -0.03em; color: var(--teal); }
.biz .price span { color: var(--ink-2); }
.biz ul, .plusfeat { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.biz li, .plusfeat li { padding-left: 34px; position: relative; }
.biz li::before, .plusfeat li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 18px; height: 10px; border-left: 3.5px solid var(--teal); border-bottom: 3.5px solid var(--teal); transform: rotate(-45deg); }
.plusfeat li::before { border-color: var(--sign); }
.listing { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 30px 60px -40px rgba(11,98,115,.55); border: 2px solid #9ED5DD; max-width: 440px; justify-self: center; width: 100%; }
.listing .tag { display: inline-block; font-size: 14px; font-weight: 900; color: var(--teal); }
.listing h3 { font-size: 28px; margin-top: 6px; }
.listing .offer { margin-top: 10px; font-size: 19px; font-weight: 900; color: var(--teal); }
.listing .meta { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.listing .pin { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.listing .pin svg { width: 26px; height: 34px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.plan { border: 2px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--sign); box-shadow: 0 0 0 4px #DCE8FB; }
.plan h3 { font-size: 22px; letter-spacing: -0.01em; }
.plan .amt { margin-top: 14px; font-size: 44px; font-weight: 900; letter-spacing: -0.03em; }
.plan .amt small { font-size: 17px; color: var(--ink-2); letter-spacing: 0; font-weight: 800; }
.plan p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.plan .note { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 900; color: var(--sign); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 36px; border-top: 3px solid var(--navy); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 21px; font-weight: 900; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex-shrink: 0; width: 14px; height: 14px; margin-top: 8px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 14px; }
.faq .a { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
.faq .a p + p { margin-top: 10px; }

/* Final call */
.last { background: var(--yellow); padding: 88px 0; }
.last h2 { font-size: clamp(40px, 7vw, 88px); max-width: 14ch; }
.last p { margin-top: 18px; font-size: 21px; max-width: 40ch; }
.last .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.last .btn-line { box-shadow: inset 0 0 0 2px var(--navy); background: transparent; }

/* Footer */
.foot { background: var(--navy); color: #C9D3E4; padding: 56px 0 40px; font-size: 16px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font-size: 16px; color: #fff; letter-spacing: 0; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #C9D3E4; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .logo { color: #fff; }
.foot .small { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #9FB0CC; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot .small a { color: #C9D3E4; text-decoration: underline; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }

/* Town pages + legal pages */
.crumbs { font-size: 15px; color: var(--ink-2); padding-top: 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.page-hero { padding: 28px 0 40px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 16ch; }
.page-hero .lede { margin-top: 18px; font-size: 20px; color: var(--ink-2); max-width: 56ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.facts span { padding: 8px 14px; border-radius: 10px; background: var(--concrete); font-weight: 800; font-size: 16px; }
.facts b { font-variant-numeric: tabular-nums; }
.loos { list-style: none; padding: 0; margin: 18px 0 0; border-top: 3px solid var(--navy); }
.loos li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.loos b { font-size: 19px; }
.loos .d { color: var(--ink-2); font-size: 15px; }
.loos .t { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.loos .t span { font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: #E6EFFC; color: var(--sign-dark); }
.loos a.open { font-weight: 900; white-space: nowrap; }
.sub-h { font-size: clamp(26px, 3.4vw, 36px); margin-top: 56px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
