/* Is It Bin Day? landing page. One file, no build step. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Colours come from the street: pavement, slate, and the lids. */
:root {
  --pavement: #EEF3F0;
  --surface: #FFFFFF;
  --ink: #15222C;
  --muted: #4B5A66;
  --line: #C9D3CE;
  --green: #1F7A4D;   /* mixed recycling */
  --brown: #8A5A2B;   /* food waste */
  --blue: #1C5FB8;    /* paper and card */
  --slate: #3A4650;   /* rubbish */
  --hivis: #FFC21A;
  --link: #1C5FB8;
  --kerb: #BFC9C4;
  --road: #5B6770;
  --bin-body: #2B3740;
  --bin-line: #3F4D57;
  --bin-line-light: rgba(255, 255, 255, 0.35);
  --wheel: #111A21;

  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pavement: #12202B;
    --surface: #1B2B37;
    --ink: #EEF3F0;
    --muted: #B3C0C8;
    --line: #2E4150;
    --green: #3FAE76;
    --brown: #C08A55;
    --blue: #6FA4F0;
    --slate: #8C9AA5;
    --link: #8DB8F5;
    --kerb: #2E4150;
    --road: #0D1821;
    --bin-body: #3A4A57;
    --bin-line: #4D5F6D;
    --wheel: #0A1218;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pavement);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 11vw, 5.25rem);
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.6rem; font-weight: 750; }

p { margin: 0; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--pavement);
  border-radius: 0.5rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem var(--gutter);
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.soon-pill {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

main > section {
  padding: clamp(3rem, 9vw, 6rem) var(--gutter);
}

/* Hero: the answer, then the street it happens on. */
.hero {
  display: grid;
  gap: 2rem;
  padding-top: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: 0;
}
.hero-text { max-width: 44rem; }
.lede {
  margin-top: 1.25rem;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  max-width: var(--measure);
}
.lede-small { margin-top: 0.75rem; color: var(--muted); }

.answer {
  display: grid;
  gap: 0.75rem;
  max-width: 24rem;
}
.notification {
  background: var(--surface);
  border-radius: 1.1rem;
  padding: 0.8rem 1rem;
  font-size: 0.98rem;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(21, 34, 44, 0.6);
}
.notification-app {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.notification-title { font-weight: 700; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.1rem 1.2rem;
}
.card-title {
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.6rem;
  line-height: 1.1;
}
.card-sub { color: var(--muted); margin-top: 0.3rem; }
.card-rows {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}
.card-rows li { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.card-rows li span:last-child { margin-left: auto; font-weight: 400; color: var(--muted); }
.dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; flex: none; }
.dot-food { background: var(--brown); }
.dot-recycling { background: var(--green); }
.dot-paper { background: var(--blue); }
.dot-rubbish { background: var(--slate); }

/* The street. Tonight's bins sit forward at the kerb; the rest wait by the house. */
.street {
  --cols: repeat(4, minmax(0, 7.5rem));
  --travel: clamp(2.2rem, 8vw, 3.4rem);
  margin: 0;
  grid-column: 1 / -1;
}
.scene,
.labels {
  display: grid;
  grid-template-columns: var(--cols);
  gap: clamp(0.5rem, 3vw, 2rem);
}
.scene {
  align-items: end;
  height: clamp(8.5rem, 30vw, 12rem);
  background: linear-gradient(to top, var(--kerb) calc(var(--travel) + 1.2rem), transparent 0);
}
.bin {
  width: 100%;
  max-width: 5.5rem;
  height: auto;
  justify-self: center;
  margin-bottom: var(--travel);
}
.bin-food { color: var(--brown); }
.bin-recycling { color: var(--green); }
.bin-paper { color: var(--blue); }
.bin-rubbish { color: var(--slate); }
.bin.is-out {
  margin-bottom: 0.15rem;
  animation: wheel-out 900ms cubic-bezier(0.3, 0.9, 0.3, 1.1) 350ms both;
}
.bin.is-out + .bin.is-out { animation-delay: 550ms; }

@keyframes wheel-out {
  from { transform: translateY(calc(var(--travel) * -1)); }
  to { transform: none; }
}

.road {
  height: 1.8rem;
  background: var(--road);
  border-top: 0.35rem solid var(--muted);
}
.labels {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}
.labels span {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.street figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: var(--measure);
}

@media (min-width: 52rem) {
  .street { --cols: repeat(4, minmax(0, 1fr)); }
  .scene { height: 15rem; } /* 7rem bins are 10.5rem tall, plus the set-back */
  .bin { max-width: 7rem; }
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 3rem;
  }
  .answer { justify-self: end; width: 100%; }
}

/* How it works: a real sequence, so it's numbered. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: baseline;
}
.steps p { max-width: var(--measure); }
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--green);
}
.steps strong { display: block; font-size: 1.2rem; }
.aside { margin-top: 1.5rem; color: var(--muted); max-width: var(--measure); }

/* Privacy: the headline is the point. */
.privacy { background: var(--ink); color: var(--pavement); }
.privacy h2 {
  font-size: clamp(2.2rem, 8vw, 4.25rem);
  font-stretch: 85%;
  max-width: 16ch;
}
.privacy-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  max-width: var(--measure);
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.facts li {
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

/* Free, and the planned unlock behind roadworks tape. */
.price-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 60rem) {
  .price-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}
.features li {
  padding-left: 1.4rem;
  position: relative;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.15rem;
  background: var(--green);
}

.plus {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem 1.4rem;
  border-top: 0.9rem solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--hivis) 0 14px, var(--ink) 14px 28px) 14;
  display: grid;
  gap: 0.75rem;
}
.planned {
  font-weight: 700;
  justify-self: start;
  background: var(--hivis);
  color: #15222C;
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
}
.plus-list {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}
.plus-note { font-size: 0.95rem; color: var(--muted); }

/* Councils */
#council-area { margin-top: 1.25rem; }
#council-fallback { font-size: 1.3rem; font-weight: 700; }
.council-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.council-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 700;
}

/* Download: honest about not being there yet. */
.download p { max-width: var(--measure); margin-top: 1rem; }
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.store {
  display: grid;
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.4rem;
  line-height: 1.15;
  padding: 0.8rem 1.2rem;
  border: 2px dashed var(--muted);
  border-radius: 0.9rem;
  color: var(--ink);
  margin: 0;
}
.store span { font-family: var(--text); font-weight: 400; font-size: 0.95rem; color: var(--muted); }

.foot {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .bin.is-out { animation: none; }
}

/* 404 */
.missing { padding: clamp(2rem, 8vw, 5rem) var(--gutter); }
