/*
 * Pulse Tuscaloosa — marketing site.
 *
 * Tokens are the app's, from src/theme/colors.ts, so the site and the product
 * are recognisably one thing. Where this diverges it is for the medium: body
 * text is a lifted muted grey because a marketing page is read in daylight on
 * a desktop, not glanced at in a dark bar.
 *
 * Dark only, like the app, which is dark by construction.
 */

:root {
  --crimson: #9e1b32;
  --crimson-glow: #c41e3a;
  --crimson-bright: #e8203f;
  --crimson-deep: #5c0f1e;

  --bg: #0a0708;
  --bg-elevated: #140c0f;
  --bg-card: #1a1014;

  --line: #2e1a22;

  --ink: #f8f4f5;
  --ink-muted: #b9a8ad;
  --ink-dim: #6e5a60;

  --live: #ff2d46;

  --max: 1080px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--crimson-glow);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--crimson); color: var(--ink); }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.nav__brand { display: inline-flex; text-decoration: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav__links a { color: var(--ink-muted); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { color: var(--ink); }

/* The text links crowd the button below ~640px; the button is the one that
   matters, so the others step aside rather than wrapping into two rows. */
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: var(--crimson);
  border: 1px solid var(--crimson-glow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--crimson-glow); }
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-muted);
}
.btn--ghost:hover { background: var(--bg-card); color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  /* The app pulses this dot to mean live reporting is arriving. Here it is a
     static mark: nothing on a marketing page is live, and animating it would
     be decoration imitating a signal. */
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.fineprint {
  margin: 1.25rem 0 0;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

/* ---------- crowd levels ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.level {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.level b { font-size: 0.95rem; }
.level span:last-child { color: var(--ink-dim); font-size: 0.8rem; }

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
  margin-bottom: 0.35rem;
}

@media (max-width: 720px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- sections ---------- */

h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.015em;
}

.how {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.card h3 { margin: 0.85rem 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--crimson-deep);
  border: 1px solid var(--crimson);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- venues ---------- */

.venues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.venues p { color: var(--ink-muted); }
.venues .muted { color: var(--ink-dim); font-size: 0.9rem; }
.venues .btn { margin-top: 1rem; }

.venues__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }

.venues__list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.venues__list span { color: var(--ink-muted); font-size: 0.9rem; }

@media (max-width: 820px) {
  .venues { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- closing ---------- */

.closing {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.closing h2 { margin-bottom: 1.5rem; }

/* ---------- footer ---------- */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.foot nav { display: flex; gap: 1.25rem; }
.foot a { color: var(--ink-muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 0; }

.disclaimer { max-width: 40rem; color: var(--ink-dim); }

/*
 * The operating company, in the footer where a reviewer looks by habit.
 *
 * The legal name is at full contrast rather than the footer's muted grey. Apple
 * rejects a domain it cannot associate with the organisation, and a company
 * name set in the same dim tone as a nav link is one somebody scanning the page
 * can miss. The second line is the plain-English version of the same fact.
 */
.foot__org b { color: var(--ink); font-weight: 700; }
.foot__org span { display: inline-block; margin-top: 0.35rem; color: var(--ink-dim); }

/* ---------- about ---------- */

.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

/* ---------- long-form pages: /privacy/, /support/ ---------- */

.doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 0.5rem; }
.doc h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
.doc h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink-muted); line-height: 1.7; }
.doc b, .doc strong { color: var(--ink); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc a { color: var(--ink); text-decoration-color: var(--crimson-glow); }
.doc .updated { color: var(--ink-dim); font-size: 0.9rem; margin: 0 0 2rem; }

.about h2 { margin: 0 0 1rem; }
.about p { max-width: 44rem; margin: 0 0 1rem; line-height: 1.65; }
.about p:last-child { margin-bottom: 0; }
.about b { color: var(--ink); }

/* ---------- hero with artwork ---------- */

/*
 * Two columns above 900px, stacked below. The illustration is decorative, so
 * on a narrow screen it goes *after* the text and shrinks — it should never
 * push the headline and the call to action below the fold on a phone, which is
 * the one place this page most needs to work.
 */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.hero .lede { margin-left: 0; margin-right: 0; }
.hero .cta { justify-content: flex-start; }

.hero__art {
  display: flex;
  justify-content: center;
}

.hero__art img {
  width: 100%;
  max-width: 300px;
  height: auto;
  /* Lifts the phone off the page without a drop shadow, which reads as grey
     smudge on a near-black background. */
  filter: drop-shadow(0 24px 60px rgba(196, 30, 58, 0.22));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .hero__art img { max-width: 240px; }
}

/* Left-aligned button row, for the venues section. */
.cta--left { justify-content: flex-start; }

@media (max-width: 820px) {
  .cta--left { justify-content: flex-start; }
}
