/* Shared styles for the content pages (/compare, /concerts, alternatives).
   index.html, faq.html and the legal pages keep their own inline styles. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:         #2C263F;
  --surface:    #352E50;
  --surface-hi: #595082;
  --primary:    #F8C662;
  --primary-lt: #FDE8A8;
  --text:       #F0EDF7;
  --text-sec:   #C4BEDF;
  --muted:      #9D94C2;
  --divider:    rgba(89,80,130,0.35);
  --good:       #8FD694;
}
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
nav.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 2rem; border-bottom: 1px solid var(--divider);
  position: sticky; top: 0; background: rgba(44,38,63,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 100;
}
.nav-logo { font-family: 'Raleway', sans-serif; font-weight: 900; font-size: 1.3rem; color: var(--primary); }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { font-size: 0.85rem; font-weight: 700; color: var(--text-sec); }
.nav-link:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  background: var(--primary); color: #2C263F; font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 1.1rem; border-radius: 50px; white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-lt); text-decoration: none; }

/* Layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.wrap.wide { max-width: 980px; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
}
h1 {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.12; margin-bottom: 1rem;
}
h2 {
  font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1.4rem;
  margin: 3rem 0 1rem; scroll-margin-top: 5rem;
}
h3 { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.lede { font-size: 1.05rem; color: var(--text-sec); line-height: 1.75; max-width: 46rem; }
p, li { color: var(--text-sec); line-height: 1.75; font-size: 0.97rem; }
p + p { margin-top: 0.9rem; }
ul.list { margin: 0.75rem 0 0 1.25rem; }
ul.list li { margin-bottom: 0.4rem; }
strong { color: var(--text); }
.note { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--divider);
  border-top: 2px solid rgba(248,198,98,0.35); border-radius: 16px; padding: 1.25rem 1.35rem;
}
.card h3 { margin-top: 0; }
.card p { font-size: 0.9rem; }
a.card { display: block; color: inherit; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { text-decoration: none; border-top-color: var(--primary); transform: translateY(-2px); }

/* Comparison table */
.table-scroll { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--divider); border-radius: 14px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.cmp th, table.cmp td { padding: 0.75rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--divider); }
table.cmp thead th { background: var(--surface); font-family: 'Raleway', sans-serif; font-weight: 800; color: var(--text); }
table.cmp thead th.us { color: var(--primary); }
table.cmp tbody th { font-weight: 700; color: var(--text); width: 26%; }
table.cmp td { color: var(--text-sec); }
table.cmp td.us { background: rgba(248,198,98,0.06); color: var(--text); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: none; }
table.cmp .num { text-align: right; font-variant-numeric: tabular-nums; }
.yes { color: var(--good); font-weight: 800; }

/* Tick-only comparison (/compare) */
table.cmp.ticks { min-width: 680px; }
table.cmp.ticks td { text-align: center; vertical-align: middle; width: 15%; }
table.cmp.ticks tbody th { width: auto; }
table.cmp.ticks thead th:not(:first-child) { text-align: center; }
table.cmp.ticks tbody th, table.cmp.ticks thead th:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--bg);
}
table.cmp.ticks thead th:first-child { background: var(--surface); }
table.cmp.ticks tr.group th {
  position: static; background: var(--surface); color: var(--primary);
  font-family: 'Raleway', sans-serif; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.6rem 0.85rem;
}
.feat { display: block; font-weight: 800; color: var(--text); }
.feat-desc { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); line-height: 1.45; margin-top: 0.15rem; max-width: 22rem; }
.tick { color: var(--primary); font-weight: 900; font-size: 1.15rem; }
.cross { color: var(--surface-hi); font-weight: 700; font-size: 1rem; }
.no { color: var(--muted); }

/* City pages */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.stat { background: var(--surface); border: 1px solid var(--divider); border-radius: 12px; padding: 0.7rem 1rem; }
.stat b { display: block; font-family: 'Raleway', sans-serif; font-size: 1.3rem; color: var(--primary); line-height: 1.25; }
.stat span { font-size: 0.78rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.chip {
  font-size: 0.8rem; font-weight: 700; color: var(--text-sec);
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 50px; padding: 0.4rem 0.85rem;
}
a.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.bars { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 1rem; }
.bar-row { display: grid; grid-template-columns: minmax(6.5rem, 30%) 1fr 5.5rem; gap: 0.75rem; align-items: center; }
.bar-label { font-size: 0.85rem; color: var(--text-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 0.7rem; background: var(--surface); border-radius: 50px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--primary); border-radius: 50px; }
.bar-value { font-size: 0.85rem; font-weight: 800; color: var(--text); text-align: right; white-space: nowrap; }
.bar-value small { font-weight: 600; color: var(--muted); }
.city-grid { columns: 4 170px; column-gap: 1.5rem; margin-top: 0.75rem; }
.city-grid a { display: block; break-inside: avoid; padding: 0.3rem 0; color: var(--text-sec); font-size: 0.92rem; }
.city-grid a:hover { color: var(--primary); }
.city-grid small { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
details { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; overflow: hidden; }
summary {
  font-weight: 700; font-size: 0.95rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
details[open] summary::after { content: '-'; }
.faq-body { padding: 0 1.2rem 1rem; font-size: 0.9rem; color: var(--text-sec); line-height: 1.7; }

/* CTA */
.cta-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-top: 2px solid rgba(248,198,98,0.35);
  border-radius: 20px; padding: 2rem; margin-top: 3.5rem; text-align: center;
}
.cta-card h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.cta-card p { font-size: 0.92rem; margin-bottom: 1.25rem; }
.cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  display: inline-block; font-weight: 800; font-size: 0.9rem; border-radius: 50px;
  padding: 0.7rem 1.4rem; background: var(--primary); color: #2C263F;
}
.cta-btn:hover { background: var(--primary-lt); text-decoration: none; }
.cta-btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--surface-hi); }
.cta-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }

footer {
  padding: 2rem 1.5rem; text-align: center; color: var(--muted);
  font-size: 0.8rem; border-top: 1px solid var(--divider); line-height: 2;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--primary); text-decoration: none; }

.charts { display: grid; grid-template-columns: 1fr; column-gap: 3rem; }
.charts > section { min-width: 0; }
@media (min-width: 900px) {
  .charts { grid-template-columns: 1fr 1fr; }
  .charts .bar-row { grid-template-columns: minmax(6rem, 34%) 1fr 5rem; }
}

@media (max-width: 640px) {
  table.cmp { font-size: 0.8rem; }
  table.cmp th, table.cmp td { padding: 0.6rem 0.55rem; }
  table.cmp tbody th { width: auto; }
  /* /compare: fit all five columns on a phone instead of scrolling */
  table.cmp.ticks { min-width: 0; table-layout: fixed; }
  table.cmp.ticks thead th:first-child, table.cmp.ticks tbody th { width: 38%; position: static; }
  table.cmp.ticks thead th { font-size: 0.66rem; line-height: 1.25; padding: 0.6rem 0.2rem; hyphens: manual; }
  table.cmp.ticks thead th:first-child { padding-left: 0.6rem; }
  table.cmp.ticks td { width: auto; padding: 0.6rem 0.2rem; }
  table.cmp.ticks tbody th { padding: 0.6rem; }
  .feat { font-size: 0.78rem; }
  .feat-desc { font-size: 0.7rem; }
  .tick { font-size: 1rem; }
  .cross { font-size: 0.85rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 1.1rem; }
  .bar-row { grid-template-columns: 34% 1fr 4.6rem; gap: 0.5rem; }
  .city-grid { columns: 2; }
  h2 { margin-top: 2.25rem; }
}

@media (max-width: 600px) {
  nav.top { padding: 1rem; }
  .nav-links { gap: 0.8rem; }
  .nav-link.hide-sm { display: none; }
  .wrap { padding: 2.5rem 1rem 4rem; }
}
