/* Heal the 6ix — cinematic dark, poster-grade.
   Reference: late-night event poster — graphite black, single amber signal.
   Display: Anton · Body: Hanken Grotesk */
:root {
  --bg: oklch(0.17 0.05 258);
  --surface: oklch(0.21 0.055 258);
  --surface-2: oklch(0.25 0.06 258);
  --ink: oklch(0.95 0.006 250);
  --ink-soft: oklch(0.75 0.02 250);
  --amber: oklch(0.78 0.14 75);
  --amber-deep: oklch(0.6 0.12 70);
  --on-amber: oklch(0.2 0.05 258);
  --line: oklch(0.32 0.055 258);
  --radius: 12px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --z-nav: 100; --z-pop: 200;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .price, .num {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
h1, h2, h3 { text-wrap: balance; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--amber-deep); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.demo-banner {
  background: var(--amber);
  color: var(--on-amber);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
}

/* ── Nav ── */
header.site {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { font-size: 1.35rem; color: var(--ink); letter-spacing: 0.04em; }
.brand em { color: var(--amber); font-style: normal; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.nav-links a.active, .nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--on-amber); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: oklch(0.84 0.14 78); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); text-decoration: none; }

/* ── Hero ── */
.hero { position: relative; min-height: min(86svh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(0.82); }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 4%, color-mix(in oklab, var(--bg) 58%, transparent) 48%, color-mix(in oklab, var(--bg) 28%, transparent) 100%);
}
.hero-inner { position: relative; padding-bottom: clamp(44px, 7vh, 84px); width: 100%; }
.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: 22px;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p.sub { color: var(--ink); opacity: 0.92; font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 54ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-count { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }

/* Entrance + scroll reveals (gated on .js) */
html.js .rise { opacity: 0; transform: translateY(26px); }
html.js .rise.in { opacity: 1; transform: translateY(0); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: translateY(0); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }

/* ── Search bar ── */
.search-wrap { margin: clamp(28px, 5vh, 48px) 0 14px; }
.searchbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 1fr 1fr 0.9fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.searchbar > * { min-width: 0; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-right: 1px solid var(--line); }
.search-field svg { flex: none; width: 18px; height: 18px; stroke: var(--ink-soft); }
.search-field input {
  width: 100%; padding: 16px 0;
  background: transparent; border: none;
  color: var(--ink); font-size: 1rem; font-family: var(--font-body);
}
.search-field input::placeholder { color: var(--ink-soft); }
.search-field input:focus { outline: none; }
.search-field:focus-within { box-shadow: inset 0 -2px 0 var(--amber); }
.searchbar select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 16px 38px 16px 16px;
  background: transparent;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9a49a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: none; border-right: 1px solid var(--line);
  color: var(--ink); font-size: 0.95rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer;
  color-scheme: dark;
}
.searchbar select:last-child { border-right: none; }
.searchbar select:focus { outline: none; box-shadow: inset 0 -2px 0 var(--amber); }

/* ── Date strip + calendar ── */
.date-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; position: relative; }
.date-chip {
  flex: none;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.date-chip:active { transform: scale(0.96); }
.date-chip small { display: block; font-size: 0.68rem; font-weight: 600; color: inherit; opacity: 0.75; line-height: 1.1; }
.date-chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
@media (hover: hover) and (pointer: fine) { .date-chip:hover { color: var(--ink); border-color: var(--ink-soft); } .date-chip[aria-pressed="true"]:hover { color: var(--on-amber); } }
.date-chip.cal-btn { display: inline-flex; align-items: center; gap: 8px; }
.date-chip.cal-btn svg { width: 15px; height: 15px; stroke: currentColor; }

.cal-pop {
  position: absolute;
  z-index: var(--z-pop);
  margin-top: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.55);
  padding: 16px;
  width: 300px;
  transform-origin: top right;
}
html.js .cal-pop { transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.cal-pop[hidden] { display: none; }
.cal-pop.closing, html.js .cal-pop.opening { opacity: 0; transform: scale(0.96) translateY(-4px); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head .cal-title { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 1rem; cursor: pointer;
  transition: border-color 150ms var(--ease-out), transform 140ms var(--ease-out);
}
.cal-nav button:active { transform: scale(0.94); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; padding: 4px 0 8px; }
.cal-day {
  aspect-ratio: 1; border: none; border-radius: 7px;
  background: transparent; color: var(--ink);
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 600;
  cursor: pointer; position: relative;
  transition: background 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.cal-day:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .cal-day:hover:not(:disabled) { background: var(--surface); } }
.cal-day:disabled { color: oklch(0.47 0.04 258); cursor: default; }
.cal-day.has-events::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--amber);
}
.cal-day.selected { background: var(--amber); color: var(--on-amber); }
.cal-day.selected::after { background: var(--on-amber); }

.results-bar { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; }
.results-bar .count { color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.clear-filters { background: none; border: none; color: var(--amber); font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; cursor: pointer; }

/* ── Map ── */
.map-block { margin: 6px 0 clamp(40px, 7vh, 64px); }
#map {
  height: min(540px, 62svh);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { background: var(--surface-2); color: var(--ink); border-radius: 10px; border: 1px solid var(--line); }
.leaflet-popup-tip { background: var(--surface-2); }
.leaflet-popup-content strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.02em; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.legend-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; font-family: var(--font-body);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.legend-chip:active { transform: scale(0.96); }
.legend-chip .mod-dot { width: 8px; height: 8px; }
.legend-chip[aria-pressed="true"] { border-color: var(--mod, var(--amber)); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .legend-chip:hover { color: var(--ink); } }

/* ── Event cards ── */
.section-h { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: clamp(48px, 8vh, 80px); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--mod, var(--amber)) 55%, var(--line)); background: var(--surface-2); }
}
.mod-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mod-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mod, var(--amber)); box-shadow: 0 0 8px var(--mod, var(--amber)); }
.mod-name { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.card h3 { font-size: 1.32rem; line-height: 1.12; margin-bottom: 10px; letter-spacing: 0.02em; }
.card .meta { font-size: 0.87rem; color: var(--ink-soft); margin-bottom: 12px; }
.card .desc { font-size: 0.92rem; color: var(--ink-soft); flex: 1; margin-bottom: 16px; max-width: 65ch; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.price { font-size: 1.45rem; }
.price.free { color: var(--amber); }
.provider-line { font-size: 0.8rem; color: var(--ink-soft); text-align: right; }
.verified { color: var(--amber); font-weight: 700; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-soft); grid-column: 1 / -1; }
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

/* ── Steps / sections ── */
.section { padding: clamp(48px, 9vh, 100px) 0; }
.section.hairline { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); margin-bottom: 12px; }
.section p.lead { color: var(--ink-soft); max-width: 58ch; margin-bottom: 34px; }
.center { text-align: center; }
.center p.lead { margin-inline: auto; }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(24px, 4vh, 40px); }
.step .num { font-size: 2.4rem; line-height: 1; color: var(--amber); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; max-width: 38ch; }

/* ── CTA band ── */
.cta-band { background: var(--amber); padding: clamp(56px, 10vh, 110px) 0; }
.cta-band .container { text-align: center; }
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); color: var(--on-amber); margin-bottom: 14px; }
.cta-band p { color: color-mix(in oklab, var(--on-amber) 82%, var(--amber)); max-width: 52ch; margin: 0 auto 30px; font-weight: 600; }
.cta-band .btn-primary { background: var(--on-amber); color: var(--amber); }
.cta-band .btn-primary:hover { background: oklch(0.12 0.02 75); }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.plan.featured { border-color: var(--amber); background: var(--surface-2); }
.plan .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--amber); color: var(--on-amber);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 14px; border-radius: 7px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .amount { font-family: var(--font-display); font-size: 2.9rem; margin-bottom: 16px; }
.plan .amount span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); text-transform: none; }
.plan ul { list-style: none; margin-bottom: 26px; }
.plan ul li { padding: 8px 0 8px 26px; font-size: 0.93rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); position: relative; }
.plan ul li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; text-align: center; }

/* ── Form / FAQ / Footer ── */
.form-card { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; text-align: left; }
.form-card label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.form-card input {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-size: 1rem; font-family: var(--font-body);
  transition: border-color 180ms var(--ease-out);
}
.form-card input:focus { outline: none; border-color: var(--amber); }
.form-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; }
.form-thanks { display: none; padding: 34px; background: var(--surface-2); border: 1px solid var(--amber); border-radius: var(--radius); text-align: center; }

.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--amber); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; max-width: 65ch; }

footer.site { border-top: 1px solid var(--line); padding: clamp(40px, 7vh, 70px) 0; font-size: 0.9rem; color: var(--ink-soft); }
footer .brand { color: var(--ink); margin-bottom: 10px; display: block; }
footer p { max-width: 65ch; }

@media (max-width: 820px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--line); }
  .searchbar select { border-right: none; }
  .searchbar select:nth-of-type(1) { border-right: 1px solid var(--line); }
  .searchbar select:nth-of-type(3) { border-top: 1px solid var(--line); grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a.hide-mobile { display: none; }
  .brand { font-size: 1.02rem; white-space: nowrap; }
  .nav-links .btn { padding: 10px 14px; font-size: 0.78rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .rise, html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .cal-pop { transition: none; }
  .btn, .card, .date-chip, .legend-chip, .cal-day { transition: none; }
  .btn:active, .date-chip:active, .legend-chip:active, .cal-day:active { transform: none; }
}
