@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;650;700&display=swap');

:root {
  --bg: #F8F8F7;
  --card: #FFFFFF;
  --ink: #111111;
  --muted: #52525B;
  --muted-2: #71717A;
  --line: #E4E4E7;
  --line-soft: #EFEFEF;
  --accent: #2230B8;
  /* FindEveryShow logo palette (2026-11-02) */
  --brand: #2230B8;        /* indigo / royal blue: primary (9.6:1 on white) */
  --brand-hover: #18228C;
  --brand-deep: #141C8C;
  --brand-cyan: #3FE0DC;   /* neon ring: decorative only, never text */
  --brand-teal: #0B6F7C;   /* text-safe cyan (5.9:1) */
  --brand-pink: #E63BE0;   /* .com neon: tiny highlights only */
  --brand-pink-ink: #B3149F; /* text/button-safe pink (6.0:1) */
  --accent-ink: #FFFFFF;
  --chip: #F4F4F5;
  --green: #15803D;
  --green-bg: #F0FDF4;
  --green-border: #86EFAC;
  --vermilion: #D9381E;
  --amber: #B45309;
  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;
  --err: #B91C1C;
  --err-bg: #FEF2F2;
  --ok-bg: #F0FDF4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

/* Site Header on index.html */
.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand-block {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 450;
}
.btn-top-cal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.12s;
}
.btn-top-cal:hover { opacity: 0.88; }

header h1 {
  font-size: clamp(1.55rem, 3.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.lede {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.35rem 1.5rem;
}

.field { margin-bottom: 1.2rem; }
label, legend {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.req { color: var(--vermilion); font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: -0.1rem 0 0.55rem;
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 0.62rem 0.78rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
textarea { resize: vertical; min-height: 3.4rem; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 1.2rem;
}

.fieldset-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mini-actions { font-size: 0.8rem; color: var(--muted); }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { opacity: 0.75; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.chip:hover span { border-color: #A1A1AA; }
.chip input:checked + span {
  background: var(--brand);
  color: var(--accent-ink);
  border-color: var(--brand);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.venue-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.65rem;
}
.venue-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
}
.venue-town {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.venue-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 450;
  font-size: 0.86rem;
  padding: 0.18rem 0;
  margin: 0;
  cursor: pointer;
}
.venue-item input { accent-color: var(--ink); }

.spotify-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.btn-spotify {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-spotify:hover { background: var(--chip); }
.btn-spotify.connected {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}
.spotify-status { font-size: 0.84rem; color: var(--muted); }

.btn-primary {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: #FFFFFF;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.12s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.55; cursor: progress; }

.msg {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 7px;
  font-size: 0.88rem;
}
.msg.err { background: var(--err-bg); color: var(--err); border: 1px solid #FECACA; }
.msg.ok  { background: var(--ok-bg);  color: var(--green); border: 1px solid var(--green-border); }

.fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.85rem 0 0;
}

footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
footer p { margin: 0.25rem 0; }

/* ── Product Viral Loop C: Newsletter Referral & Insider Loop ── */
.referral-box,
.referral-standalone {
  margin-top: 1.25rem;
  padding: 1.2rem 1.25rem;
  background: #F8FAFC;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  text-align: left;
}
.referral-standalone {
  background: #FFFFFF;
  margin-top: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.ref-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid #BBF7D0;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.referral-box h3,
.referral-standalone h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ref-desc {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  color: #3F3F46;
  line-height: 1.48;
}
.ref-url-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  margin-bottom: 0.7rem;
}
.ref-url-bar code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-copy-btn {
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid #BBF7D0;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.ref-copy-btn:hover {
  background: #DCFCE7;
}
.ref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ref-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
}
.ref-act:hover {
  background: var(--chip-bg);
}
.ref-act.primary {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}
.ref-act.primary:hover {
  background: #27272A;
}

/* ── FindEveryShow logo (2026-11-02) ── */
.site-logo {
  display: inline-block;
  line-height: 0;
  margin: 0 0 0.75rem;
  text-decoration: none;
}
.site-logo img {
  display: block;
  width: 132px;
  height: auto;
}
.site-logo:hover { opacity: 0.9; }
.site-logo.sm img { width: 96px; }
@media (max-width: 680px) {
  .site-logo img { width: 108px; }
  .site-logo.sm img { width: 80px; }
}
a.callink { color: var(--brand); }
a.callink:hover { color: var(--brand-hover); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

/* ── Signup form buttons (fix 2026-11-02) ──
   The Oct 25 refresh renamed button classes to .btn-primary, but the home
   signup form (templates/index.html) still uses "btn primary", "btn ghost"
   and "btn spotify", so its submit button fell back to a tiny unstyled
   browser default. Scoped to .btn so .ref-act.primary is untouched. */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn.primary { background: var(--brand); color: #FFFFFF; margin-top: 1.25rem; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.primary[disabled], .btn.primary:disabled { opacity: 0.6; cursor: progress; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.spotify { background: #1DB954; color: #FFFFFF; }
.btn.spotify[aria-disabled="true"] { background: #E9E9EB; color: #71717A; pointer-events: none; }
.btn.spotify.connected { background: #FFFFFF; color: #137A37; border: 1.5px solid #1DB954; }

/* Spotify pre-connect notice + signup consent line (Spotify Developer Terms compliance, 2026-11-02) */
.hint.sp-notice { font-size: 0.78rem; line-height: 1.45; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line, #dfd8cc); border-radius: 8px; background: #fafaf7; }
.hint.sp-notice a, .fine.consent a { color: inherit; text-decoration: underline; }
.fine.consent { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 0.78rem; }

/* ── Signup form v2 (2026-11-02): titled step cards ──
   Scoped to #signup.su so nothing else on the site changes. */
#signup.su { margin-top: 1.75rem; }
.su-intro { margin: 0 0 1rem; }
.su-title {
  margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ink);
}
.su-title::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand) 60%, var(--brand-pink));
}
.su-lede { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.92rem; }

.su-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.1rem 1.2rem;
  margin: 0 0 0.85rem;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}
.su-head { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.95rem; }
.su-num {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #FFFFFF; font-size: 0.85rem; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(63, 224, 220, 0.28);
}
.su-h {
  margin: 0.1rem 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem;
}
.su-help { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.su-req {
  display: inline-block; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand); background: #EEF0FC; border-radius: 999px; padding: 0.12rem 0.5rem; vertical-align: 2px;
}
.su-opt { color: var(--muted-2); font-weight: 450; font-size: 0.84rem; letter-spacing: 0; text-transform: none; }

/* fields line up on the same left edge as the step title */
.su-field, .su-card > .chips, .su-sub, .su-details, .su-spotify, .su-card > .err { margin-left: 0; }
.su-field + .su-field { margin-top: 0.95rem; }
.su-label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0 0 0.4rem; color: var(--ink); }
.su-label-sm { font-size: 0.85rem; }
#signup.su input[type="email"], #signup.su input[type="text"] {
  min-height: 48px; font-size: 16px; padding: 0.7rem 0.85rem; border-radius: 10px; border-color: #D4D4D8;
}
#signup.su input[type="email"]:focus, #signup.su input[type="text"]:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34, 48, 184, 0.14);
}
#signup.su input.bad { border-color: var(--err); background: var(--err-bg); }
#signup.su .err { margin: 0.35rem 0 0; color: var(--err); font-size: 0.84rem; font-weight: 500; }
#signup.su .err:empty { display: none; }

/* bigger, tappable chips */
.su-chips { gap: 0.5rem; }
.su-chips .chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1rem;
  border-radius: 999px; font-size: 0.92rem; font-weight: 550; border-color: #D4D4D8;
}
.su-chips .chip input:checked + span {
  background: var(--brand); border-color: var(--brand); color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(34, 48, 184, 0.3);
}
.su-chips .chip input:checked + span::before { content: "✓"; margin-right: 0.4rem; font-weight: 700; }
.su-chips .chip input:focus-visible + span { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
.su-chips-sm .chip span { min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.86rem; }
.su-sub .su-chips-sm .chip input:checked + span {
  background: #E4E8FF; color: var(--brand-deep); border-color: var(--brand); box-shadow: none;
}
.su-sub {
  margin-top: 1rem; padding: 0.85rem 0.85rem 0.9rem; border-radius: 12px;
  background: #F5F7FF; border: 1px solid #E3E6F5; border-left: 3px solid var(--brand-cyan);
}
.su-sub .chip span { background: #FFFFFF; }

/* venues: collapsed by default */
.su-details { border: 1px solid #D4D4D8; border-radius: 10px; background: #FFFFFF; }
.su-details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 0.9rem; font-weight: 600; font-size: 0.92rem; color: var(--brand);
}
.su-details > summary::-webkit-details-marker { display: none; }
.su-count { color: var(--brand-pink-ink); font-weight: 600; font-size: 0.85rem; }
.su-chev {
  margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.15s;
}
.su-details[open] > summary { border-bottom: 1px solid var(--line); }
.su-details[open] .su-chev { transform: rotate(-135deg) translateY(-2px); }
.su-venues { padding: 0.35rem 0.9rem 0.7rem; display: grid; gap: 0 1.25rem; }
.su-venues .vgroup { padding: 0.5rem 0 0.25rem; break-inside: avoid; }
.su-venues .vgroup h3 {
  margin: 0.25rem 0 0.15rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.su-venues .vrow {
  display: flex; align-items: center; gap: 0.65rem; min-height: 44px; margin: 0; padding: 0.25rem 0;
  font-weight: 450; font-size: 0.92rem; cursor: pointer; border-bottom: 1px solid var(--line-soft);
}
.su-venues .vgroup .vrow:last-child { border-bottom: 0; }
.su-venues .vrow input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: 0 0 20px; }

/* listen on + spotify */
.su-spotify { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.su-spotify .btn.spotify { margin-top: 0; }
.su-spotify .hint { margin: 0.5rem 0 0; font-size: 0.84rem; }
.su-spotify .hint.sp-notice { margin-top: 0.6rem; background: #F7F8FC; border-color: #E3E6F5; color: var(--muted); }

/* submit */
.su-submit { margin-top: 1.1rem; }
#signup.su .btn.primary {
  margin-top: 0; min-height: 56px; border-radius: 12px; font-size: 17px; font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(34, 48, 184, 0.55);
}
#signup.su .fine { margin: 0.75rem 0 0; text-align: center; color: var(--muted); font-size: 0.84rem; }
#signup.su .fine.consent { margin-top: 0.25rem; font-size: 0.78rem; }

@media (min-width: 640px) {
  .su-card { padding: 1.4rem 1.5rem 1.5rem; }
  .su-num { flex-basis: 32px; width: 32px; height: 32px; font-size: 0.92rem; }
  .su-field, .su-card > .chips, .su-sub, .su-details, .su-spotify, .su-card > .err { margin-left: 44px; }
  .su-venues { grid-template-columns: 1fr 1fr; }
  #signup.su .btn.spotify { width: auto; display: inline-flex; padding: 12px 22px; }
}

/* ── Thank-you screen (matches signup v2) ── */
.thanks {
  margin-top: 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.75rem 1.25rem 1.5rem; text-align: center; box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}
.thanks .check {
  width: 56px; height: 56px; margin: 0 auto 0.85rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #FFFFFF; font-size: 1.6rem; font-weight: 700;
  box-shadow: 0 0 0 5px rgba(63, 224, 220, 0.3);
}
.thanks h2 { margin: 0 0 0.4rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.thanks h2::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin: 0.55rem auto 0;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand) 60%, var(--brand-pink));
}
.thanks #thanksMsg { margin: 0.75rem auto 0; max-width: 30rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.thanks .referral-box { border: 1px solid #E3E6F5; background: #F5F7FF; border-radius: 12px; }
.thanks .btn { min-height: 48px; border-radius: 12px; }
.thanks .btn.ghost { width: auto; padding: 0.7rem 1.25rem; border-color: #D4D4D8; }
.thanks .btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
@media (min-width: 640px) { .thanks { padding: 2.25rem 2rem 2rem; } }
