/* Design Public Art — shared styles
 *
 * Tokens are lifted verbatim from the 2026 pages (index.html, dashboard.html,
 * community.html, app.html) so anything copied between them renders
 * identically. Where style-guide.md and the live pages disagreed, the live
 * pages won — they are what the program actually looks like.
 *
 * Served consumer: pb_public/index.html only. The /2026 archive keeps its own
 * inline styles. The archived cohort pages in onboarding/archive/cohort-2026/
 * still reference this file but are not shipped, which is why the table,
 * .pricebox and tr.is-* rules are kept rather than pruned.
 */

:root {
  --bg: hsl(250, 40%, 8%);
  --card: hsl(250, 35%, 12%);
  --primary: hsl(270, 80%, 60%);
  --primary-glow: hsl(270, 100%, 70%);
  --fire: hsl(25, 95%, 55%);
  --fire-glow: hsl(30, 100%, 65%);
  --muted: hsl(250, 30%, 20%);
  --muted-fg: hsl(260, 15%, 65%);
  --text: hsl(280, 20%, 96%);
  --border: hsl(250, 30%, 25%);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* ---- layout ---- */

.container { max-width: 720px; margin: 0 auto; padding: 1.5rem; }
.container-wide { max-width: 900px; margin: 0 auto; padding: 1.5rem; }

section { margin-bottom: 2.5rem; }

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding: 1.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.site-nav .brand {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.site-nav a {
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--fire); }
.site-nav a.current { color: var(--text); }

/* ---- type ---- */

h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fire);
  margin-bottom: 0.5rem;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary-glow); }

.lede { font-size: 1.1rem; color: var(--text); opacity: 0.9; }
.muted { color: var(--muted-fg); }
.small { font-size: 0.85rem; }
strong { color: var(--fire); font-weight: 700; }

.label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}

/* ---- components ---- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-block;
  background: var(--muted);
  color: var(--fire);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 4px;
}
.chip-quiet { background: var(--card); color: var(--muted-fg); }

.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: white;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--fire));
  transition: filter 0.2s;
}
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn-block { display: block; width: 100%; }

.btn-quiet {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-quiet:hover { border-color: var(--fire); filter: none; }

/* The price box. $40 and $450 must sit in one visual unit — someone who
 * only ever sees one of the two numbers has been anchored wrong. */
.pricebox {
  border: 1px solid var(--border);
  border-left: 3px solid var(--fire);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  font-size: 0.9rem;
}
.pricebox .now { color: var(--text); font-weight: 600; }
.pricebox .later { color: var(--muted-fg); }

/* ---- wide content ---- */

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.85rem; min-width: 460px; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted-fg); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
tr.is-seminar td { background: hsla(270, 80%, 60%, 0.07); }
tr.is-free td:first-child { border-left: 3px solid var(--fire); }

/* ---- forms ---- */

.field { margin-bottom: 0.75rem; }
.field label { display: block; font-size: 0.8rem; color: var(--muted-fg); margin-bottom: 0.35rem; }
.input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 16px; /* 16px or iOS zooms the page on focus */
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--primary); }
.input::placeholder { color: var(--muted-fg); }

.choice { display: flex; gap: 0.5rem; }
.choice button {
  flex: 1;
  padding: 0.8rem 0.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.choice button.on { border-color: var(--fire); color: var(--text); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error-msg { color: hsl(0, 80%, 65%); font-size: 0.85rem; margin-top: 0.5rem; }

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding: 1.5rem 0 3rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.6;
}
.site-footer a { color: var(--muted-fg); }
.site-footer .territory { font-style: italic; margin-bottom: 0.75rem; }
.site-footer .licence { margin-bottom: 0.75rem; }

@media (max-width: 480px) {
  .container, .container-wide { padding: 1.25rem; }
  .choice { flex-direction: column; }
}

/* ---- series page ---- */

.masthead { padding: 2rem 0 1.5rem; }
.masthead h1 { margin-bottom: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.5rem; display: block; }
.gallery figcaption { font-size: 0.72rem; color: var(--muted-fg); margin-top: 0.3rem; }

.signup { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; }
.signup-top { margin-bottom: 2.5rem; }
.signup-top label { display: block; font-size: 0.85rem; margin-bottom: 0.5rem; }
.inline-form { display: flex; gap: 0.5rem; }
.inline-form .input { flex: 1; min-width: 0; }
.inline-form .btn { white-space: nowrap; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } }

.thanks p { margin-bottom: 0.4rem; }
.optional { border-top: 1px solid var(--border); margin-top: 1.25rem; padding-top: 0.9rem; }
.optional summary { font-size: 0.85rem; color: var(--muted-fg); cursor: pointer; }
.optional[open] summary { margin-bottom: 0.75rem; }
.privacy-line { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.9rem; line-height: 1.5; }

/* Visible focus everywhere — the default outline is invisible on this palette. */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--fire-glow);
  outline-offset: 2px;
}

.site-footer .credits { font-size: 0.7rem; opacity: 0.8; margin-bottom: 0.6rem; }

/* ---- infographic layout ----
 * The page is read at a glance: big labels, short lines, lots of air.
 * Anything longer than a line belongs in an email, not here. */

.top-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.top-links a {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted-fg); text-decoration: none;
}
.top-links a:hover { color: var(--fire); }

.hook { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.5rem; }

.stats {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.stats li {
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem;
  padding: 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.stat { font-size: 1.35rem; font-weight: 900; line-height: 1.1; color: var(--fire); letter-spacing: -0.01em; }
/* Small caps captions: stat tiles and stream tags. */
.stat-l, .tags { color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat-l { font-size: 0.75rem; }

.stream-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stream-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem;
  padding: 1.25rem; display: flex; flex-direction: column;
}
.stream-card .icon {
  width: 44px; height: 44px; margin-bottom: 0.75rem;
  fill: none; stroke: var(--primary-glow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.stream-card h3 { color: var(--text); font-size: 1.15rem; font-weight: 800; margin-bottom: 0.75rem; }
.ticks { list-style: none; padding: 0; margin-bottom: 1rem; flex: 1; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; font-size: 0.95rem; }
.ticks b { color: var(--text); font-weight: 700; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--fire); font-weight: 800; }
.tags { font-size: 0.72rem; }
.note { font-size: 0.85rem; color: var(--muted-fg); margin-top: 0.75rem; }

/* Numbered rail. Vertical at every width: the series is a sequence in time,
 * and a phone reads top to bottom anyway. */
.flow { list-style: none; padding: 0; }
/* Connector from each marker down to the next; the last step has none, so
 * the rail stops at Pitch Night instead of running on beside the photo. */
.step:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.2rem - 1px); top: 2.4rem; bottom: 0;
  width: 2px; background: var(--primary);
}
.step:nth-last-child(2)::before { background: linear-gradient(var(--primary), var(--fire)); }
.step { position: relative; display: grid; grid-template-columns: 2.4rem 1fr 11rem; gap: 1rem; align-items: start; padding-bottom: 2rem; }
.step:last-child { padding-bottom: 0; }
.num {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: var(--bg); border: 2px solid var(--primary);
  font-weight: 900; font-size: 1.05rem;
}
.step.is-finale .num { border-color: var(--fire); background: var(--fire); color: var(--bg); }
.step-body p { margin-bottom: 0.25rem; }
/* Step verbs and fact labels share the .label type treatment. */
.verb, .facts dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.verb { color: var(--primary-glow); }
.step.is-finale .verb { color: var(--fire); }
.step h3 { color: var(--text); font-size: 1.15rem; font-weight: 800; margin-bottom: 0.35rem; }
.when { font-size: 0.95rem; }
.when b { color: var(--fire); font-weight: 800; }
.where { font-size: 0.85rem; color: var(--muted-fg); }
.aside { color: var(--muted-fg); opacity: 0.8; font-size: 0.85em; }
.blurb { font-size: 0.85rem; color: var(--muted-fg); margin-top: 0.35rem; }
.dates { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0 0.4rem; }
.dates li {
  background: var(--muted); color: var(--text); font-size: 0.8rem; font-weight: 700;
  padding: 0.25em 0.65em; border-radius: 4px;
}
.step-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.5rem; display: block; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.facts > div { border-top: 3px solid var(--primary); padding-top: 0.6rem; }
.facts dt { color: var(--muted-fg); margin-bottom: 0.25rem; }
.facts dd { font-weight: 700; font-size: 0.95rem; line-height: 1.35; }

@media (max-width: 640px) {
  .step { grid-template-columns: 2.4rem 1fr; }
  .step-img { grid-column: 2; aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .stream-cards, .facts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
