/* The PHX Weekender — After Dark.
   Tokens per the Claude Design handoff (After Dark only, lime-only accent). */

:root {
  --bg: #16121e;
  --card: #221c30;
  --line: #2e2640;
  --line-strong: #352c48;
  --border: #3a3150;
  --dashed: #4a3f60;
  --text: #f5f1ea;
  --text-2: #d9d3e3;
  --muted: #a89fb8;
  --accent: #d4ff3f;
  --on-accent: #16121e;
  --placeholder: #4a3f60;
  --gutter: 20px;
  --section-pad: 56px;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (min-width: 900px) {
  :root {
    --gutter: 56px;
    --section-pad: 72px;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

img, iframe, svg, video { max-width: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lime { color: var(--accent); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
  min-width: 0;
}

.lockup-word {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .lockup { flex: 1 1 auto; }
  .btn-header, .menu-btn { flex: none; }
}
@media (max-width: 560px) {
  .lockup { flex: none; }
  .lockup-word { display: none; }
}

.lockup:hover { color: var(--text); }
.lockup img, .lockup svg { width: 40px; height: 40px; flex: none; }

.main-nav { display: none; }

@media (min-width: 900px) {
  .header-inner { padding-top: 22px; padding-bottom: 22px; gap: 16px; }
  .main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
  }
  .main-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
  }
  .main-nav a:hover { color: var(--text); }
  .main-nav a.active { color: var(--accent); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-lime { background: var(--accent); color: var(--on-accent); }
.btn-lime:hover { color: var(--on-accent); filter: brightness(1.06); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-outline:hover { color: var(--accent); border-color: var(--accent); }

.btn-header { margin-left: auto; padding: 10px 14px; font-size: 14px; min-height: 44px; flex: none; }
@media (min-width: 900px) { .btn-header { margin-left: 28px; } }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .btn-header { margin-left: 0; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--accent); }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */

.hero { padding-top: var(--section-pad); padding-bottom: 40px; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
}

.dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 20px;
}
.dateline .issue-no { color: var(--accent); }

.hero h1 {
  font-size: clamp(42px, 6.4vw, 68px);
  max-width: 12ch;
  margin-bottom: 20px;
}
.hero h1 .last-word { color: var(--accent); }

.lede {
  font-size: 21px;
  line-height: 1.45;
  color: var(--text-2);
  max-width: 34ch;
  margin-bottom: 28px;
}

.weather-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
  max-width: 52ch;
}
.weather-note strong { color: var(--text-2); font-weight: 600; }

.signup-pill {
  border: 1.5px solid var(--text);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
}
.signup-pill input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  padding: 10px 14px;
}
.signup-pill input[type="email"]::placeholder { color: var(--muted); }
.signup-pill input[type="email"]:focus { outline: none; }
.signup-pill:focus-within { border-color: var(--accent); }
.signup-pill .btn { flex: none; }

.fineprint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Beehiiv embed: keep its form inside the dark card without fighting it. */
.beehiiv-embed { width: 100%; }
.beehiiv-embed iframe { width: 100%; }

/* ---------- Issue card (landing) ---------- */

.issue-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.issue-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.issue-card-head .card-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.issue-card-head .card-day { color: var(--accent); }

.issue-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.issue-row:last-of-type { border-bottom: none; }
a.issue-row:hover { background: #292140; }
a.issue-row:hover .issue-row-title { color: var(--accent); }
.issue-row-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 3px;
  text-transform: uppercase;
}
.issue-row-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.issue-row-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }

.issue-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}
.unranked-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--text-2);
  white-space: nowrap;
}
.more-link { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more-link:hover { color: var(--accent); }

/* ---------- Sections ---------- */

section.block { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
section.block + section.block { border-top: 1px solid var(--line); }

.section-kicker { margin-bottom: 12px; color: var(--accent); }
.section-title { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* Free corner */
.free-corner-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
  .free-corner-grid { grid-template-columns: 240px 1fr; gap: 48px; }
}
.free-corner-label p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.free-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .free-grid { grid-template-columns: repeat(3, 1fr); } }

.free-item {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  color: var(--text);
  background: var(--bg);
}
a.free-item:hover { border-color: var(--accent); }
a.free-item:hover h3 { color: var(--accent); }
.free-item h3 { font-size: 20px; margin-bottom: 8px; }
.free-item p { font-size: 15px; color: var(--text-2); }
.free-item .meta { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Worth planning for */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: 5fr 6fr; gap: 48px; align-items: stretch; } }

.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 220px;
}
.plan-mark { width: 56px; height: 56px; flex: none; }
.plan-dates {
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow-wrap: break-word;
}
.plan-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-venue {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
}
.plan-body h3 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 12px; }
.plan-body p { font-size: 17px; color: var(--text-2); max-width: 52ch; }
.plan-body .meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.plan-body .btn { margin-top: 22px; }

/* Every issue */
.defs-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: 28px; }
@media (min-width: 640px) { .defs-grid { grid-template-columns: 1fr 1fr; } }
.def { background: var(--bg); padding: 28px; }
.def h3 { font-size: 21px; margin-bottom: 8px; }
.def p { font-size: 16px; color: var(--muted); }

/* Presented-by bar (renders only when a sponsor is booked) */
.sponsor-bar {
  border: 1px dashed var(--dashed);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  margin-bottom: var(--section-pad);
}
.sponsor-bar p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: var(--section-pad) 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.footer-big { font-size: clamp(30px, 4vw, 40px); }
.footer-big .dim { color: var(--muted); }
.footer-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-base { margin-top: 36px; font-size: 13px; color: var(--muted); }

/* ---------- Events list page ---------- */

.list-head { padding-top: var(--section-pad); padding-bottom: 28px; }
.list-head h1 { font-size: clamp(36px, 5.4vw, 56px); max-width: 16ch; }
.list-head .mono { color: var(--muted); }
.list-head .mono .lime { color: var(--accent); }

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-top: 24px;
}
.segmented button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 22px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.list-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: var(--section-pad); }
@media (min-width: 900px) {
  .list-layout { grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
}

.filters { display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 899px) {
  .filters { flex-direction: column; gap: 20px; }
}

.filter-group h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-pill .count { color: var(--muted); font-weight: 500; font-size: 13px; }
.cat-pill .check { display: none; font-weight: 800; }
.cat-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cat-pill[aria-pressed="true"] .count { color: var(--on-accent); }
.cat-pill[aria-pressed="true"] .check { display: inline; }
.cat-pill:disabled { opacity: 0.4; cursor: default; }

.area-select {
  width: 100%;
  appearance: none;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  padding: 13px 40px 13px 16px;
  min-height: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f5f1ea' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; }
.switch-row span { font-size: 16px; font-weight: 600; }
.switch {
  appearance: none;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--border);
  border: 1px solid var(--line-strong);
  position: relative;
  cursor: pointer;
  padding: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transition: left 0.15s ease;
}
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"]::after { left: 20px; background: var(--on-accent); }

.signup-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.signup-card h3 { font-size: 19px; margin-bottom: 6px; }
.signup-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.day-group { margin-bottom: 40px; }
.day-group:last-child { margin-bottom: 0; }
.day-head {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.day-head .day-count { color: var(--muted); }

.event-row {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  align-items: start;
}
a.event-row:hover .event-title { color: var(--accent); }
.event-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 4px;
  line-height: 1.5;
}
.event-title { font-size: 23px; font-weight: 700; line-height: 1.2; }
.event-why { font-size: 16px; color: var(--text-2); margin-top: 4px; max-width: 56ch; }
.event-venue { font-size: 14px; color: var(--muted); margin-top: 6px; }
.event-right { text-align: right; }
.event-price { font-size: 17px; font-weight: 700; white-space: nowrap; }
.event-price.free { color: var(--accent); }
.event-chip {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--text-2);
  white-space: nowrap;
}
.event-chip.soldout-tag { color: var(--muted); }
.event-row.soldout .event-title { color: var(--text-2); }
a.event-row.soldout:hover .event-title { color: var(--text-2); }

@media (max-width: 640px) {
  .event-row { grid-template-columns: 1fr 96px; gap: 10px; }
  .event-time { grid-column: 1 / -1; padding-top: 0; }
  .event-right { grid-column: 2; grid-row: 2; }
  .event-main { grid-column: 1; grid-row: 2; }
  .event-title { font-size: 20px; }
}

/* Sponsored placements (dormant until a sponsor is booked) */
.sponsored-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
}
.sponsored-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.sponsor-corner {
  border: 1px solid var(--accent);
  border-radius: 20px;
  overflow: hidden;
  margin: 28px 0;
}
.sponsor-corner-bar {
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
}
.sponsor-corner-body { padding: 22px 20px; }
.sponsor-corner-body h3 { font-size: 22px; margin-bottom: 8px; }
.sponsor-corner-body p { color: var(--text-2); font-size: 16px; }

.empty-state {
  border: 1px dashed var(--dashed);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
}
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Forms (submit / advertise) ---------- */

.form-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
@media (min-width: 900px) {
  .form-layout { grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; }
}

.tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
@media (max-width: 480px) { .tier-cards { grid-template-columns: 1fr; } }
.tier-card {
  appearance: none;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  color: var(--text);
  font-family: var(--font-display);
  cursor: pointer;
}
.tier-card .tier-name { font-size: 17px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier-card .tier-price { font-size: 15px; color: var(--muted); margin-top: 4px; }
.tier-card .tier-desc { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.tier-card[aria-pressed="true"] { border: 2px solid var(--accent); }
.soon-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.field label .optional { color: var(--muted); font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  padding: 13px 16px;
  min-height: 44px;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.char-count { text-align: right; font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.form-note.hidden { display: none; }

.rules { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: sticky; top: 96px; }
.rules h3 { font-size: 19px; margin-bottom: 14px; }
.rules ul { list-style: none; }
.rules li { font-size: 15px; color: var(--text-2); padding: 10px 0; border-top: 1px solid var(--line); }
.rules li:first-child { border-top: none; }
.rules li strong { color: var(--text); }

/* ---------- Thanks page ---------- */

.thanks { padding-top: var(--section-pad); padding-bottom: var(--section-pad); max-width: 720px; }
.thanks h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.thanks .lede { max-width: 52ch; }
.steps { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-no {
  width: 44px; height: 44px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p { color: var(--text-2); font-size: 16px; }

/* ---------- Advertise page ---------- */

.ad-hero { padding-top: var(--section-pad); padding-bottom: 32px; max-width: 800px; }
.ad-hero h1 { font-size: clamp(38px, 5.6vw, 60px); max-width: 18ch; margin-bottom: 24px; }
.ad-hero .btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.media-kit-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin: 40px 0 var(--section-pad);
}
.stat { padding: 26px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .value { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--placeholder); letter-spacing: -0.02em; }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) { .stats-strip { grid-template-columns: 1fr; } .stat { border-left: none; border-top: 1px solid var(--line); } .stat:first-child { border-top: none; } }

.placements { width: 100%; border-collapse: collapse; margin-top: 24px; }
.placements th, .placements td { text-align: left; padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.placements th { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.placements td:first-child { font-weight: 700; font-size: 18px; }
.placements td { font-size: 15px; color: var(--text-2); }
.placements .price { font-weight: 800; color: var(--text); font-size: 17px; white-space: nowrap; }
.placements-wrap { overflow-x: auto; }

.how-list { list-style: none; margin-top: 24px; }
.how-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text-2); max-width: 64ch; }
.how-list li strong { color: var(--text); }

.founding-banner {
  border: 1px dashed var(--dashed);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  margin-top: var(--section-pad);
}
.founding-banner h2 { font-size: 26px; margin-bottom: 8px; }
.founding-banner p { color: var(--muted); font-size: 16px; max-width: 52ch; margin: 0 auto 20px; }

/* ---------- Mobile fit fixes (Oct 29): never let a child force the page wider than the screen. ---------- */
.hero-grid > *, .plan-grid > *, .free-corner-grid > *, .list-layout > *,
.form-layout > *, .footer-grid > *, .issue-row > *, .event-row > * { min-width: 0; }
h1, h2, h3, .event-title, .issue-row-title, .event-why, .event-venue, .lede { overflow-wrap: break-word; }
.beehiiv-embed { min-width: 0; }
.beehiiv-embed iframe { width: 100% !important; max-width: 100%; display: block; }
.signup-card .btn { width: 100%; }

/* ---------- Round 2 (Oct 29): subscribe lives in the mobile menu ---------- */
@media (max-width: 899px) {
  .btn-header { display: none; }
}
.mobile-nav .nav-subscribe {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 100%; margin: 12px 0 4px; padding: 12px 24px;
  border-bottom: none; font-size: 16px; text-align: center;
}
