/* ─────────────────────────────────────────────────────────────
   FindaSpot — night-drive signage aesthetic
   Freeman (display) · SN Pro (body) · Cutive (meter accents)
   ───────────────────────────────────────────────────────────── */

:root {
  --asphalt: #0f1114;
  --surface: #171a20;
  --surface-2: #1f242c;
  --line: #2b323c;
  --ink: #f2f1ec;
  --muted: #9aa3ad;
  --curb: #ffd23f;         /* meter yellow */
  --curb-deep: #e6b520;
  --sign: #37c978;         /* parking-sign green */
  --nope: #ff5a48;         /* tow-away red */
  --water: #17475d;
  --display: "Freeman", system-ui, sans-serif;
  --body: "SN Pro", system-ui, sans-serif;
  --meter: "Cutive", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--asphalt);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--curb); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--meter); font-size: 0.85em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

::selection { background: var(--curb); color: var(--asphalt); }

/* ── lane-line divider trick ── */
.lane-divider,
.section-title::after {
  content: "";
  display: block;
  height: 4px;
  margin-top: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--curb) 0 26px,
    transparent 26px 46px
  );
  border-radius: 2px;
  opacity: 0.6;
  max-width: 220px;
}

/* ── header / nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--asphalt) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.psign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--sign);
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2.5px var(--sign), 0 4px 14px rgb(0 0 0 / 0.4);
}

.psign.sm { width: 26px; height: 26px; font-size: 16px; border-width: 2px; box-shadow: 0 0 0 2px var(--sign); }

.brand-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--curb); }

.nav-links { display: flex; gap: 6px; flex: 1; }

.nav-link {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link.active { color: var(--curb); background: var(--surface); }

.nav-user { display: flex; align-items: center; gap: 10px; }
.user-chip {
  font-family: var(--meter);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--curb);
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--curb);
  color: #16130a;
  box-shadow: 0 6px 20px rgb(255 210 63 / 0.22);
}
.btn-primary:hover { background: #ffe071; box-shadow: 0 8px 26px rgb(255 210 63 / 0.32); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--curb); color: var(--curb); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-ghost.danger:hover { color: var(--nope); background: rgb(255 90 72 / 0.1); }

.btn-lg { font-size: 18px; padding: 15px 30px; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: 7px 14px; border-radius: 8px; }

.btn:focus-visible, a:focus-visible, .pin:focus-visible {
  outline: 2px solid var(--curb);
  outline-offset: 2px;
}

/* ── layout ── */
main { max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }

.page { animation: pageIn 0.35s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.page-head { padding: 46px 0 10px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.page-title { font-family: var(--display); font-size: clamp(34px, 5vw, 52px); letter-spacing: 0.5px; }
.page-sub { color: var(--muted); font-size: 17px; width: 100%; }
.result-count { font-family: var(--meter); font-size: 13px; color: var(--muted); }

.section-title {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.wizard-homage { font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 10px; }

/* ── hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 40px;
}

.kicker {
  font-family: var(--meter);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sign);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-title .accent {
  color: var(--curb);
  text-shadow: 0 0 42px rgb(255 210 63 / 0.35);
}

.hero-sub { margin: 22px 0 30px; color: var(--muted); font-size: 18px; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-family: var(--meter); font-size: 12.5px; color: var(--muted); opacity: 0.8; }

/* hero art: the road */
.hero-art { min-height: 300px; display: flex; align-items: center; }
.road {
  position: relative;
  width: 100%;
  height: 130px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.road-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 5px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--curb) 0 34px, transparent 34px 64px);
  animation: roadScroll 1.6s linear infinite;
  opacity: 0.85;
}
@keyframes roadScroll { to { background-position: -64px 0; } }

.car { position: absolute; left: 12%; top: 24px; width: 108px; height: 44px; animation: carBob 2.2s ease-in-out infinite; }
@keyframes carBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.car-body {
  position: absolute; inset: 8px 0 6px;
  background: var(--nope);
  border-radius: 14px 18px 8px 8px;
}
.car-window {
  position: absolute; top: 0; left: 22px;
  width: 46px; height: 20px;
  background: var(--surface-2);
  border: 3px solid var(--nope);
  border-bottom: none;
  border-radius: 12px 14px 0 0;
}
.car-wheel {
  position: absolute; bottom: -4px;
  width: 18px; height: 18px;
  background: #0a0b0d;
  border: 4px solid #3a414b;
  border-radius: 50%;
  animation: wheelSpin 0.7s linear infinite;
}
@keyframes wheelSpin { to { transform: rotate(360deg); } }
.car-wheel.front { right: 12px; }
.car-wheel.back { left: 12px; }

.road .psign {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-72%);
  animation: signPulse 2.6s ease-in-out infinite;
}
@keyframes signPulse {
  0%,100% { box-shadow: 0 0 0 2.5px var(--sign), 0 0 0 rgb(55 201 120 / 0); }
  50% { box-shadow: 0 0 0 2.5px var(--sign), 0 0 26px rgb(55 201 120 / 0.55); }
}

/* ── stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 26px 0 10px;
}
.stat-tile {
  --tone: var(--curb);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-spots { --tone: var(--sign); }
.stat-hours { --tone: var(--curb); }
.stat-drivers { --tone: var(--nope); }
.stat-earned { --tone: #57b7d8; }

.stat-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
}
.stat-icon svg { width: 24px; height: 24px; }

.stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-num {
  font-family: var(--display);
  font-size: 34px;
  color: var(--tone);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-family: var(--meter); font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

/* ── how it works ── */
.how { padding: 56px 0 8px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.18s, border-color 0.18s;
}
.how-card:hover { transform: translateY(-3px); border-color: var(--curb-deep); }
.how-num { font-family: var(--meter); color: var(--sign); font-size: 13px; letter-spacing: 2px; }
.how-card h3 { font-family: var(--display); font-size: 22px; margin: 10px 0 8px; letter-spacing: 0.4px; }
.how-card p { color: var(--muted); font-size: 15px; }

/* ── spot cards ── */
.featured { padding: 56px 0 8px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.spot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.spot-card.hot,
.spot-card:hover { border-color: var(--curb); transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
.spot-card.booked { opacity: 0.55; }
.spot-card.booked:hover { transform: none; border-color: var(--line); box-shadow: none; }

.spot-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.spot-name { font-family: var(--display); font-size: 20px; letter-spacing: 0.4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spot-rate { font-family: var(--meter); color: var(--curb); font-size: 17px; white-space: nowrap; }
.spot-rate small { color: var(--muted); font-size: 11px; }
.spot-address { font-family: var(--meter); font-size: 12.5px; color: var(--sign); margin-top: 4px; }
.spot-desc { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.spot-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
}
.tag.owner { color: var(--ink); }

.og-badge {
  font-family: var(--meter);
  font-size: 10.5px;
  background: var(--curb);
  color: #16130a;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  transform: rotate(-2deg);
}
.og-badge.inline { display: inline-block; margin: 0 2px; }

.spot-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.booked-label { color: var(--nope); font-weight: 700; font-size: 14px; }
.earn-label { font-family: var(--meter); font-size: 13px; color: var(--sign); }

/* ── demo note ── */
.demo-note {
  margin-top: 64px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px dashed var(--curb-deep);
  border-radius: 14px;
  padding: 22px 24px;
}
.demo-note-badge {
  font-family: var(--meter);
  background: var(--curb);
  color: #16130a;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 5px 10px;
  border-radius: 6px;
  transform: rotate(-3deg);
  flex-shrink: 0;
}
.demo-note p { color: var(--muted); font-size: 14.5px; }

/* ── find layout ── */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0 22px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--meter);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.field-input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 9px;
  width: 100%;
}
.field-input:focus { outline: none; border-color: var(--curb); }
select.field-input { cursor: pointer; }
textarea.field-input { resize: vertical; }

.rate-out, .slider-field output { color: var(--curb); font-family: var(--meter); text-transform: none; }

.slider {
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-top: 10px;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--curb);
  border: 3px solid var(--asphalt);
  box-shadow: 0 0 0 1.5px var(--curb);
  cursor: grab;
}
.slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--curb);
  border: 3px solid var(--asphalt);
  box-shadow: 0 0 0 1.5px var(--curb);
  cursor: grab;
}

.find-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}

.map-panel {
  position: sticky;
  top: 86px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}

.map-legend {
  display: flex;
  gap: 18px;
  padding: 10px 12px 6px;
  font-family: var(--meter);
  font-size: 12px;
  color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-pin { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend-pin.open { background: var(--sign); }
.legend-pin.taken { background: #4a525d; }
.legend-pin.ogdot { background: var(--curb); }

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* ── the map itself ── */
.citymap { width: 100%; height: auto; display: block; border-radius: 10px; }
.citymap.placing { cursor: crosshair; }

.map-ground { fill: #14171c; }
.map-wave {
  fill: none;
  stroke: #2c6b86;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.6;
  animation: waveDrift 5s ease-in-out infinite;
}
@keyframes waveDrift {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(9px); }
}
.map-water-label { fill: #4b8aa6; font-family: var(--meter); font-size: 15px; letter-spacing: 6px; }
.map-pier { fill: #23303a; }

.map-wheel-rim { fill: none; stroke: #57b7d8; stroke-width: 2.4; }
.map-wheel-spoke { stroke: #57b7d8; stroke-width: 1; opacity: 0.7; }
.map-wheel-hub { fill: #9adcf2; }
.map-wheel { animation: wheelTurn 26s linear infinite; transform-origin: 84px 300px; }
@keyframes wheelTurn { to { transform: rotate(360deg); } }

.map-ferry { animation: ferryRun 34s linear infinite; }
@keyframes ferryRun {
  0% { transform: translate(30px, 700px); }
  50% { transform: translate(95px, 80px); }
  100% { transform: translate(30px, 700px); }
}
.map-ferry-hull { fill: #d8e6ec; }
.map-ferry-cabin { fill: #4e9d5c; }

.map-block { fill: #1d232b; stroke: #262e38; stroke-width: 1; }
.map-block.park { fill: #1d3527; stroke: #2b4d38; }
.map-block.market { fill: #3a2326; stroke: #57323a; }
.map-tree { fill: #2f7a4c; opacity: 0.85; }

.map-road { stroke: #2c343f; stroke-width: 14; stroke-linecap: round; }
.map-road-dash {
  stroke: #4c5766;
  stroke-width: 1.6;
  stroke-dasharray: 10 12;
  opacity: 0.7;
}
.map-street-label {
  fill: #6b7684;
  font-family: var(--meter);
  font-size: 10.5px;
  letter-spacing: 1.5px;
}
.map-poi-label { fill: #6f9c85; font-family: var(--meter); font-size: 11px; }
.map-poi-label.market { fill: #c98a95; font-size: 12px; }
.map-poi-label.mono { fill: #5b6672; letter-spacing: 1px; font-size: 9.5px; }

.map-monorail {
  stroke: #3d4753;
  stroke-width: 4;
  stroke-dasharray: 16 10;
  fill: none;
  opacity: 0.8;
}

.map-compass circle { fill: var(--surface-2); stroke: var(--line); }
.map-compass path { fill: var(--curb); }
.map-compass-n { fill: var(--muted); font-family: var(--meter); font-size: 11px; }

/* pins */
.pin { cursor: pointer; }
.pin .pin-body { fill: var(--sign); stroke: #fff; stroke-width: 2.2; transition: fill 0.15s; }
.pin.og .pin-body { fill: var(--curb-deep); }
.pin .pin-p { fill: #fff; font-family: var(--display); font-size: 13px; pointer-events: none; }
.pin .pin-halo {
  fill: var(--sign);
  opacity: 0;
  animation: haloPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.pin.og .pin-halo { fill: var(--curb); }
@keyframes haloPulse {
  0% { opacity: 0.45; transform: scale(0.6); }
  70% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}
.pin .pin-flag { opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; pointer-events: none; }
.pin:hover .pin-flag, .pin.selected .pin-flag, .pin:focus-visible .pin-flag { opacity: 1; transform: none; }
.pin-flag-bg { fill: var(--asphalt); stroke: var(--curb); stroke-width: 1.4; }
.pin-flag-text { fill: var(--curb); font-family: var(--meter); font-size: 12px; }

.pin.booked { cursor: not-allowed; }
.pin.booked .pin-body { fill: #4a525d; }
.pin.booked .pin-halo { display: none; }
.pin.selected .pin-body { fill: var(--curb); }
.pin.selected .pin-p { fill: #16130a; }

.map-ghost-pin .pin-body { fill: var(--curb); stroke: #fff; stroke-width: 2; opacity: 0.75; }
.map-ghost-pin .pin-p { fill: #16130a; font-family: var(--display); font-size: 13px; }

/* ── empty states ── */
.empty-state {
  text-align: center;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.empty-state.big { padding: 70px 24px; margin-top: 26px; }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state .btn { margin-top: 18px; }

/* ── modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(6 8 10 / 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.22s;
}
.modal-overlay.show { opacity: 1; }

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  width: min(480px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
}
.modal.wide { width: min(600px, 100%); }
.modal-overlay.show .modal { transform: none; }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}
.modal-close:hover { color: var(--ink); background: var(--surface-2); }

.modal-kicker {
  font-family: var(--meter);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sign);
  margin-bottom: 8px;
}
.modal-title { font-family: var(--display); font-size: 28px; letter-spacing: 0.4px; }
.modal-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 20px; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.auth-form .field { margin-top: 6px; }

.reserve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.reserve-form .slider-field { margin-bottom: 18px; }

.price-breakdown { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.price-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 14.5px; }
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  font-weight: 700;
}
.total-num { font-family: var(--display); font-size: 30px; color: var(--curb); }

/* ── the parking pass ── */
.ticket-wrap { text-align: left; }
.ticket {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  background: var(--ink);
  color: #16130a;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 14px;
  transform: rotate(-1deg);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.45);
}

.ticket-main { padding: 26px; }
.ticket-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--meter);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5a5648;
  margin-bottom: 14px;
}
.ticket-spot { font-family: var(--display); font-size: 30px; letter-spacing: 0.4px; }
.ticket-addr { font-family: var(--meter); font-size: 13px; color: #6c8a54; margin: 4px 0 18px; }

.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.ticket-meta-item { display: flex; flex-direction: column; }
.tm-label { font-family: var(--meter); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #8a8574; }
.tm-value { font-weight: 800; font-size: 16px; }

.ticket-stub {
  position: relative;
  padding: 26px 20px;
  background: var(--curb);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
/* perforation */
.ticket-stub::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-image: radial-gradient(circle at 1px 8px, var(--surface) 4.5px, transparent 5px);
  background-size: 2px 22px;
  background-repeat: repeat-y;
}
.ticket-code {
  font-family: var(--meter);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #16130a;
}
.ticket-barcode {
  width: 90%;
  height: 44px;
  background: repeating-linear-gradient(
    90deg,
    #16130a 0 2px, transparent 2px 5px,
    #16130a 5px 9px, transparent 9px 11px,
    #16130a 11px 12px, transparent 12px 16px,
    #16130a 16px 19px, transparent 19px 24px
  );
}
.ticket-fine { font-family: var(--meter); font-size: 9px; color: #6e5c14; letter-spacing: 0.4px; }

/* ── passes page ── */
.pass-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.pass-stub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--sign);
  border-radius: 12px;
  padding: 18px 22px;
}
.pass-stub.cancelled { border-left-color: var(--line); opacity: 0.55; }
.pass-code { font-family: var(--meter); font-size: 12.5px; color: var(--curb); letter-spacing: 1.5px; }
.pass-stub h3 { font-family: var(--display); font-size: 20px; margin: 3px 0; letter-spacing: 0.3px; }
.pass-when { color: var(--muted); font-size: 14px; font-family: var(--meter); font-size: 12.5px; }
.cancelled-label { font-family: var(--meter); font-size: 12px; color: var(--muted); }

/* ── wizard ── */
.wizard {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}
.wizard-dots { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.wizard-dot {
  font-family: var(--meter);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.wizard-dot.on { border-color: var(--curb); color: var(--curb); background: rgb(255 210 63 / 0.07); }
.wizard-dot.done { border-color: var(--sign); color: var(--sign); }

.wizard-hint { font-family: var(--meter); font-size: 13px; color: var(--sign); margin-bottom: 14px; }
.wizard-map { background: var(--surface-2); border-radius: 12px; padding: 8px; }
.wizard-actions { display: flex; gap: 12px; margin-top: 22px; }
.wizard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.wizard-step .slider-field { margin-bottom: 18px; }
.review-card { max-width: 460px; }

/* ── dashboard ── */
.dashboard { margin-top: 46px; }
.dash-empty { color: var(--muted); }
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.week-chart {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.chart-title { font-family: var(--meter); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.week-bars { display: flex; align-items: flex-end; gap: 12px; height: 118px; }
.week-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.week-bar {
  width: 100%;
  max-width: 46px;
  background: var(--curb);
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}
.week-col:hover .week-bar { background: #ffe071; }
.week-val { font-family: var(--meter); font-size: 11px; color: var(--muted); opacity: 0; transition: opacity 0.15s; }
.week-col:hover .week-val { opacity: 1; }
.week-day { font-family: var(--meter); font-size: 11px; color: var(--muted); }

.dash-spots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }

/* ── activity feed ── */
.activity { margin-top: 56px; }
.activity-list { list-style: none; display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--line);
  animation: pageIn 0.3s ease both;
}
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.kind-book .activity-dot, .kind-sim .activity-dot { background: var(--sign); }
.kind-earn .activity-dot { background: var(--curb); box-shadow: 0 0 10px rgb(255 210 63 / 0.6); }
.kind-list .activity-dot { background: #57b7d8; }
.kind-cancel .activity-dot { background: var(--nope); }
.activity-text { flex: 1; font-size: 14.5px; color: var(--ink); }
.kind-sim .activity-text { color: var(--muted); }
.activity-time { font-family: var(--meter); font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ── story ── */
.story-text { max-width: 70ch; display: flex; flex-direction: column; gap: 16px; padding: 10px 0 30px; color: var(--muted); font-size: 17px; }
.story-text p:first-child::first-letter {
  font-family: var(--display);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  margin: 4px 10px 0 0;
  color: var(--curb);
}

.team { padding: 30px 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--curb-deep); }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.85); }
.team-card h3 { font-family: var(--display); font-size: 19px; padding: 16px 18px 0; letter-spacing: 0.3px; }
.team-card p { color: var(--muted); font-size: 13.5px; padding: 8px 18px 14px; flex: 1; }
.team-card .btn { margin: 0 18px 18px; align-self: flex-start; }

.rebuild { padding: 26px 0 10px; max-width: 76ch; }
.rebuild > p { color: var(--muted); font-size: 16.5px; margin-bottom: 24px; }
.rebuild strong { color: var(--ink); }

.stack-compare { overflow-x: auto; }
.stack-compare table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.stack-compare th, .stack-compare td { padding: 13px 18px; text-align: left; font-size: 14.5px; }
.stack-compare thead th {
  font-family: var(--meter);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}
.stack-compare tbody th { font-weight: 700; color: var(--ink); width: 120px; }
.stack-compare tbody tr:nth-child(odd) { background: rgb(255 255 255 / 0.02); }
.stack-compare td.then { color: var(--muted); }
.stack-compare td.now { color: var(--sign); }
.rebuild-note { margin-top: 26px; font-family: var(--meter); font-size: 13px; }

/* ── toasts ── */
.toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  max-width: min(380px, calc(100vw - 48px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
  box-shadow: 0 12px 34px rgb(0 0 0 / 0.45);
  transform: translateX(30px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.toast.show { transform: none; opacity: 1; }
.toast-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  background: var(--line);
  color: var(--ink);
}
.toast-book .toast-icon { background: var(--sign); color: #08130c; }
.toast-earn .toast-icon { background: var(--curb); color: #16130a; }
.toast-earn { border-color: var(--curb-deep); }
.toast-warn .toast-icon { background: var(--nope); color: #fff; }

/* ── footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-meta { font-family: var(--meter); font-size: 12px; }
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--meter);
  font-size: 12px;
  text-decoration: none;
}
.brand-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b8be8;
}
.brand-badge:hover { color: var(--ink); }
#reset-demo {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--meter);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}
#reset-demo:hover { color: var(--nope); border-color: var(--nope); }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 46px; }
  .hero-art { min-height: 0; }
  .stats-strip, .dash-tiles { grid-template-columns: repeat(2, 1fr); }
  .how-grid, .featured-grid { grid-template-columns: 1fr; }
  .find-layout { grid-template-columns: 1fr; }
  .map-panel { position: static; }
  .spot-list { max-height: none; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-spots { grid-template-columns: 1fr; }
  .wizard-grid, .reserve-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 0; }
}

@media (max-width: 560px) {
  nav { flex-wrap: wrap; gap: 10px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; }
  .team-grid { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; transform: none; }
  .ticket-stub::before {
    left: 0; right: 0; top: -1px; bottom: auto;
    width: auto; height: 2px;
    background-image: radial-gradient(circle at 8px 1px, var(--surface) 4.5px, transparent 5px);
    background-size: 22px 2px;
    background-repeat: repeat-x;
  }
  .pass-stub { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
