:root {
  --ink: #0a0a0a;
  --paper: #f2efe8;
  --muted: #9a958c;
  --line: rgba(242, 239, 232, 0.18);
  --red: #e10600;
  --amber: #f0a500;
  --blue: #4aa3ff;
  --green: #2ecc71;
  --panel: #111110;
  --field: #1a1917;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(225, 6, 0, 0.45);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.street-stage {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}

.street-parallax {
  position: absolute;
  inset: -6%;
  z-index: 0;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.street-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 1.2s ease;
  filter: saturate(1.05) contrast(1.05);
}

.street-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.street-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 32%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 0;
}

.wordmark {
  width: 118px;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.topbar-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(242, 239, 232, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.topbar-meta .sep {
  opacity: 0.55;
  font-size: 10px;
}

.pins {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pin {
  pointer-events: auto;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}

.pin-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}

.pin[data-kind="flood"] .pin-dot { background: var(--blue); }
.pin[data-kind="crime"] .pin-dot { background: #c77dff; }
.pin[data-kind="alert"] .pin-dot { background: var(--amber); }

.pin:hover .pin-dot,
.pin:focus-visible .pin-dot,
.pin.is-open .pin-dot {
  transform: scale(1.25);
}

.pin.is-live .pin-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 165, 0, 0.7);
  animation: ping 2s ease-out infinite;
}

.pin.is-live {
  position: absolute;
}

.pin.is-live .pin-dot {
  position: relative;
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.pin-card {
  position: absolute;
  z-index: 5;
  min-width: 160px;
  max-width: 200px;
  padding: 12px 14px;
  background: rgba(12, 12, 11, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
}

.pin-card-kind {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.pin-card[data-kind="flood"] .pin-card-kind { color: var(--blue); }
.pin-card[data-kind="crime"] .pin-card-kind { color: #c77dff; }
.pin-card[data-kind="alert"] .pin-card-kind { color: var(--amber); }

.pin-card-place {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pin-card-ago {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 4;
  padding: 0 22px;
  max-width: 560px;
  pointer-events: none;
}

.hero-copy .hero-actions,
.hero-copy .hero-actions a,
.hero-copy .hero-actions button {
  pointer-events: auto;
}

.place-line {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.7);
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.lede {
  margin: 0 0 22px;
  max-width: 36ch;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(242, 239, 232, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #fff;
}

.btn-primary.wide,
.btn-ghost.wide {
  width: 100%;
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.35);
  color: var(--paper);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(242, 239, 232, 0.4);
  background: rgba(0, 0, 0, 0.5);
}

.ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 40px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.ticker-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
  padding: 11px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(242, 239, 232, 0.78);
  animation: marquee 42s linear infinite;
}

.ticker-track span::before {
  content: "●";
  margin-right: 10px;
  color: var(--red);
  font-size: 8px;
  vertical-align: middle;
}

.ticker-track span[data-kind="flood"]::before { color: var(--blue); }
.ticker-track span[data-kind="alert"]::before { color: var(--amber); }
.ticker-track span[data-kind="ok"]::before { color: var(--green); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .pin.is-live .pin-dot::after,
  .street-img {
    animation: none !important;
    transition: none !important;
  }

  .street-parallax {
    transition: none !important;
  }
}

.below {
  position: relative;
  z-index: 2;
  background: var(--ink);
  padding: 48px 20px calc(28px + env(safe-area-inset-bottom, 0px));
}

.panel {
  width: min(440px, 100%);
  margin: 0 auto;
}

.panel[hidden] {
  display: none !important;
}

.panel-head h2,
#view-thanks h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.panel-head p,
.thanks-copy {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.panel-head strong {
  color: var(--paper);
  font-weight: 600;
}

.join-form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.field span em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.7;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(242, 239, 232, 0.12);
  background: var(--field);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
}

.field input:focus {
  border-color: rgba(225, 6, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.15);
}

.field input::placeholder {
  color: #5c5850;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.error {
  margin: 0;
  font-size: 13px;
  color: #ff6b63;
}

.fineprint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

#status-hint {
  margin-top: 8px;
}

#status-hint.error {
  color: #ff6b63;
}

.check-spot {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 239, 232, 0.1);
}

#view-check-email .thanks-copy strong {
  color: var(--paper);
  word-break: break-all;
}

.check-email-spam {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(240, 165, 0, 0.35);
  background: rgba(240, 165, 0, 0.12);
}

.check-email-spam-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

.check-email-spam p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(242, 239, 232, 0.88);
}

.check-email-spam strong {
  color: var(--paper);
}

.test-mode-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(240, 165, 0, 0.45);
  background: rgba(240, 165, 0, 0.14);
  color: rgba(242, 239, 232, 0.95);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

#view-check-email .btn-ghost,
#view-check-email .fineprint,
#view-check-email .error,
#view-check-email .text-link {
  margin-top: 12px;
}

#view-check-email .text-link {
  display: inline-block;
  margin-top: 20px;
}

.check-spot-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.thanks-kicker {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.queue-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  margin-bottom: 18px;
  border-top: 1px solid rgba(242, 239, 232, 0.1);
  border-bottom: 1px solid rgba(242, 239, 232, 0.1);
}

.queue-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.queue-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.boost-card {
  padding: 16px 0 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(242, 239, 232, 0.1);
}

.boost-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.boost-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.boost-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.boost-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--field);
  overflow: hidden;
  margin-bottom: 10px;
}

.boost-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--red));
  transition: width 0.4s ease;
}

.boost-meta,
.boost-next {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.boost-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.boost-stat {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--field);
  border: 1px solid rgba(242, 239, 232, 0.1);
}

.boost-stat--confirmed {
  border-color: rgba(46, 204, 113, 0.28);
}

.boost-stat--pending {
  border-color: rgba(240, 165, 0, 0.28);
}

.boost-stat-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.boost-stat--confirmed .boost-stat-num {
  color: var(--green);
}

.boost-stat--pending .boost-stat-num {
  color: var(--amber);
}

.boost-stat-label {
  display: grid;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.boost-stat-label em {
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #6f6a62;
}

.boost-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.boost-hint strong {
  color: var(--paper);
  font-weight: 600;
}

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

.boost-perks li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--field);
  border: 1px solid rgba(242, 239, 232, 0.08);
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.boost-perks li.is-unlocked {
  opacity: 1;
  border-color: rgba(240, 165, 0, 0.35);
}

.boost-perks li.is-next {
  opacity: 0.85;
  border-color: rgba(242, 239, 232, 0.18);
}

.perk-at {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(242, 239, 232, 0.08);
  color: var(--muted);
}

.boost-perks li.is-unlocked .perk-at {
  background: rgba(240, 165, 0, 0.2);
  color: var(--amber);
}

.perk-copy {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.boost-perks li.is-unlocked .perk-copy {
  color: var(--paper);
}

.perk-spots {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.boost-perks li.is-unlocked .perk-spots {
  color: var(--amber);
}

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

.gift {
  padding: 18px 0 8px;
  margin-bottom: 18px;
}

.gift.muted {
  opacity: 0.95;
}

.gift-kicker {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.gift h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gift p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.gift strong {
  color: var(--amber);
}

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

.gift-list li {
  padding: 10px 12px;
  border-left: 2px solid var(--amber);
  background: var(--field);
  font-size: 14px;
}

.share {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.share-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.share code {
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: var(--field);
  border: 1px solid rgba(242, 239, 232, 0.1);
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--blue);
}

.text-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.site-footer {
  padding: 8px 20px calc(36px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.from,
.by {
  font-size: 12px;
  color: var(--muted);
}

.proxx {
  height: 12px;
  width: auto;
  opacity: 0.9;
}

.dot {
  color: #3a3834;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.footer-inner a:hover {
  color: var(--paper);
}

.photo-credit {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #5c5850;
}

.photo-credit a {
  color: #7a756c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-shell {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 40px 22px 48px;
}

.privacy-shell .wordmark {
  width: 100px;
  margin-bottom: 28px;
}

.privacy-shell h1 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.privacy-shell p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.privacy-shell p a {
  color: var(--blue);
}

.legal-shell {
  width: min(760px, 100%);
}

.legal-shell .eyebrow {
  margin-bottom: 8px;
  color: #6f6b64;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-language-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  color: #6f6b64;
  font-family: var(--mono);
  font-size: 12px;
}

.legal-language-switch a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.legal-language-switch span[aria-current="true"] {
  color: var(--paper);
}

.legal-shell h2 {
  margin: 34px 0 12px;
  font-size: 20px;
  line-height: 1.25;
}

.legal-shell p {
  margin-bottom: 16px;
}

.legal-shell ul,
.legal-shell ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-shell li + li {
  margin-top: 8px;
}

.legal-table-wrap {
  margin: 0 0 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.legal-table th,
.legal-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--paper);
  font-size: 12px;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 36px 0 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-nav a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 860px) {
  .hero-copy {
    padding: 0 48px;
    bottom: 80px;
  }

  .topbar {
    padding: 24px 48px 0;
  }

  .wordmark {
    width: 132px;
  }

  .below {
    padding: 64px 48px 40px;
  }
}

@media (max-width: 640px) {
  .pin {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
  }

  .pin[data-kind="crime"] {
    left: 72%;
    top: 42%;
  }
}

@media (max-width: 420px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
  }

  .pin-card {
    max-width: min(200px, calc(100vw - 44px));
  }
}
