/* ShowPlan — landing. Tokens: docs/DESIGN.md */
/* Self-hosted fonts (latin subset, variable weight; SIL Open Font License): no render-blocking third-party stylesheet. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin-v9.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-v20.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --sp-night: #0E0B1F;
  --sp-night-2: #1A1533;
  --sp-night-3: #2A2350;
  --sp-spot: #FFC93C;
  --sp-neon: #FF4D8D;
  --sp-mint: #3DDC97;
  --sp-text: #F6F3FF;
  --sp-muted: #A69FC7;

  --font-title: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-spot: 0 0 40px rgba(255, 201, 60, .25);
  --halo: radial-gradient(ellipse at top, rgba(255, 201, 60, .18), transparent 60%);
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--sp-night);
  color: var(--sp-text);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.08; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--sp-spot);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--sp-spot);
  color: var(--sp-night);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }

/* ---------- Buttons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: .75em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-spot { background: var(--sp-spot); color: var(--sp-night); box-shadow: var(--shadow-spot); }
.btn-spot:hover { transform: translateY(-2px); box-shadow: 0 0 56px rgba(255, 201, 60, .45); }
.btn-ghost { border-color: var(--sp-night-3); color: var(--sp-text); background: rgba(26, 21, 51, .6); }
.btn-ghost:hover { border-color: var(--sp-muted); background: var(--sp-night-2); transform: translateY(-2px); }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.badge {
  display: inline-flex; align-items: center;
  padding: .2em .7em;
  border-radius: 999px;
  font: 600 .75rem/1.4 var(--font-text);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-mint { background: rgba(61, 220, 151, .14); color: var(--sp-mint); border: 1px solid rgba(61, 220, 151, .4); }
.badge-neon { background: rgba(255, 77, 141, .14); color: #FF7AAA; border: 1px solid rgba(255, 77, 141, .45); }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 11, 31, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(42, 35, 80, .7);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  box-shadow: 0 0 24px rgba(255, 201, 60, .3);
}
.logo-mark svg { display: block; width: 100%; height: 100%; }
.logo-mark .icon { stroke-width: 2.4; }
.logo-word { font: 800 1.375rem/1 var(--font-title); letter-spacing: -.03em; }
.logo-word span { color: var(--sp-spot); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px;
  color: var(--sp-muted); text-decoration: none; font-weight: 500; font-size: .9375rem;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--sp-text); background: var(--sp-night-2); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); isolation: isolate; }
.hero-halo {
  position: absolute; inset: -68px 0 auto; height: 900px; z-index: -2;
  background: var(--halo), radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255, 77, 141, .10), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--sp-night-3);
  border-radius: 999px;
  background: rgba(26, 21, 51, .7);
  color: var(--sp-muted); font-size: .875rem; font-weight: 500;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-neon); box-shadow: 0 0 12px var(--sp-neon); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { margin-top: 22px; font-size: clamp(2.375rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; }
.hl {
  color: var(--sp-spot);
  text-shadow: 0 0 34px rgba(255, 201, 60, .35);
  white-space: nowrap;
}
.lead { margin-top: 22px; max-width: 34em; color: var(--sp-muted); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.65; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--sp-muted); font-size: .9375rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(61, 220, 151, .16) no-repeat center / 10px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%233DDC97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 700px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  color: var(--sp-neon); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
}
.section h2 { font-size: clamp(2rem, 4.2vw, 3.125rem); font-weight: 800; }
.section-lead { margin-top: 16px; color: var(--sp-muted); font-size: 1.125rem; }
.fine { margin-top: 18px; color: var(--sp-muted); font-size: .875rem; }

.chip {
  min-height: 44px; padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--sp-night-3);
  background: var(--sp-night-2);
  color: var(--sp-text);
  font: 600 .9375rem var(--font-text);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--sp-muted); }
.chip[aria-pressed="true"] { background: var(--sp-spot); border-color: var(--sp-spot); color: var(--sp-night); }

.demo-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #1E1840, var(--sp-night-2));
  border: 1px solid var(--sp-night-3);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 70px -30px rgba(255, 201, 60, .4);
}
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: .8125rem; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--sp-mint); font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-mint); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.demo-app { color: var(--sp-muted); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.demo-query { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--sp-night);
  border: 1px solid var(--sp-night-3);
  min-width: 0;
}
.field-label { font-size: .75rem; color: var(--sp-muted); font-weight: 500; }
.field-value { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-value::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--sp-spot); opacity: 0; }
.typing .field-value::after { animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 1; } }

.demo-results { margin-top: 14px; }
.result-best {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(61, 220, 151, .09), rgba(14, 11, 31, .6) 60%);
  border: 1px solid rgba(61, 220, 151, .35);
}
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result-date { color: var(--sp-muted); font-size: .875rem; font-weight: 500; }
.result-city { margin-top: 14px; font-size: 1.75rem; font-weight: 800; }
.result-place { margin-top: 2px; color: var(--sp-muted); }
.result-route { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.mini-route { flex: 1; min-width: 0; height: 40px; }
.mini-route path { animation: march9 .8s linear infinite; }
.result-route p { flex-shrink: 0; text-align: right; color: var(--sp-muted); font-size: .9375rem; line-height: 1.2; }
.route-time { display: block; font: 800 1.875rem/1 var(--font-title); color: var(--sp-spot); }
.result-others { margin-top: 10px; display: grid; gap: 8px; }
.result-others li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(14, 11, 31, .55); border: 1px solid var(--sp-night-3);
  color: var(--sp-muted); font-size: .9375rem;
}
.result-others li span:last-child { color: var(--sp-text); font-weight: 600; }
.swap [data-field] { animation: swap .5s var(--ease) both; }
@keyframes swap { from { opacity: 0; translate: 0 6px; } }

.alert-demo {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 14px 16px;
  border-radius: 14px;
  background: var(--sp-night); border: 1px solid rgba(255, 77, 141, .4);
  font-size: .9375rem; color: var(--sp-muted);
}
.alert-demo strong { color: var(--sp-text); }
.alert-bell { font-size: 1.25rem; animation: ring 4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 80%, 100% { rotate: 0deg; } 84% { rotate: 14deg; } 88% { rotate: -12deg; } 92% { rotate: 8deg; } 96% { rotate: -4deg; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--sp-night-3); background: var(--sp-night); color: var(--sp-muted); font-size: .8125rem; font-weight: 500; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  background: var(--sp-night-2);
  border: 1px solid var(--sp-night-3);
  transition: border-color .25s;
}
.faq details[open] { border-color: rgba(255, 201, 60, .45); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font: 700 1.125rem/1.3 var(--font-title);
  cursor: pointer; list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sp-night); border: 1px solid var(--sp-night-3);
  color: var(--sp-spot); font: 500 1.25rem/1 var(--font-text);
  transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 24px 22px; color: var(--sp-muted); max-width: 62ch; }

/* Final CTA */
.section-final { padding-top: 0; }
.final {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(160deg, #241C4A, #120E27);
  border: 1px solid var(--sp-night-3);
}
.final-halo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 201, 60, .26), transparent 70%); }
.final h2 { max-width: 18ch; margin: 0 auto; }
.final .section-lead { max-width: 40ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--sp-night-3); padding: 48px 0 40px; background: #0B0919; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer-brand p { margin-top: 12px; color: var(--sp-muted); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sp-night-3); color: var(--sp-muted); transition: color .2s, border-color .2s, background-color .2s; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--sp-night); background: var(--sp-spot); border-color: var(--sp-spot); }
.footer-social svg { width: 20px; height: 20px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a { color: var(--sp-muted); text-decoration: none; font-size: .9375rem; }
.footer-nav a:hover { color: var(--sp-text); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(42, 35, 80, .6); color: var(--sp-muted); font-size: .875rem; }

/* ---------- Legal & 404 ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
.legal h2 { margin-top: 40px; font-size: 1.5rem; }
.legal p { margin-top: 12px; color: var(--sp-muted); }
.legal p:last-child { margin-top: 48px; }
.legal-note { padding: 14px 18px; border-radius: 12px; background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .35); color: var(--sp-text) !important; margin-top: 20px !important; }
.notfound { position: relative; isolation: isolate; padding: clamp(64px, 12vw, 140px) 0; text-align: center; overflow: hidden; }
.notfound .hero-halo { inset: 0; height: 100%; }
.notfound-code { font: 800 clamp(6rem, 22vw, 11rem)/1 var(--font-title); color: var(--sp-spot); text-shadow: 0 0 60px rgba(255, 201, 60, .45); letter-spacing: -.05em; }
.notfound h1 { margin-top: 12px; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
.notfound .section-lead { max-width: 40ch; margin-inline: auto; }

/* How it works + live example */
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.how-steps { margin-top: 32px; display: grid; gap: 18px; counter-reset: how; }
.how-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.how-steps li::before {
  counter-increment: how; content: counter(how); grid-row: span 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sp-night-2); border: 1px solid var(--sp-night-3);
  color: var(--sp-spot); font: 800 1.125rem/1 var(--font-title);
}
.how-steps strong { font: 700 1.1875rem/1.3 var(--font-title); }
.how-steps span { color: var(--sp-muted); }
.live-card { min-height: 420px; transition: opacity .25s; }
.live-card.is-loading [data-live-body] { opacity: .55; }
.live-fallback { padding: 28px 4px; color: var(--sp-muted); }
.live-fallback a { color: var(--sp-text); }
.live-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.live-head img, .live-head .ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; font-size: 1.125rem; }
.live-head strong { display: block; font: 700 1.125rem/1.2 var(--font-title); }
.live-head small { color: var(--sp-muted); font-size: .875rem; }
.mini-route svg { display: block; width: 100%; height: 40px; }
.result-route small { display: block; margin-top: 4px; }
.live-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.live-controls .chip { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.chip-ghost { background: transparent; color: var(--sp-muted); }
.live-mine { margin-top: 14px; padding: 6px 0; border: 0; background: none; color: var(--sp-text); font: 600 .9375rem var(--font-text); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sp-spot); }

/* Indés */
.indes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.indes:empty { display: none; }
.inde { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--sp-night-2); border: 1px solid var(--sp-night-3); }
.inde img, .inde .ph { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; font-size: 1.75rem; margin-bottom: 6px; }
.inde h3 { font-size: 1.375rem; }
.inde p { color: var(--sp-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.inde .inde-next { color: var(--sp-text); font-size: .9375rem; font-weight: 600; }
.inde .btn { margin-top: auto; align-self: flex-start; }
.indes-more { margin-top: 28px; text-align: center; }

/* Favourites and alerts */
.follow {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 5vw, 52px); border-radius: var(--radius-lg);
  background: var(--sp-night-2); border: 1px solid var(--sp-night-3);
}
.follow h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.follow .alert-demo { margin-top: 0; }
.final-link { margin-top: 18px; color: var(--sp-muted); }
.final-link a { color: var(--sp-text); }

@media (max-width: 980px) {
  .how-grid, .follow { grid-template-columns: 1fr; }
  .live-card { min-height: 0; }
}
@media (max-width: 860px) {
  .indes { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal (only when JS runs and motion is welcome) ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
/* ---------- Finder (hero) : the service itself, on the home page ---------- */
.hero-center { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-center .lead { margin-inline: auto; }
.hero-points-center { justify-content: center; }
.hero-points a { color: var(--sp-text); }
.btn-xl { min-height: 68px; padding: .9em 1.9em; font-size: 1.1875rem; border-radius: 999px; white-space: nowrap; }

.finder {
  position: relative; z-index: 5;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(34, 28, 68, .92), rgba(20, 16, 40, .92));
  border: 1px solid rgba(255, 201, 60, .35);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 90px -30px rgba(255, 201, 60, .45);
}
.finder-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.finder-field { position: relative; display: grid; gap: 8px; }
.finder-field label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; color: var(--sp-text); }
.finder-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sp-spot); color: var(--sp-night); font-weight: 800; font-size: .875rem;
}
.finder-field input {
  width: 100%; min-height: 68px; padding: 0 22px;
  border-radius: 18px; border: 2px solid var(--sp-night-3);
  background: var(--sp-night); color: var(--sp-text);
  font: 500 1.1875rem var(--font-text);
  transition: border-color .2s, box-shadow .2s;
}
.finder-field input::placeholder { color: #6E668F; }
.finder-field input:focus { outline: none; border-color: var(--sp-spot); box-shadow: 0 0 0 4px rgba(255, 201, 60, .18); }
.finder-field input.is-set { border-color: var(--sp-mint); }
.finder-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  max-height: 340px; overflow-y: auto; padding: 6px;
  border-radius: 16px; border: 1px solid var(--sp-night-3);
  background: var(--sp-night-2); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8);
}
.finder-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; cursor: pointer; font-weight: 500;
}
.finder-list li small { color: var(--sp-muted); font-weight: 400; margin-left: auto; }
.finder-list li[aria-selected="true"], .finder-list li:hover { background: var(--sp-night-3); }
.finder-list img, .finder-list .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.ph { display: grid; place-items: center; background: linear-gradient(145deg, var(--sp-night-3), var(--sp-night-2)); color: var(--sp-spot); font: 800 1em/1 var(--font-title); border: 1px solid #3B3270; }
.finder-msg { margin-top: 12px; min-height: 1.4em; color: var(--sp-muted); text-align: center; }
.finder-msg.is-error { color: var(--sp-neon); }

/* Faces: one tap picks the comedian */
.faces { margin-top: 30px; }
.faces-title { text-align: center; color: var(--sp-muted); font-weight: 500; margin-bottom: 14px; }
.faces-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.face {
  display: grid; gap: 8px; justify-items: center; width: 100%; padding: 10px 6px 12px;
  border: 1px solid transparent; border-radius: 18px; background: transparent; color: var(--sp-text);
  font: 500 .875rem/1.25 var(--font-text); text-align: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.face:hover { background: var(--sp-night-2); transform: translateY(-3px); }
.face[aria-pressed="true"] { border-color: var(--sp-spot); background: rgba(255, 201, 60, .08); }
.face img, .face .ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--sp-night-3); font-size: 1.5rem; }
.face[aria-pressed="true"] img, .face[aria-pressed="true"] .ph { border-color: var(--sp-spot); box-shadow: var(--shadow-spot); }

/* Results */
.results { margin-top: 26px; }
.results-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.results-head img, .results-head .ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; font-size: 1.25rem; }
.results-head h2 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.results-head p { color: var(--sp-muted); }
.shows { display: grid; gap: 12px; }
.show {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 18px 20px; border-radius: 20px; border: 1px solid var(--sp-night-3); background: var(--sp-night-2);
}
.show.is-best { border-color: var(--sp-mint); box-shadow: 0 0 50px -20px rgba(61, 220, 151, .6); }
.show-date { display: grid; place-items: center; min-width: 74px; padding: 8px 10px; border-radius: 14px; background: var(--sp-night); text-align: center; line-height: 1.1; }
.show-date b { font: 800 1.75rem var(--font-title); color: var(--sp-spot); }
.show-date span { font-size: .8125rem; color: var(--sp-muted); text-transform: uppercase; letter-spacing: .04em; }
.show-main h3 { font-size: 1.25rem; }
.show-main p { color: var(--sp-muted); font-size: .9375rem; }
.show-km { color: var(--sp-mint); font-weight: 700; }
.show-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.results-empty { padding: 26px; border-radius: 20px; background: var(--sp-night-2); border: 1px solid var(--sp-night-3); text-align: center; }

@media (max-width: 860px) {
  .finder-row { grid-template-columns: 1fr; }
  .finder-go { width: 100%; }
  .show { grid-template-columns: auto minmax(0, 1fr); }
  .show-actions { grid-column: 1 / -1; justify-content: stretch; }
  .show-actions .btn { flex: 1; }
}
@media (max-width: 520px) {
  .faces-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .face img, .face .ph { width: 72px; height: 72px; }
  .faces-list li:nth-child(n+7) { display: none; } /* two rows on a phone: the finder stays the focus */
  .finder-field input, .btn-xl { min-height: 60px; font-size: 1.0625rem; }
}

@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .cta-row, .hero-points { justify-content: center; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .btn-lg { width: 100%; }
  .header-inner { min-height: 60px; }
  .logo-word { font-size: 1.1875rem; }
  .logo-mark { width: 32px; height: 32px; font-size: 18px; }
  .hl { white-space: normal; }
  .demo-card { padding: 16px; }
  .result-city { font-size: 1.5rem; }
  .faq summary { padding: 18px 18px; font-size: 1.0625rem; }
  .faq details p { padding: 0 18px 20px; }
  .final { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
.follow .cta-row { justify-content: flex-start; }
