/* tizzy.tv shared styles v1 (30 Oct 2026). Colours, fonts and radii come from brand/tokens_v2.css; this file only maps them to roles.
   Every page is built from layout_v1.html + pages/*.html by site/build_v1.py. Lime only on dark. */
:root {
  --bg: var(--tz-mist); --panel: var(--tz-white); --line: #DDD5FA; --fg: var(--tz-night); --muted: #5B4F80;
  --accent: var(--tz-violet-strong); --accent-fg: var(--tz-white); --hl: var(--tz-violet); --field: #FBFAFF;
  --ok: #1F7A3F; --bad: #C23A26; --chip: #ECE6FF;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: var(--tz-night); --panel: var(--tz-facet-7); --line: var(--tz-facet-6); --fg: var(--tz-white); --muted: #E8E2FF;
  --accent: var(--tz-lime); --accent-fg: var(--tz-on-lime); --hl: var(--tz-lime); --field: #33215F;
  --ok: var(--tz-lime); --bad: #FF9A8A; --chip: #3F2A80; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: var(--tz-night); --panel: var(--tz-facet-7); --line: var(--tz-facet-6); --fg: var(--tz-white); --muted: #E8E2FF;
  --accent: var(--tz-lime); --accent-fg: var(--tz-on-lime); --hl: var(--tz-lime); --field: #33215F;
  --ok: var(--tz-lime); --bad: #FF9A8A; --chip: #3F2A80; color-scheme: dark }

/* Dark mode reads like the light one: near-white secondary text, a touch more weight (thin text blooms on dark) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { font-weight: 500; -webkit-font-smoothing: antialiased; } }
:root[data-theme="dark"] body { font-weight: 500; -webkit-font-smoothing: antialiased; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--tz-body); }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 40px); }   /* owner: up to 1,440 px */
h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--tz-display); font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tz-coral); outline-offset: 2px; }
.label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.draft { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--bad); border: 1px dashed currentColor; border-radius: 6px; padding: 1px 7px; }
.chip { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--tz-radius-pill); background: var(--chip); }
.chip.on { background: var(--tz-coral); color: var(--tz-on-coral); }

/* Header */
header.top { padding-block: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wordmark img { display: block; height: 40px; width: auto; }
.top nav { display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { font-weight: 800; text-decoration: none; display: inline-block; padding: 10px 2px; }

/* Hero: two columns aligned at the top of the headline; on phones the clip sits under the pitch */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "copy video" "form form"; column-gap: 48px; row-gap: 32px; align-items: center; padding-block: 24px 20px; }
.hero-copy { grid-area: copy; }
.hero-video { grid-area: video; }
.hero-form { grid-area: form; }
.band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4px 32px; align-items: end; padding: 20px 24px; }
.band .band-foot { grid-column: 1 / -1; display: grid; gap: 2px; }
.band .band-head h2 { font-size: 26px; }
.band .band-head p { color: var(--muted); margin-top: 4px; }
.band .band-form { display: grid; gap: 6px; }
.hero h1 { font-size: clamp(40px, 5.8vw, 84px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--hl); display: block; }
.hero .lede { margin-top: 18px; font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { font-size: 13px; font-weight: 800; padding: 4px 11px; border-radius: var(--tz-radius-pill); background: var(--panel); border: 1px solid var(--line); }
.badge.rating { background: var(--tz-coral); border-color: var(--tz-coral); color: var(--tz-on-coral); }

.monitor { background: var(--tz-night); border-radius: 18px; overflow: hidden; border: 6px solid var(--tz-night); box-shadow: 0 14px 34px rgb(43 27 90 / .28); }
.monitor video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; border-radius: 12px; }
.monitor .bar { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px 2px; color: var(--tz-white); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.monitor .bar span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tz-lime); margin-right: 6px; vertical-align: 1px; }
.monitor .disclose { margin: 0; padding: 2px 8px 8px; font-size: 13px; color: #E8E2FF; }

form.join { background: var(--panel); border: 1px solid var(--line); border-radius: var(--tz-radius); padding: 16px; display: grid; gap: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input[type=email] { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); }
.tick { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 44px; cursor: pointer; }
.tick input { margin: 0; width: 24px; height: 24px; flex: none; accent-color: var(--tz-violet); }
.btn { padding: 12px 20px; border-radius: var(--tz-radius-pill); border: 0; background: var(--accent); color: var(--accent-fg); font-family: var(--tz-display); font-weight: 600; font-size: 17px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn[disabled] { opacity: .6; cursor: wait; }
.fine { font-size: 14px; color: var(--muted); }
.msg { font-size: 15px; font-weight: 700; }
.msg:empty { display: none; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
section { padding-block: 36px; scroll-margin-top: 8px; }
section h2 { font-size: clamp(28px, 3.8vw, 40px); }
section .intro { color: var(--muted); font-size: 18px; }
/* Section header: title left, intro right, so the row is full */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 48px; align-items: center; margin-bottom: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--tz-radius); padding: 20px; }
.card h3 { font-size: 21px; }
.card p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Scenarios */
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scene { display: flex; flex-direction: column; gap: 10px; }
.scene .art { aspect-ratio: 16/9; border-radius: 12px; background: linear-gradient(135deg, var(--tz-facet-1), var(--tz-facet-4) 55%, var(--tz-facet-6)); display: grid; place-items: center; overflow: hidden; }
.scene .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene .art video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene .top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scene.soon { border-style: dashed; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps .n { font-family: var(--tz-display); font-weight: 700; font-size: 32px; color: var(--hl); line-height: 1; margin-bottom: 8px; }

/* Cast */
.cast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.mate { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; }
.mate img { width: 112px; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 14px; display: block; background: var(--tz-night); }
.mate h3 { font-size: 21px; }
.mate .age { font-family: var(--tz-body); font-size: 15px; color: var(--muted); font-weight: 700; }
.mate .job { margin-top: 0; font-size: 14px; font-weight: 800; color: var(--fg); }
.mate .rival { font-size: 14px; }


/* Streamers */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.feature { display: grid; gap: 14px; grid-template-rows: auto auto 1fr; }
.feature ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 16px; }
.rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rate { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.rate .big { font-family: var(--tz-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--hl); }
.rate p { color: var(--fg); margin-top: 4px; font-size: 15px; font-weight: 700; }
.rate .was { font-size: 14px; color: var(--muted); font-weight: 400; }
.fc-list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan.pick { border: 2px solid var(--hl); }
.plan .price { font-family: var(--tz-display); font-weight: 700; font-size: 30px; line-height: 1; }
.plan .price small { font-size: 15px; font-family: var(--tz-body); color: var(--muted); font-weight: 700; }
.plan .aud { font-size: 13px; color: var(--muted); }
.plan .buys { font-size: 15px; font-weight: 800; color: var(--fg); }
.plan ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; color: var(--muted); }

/* Safety */
.credits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.credits > .card:nth-child(1) { grid-column: span 3; }
.credits > .calc { grid-column: span 3; }
.credits > .card:nth-child(n+3) { grid-column: span 2; }
.costs { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.costs td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.costs td:last-child { text-align: right; font-weight: 800; padding-left: 12px; white-space: nowrap; }
.credits ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); }
.credits .note { font-size: 14px; margin-top: 10px; }
.calc { display: grid; gap: 14px; align-content: start; }
.calc label { display: grid; gap: 6px; font-weight: 800; font-size: 15px; }
.calc input[type=range] { width: 100%; accent-color: var(--tz-violet); min-height: 28px; }
.calc select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); font: inherit; color: inherit; }
.calc-out { font-size: 18px; padding: 14px; border-radius: 12px; background: var(--chip); }
.safety { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* FAQ + closing */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
details summary { font-weight: 800; cursor: pointer; padding-block: 4px; }
details p { margin-top: 8px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 14px; color: var(--muted); display: grid; gap: 10px; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; }
footer .links a { display: inline-block; padding: 10px 0; }

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credits > .card:nth-child(n) { grid-column: span 6; }
}
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .feature { grid-template-rows: none; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "video" "form"; padding-top: 6px; }
  .scenes, .steps, .split, .band { grid-template-columns: 1fr; }
  .band { padding: 16px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: 1fr; }
  .cast { grid-template-columns: 1fr; }
  .wordmark img { height: 32px; }
  .top nav { display: none; }
  section { padding-block: 28px; }
  .sec-head { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .plans { grid-template-columns: 1fr; } }

/* ---- Page leads, the values list, link bands (values page and the new section pages) */
.lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 48px; align-items: center; padding-block: 24px 36px; }
.lead h1 { font-size: clamp(40px, 5.8vw, 84px); line-height: 1.02; }
.lead h1 em { font-style: normal; color: var(--hl); }
.lead.two h1 em { display: block; }   /* two-line headline so it matches the intro beside it */
.lead p { font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); }
.values { display: grid; gap: 12px; padding-bottom: 36px; }
.value { background: var(--panel); border: 1px solid var(--line); border-radius: var(--tz-radius); padding: 18px 24px; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 2fr); gap: 4px 24px; align-items: center; }
.value .n { font-family: var(--tz-display); font-weight: 700; font-size: 32px; line-height: 1; color: var(--hl); }
.value h2 { font-size: 23px; }
.value p { color: var(--muted); font-size: 17px; }
.band .links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: flex-end; font-weight: 800; }
a.btn { text-decoration: none; }
.more { font-weight: 800; white-space: nowrap; }
.top nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

/* ---- Home: the promises band */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promise { display: grid; gap: 6px; align-content: start; }
.promise .n { font-family: var(--tz-display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--hl); }

/* ---- Scenarios page: one full-width row per scenario */
.scene-rows { display: grid; gap: 16px; }
.scene-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; }
.scene-row img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.scene-row .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.scene-row .fact { background: var(--chip); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.scene-row .fact strong { display: block; font-size: 16px; }

/* ---- Tizzies page: profile cards */
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile img { width: 160px; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 14px; display: block; }
.profile dl { margin: 8px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 15px; }
.profile .age, .scene-row .age { font-family: var(--tz-body); font-size: 17px; color: var(--muted); font-weight: 700; }
.profile dt { font-weight: 800; }
.profile dd { margin: 0; color: var(--muted); }

@media (max-width: 1000px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profiles { grid-template-columns: minmax(0, 1fr); }
  .value { grid-template-columns: 48px minmax(0, 1fr); } .value p { grid-column: 2; }
}
@media (max-width: 760px) {
  .lead, .scene-row { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .scene-row .facts { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 96px minmax(0, 1fr); }
  .profile img { width: 96px; }
  .band .links { justify-content: flex-start; }
}

/* ---- Tizzies page: the randomised house extras strip */
.extras { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.extra { margin: 0; padding: 10px; text-align: center; }
.extra img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 12px; display: block; }
.extra figcaption { margin-top: 6px; font-weight: 800; font-size: 15px; display: grid; }
.extra figcaption span { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 1000px) { .extras { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Costs table: a long value may wrap on phones (sentence-case "Rounded up..." no longer fits on one line at 390 px) */
@media (max-width: 480px) { .costs td:last-child { white-space: normal; min-width: 7em; } }

/* ---- Roadmap Vote (/roadmap): one card per idea, a bar for its share of the votes */
.ballot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vote { display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; }
.vote .top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vote p { margin-top: 0; }
.vote .tally { display: grid; gap: 4px; }
.vote .bar { height: 10px; border-radius: var(--tz-radius-pill); background: var(--chip); overflow: hidden; }
.vote .bar span { display: block; height: 100%; width: 0; background: var(--tz-violet); border-radius: inherit; }
.vote .count { font-size: 14px; font-weight: 800; color: var(--muted); }
.vote.mine { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.btn[disabled].ghost { cursor: not-allowed; }
.voter { font-weight: 800; }
.total { margin-top: 12px; }
@media (max-width: 1000px) { .ballot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ballot { grid-template-columns: 1fr; } }

/* ---- v25 (launch-ready): three plans, The House feature, the coming-next strip, social links */
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.monitor video { height: auto; }   /* the height attribute would otherwise win over aspect-ratio */
.plan-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 14px; }
.house-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.house-split .scene { padding: 12px; }
.house-split .scene .art { height: 100%; }
.house-copy { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.house-copy .top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.house-copy ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.next-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.next { padding: 10px; display: grid; gap: 8px; text-decoration: none; font-weight: 800; font-family: var(--tz-display); font-size: 18px; }
.next img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; display: block; }
.next:hover { border-color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; }
.socials a { font-weight: 800; display: inline-block; padding: 6px 0; }
@media (max-width: 1000px) { .plans.three { grid-template-columns: 1fr; } .next-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .house-split { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .plan-notes { grid-template-columns: 1fr; } }

/* ---- v26: the streamers' earn band under the hero */
.earn-band { align-items: center; }
.earn-band .band-form { justify-items: end; }
@media (max-width: 760px) { .earn-band .band-form { justify-items: start; } }

/* v26: the longer hero headline (three short sentences) at a size that keeps the copy no taller than the clip */
.hero h1 { font-size: clamp(36px, 4.6vw, 66px); }
/* v26: on wide screens the clip's frame takes the height of the copy beside it, so the two columns end together;
   the clip is letterboxed (contain), never cropped, so the burned-in "Made with AI" label always shows */
@media (min-width: 761px) {
  .hero { align-items: stretch; }
  .hero-video .monitor { height: 100%; display: flex; flex-direction: column; }
  .hero-video .monitor video { flex: 1 1 0; min-height: 0; height: 0; aspect-ratio: auto; object-fit: contain; background: var(--tz-night); }
}

/* v27: the streamers' earn line in the first screen */
.hero .earn-line { margin-top: 8px; font-size: 15px; color: var(--muted); }
.hero .earn-line strong { color: var(--fg); }

/* v28: "stream it and earn" in the hero is a link to /streamers, so earning is tappable on the first phone screen */
.hero .earn-link { color: var(--fg); font-weight: 800; text-decoration-color: var(--tz-lime); text-decoration-thickness: 3px; }

/* v29: a call to action under a page's intro (streamers) */
.lead .cta-row { margin-top: 14px; }
