/* KerbAlert website (kerbalert.nz). The app itself lives at /map/ and uses app.css. */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/overpass.woff2') format('woff2');
}

:root {
  --green: #12935A;
  --green-dark: #0D7A49;
  --green-bright: #6FD99A;
  --pin: #3FBF74;
  --pin-edge: #2A9E5A;
  --alert: #D9620B;        /* the "Alert" in the logo: road-cone orange */
  --alert-edge: #B9530A;
  --alert-light: #F59A4E;  /* on dark backgrounds */
  --ink: #17201C;
  --ink-2: #3E4944;
  --ink-3: #56625C;
  --line: #E1E7E3;
  --footpath: #F4F6F3;
  --road: #262B28;
  --cone-wash: #FFF3E8;
  --paper: #FFFFFF;
  --font: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--alert); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-weight: 900; font-size: 27px; letter-spacing: -0.045em; line-height: 1; }
.w-kerb { color: var(--green); }
.w-alert { color: var(--alert); }
.wordmark--sm { font-size: 16px; }
.wordmark--foot { font-size: 28px; }
.wordmark--foot .w-kerb { color: var(--green-bright); }
.wordmark--foot .w-alert { color: var(--alert-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 58px; padding: 0 28px; border-radius: 16px; font-size: 19px; font-weight: 800; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--outline { background: var(--paper); color: var(--ink); border: 2px solid #D5DCD7; }
.btn--outline:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); padding-top: env(safe-area-inset-top); }
.top__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.top__links { display: flex; align-items: center; gap: 28px; }
.top__link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.top__link:hover { color: var(--green-dark); }

/* ---------- hero (the footpath) ---------- */
.hero { background: var(--footpath); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 48px; }
.hero__text { flex: 1 1 460px; min-width: 0; }
h1 { font-size: clamp(44px, 6.2vw, 86px); line-height: .95; font-weight: 900; letter-spacing: -0.045em; text-wrap: balance; }
.lead { margin-top: 28px; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.small { margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.center { text-align: center; }

/* phone mockup */
.phone {
  flex: 0 0 auto; margin: 0 auto; width: 300px; height: 610px; border-radius: 44px; padding: 12px;
  background: var(--ink); box-shadow: 0 30px 60px -24px rgba(23, 32, 28, .45);
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #E9EDEA; }
.street { position: absolute; background: #fff; }
.street--a { left: -40px; top: 120px; width: 420px; height: 14px; transform: rotate(-18deg); }
.street--b { left: -40px; top: 300px; width: 420px; height: 10px; transform: rotate(-18deg); }
.street--c { left: 95px; top: -40px; width: 12px; height: 520px; transform: rotate(12deg); }
.street--d { left: 205px; top: -40px; width: 9px; height: 520px; transform: rotate(12deg); }
.park { position: absolute; background: #D3EBD9; border-radius: 6px; }
.park--a { left: 30px; top: 360px; width: 60px; height: 40px; }
.park--b { left: 190px; top: 180px; width: 70px; height: 54px; }
.phone__bar { position: absolute; left: 0; right: 0; top: 0; height: 58px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 1px 0 var(--line); }
.mpin, .kpin { position: absolute; filter: drop-shadow(0 3px 3px rgba(18, 70, 40, .28)); }
.mpin g, .kpin g { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mpin__g { fill: var(--pin); stroke: var(--pin-edge); stroke-width: 1.5; }
.mpin__o { fill: var(--alert); stroke: var(--alert-edge); stroke-width: 1.5; }
.me { position: absolute; left: 150px; top: 190px; width: 14px; height: 14px; border-radius: 50%; background: #2F80ED; border: 3px solid #fff; box-shadow: 0 0 0 9px rgba(47, 128, 237, .18); box-sizing: content-box; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 16px 16px; box-shadow: 0 -8px 24px -12px rgba(23, 32, 28, .3); display: flex; flex-direction: column; }
.sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.sheet__title { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; margin-bottom: 6px; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 11px; color: var(--ink-3); }
.row + .row { border-top: 1px solid var(--line); }
.row__icon { width: 36px; height: 36px; border-radius: 10px; background: #E8F6EE; display: grid; place-items: center; flex: none; }
.row__icon svg { fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__main b { font-size: 13px; color: var(--ink); }
.sheet__cta { margin-top: 8px; background: var(--green); color: #fff; border-radius: 12px; height: 40px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

/* the kerb and the road */
.kerb { position: relative; height: 150px; }
.kerb__edge { position: absolute; left: 0; right: 0; top: 54px; height: 14px; background: #D2D8D3; border-top: 3px solid #C3CAC5; }
.kerb__road { position: absolute; left: 0; right: 0; top: 68px; bottom: 0; background: var(--road); }
.kerb__lines { position: absolute; left: 0; right: 0; top: 116px; height: 5px; opacity: .85; background: repeating-linear-gradient(90deg, var(--footpath) 0 56px, transparent 56px 104px); }
.kpin { top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .kpin { animation: drop .5s cubic-bezier(.2, .8, .2, 1) both; }
  .kpin:nth-of-type(2) { animation-delay: .08s; } .kpin:nth-of-type(3) { animation-delay: .16s; }
  .kpin:nth-of-type(4) { animation-delay: .24s; } .kpin:nth-of-type(5) { animation-delay: .32s; }
  @keyframes drop { from { opacity: 0; transform: translateY(-18px); } }
}

/* ---------- live impact (on the road) ---------- */
.impact { background: var(--road); color: #fff; }
.impact__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; padding-top: 8px; padding-bottom: 64px; }
.impact__num { font-size: clamp(44px, 7vw, 96px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; color: var(--green-bright); font-variant-numeric: tabular-nums; }
.impact__text { flex: 1 1 320px; max-width: 26em; font-size: 20px; line-height: 1.45; color: #DCE3DE; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--last { padding-bottom: 96px; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
.h2--narrow { max-width: 14em; }
.h3 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; font-weight: 900; letter-spacing: -0.035em; }
.body { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.body + .btn { margin-top: 28px; }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px 20px; }
.steps li { flex: 1 1 300px; min-width: 0; border-top: 6px solid var(--green); padding-top: 22px; }
.steps__n { display: block; font-size: 56px; font-weight: 900; line-height: 1; color: var(--green); letter-spacing: -0.04em; }
.steps h3 { margin: 14px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.steps p { font-size: 18px; line-height: 1.55; color: var(--ink-2); }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split--reverse { flex-wrap: wrap-reverse; }
.split__text { flex: 1 1 420px; min-width: 0; }

.demo { flex: 1 1 380px; min-width: 0; background: var(--footpath); border-radius: 28px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.meter { position: relative; height: 60px; border-radius: 16px; overflow: hidden; background: #E8F6EE; }
.meter__fill { position: absolute; top: 0; bottom: 0; left: 0; background: #B9E6C9; }
.meter__label { position: relative; display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 18px; color: var(--green-dark); }
.meter--ready { background: var(--green); }
.meter--ready .meter__label { color: #fff; }
.demo .small { margin-top: 4px; }

.ticks { flex: 1 1 380px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 14px; background: var(--footpath); border-radius: 18px; padding: 16px 18px; font-size: 18px; font-weight: 700; }
.ticks__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.ticks__icon svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- selling ---------- */
.selling { background: var(--cone-wash); }
.selling__inner { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-top: 88px; padding-bottom: 88px; }
.selling__text { flex: 1 1 420px; min-width: 0; }
.checks { flex: 1 1 380px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.5; }
.checks svg { flex: none; margin-top: 2px; fill: none; stroke: var(--alert-edge); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- made here ---------- */
.made { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.made__text { flex: 1 1 520px; min-width: 0; }
.made .body { max-width: 32em; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #DCE3DE; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: max(56px, env(safe-area-inset-bottom)); }
.foot__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot__links a { color: #DCE3DE; text-decoration: none; font-size: 16px; }
.foot__links a:hover { color: #fff; text-decoration: underline; }
.foot__small { flex-basis: 100%; font-size: 14px; color: #A9B4AE; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .top__links { gap: 12px; }
  .top__link { display: none; }
  .hero__inner { padding-top: 44px; gap: 44px; }
  .lead { font-size: 19px; margin-top: 20px; }
  .actions .btn { flex: 1 1 100%; }
  .phone { transform: scale(.92); transform-origin: top center; margin-bottom: -48px; }
  .kpin:nth-of-type(2), .kpin:nth-of-type(4) { display: none; }
  .section { padding: 72px 0; }
  .section--tight { padding: 48px 0; }
  .made .btn { width: 100%; }
}
