:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --ink: #171714;
  --muted: #69645a;
  --line: rgba(24, 24, 22, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --green: #0e6b57;
  --green-soft: #e3f1ed;
  --yellow: #f2c94c;
  --blue: #007aff;
  --brown: #8b6a46;
  --dark: #17242b;
  --shadow: 0 18px 48px rgba(42, 38, 28, 0.13);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(242, 201, 76, 0.38), transparent 280px),
    linear-gradient(180deg, rgba(14, 107, 87, 0.17), transparent 360px),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 920px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 12px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--next-muted, var(--green));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  width: min(68vw, 420px);
  min-width: 220px;
  border-radius: 8px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 12ch;
  font-size: clamp(2.25rem, 10vw, 5.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 9vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

main {
  display: grid;
  gap: 14px;
}

.search-panel,
.filter-panel,
.notify-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.search-panel {
  padding: 16px;
}

.filter-panel {
  padding: 14px;
}

.search-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#cityBadge {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.75rem;
  font-weight: 900;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 58px;
  border: 2px solid rgba(24, 24, 22, 0.08);
  border-radius: 8px;
  outline: none;
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.12rem;
  font-weight: 750;
}

input:focus {
  border-color: rgba(14, 107, 87, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 107, 87, 0.12);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 800;
}

.input-row .icon-button {
  height: 58px;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.suggestions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.suggestion-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(14, 107, 87, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.suggestion-button:hover,
.suggestion-button:focus-visible {
  border-color: rgba(14, 107, 87, 0.55);
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 107, 87, 0.1);
}

.suggestion-name {
  overflow-wrap: anywhere;
  font-weight: 850;
}

.suggestion-district {
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.75rem;
  font-weight: 900;
}

.result-panel {
  min-height: 260px;
}

.empty-state {
  display: grid;
  min-height: 280px;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(14, 107, 87, 0.16);
  border-radius: 8px;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(227, 241, 237, 0.82)),
    rgba(255, 255, 255, 0.55);
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 1.6rem;
  font-weight: 900;
}

.empty-state p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.45;
}

.result-content {
  display: grid;
  gap: 14px;
}

.next-band {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 24px;
  color: var(--next-ink, #fff);
  background:
    var(--next-bg, linear-gradient(135deg, rgba(14, 107, 87, 0.98), rgba(26, 91, 86, 0.98) 58%, rgba(29, 29, 31, 0.96))),
    #0e6b57;
  box-shadow: var(--shadow);
}

.next-band::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border-radius: 48px;
  background: var(--next-shine, rgba(242, 201, 76, 0.22));
  transform: rotate(18deg);
}

.next-band > * {
  position: relative;
  z-index: 1;
}

.next-band .eyebrow,
.next-band .muted {
  color: var(--next-muted, rgba(255, 255, 255, 0.78));
}

.next-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.next-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 128px;
}

.next-visual .bin-icon {
  width: 42px;
  height: 48px;
}

.next-visual .bin-icon::before {
  height: 8px;
  top: -8px;
}

.next-visual .bin-icon::after {
  bottom: -5px;
  left: 8px;
  width: 7px;
  height: 7px;
  box-shadow: 20px 0 0 rgba(23, 23, 20, 0.72);
}

.type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  border-radius: 8px;
  padding: 7px 10px;
  color: #161613;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
}

.bin-icon {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 4px 4px 6px 6px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--bin) 74%, white), var(--bin));
  box-shadow: inset -5px -6px 0 rgba(0, 0, 0, 0.12), inset 3px 3px 0 rgba(255, 255, 255, 0.2);
}

.bin-icon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -3px;
  width: calc(100% + 6px);
  height: 6px;
  border-radius: 4px;
  background: var(--bin);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

.bin-icon::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(23, 23, 20, 0.72);
  box-shadow: 11px 0 0 rgba(23, 23, 20, 0.72);
}

.bin-icon--mini {
  width: 17px;
  height: 20px;
}

.bin-icon--mini::before {
  top: -5px;
  height: 5px;
}

.bin-icon--mini::after {
  left: 3px;
  width: 4px;
  height: 4px;
  box-shadow: 8px 0 0 rgba(23, 23, 20, 0.72);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  border-color: #171714;
  color: #171714;
  background: var(--yellow);
}

.secondary-action {
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

.action-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.calendar-note {
  margin: -4px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.section-head-tight {
  margin-top: 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(24, 24, 22, 0.1);
  border-radius: 8px;
  padding: 8px 9px;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 850;
}

.filter-button.is-active {
  border-color: rgba(23, 23, 20, 0.82);
  background: #fff;
  box-shadow: 0 8px 18px rgba(42, 38, 28, 0.12);
}

.notify-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(24, 24, 22, 0.07);
}

.segmented-button {
  display: grid;
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  place-items: center;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.15;
}

.segmented-button strong,
.segmented-button span {
  display: block;
}

.segmented-button strong {
  color: inherit;
  font-size: 0.84rem;
}

.segmented-button span {
  font-size: 0.78rem;
  font-weight: 750;
}

.segmented-button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 16px rgba(42, 38, 28, 0.12);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 2px 10px;
}

.section-head h3 {
  margin: 0;
}

.count-badge {
  min-width: 34px;
  border-radius: 999px;
  padding: 4px 9px;
  text-align: center;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.event-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.event-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(42, 38, 28, 0.06);
}

.date-chip {
  display: grid;
  width: 64px;
  height: 50px;
  border-radius: 8px;
  place-items: center;
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 900;
}

.date-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(24, 24, 22, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-pill[data-tone="yellow"] {
  background: rgba(242, 201, 76, 0.28);
}

.mini-pill[data-tone="blue"] {
  background: rgba(0, 122, 255, 0.13);
}

.mini-pill[data-tone="black"] {
  color: #fff;
  background: rgba(23, 36, 43, 0.84);
}

.mini-pill[data-tone="brown"] {
  color: #fff;
  background: rgba(139, 106, 70, 0.76);
}

.mini-pill[data-tone="green"] {
  background: rgba(52, 168, 83, 0.14);
}

footer {
  margin-top: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.footer-nav a,
.footer-nav button {
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

footer p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.landing-shell {
  width: min(100%, 1040px);
}

.landing-topbar {
  justify-content: center;
}

.landing-main {
  display: grid;
  gap: 18px;
}

.landing-hero {
  position: relative;
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 18px 0 12px;
}

.landing-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 2%;
  width: 96px;
  height: 116px;
  border-radius: 14px 14px 22px 22px;
  background: linear-gradient(145deg, #75d04d, #30a638);
  box-shadow:
    inset -18px -22px 0 rgba(0, 0, 0, 0.11),
    0 22px 44px rgba(14, 107, 87, 0.2);
  opacity: 0.2;
  transform: rotate(-8deg);
  pointer-events: none;
}

.landing-copy {
  display: grid;
  gap: 12px;
}

.landing-copy h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.7rem, 11vw, 6.8rem);
  line-height: 0.88;
}

.landing-copy p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  line-height: 1.45;
}

.city-search,
.seo-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.city-search {
  padding: 16px;
}

.city-description {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.seo-section {
  padding: 18px;
}

.intro-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(227, 241, 237, 0.72)),
    var(--panel);
}

.seo-section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 4vw, 2.4rem);
}

.seo-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feature-grid article {
  border: 1px solid rgba(24, 24, 22, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.feature-grid h3 {
  margin-bottom: 6px;
}

.keyword-cloud {
  margin-top: 12px;
  font-weight: 750;
}

.benefit-strip {
  display: grid;
  gap: 10px;
}

.benefit-strip article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(42, 38, 28, 0.08);
}

.benefit-strip span {
  display: inline-grid;
  min-width: 34px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  place-items: center;
  color: #171714;
  background: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
}

.benefit-strip h2 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 5vw, 2rem);
}

.benefit-strip p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.legal-page main {
  display: block;
}

.legal-hero,
.legal-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.legal-hero {
  padding: 20px;
  margin-bottom: 14px;
}

.legal-hero h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 9vw, 4.4rem);
}

.legal-content {
  padding: 18px;
}

.legal-content h2 {
  max-width: none;
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 4.6vw, 2rem);
  line-height: 1.1;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.58;
}

.legal-toc {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  margin: 0 0 18px;
}

.legal-content address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.58;
}

.legal-content a {
  color: var(--green);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  gap: 14px;
  width: min(920px, calc(100% - 24px));
  margin: 0 auto;
  border: 1px solid rgba(24, 24, 22, 0.16);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(23, 23, 20, 0.22);
  backdrop-filter: blur(24px);
}

.cookie-banner h2,
.cookie-dialog h2 {
  max-width: none;
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.cookie-banner p,
.cookie-dialog p,
.cookie-toggle span span {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-actions {
  display: grid;
  gap: 8px;
}

.cookie-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(23, 23, 20, 0.42);
}

.cookie-dialog {
  width: min(100%, 620px);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(23, 23, 20, 0.26);
}

.cookie-dialog .section-head {
  margin: 0 0 14px;
}

.cookie-option {
  display: grid;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  background: rgba(244, 241, 232, 0.42);
}

.cookie-option h3,
.cookie-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.cookie-required {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.cookie-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  cursor: pointer;
}

.cookie-toggle input {
  width: 24px;
  min-height: 24px;
  accent-color: var(--green);
}

@media (prefers-reduced-motion: no-preference) {
  .landing-copy,
  .city-search,
  .seo-section,
  .benefit-strip article {
    animation: rise-in 0.58s ease both;
  }

  .city-search {
    animation-delay: 0.08s;
  }

  .seo-section,
  .benefit-strip article {
    animation-delay: 0.14s;
  }

  .benefit-strip article:hover,
  .feature-grid article:hover {
    transform: translateY(-2px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-inline: 28px;
  }

  main {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }

  .search-panel {
    position: sticky;
    top: 18px;
  }

  .notify-panel {
    grid-template-columns: 1fr 230px;
    align-items: center;
  }

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

  .notify-panel .secondary-action {
    grid-column: 2;
  }

  .landing-main {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  }

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

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

  .cookie-banner {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
  }

  .cookie-option {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 430px) {
  .brand {
    width: min(72vw, 310px);
    min-width: 0;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .next-band {
    padding: 20px;
  }

  .next-head {
    grid-template-columns: 1fr;
  }

  .next-visual {
    order: -1;
    justify-content: flex-start;
    max-width: none;
  }

  .event-item {
    grid-template-columns: 58px 1fr;
  }

  .date-chip {
    width: 54px;
  }
}
