:root {
  --ink: #0d2119;
  --ink-2: #17372b;
  --paper: #f7f9f4;
  --white: #ffffff;
  --acid: #c8ff38;
  --yellow: #ffd84a;
  --blue: #4468ff;
  --mint: #dff9b7;
  --muted: #627168;
  --line: #cbd5cd;
  --soft: #e9eee9;
  --danger: #b84b2d;
  --shadow: 0 18px 50px rgba(13, 33, 25, .11);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; z-index: 100; left: 1rem; top: -5rem;
  padding: .8rem 1rem; background: var(--acid); color: var(--ink); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 74px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 4rem); border-bottom: 1px solid rgba(203, 213, 205, .9);
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font: 700 1.05rem "Space Grotesk", sans-serif; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--ink); color: var(--acid); font-size: 1.45rem; }
.top-actions { display: flex; align-items: center; gap: .75rem; }
.text-button, .filter-toggle, .reset-button { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
.text-button { padding: .65rem .75rem; }
.solid-button {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--white); padding: .85rem 1.2rem; text-decoration: none; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.solid-button:hover { transform: translateY(-2px); background: var(--ink-2); }
.solid-button.small { padding: .65rem 1rem; font-size: .9rem; }

main { overflow-x: clip; }
.intro {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .6fr); gap: clamp(2rem, 7vw, 8rem);
  align-items: end; padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 6vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  background: var(--ink); color: var(--white);
}
.intro::before {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(to right, black, transparent 75%);
}
.intro::after { content: ""; position: absolute; width: 360px; height: 360px; border: 70px solid var(--acid); border-radius: 50%; right: -190px; top: -230px; opacity: .95; }
.intro-copy, .truth-card { position: relative; z-index: 1; }
.eyebrow, .step-label { margin: 0 0 .8rem; font: 700 .76rem "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--acid); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.045em; line-height: 1.04; }
h1 { margin: 0; max-width: 850px; font-size: clamp(3rem, 7.4vw, 7.8rem); }
h1 span { color: var(--acid); }
.lede { max-width: 690px; margin: 2rem 0 0; color: #cad7cf; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.lede strong { color: var(--white); }
.truth-card { padding: 1.5rem; border: 1px solid #456256; border-radius: var(--radius); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.truth-number { display: block; color: var(--acid); font: 700 clamp(3.5rem, 7vw, 6rem)/.9 "Space Grotesk", sans-serif; }
.truth-card p { margin: 1rem 0 1.5rem; color: #d8e1dc; }
.truth-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid #456256; color: #aabbb1; font-size: .78rem; }

.finder { padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 6vw, 6.5rem); border-bottom: 1px solid var(--line); }
.finder-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.finder h2, .directory-toolbar h2, .gap-section h2, .before-you-go h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.25rem); }
.material-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.material-card {
  min-height: 156px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; text-align: left;
  border: 1px solid var(--line); border-radius: 16px; padding: 1rem; color: var(--ink); background: var(--white); cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.material-card > span { margin-bottom: auto; font: 500 2.3rem/1 "Space Grotesk", sans-serif; }
.material-card strong { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; }
.material-card small { display: block; margin-top: .2rem; color: var(--muted); font-size: .77rem; }
.material-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 10px 24px rgba(13, 33, 25, .08); }
.material-card.active { background: var(--acid); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.material-card.active small { color: var(--ink-2); }
.quick-answer { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.3rem; padding: 1.1rem 1.25rem; border-left: 5px solid var(--blue); background: #e9edff; border-radius: 0 12px 12px 0; }
.quick-answer p { margin: 0; }
.quick-icon { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--blue); color: var(--white); font: 700 .8rem "Space Grotesk", sans-serif; }

.directory-section { padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 6vw, 6.5rem); }
.directory-toolbar {
  position: sticky; top: 74px; z-index: 15; display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin: -.9rem 0 1.35rem; padding: .9rem 0; border-bottom: 1px solid rgba(203, 213, 205, .9);
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(16px);
}
.directory-actions { display: flex; align-items: center; gap: .7rem; }
.near-button {
  display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1rem; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--white); color: var(--ink); cursor: pointer; font-weight: 700; transition: transform .18s ease, background .18s ease;
}
.near-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--mint); }
.near-button.active { background: var(--acid); box-shadow: 3px 3px 0 var(--ink); }
.near-button:disabled { opacity: .7; cursor: wait; }
.location-banner { margin: -1rem 0 1.5rem; padding: .9rem 1rem; border: 1px solid #aebdff; border-radius: 12px; background: #e9edff; color: var(--ink-2); font-size: .9rem; }
.location-banner.success { border-color: #8bbd69; background: #eaf8d9; }
.location-banner.error { border-color: #e3b2a5; background: #fff0eb; }
.filter-toggle { display: none; padding: .75rem 1rem; border: 1px solid var(--ink); border-radius: 999px; }
.count-badge { margin-left: .3rem; padding: .1rem .4rem; border-radius: 999px; background: var(--acid); }
.directory-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.filters { position: sticky; top: 190px; max-height: calc(100vh - 210px); overflow: auto; scrollbar-width: thin; }
.filter-block { padding: 0 0 1.3rem; margin: 0 0 1.3rem; border: 0; border-bottom: 1px solid var(--line); }
.filter-block label:first-child, .filter-block > label:not(.check-row), .filter-block legend, .label-like { display: block; margin-bottom: .65rem; font: 700 .82rem "Space Grotesk", sans-serif; }
.search-wrap { display: flex; align-items: center; gap: .45rem; padding: .65rem .8rem; border: 1px solid var(--line); background: var(--white); border-radius: 10px; }
.search-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(68,104,255,.14); }
.search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
select { width: 100%; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); }
.check-row { display: flex; gap: .7rem; align-items: flex-start; margin: .8rem 0; cursor: pointer; font-size: .91rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--ink); }
.legend-row { display: flex; align-items: center; gap: .55rem; margin: .55rem 0; color: var(--muted); font-size: .82rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; }
.status-dot.verified { background: #22a462; }
.status-dot.call { background: var(--yellow); border: 1px solid #8f7310; }
.reset-button { padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.results-summary { min-height: 29px; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.place-card {
  position: relative; display: flex; flex-direction: column; min-height: 320px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1.35rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #93a398; }
.place-card.nearest-card { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--acid); }
.nearest-ribbon { display: inline-flex; align-self: flex-start; margin: -.25rem 0 .85rem; padding: .32rem .58rem; border-radius: 999px; background: var(--acid); color: var(--ink); font: 700 .68rem "Space Grotesk", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.type-pill { display: inline-flex; padding: .35rem .6rem; border-radius: 999px; background: var(--soft); font: 700 .7rem "Space Grotesk", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.confidence { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.place-card h3 { margin: 1.3rem 0 .4rem; font-size: 1.55rem; }
.location { margin: 0; color: var(--muted); font-size: .92rem; }
.location strong { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.tag { padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); background: var(--paper); font-size: .72rem; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: auto; }
.service-item { padding: .75rem; border-radius: 10px; background: var(--paper); }
.service-item span { display: block; margin-bottom: .1rem; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.service-item strong { font-size: .88rem; }
.pay-yes { color: #147946; }
.card-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.card-actions button, .card-actions a { flex: 1; padding: .65rem .7rem; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 700; font-size: .82rem; cursor: pointer; }
.details-button { border: 1px solid var(--ink); background: var(--ink); color: var(--white); }
.map-button { border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.empty-state { padding: 4rem 1.5rem; border: 1px dashed #9baaa0; border-radius: var(--radius); text-align: center; background: var(--white); }
.empty-state > div { font-size: 3rem; }
.empty-state h3 { margin: .5rem 0; font-size: 1.6rem; }
.empty-state p { max-width: 560px; margin: 0 auto 1.5rem; color: var(--muted); }

.before-you-go { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(2rem, 8vw, 8rem); padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 6vw, 6.5rem); background: var(--blue); color: var(--white); }
.step-label.light { color: #cbd5ff; }
.before-you-go ol { list-style: none; padding: 0; margin: 0; }
.before-you-go li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.35rem 0; border-top: 1px solid rgba(255,255,255,.35); }
.before-you-go li > span { color: #cbd5ff; font: 700 .78rem "Space Grotesk", sans-serif; }
.before-you-go strong { font: 700 1.2rem "Space Grotesk", sans-serif; }
.before-you-go p { margin: .25rem 0 0; color: #e3e7ff; }

.gap-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 8vw, 8rem); padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 6vw, 6.5rem); background: var(--yellow); }
.gap-section .eyebrow { color: var(--ink); }
.gap-copy p:last-child { max-width: 580px; }
.gap-chart { align-self: center; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: .75rem; margin: .7rem 0; font-size: .8rem; font-weight: 700; }
.bar-track { height: 14px; overflow: hidden; border: 1px solid var(--ink); border-radius: 999px; background: rgba(255,255,255,.45); }
.bar-fill { height: 100%; background: var(--ink); transform-origin: left; animation: grow .7s ease both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

footer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem clamp(1rem, 6vw, 6.5rem); background: #07120e; color: var(--white); }
footer p { max-width: 480px; margin: .35rem 0 0; color: #9bada3; font-size: .86rem; }

dialog { width: min(720px, calc(100% - 2rem)); max-height: 88vh; overflow: auto; padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(5, 17, 12, .72); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; top: 1rem; right: 1rem; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.dialog-body, .method-content { padding: clamp(1.4rem, 5vw, 3rem); }
.dialog-body h2, .method-content h2 { margin: .35rem 3rem .5rem 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.dialog-location { color: var(--muted); }
.dialog-note { margin: 1.25rem 0; padding: 1rem; border-left: 5px solid var(--yellow); background: #fff7d9; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.25rem 0; }
.detail-box { padding: 1rem; border-radius: 12px; background: var(--paper); }
.detail-box span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.detail-box strong { display: block; margin-top: .25rem; }
.dialog-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.dialog-links a { padding: .75rem 1rem; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .86rem; }
.dialog-links a.primary { background: var(--ink); color: var(--white); }
.method-content h3 { margin-top: 1.6rem; font-size: 1.2rem; }
.method-content li { margin: .6rem 0; }
.method-warning { margin-top: 1.5rem; padding: 1rem; border-radius: 12px; background: #fff3c0; }
.method-date { color: var(--muted); font-size: .82rem; }

@media (max-width: 1000px) {
  .material-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: 66px; }
  .text-button { display: none; }
  .solid-button.small { padding: .58rem .8rem; font-size: .75rem; }
  .intro { grid-template-columns: 1fr; gap: 2rem; padding-top: 4rem; }
  .intro::after { width: 220px; height: 220px; border-width: 45px; right: -130px; top: -145px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .truth-card { max-width: 440px; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .material-card { min-height: 132px; }
  .directory-toolbar { top: 66px; align-items: center; margin-inline: -1rem; padding: .75rem 1rem; }
  .directory-actions { align-items: stretch; flex-direction: column; }
  .near-button, .filter-toggle { justify-content: center; }
  .filter-toggle { display: inline-flex; align-items: center; }
  .directory-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: sticky; top: 168px; z-index: 12; max-height: calc(100vh - 185px); padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
  .filters.open { display: block; }
  .before-you-go, .gap-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .brand span:last-child { max-width: 100px; line-height: 1.05; }
  .material-card { min-height: 118px; }
  .material-card > span { font-size: 1.8rem; }
  .service-grid, .detail-list { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .truth-meta { flex-direction: column; gap: .25rem; }
  .directory-toolbar { align-items: stretch; flex-direction: column; }
  .directory-actions { flex-direction: row; }
  .near-button { flex: 1; }
  .filters { top: 226px; max-height: calc(100vh - 242px); }
}

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