/* Nobbys by day, harbour at night: the app's palettes (src/theme.ts) */
  :root {
    --bg: #F3F6F8; --surface: #FFFFFF; --ink: #0F2233; --ink-on: #FFFFFF; --muted: #5A6A77; --line: #D5DDE2; --soft: #EEF2F5;
    --hivis: #F2B705; --on-hivis: #1A1600; --meat: #D2232A; --members: #1F5FB0; --joker: #946C00; --key: #0B7A75; --trivia: #6A4CC4; --music: #B8327E;
    --ok: #14804A; --water: #B3CCD8; --land: #F6F7F4; --navy: #0F2233;
    --new: #F2B705; --reg: #86b6ef; --back: #2a78d6; --won: #0d366b;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0B1A26; --surface: #0F2130; --ink: #E7EEF3; --ink-on: #07121B; --muted: #8FA3B2; --line: #1D3445; --soft: #17293A;
      --hivis: #FFC93C; --meat: #FF5552; --members: #62A2FF; --joker: #FFC93C; --key: #33C6BA; --trivia: #A68CFF; --music: #F27BB8;
      --ok: #45C987; --water: #04101A; --land: #0E1D29;
      --reg: #184f95; --back: #3987e5; --won: #9ec5f4;
    }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Archivo', system-ui, sans-serif; font-size: 17px; line-height: 1.5; }
  a { color: inherit; }
  img, svg { flex-shrink: 0; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
  .cond { font-stretch: 72%; font-weight: 900; letter-spacing: -0.01em; }
  .wide { font-stretch: 118%; font-weight: 900; }
  .muted { color: var(--muted); }

  /* the top bar stays put while you scroll; the link for the part you're reading lights up */
  header { position: sticky; top: 0; z-index: 5; padding: 12px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
  header.scrolled { border-bottom-color: var(--line); }
  section[id] { scroll-margin-top: 84px; }
  header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand span { font-size: 26px; line-height: 1; }
  nav { display: flex; gap: 4px; flex-wrap: wrap; }
  nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 650; font-size: 15px; color: var(--muted); }
  nav a:hover { color: var(--ink); background: var(--soft); }
  .login { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--ink); color: var(--ink-on); font-weight: 750; font-size: 15px; text-decoration: none; }
  .login:hover { opacity: .88; }
  nav a.on { color: var(--ink); background: var(--surface); box-shadow: inset 0 -3px 0 var(--hivis), 0 1px 2px rgba(15,34,51,.10); }
  @media (max-width: 720px) { header nav { order: 3; width: 100%; } }
  @media (max-width: 520px) { header .wrap { gap: 8px; } .brand span { font-size: 22px; } nav a { padding: 6px 9px; font-size: 14px; } .login { min-height: 36px; padding: 0 12px; font-size: 14px; } }

  /* ---------- hero ---------- */
  .hero { display: grid; gap: 40px; align-items: center; padding: 24px 0 64px; }
  @media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 36px; } }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 650; box-shadow: 0 1px 2px rgba(15,34,51,.10); margin-bottom: 18px; }
  .eyebrow i { width: 8px; height: 8px; border-radius: 4px; background: var(--ok); }
  h1 { font-size: clamp(46px, 9vw, 80px); line-height: 0.92; margin: 0 0 18px; }
  h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--hivis) 62%); padding: 0 4px; }
  .lede { font-size: 19.5px; color: var(--muted); margin: 0 0 26px; max-width: 31em; }
  .kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
  .kinds li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--surface); font-weight: 650; font-size: 15px; box-shadow: 0 1px 2px rgba(15,34,51,.10); }
  .kinds .ic { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; }
  .stores { display: flex; flex-wrap: wrap; gap: 10px; }
  .store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 20px; border-radius: 14px; background: transparent; color: var(--ink); border: 1.5px solid var(--line); text-decoration: none; }
  .store.live { background: var(--ink); color: var(--ink-on); border-color: var(--ink); }
  .store.live:hover { opacity: 0.9; }
  .store small { font-size: 12px; opacity: 0.8; }
  .store b { font-size: 18px; font-weight: 700; }
  .note { font-size: 14px; color: var(--muted); margin-top: 12px; }

  /* the phone: the app's map, top bar and tonight's list, drawn in CSS */
  .phone { justify-self: center; width: min(330px, 100%); aspect-ratio: 330 / 660; border-radius: 46px; padding: 12px; background: #0B141C; box-shadow: 0 2px 6px rgba(15,34,51,.12), 0 30px 60px rgba(15,34,51,.22); position: relative; }
  .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--land); }
  .map { position: absolute; inset: 0; }
  .map svg { width: 100%; height: 100%; display: block; }
  .bar { position: absolute; top: 14px; left: 10px; right: 10px; padding: 10px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 2px 10px rgba(15,34,51,.14); display: grid; gap: 9px; }
  .bar .row { display: flex; justify-content: space-between; }
  .bar .k { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 650; color: var(--muted); }
  .bar .k b { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); }
  .bar .k.on b { background: var(--ink); border-color: var(--ink); }
  .bar .k.on { color: var(--ink); }
  .bar .days { display: flex; gap: 6px; font-size: 11px; font-weight: 700; }
  .bar .days span { padding: 5px 10px; border-radius: 999px; background: var(--soft); }
  .bar .days span.on { background: var(--ink); color: var(--ink-on); }
  .sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 16px; border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 -6px 20px rgba(15,34,51,.14); display: grid; gap: 8px; }
  .sheet .handle { justify-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--line); }
  .sheet h4 { margin: 0; font-size: 15px; }
  .item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--soft); }
  .item .ic { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
  .item div { flex: 1; min-width: 0; line-height: 1.2; }
  .item b { display: block; font-size: 13px; }
  .item small { font-size: 11.5px; color: var(--muted); }
  .item .tag { font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: var(--hivis); color: var(--on-hivis); white-space: nowrap; }

  /* ---------- sections ---------- */
  section { padding: 64px 0; border-top: 1px solid var(--line); }
  .kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
  h2 { font-size: clamp(36px, 6vw, 52px); line-height: 0.98; margin: 0 0 14px; }
  .intro { font-size: 18.5px; color: var(--muted); margin: 0 0 36px; max-width: 36em; }
  .grid { display: grid; gap: 14px; }
  @media (min-width: 720px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
  .card { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: 0 1px 2px rgba(15,34,51,.10); display: grid; gap: 8px; align-content: start; }
  .card h3 { margin: 6px 0 0; font-size: 20px; line-height: 1.2; }
  .card p { margin: 0; color: var(--muted); font-size: 16px; }
  .badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
  .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .pills span { font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--soft); }

  /* feature rows: words beside a small picture of the app */
  .feature { display: grid; gap: 28px; align-items: center; padding: 26px 0; }
  @media (min-width: 820px) { .feature { grid-template-columns: 1fr 1fr; gap: 56px; } .feature.flip > :first-child { order: 2; } }
  .feature h3 { font-size: clamp(28px, 4.4vw, 38px); line-height: 1; margin: 0 0 12px; }
  .feature p { margin: 0 0 14px; color: var(--muted); font-size: 17.5px; }
  .ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
  .ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
  .ticks li::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 10px; background: var(--hivis) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.6L12 5.3' fill='none' stroke='%231A1600' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
  .shot { background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: 0 2px 6px rgba(15,34,51,.08), 0 18px 40px rgba(15,34,51,.10); display: grid; gap: 10px; }

  /* check-in pass */
  .pass { border-radius: 22px; background: var(--hivis); color: var(--on-hivis); padding: 20px; display: grid; gap: 10px; position: relative; overflow: hidden; }
  .pass .beam { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); animation: beam 3.2s linear infinite; }
  @keyframes beam { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
  @media (prefers-reduced-motion: reduce) { .pass .beam { animation: none; opacity: 0; } }
  .pass .clock { font-size: 40px; line-height: 1; }
  .pass .num { font-size: 13px; font-weight: 800; letter-spacing: .1em; }
  .offer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.55); font-weight: 700; font-size: 15px; }
  .offer small { display: block; font-weight: 500; font-size: 13px; }

  /* musician card */
  .gig { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--soft); }
  .avatar { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--music); }
  .star { margin-left: auto; width: 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; background: var(--hivis); }

  /* venues */
  .venues { background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(24px, 5vw, 48px); display: grid; gap: 28px; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .venues { background: #13283A; } }
  .venues h2 { color: #fff; }
  .venues .intro { color: #C9D3D9; }
  .venues .card { background: rgba(255,255,255,.06); box-shadow: none; border: 1px solid rgba(255,255,255,.12); }
  .venues .card h3 { color: #fff; }
  .venues .card p { color: #C9D3D9; }
  .venues .badge { background: var(--hivis); color: var(--on-hivis); }
  .dash { background: #fff; color: #0F2233; border-radius: 20px; padding: 18px; display: grid; gap: 12px; }
  .dash .k { display: flex; gap: 10px; flex-wrap: wrap; }
  .dash .k div { flex: 1 1 90px; border: 1px solid #E3E9ED; border-radius: 12px; padding: 10px 12px; }
  .dash .k small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; color: #5A6A77; }
  .dash .k b { font-size: 24px; font-stretch: 118%; font-weight: 900; }
  .stack { display: flex; gap: 2px; height: 14px; }
  .stack i { display: block; height: 100%; }
  .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 650; }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
  .evrow { display: grid; grid-template-columns: 116px 1fr 34px; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 650; }
  .cta { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--hivis); color: var(--on-hivis); font-weight: 800; text-decoration: none; font-size: 17px; }
  .cta.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }

  /* how it works */
  .steps { counter-reset: s; display: grid; gap: 14px; }
  @media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
  .steps .card::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--ink-on); font-weight: 900; }

  .promise { display: grid; gap: 14px; }
  @media (min-width: 720px) { .promise { grid-template-columns: repeat(3, 1fr); } }
  .promise div { display: flex; gap: 12px; align-items: flex-start; }
  .promise b { display: block; font-size: 16.5px; }
  .promise p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

  footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
  footer p { margin: 0 0 8px; }
  footer b { color: var(--ink); }
  footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
  footer .social { display: flex; flex-wrap: wrap; gap: 10px; }
  footer .social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
  footer .social a:hover { border-color: var(--ink); }

  /* shown when someone arrives from a sign-in email: hands the sign-in to the app */
  .handoff { position: fixed; inset: 0; z-index: 10; background: var(--bg); display: none; align-items: center; justify-content: center; padding: 24px 16px; }
  .handoff.on { display: flex; }
  .handoff .box { max-width: 420px; text-align: center; display: grid; gap: 14px; justify-items: center; }
  .handoff h2 { margin: 0; }
  .handoff p { margin: 0; color: var(--muted); }
  .handoff .open { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 14px; background: var(--hivis); color: var(--on-hivis); font-weight: 700; font-size: 18px; text-decoration: none; }
  /* pages: the venues and musicians pages' heroes, and the home page's pointers to them */
  .pagehero { display: grid; gap: 40px; align-items: center; padding: 24px 0 64px; }
  @media (min-width: 860px) { .pagehero { grid-template-columns: 1.05fr 0.95fr; padding-top: 36px; } }
  .ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .cta.dark { background: var(--ink); color: var(--ink-on); }
  .cta.line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
  .grid.three .card h3 { font-size: 19px; }
  .more { display: grid; gap: 14px; }
  @media (min-width: 720px) { .more { grid-template-columns: 1fr 1fr; } }
  .more a { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; text-decoration: none; background: var(--surface); box-shadow: 0 1px 2px rgba(15,34,51,.10); }
  .more a:hover { box-shadow: 0 2px 6px rgba(15,34,51,.12), 0 12px 28px rgba(15,34,51,.10); }
  .more b { display: block; font-size: 20px; }
  .more span.t { color: var(--muted); font-size: 15.5px; }
  .more .go { margin-left: auto; font-size: 22px; font-weight: 800; }


  /* ---------- Ask to join, on /venues/ and /musicians/ (13 Nov 2026; join.js sends it) ---------- */
  .join { display: grid; gap: 32px; align-items: start; }
  @media (min-width: 860px) { .join { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }
  .join-card { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: 0 1px 2px rgba(15,34,51,.10); display: grid; gap: 18px; }
  .join-card label, .join-card .field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
  .join-card input[type=text], .join-card input[type=email], .join-card input[type=tel], .join-card textarea {
    font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
    border-radius: 12px; min-height: 48px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
  .join-card textarea { min-height: 100px; resize: vertical; }
  .join-card input:focus, .join-card textarea:focus { outline: 2px solid var(--hivis); outline-offset: 1px; border-color: var(--ink); }
  .join-card .hint { font-weight: 400; font-size: 13px; }
  .roles { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
  .roles label { flex: 1; display: block; position: relative; }
  .roles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .roles span { display: grid; place-items: center; min-height: 42px; border-radius: 10px; font-weight: 700; color: var(--ink); cursor: pointer; }
  .roles input:checked + span { background: var(--ink); color: var(--ink-on); }
  .roles input:focus-visible + span { outline: 2px solid var(--hivis); outline-offset: 1px; }
  .join-card button.cta { font: inherit; font-weight: 800; font-size: 17px; border: 0; cursor: pointer; justify-content: center; width: 100%; }
  .join-card button.cta:disabled { opacity: .6; cursor: default; }
  .join-msg { margin: 0; font-size: 15px; font-weight: 700; color: var(--meat); }
  .join-msg:empty { display: none; }
  .join-small { margin: 0; font-size: 13.5px; color: var(--muted); }
  .join-small a, .join .note a { color: inherit; }
  .trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .join [hidden] { display: none !important; }
