/* Local Bins website styles (Kerbside). Tokens come from /kerbside.css.
   The alias block below is the only rule that reads --kb-* names (web spec D7). */
:root {
  --page: var(--kb-footpath);
  --card: var(--kb-kerb);
  --card-soft: var(--kb-surface);
  --rule: var(--kb-line);
  --rule-soft: var(--kb-line-soft);
  --text: var(--kb-ink);
  --text-2: var(--kb-ink-2);
  --brand: var(--kb-gum);
  --brand-deep: var(--kb-gum-deep);
  --brand-wash: var(--kb-gum-wash);
  --on-brand: var(--kb-on-gum);
  --night: var(--kb-amber);
  --night-ink: var(--kb-amber-ink);
  --night-wash: var(--kb-amber-wash);
  --sponsor-wash: var(--kb-rose);
  --sponsor-ink: var(--kb-rose-ink);
  --danger: var(--kb-danger);
  --focus: var(--kb-gum);
  --lid-general: var(--kb-lid-general);
  --lid-recycling: var(--kb-lid-recycling);
  --lid-green-waste: var(--kb-lid-green-waste);
  --lid-fogo: var(--kb-lid-fogo);
  --lid-glass: var(--kb-lid-glass);
  --bin-body: var(--kb-bin-body);
  --bin-rib: var(--kb-bin-rib);
  --bin-wheel: var(--kb-bin-wheel);
  --font-display: var(--kb-font-display);
  --font-body: var(--kb-font-body);
  --font-mono: var(--kb-font-mono);
  --space-1: var(--kb-space-1);
  --space-2: var(--kb-space-2);
  --space-3: var(--kb-space-3);
  --space-4: var(--kb-space-4);
  --space-5: var(--kb-space-5);
  --space-6: var(--kb-space-6);
  --space-7: var(--kb-space-7);
  --radius-control: var(--kb-radius-control);
  --radius-row: var(--kb-radius-row);
  --radius-card: var(--kb-radius-card);
  --radius-pill: var(--kb-radius-pill);
}

:root {
  --shadow-1: 0 1px 2px rgb(23 32 27 / 0.06), 0 8px 24px rgb(23 32 27 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/overpass-latin-wght-normal.woff2?v=29217ef8adef") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2?v=18b2a1a39a2f") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2?v=2706b1ee4f45") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-5);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-deep);
  text-decoration-thickness: 2px;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-4);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.ic {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--page);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  display: block;
  width: 30px;
  height: 30px;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
}

.site-nav ul,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}

/* The nav sits on its own row under the brand until 1000 px (marketing-site §3 G1). */
@media (min-width: 1000px) {
  .site-nav {
    order: 0;
    flex-basis: auto;
    margin-left: auto;
  }
}

.site-footer {
  margin-top: var(--space-7);
  padding-block: var(--space-6);
  border-top: 1px solid var(--rule);
  background: var(--card-soft);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: var(--space-4);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.disclaimer {
  max-width: 75ch;
}

.lidstripe {
  display: inline-flex;
  gap: 3px;
}

.lidstripe i {
  display: block;
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--lid);
}

/* Buttons and pills */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.button-primary:hover {
  background: var(--brand-deep);
  color: var(--on-brand);
}

.button-ghost {
  border-color: var(--rule);
  background: transparent;
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--text-2);
  color: var(--text);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 700;
}

.eyebrow,
.step-num,
.example-tag,
.updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow,
.step-num {
  color: var(--brand);
}

/* Page structure */

.hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7);
}

.hero h1 {
  margin-block: var(--space-3) var(--space-4);
}

.lead {
  max-width: 46ch;
  color: var(--text-2);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero-note {
  margin-top: var(--space-3);
  color: var(--text-2);
  font-size: 0.9375rem;
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-7);
  }
}

.section {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-7);
}

.section-head {
  display: grid;
  gap: var(--space-3);
  max-width: 65ch;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h2 {
    font-size: 1.75rem;
  }
}

.page-head {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-7) var(--space-5);
}

/* The measure sits on the head's children, so the head starts on the same line as the body
   below it at every width (marketing-site Task 10). */
.page-head > * {
  max-width: 65ch;
}

.page-head h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.policy {
  display: grid;
  gap: var(--space-7);
}

.policy > section {
  display: grid;
  gap: var(--space-3);
  max-width: 70ch;
}

.policy-list {
  display: grid;
  gap: var(--space-2);
  padding-left: 1.25em;
}

.link-list {
  display: grid;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Cards and Kerbside parts */

.card {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.stamp .ic,
.stamp-heading .ic {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.stamp-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1rem;
}

.bin {
  display: block;
  flex: none;
}

.bin .bin-body {
  fill: var(--bin-body);
}

.bin .bin-rib {
  fill: none;
  stroke: var(--bin-rib);
  stroke-linecap: round;
  stroke-width: 2.4;
}

.bin .bin-wheel {
  fill: var(--bin-wheel);
}

.bin .bin-lid {
  fill: var(--lid, var(--text-2));
}

.lid-general {
  --lid: var(--lid-general);
}

.lid-recycling {
  --lid: var(--lid-recycling);
}

.lid-green-waste {
  --lid: var(--lid-green-waste);
}

.lid-fogo {
  --lid: var(--lid-fogo);
}

.lid-glass {
  --lid: var(--lid-glass);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
}

.chip .bin {
  width: 14px;
  height: 17px;
}

.example-tag {
  justify-self: start;
  padding: 2px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  color: var(--text-2);
}

.bin-card {
  display: grid;
  gap: var(--space-3);
  max-width: 420px;
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.bin-card-tonight {
  justify-self: start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--night-wash);
  color: var(--night-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.bin-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.bin-card-meta {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.sponsor-card {
  display: grid;
  gap: var(--space-2);
  max-width: 420px;
  padding: var(--space-4);
  border-radius: var(--radius-row);
  background: var(--sponsor-wash);
  color: var(--text);
}

.sponsor-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-2);
  font-size: 0.875rem;
}

.sponsor-top .ic {
  margin-left: auto;
}

.sponsor-badge {
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: var(--sponsor-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sponsor-title {
  font-weight: 700;
}

.sponsor-why {
  color: var(--text-2);
  font-size: 0.8125rem;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-row);
  background: var(--night-wash);
  color: var(--text);
}

.notice .ic {
  margin-top: 3px;
  color: var(--night-ink);
}

.steps {
  display: grid;
  gap: var(--space-5);
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 2px solid var(--text);
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.steps p {
  color: var(--text-2);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: 18px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

.trust-band .ic {
  width: 24px;
  height: 24px;
}

.trust-aside {
  font-size: 0.9375rem;
  font-weight: 400;
}

@media (min-width: 720px) {
  .trust-aside {
    margin-left: auto;
  }
}

.points {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.points .ic {
  margin-top: 4px;
  color: var(--brand);
}

/* Night scene (decorative, fixed night colours in both themes) */

.night-scene {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #14202C, #22314A 55%, #5A4A55);
}

.night-scene .moon {
  position: absolute;
  top: 34px;
  left: 40px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F3E6C8;
  box-shadow: 0 0 34px 6px rgb(243 230 200 / 0.35);
}

.night-scene .scene-time {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #ECF0EB;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.night-scene .lamp {
  position: absolute;
  right: 40px;
  bottom: 52px;
  width: 30px;
  height: 116px;
  transform: scale(1.8);
  transform-origin: bottom right;
}

.lamp i {
  position: absolute;
  display: block;
}

.lamp .lamp-glow {
  top: 16px;
  right: 13px;
  width: 44px;
  height: 90px;
  background: radial-gradient(ellipse at top, rgb(255 181 71 / 0.22), transparent 70%);
}

.lamp .lamp-pole {
  right: 13px;
  bottom: 0;
  width: 4px;
  height: 100px;
  border-radius: 2px;
  background: #3A4741;
}

.lamp .lamp-arm {
  top: 14px;
  right: 13px;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #3A4741;
}

.lamp .lamp-head {
  top: 13px;
  right: 28px;
  width: 14px;
  height: 7px;
  border-radius: 7px 7px 2px 2px;
  background: #FFB547;
  box-shadow: 0 0 24px 8px rgb(255 181 71 / 0.45);
}

.night-scene .scene-bins {
  position: absolute;
  bottom: 52px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.night-scene .bin {
  width: 56px;
  height: 68px;
}

.night-scene .bin .bin-body {
  fill: #3B4842;
}

.night-scene .bin .bin-wheel {
  fill: #050706;
}

.night-scene .scene-bin-waiting {
  opacity: 0.45;
}

.night-scene .ground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52px;
  border-top: 5px solid #4A5852;
  background: #2B3631;
}

@media (min-width: 720px) {
  .night-scene {
    height: 340px;
  }

  .night-scene .lamp {
    transform: scale(2.2);
  }

  .night-scene .bin {
    width: 70px;
    height: 85px;
  }
}

/* Tables */

.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.fact-table caption {
  padding-bottom: var(--space-2);
  font-weight: 700;
  text-align: left;
}

.fact-table th,
.fact-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.fact-table thead th {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 719px) {
  .fact-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .fact-table tr,
  .fact-table th,
  .fact-table td {
    display: block;
  }

  .fact-table tr {
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--rule);
  }

  .fact-table th,
  .fact-table td {
    padding: var(--space-1) 0;
    border: 0;
  }

  .fact-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--text);
    font-weight: 700;
  }
}

/* Sponsor form */

.sponsor-form {
  display: grid;
  gap: var(--space-4);
  max-width: 640px;
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--card);
}

@media (min-width: 480px) {
  .sponsor-form {
    padding: var(--space-5);
  }
}

.form-fields {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: var(--space-1);
}

.field label,
.field-label {
  font-weight: 700;
}

.hint,
.form-note {
  color: var(--text-2);
  font-size: 0.875rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3);
  border: 1px solid var(--text-2);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border: 2px solid var(--danger);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 700;
}

.field-error::before {
  content: "!";
  content: "!" / "";
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.15em;
  border-radius: 50%;
  background: var(--danger);
  color: var(--card);
  font-size: 0.875em;
  font-weight: 800;
}

.error-summary {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 2px solid var(--danger);
  border-radius: var(--radius-row);
}

.error-summary ul {
  display: grid;
  gap: var(--space-1);
  padding-left: 1.25em;
}

.turnstile-slot {
  min-height: 65px;
}

.form-status {
  min-height: 1.5em;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--brand);
}

.form-status.is-error {
  color: var(--danger);
}

/* Preferences */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  .button,
  .site-nav a {
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
  }
}

@media (prefers-contrast: more) {
  :root {
    --rule: var(--text-2);
    --shadow-1: none;
  }

  .button-ghost,
  .app-pill {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .button,
  .chip,
  .app-pill,
  .card,
  .bin-card,
  .sponsor-card,
  .notice,
  .trust-band,
  .example-tag {
    border: 1px solid CanvasText;
  }

  :focus-visible {
    outline-color: Highlight;
  }

  .bin .bin-lid,
  .lidstripe i {
    forced-color-adjust: none;
  }
}
