/* Producer Freedom — homepage. Tokens in heroes/ds-tokens.css. */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--inv-ground);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-text); }
.band--dark a:hover, .hero a:hover { color: var(--inv-brand-text); }

.wrap { max-width: 1328px; margin: 0 auto; padding: 0 56px; }

/* type */
h1, h2 { font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; margin: 0; }
h2 { font-size: 58px; }
h3 { font-size: 22px; font-variation-settings: "wdth" 112; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.lab {
  font-family: "SpaceMono", monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted); margin: 0; font-weight: 400;
}
.mono { font-family: "SpaceMono", monospace; font-size: 12px; }
.body-copy { color: var(--muted); max-width: 58ch; text-wrap: pretty; }

/* bands */
.band { padding: 128px 0; }
.band--dark { background: var(--inv-ground); color: var(--inv-ink); }
.band--dark .lab { color: var(--inv-muted); }
.band--dark .body-copy { color: var(--inv-muted); }
.band--cream { background: var(--ground); }

/* chrome */
.announce {
  height: 38px; background: var(--live); color: #141414;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "SpaceMono", monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700;
}
.nav {
  height: 78px; display: flex; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--inv-line);
  background: var(--inv-ground); color: var(--inv-ink);
  padding: 0 56px;
}
.brand { font-variation-settings: "wdth" 118; font-weight: 800; font-size: 17px; letter-spacing: 0.01em; text-transform: uppercase; margin-right: 28px; }
.navitem {
  font: inherit; font-size: 14px; font-weight: 600; background: transparent; color: inherit;
  border: 0; cursor: pointer; padding: 8px 16px; border-radius: 12px; text-decoration: none;
  transition: background var(--slow) cubic-bezier(0.4, 0, 1, 1);
}
a.navitem:hover { color: inherit; background: color-mix(in oklab, currentColor 8%, transparent); }
.nav-spacer { flex: 1; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: "Archivo", sans-serif; font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: 15px; padding: 16px 30px; background: var(--brand); color: #141414;
  transition: transform var(--fast) var(--ease), filter var(--fast) var(--ease);
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.08); color: #141414; }
.cta:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.cta--ghost { background: transparent; border: 1px solid var(--inv-line); color: var(--inv-ink); }
.cta--ghost.on-cream { border-color: var(--line); color: var(--ink); }
.cta--ghost:hover { color: var(--inv-ink); }
.cta--ghost.on-cream:hover { color: var(--ink); }
.cta--sm { font-size: 14px; padding: 12px 22px; }

/* status lines */
.statusline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "SpaceMono", monospace; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--inv-muted);
}
.statusline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--inv-line); flex: none; }
.is-armed .statusline { color: var(--inv-live-text); }
.is-armed .statusline .dot { background: var(--live); animation: pulse 1.2s ease-in-out infinite; }
.is-done .statusline { color: var(--inv-brand-text); }
.is-done .statusline .dot { background: var(--brand); animation: none; }
.on-cream-status.statusline { color: var(--muted); }
.on-cream-status .dot { background: var(--line); }
.is-armed .on-cream-status.statusline { color: var(--live-text); }
.is-done .on-cream-status.statusline { color: var(--brand-text); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .statusline .dot { animation: none !important; } }

/* ═══ hero ═══ */
.hero { padding: 96px 0 128px; background: var(--inv-ground); color: var(--inv-ink); }
.hero .kicker { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; }
.hero .kicker .live { color: var(--inv-live-text); }

.zone { position: relative; border: 1px dashed #8c888059; padding: 64px 56px 44px; transition: border-color var(--mid) var(--ease); }
.zone .tick { position: absolute; width: 14px; height: 14px; border: 0 solid var(--inv-ink); }
.zone .tick:nth-child(1) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.zone .tick:nth-child(2) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.zone .tick:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.zone .tick:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.is-armed .zone { border: 1px solid var(--live); }
.is-armed .zone .tick { border-color: var(--live); }
.zone-hint { position: absolute; top: -9px; left: 48px; background: var(--inv-ground); padding: 0 10px; }
.zone h1 { font-size: min(122px, 9.4vw); }
.zone .statusline { margin-top: 28px; }

/* mess → uniform ministrip */
.ministrip { display: flex; align-items: center; gap: 28px; margin: 44px 0 0; }
.ministrip .mgroup { display: flex; flex-direction: column; gap: 10px; }
.mess { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.mess span { display: block; background: linear-gradient(#5f5f5f, #3a3a3a); border: 1px solid #2E2E2E; }
.mess span:nth-child(1) { width: 34px; height: 52px; transform: rotate(-7deg); }
.mess span:nth-child(2) { width: 52px; height: 38px; transform: rotate(4deg); }
.mess span:nth-child(3) { width: 40px; height: 40px; transform: rotate(-3deg); }
.mess span:nth-child(4) { width: 30px; height: 58px; transform: rotate(9deg); }
.m-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--inv-muted); }
.m-arrow .mono { font-size: 14px; color: var(--inv-ink); }
.uniform { display: flex; align-items: center; gap: 8px; height: 64px; }
.uniform span { display: block; width: 68px; height: 38.25px; background: #000; border: 1px solid #2E2E2E; position: relative; }
.uniform span::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 36.25px; transform: translateX(-50%); background: #4a4a4a; }
.uniform span.real { background-size: cover; background-position: center; }
.uniform span.real::after { content: none; }

.hero .under { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-top: 44px; }
.hero .cta-row { display: flex; gap: 12px; flex: none; }
.factline { margin-top: 40px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--inv-line); padding-top: 18px; }

/* output rail */
.rail-box { border: 1px solid var(--inv-line); border-radius: var(--r-card); overflow: hidden; margin-top: 44px; }
.rail-head { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--inv-line); }
.rail-head .lab { white-space: nowrap; }
.rail { display: flex; gap: 12px; padding: 20px; min-height: 136px; align-items: center; overflow: hidden; }
.rail .rail-empty { width: 100%; text-align: center; }
.rail figure { margin: 0; display: flex; flex-direction: column; gap: 6px; flex: none; }
.rail canvas { width: 168px; height: 94.5px; border: 1px solid var(--inv-line); border-radius: 4px; display: block; }
.rail figcaption { font-family: "SpaceMono", monospace; font-size: 10px; color: var(--inv-muted); max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══ chaos → order ═══ */
.pain-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: end; margin-bottom: 56px; }
.pain-head h2 { max-width: 15ch; }
.pain-head .right { display: flex; flex-direction: column; gap: 18px; }

.chaos-box { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.chaos-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.chaos-stage { position: relative; height: 470px; margin: 0; }
.chaos-item {
  position: absolute; overflow: visible;
  transition: left 0.8s var(--ease), top 0.8s var(--ease), width 0.8s var(--ease),
    height 0.8s var(--ease), transform 0.8s var(--ease), background 0.8s var(--ease);
  background: transparent;
}
.chaos-item .win { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); overflow: hidden; transition: width 0.8s var(--ease), height 0.8s var(--ease); }
.chaos-item canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chaos-item .tag {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0;
  font-family: "SpaceMono", monospace; font-size: 9.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.chaos-item.is-out { outline: 1px solid #2E2E2E; }
.chaos-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--live); opacity: 0; z-index: 4; pointer-events: none; }
.chaos-stage.scanning .chaos-scan { animation: scan 0.9s linear 1 forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 96% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chaos-item, .chaos-item .win { transition: none; }
  .chaos-stage.scanning .chaos-scan { animation: none; }
}

.mathrow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 56px; }
.mathrow .cell { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.mathrow .big { font-variation-settings: "wdth" 118; font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.mathrow .cell p { font-size: 14px; color: var(--muted); }
.mathrow .big em { font-style: normal; color: var(--brand-text); }

/* ═══ the format ═══ */
.format-grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 72px; align-items: center; }
.format-grid .left { display: flex; flex-direction: column; gap: 24px; }
.yt { background: var(--inv-surface); border: 1px solid var(--inv-line); border-radius: var(--r-card); overflow: hidden; }
.yt-bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--inv-line); }
.yt-row { display: flex; gap: 16px; padding: 16px 20px; align-items: flex-start; }
.yt-row + .yt-row { border-top: 1px solid var(--inv-line); }
.yt-thumb { width: 186px; height: 104.6px; flex: none; background: #000; border: 1px solid #2E2E2E; border-radius: 4px; position: relative; overflow: hidden; }
.yt-thumb i { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 104.6px; }
.yt-thumb .dur { position: absolute; right: 5px; bottom: 5px; font-family: "SpaceMono", monospace; font-size: 9px; color: #EDEDE9; background: #000000cc; padding: 1px 4px; }
.yt-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 6px; }
.yt-lines b { display: block; height: 11px; background: #3a3a3a; border-radius: 2px; }
.yt-lines b.w2 { width: 52%; height: 8px; background: #2c2c2c; }
.yt-lines b.w3 { width: 34%; height: 8px; background: #2c2c2c; }

/* ═══ steps ═══ */
.steps-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.step .num { font-variation-settings: "wdth" 118; font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; color: var(--brand-text); }
.step p { font-size: 14.5px; color: var(--muted); }
.step .mono-note { font-family: "SpaceMono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }

/* ═══ tools + founder ═══ */
.tools-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 56px; }
.tool-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.tool-card { border: 1px solid var(--inv-line); border-radius: var(--r-card); background: var(--inv-surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; text-decoration: none; color: inherit; transition: border-color .18s ease, transform .18s ease; }
.tool-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.tool-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tool-card .top h3 { white-space: nowrap; }
.tool-card .top .lab { white-space: nowrap; }
.tool-card h3 { font-size: 26px; }
.tool-card p { font-size: 15px; color: var(--inv-muted); }
.tool-card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--inv-line); }
.tool-card .live-tag { color: var(--inv-live-text); }

.founder { margin-top: 96px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; border-top: 1px solid var(--inv-line); padding-top: 64px; }
.founder blockquote { margin: 0; font-size: 26px; line-height: 1.5; font-weight: 500; max-width: 44ch; color: var(--inv-ink); text-wrap: pretty; }
.founder .sig { margin-top: 24px; display: flex; align-items: baseline; gap: 16px; }
.final-cta { margin-top: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 1px dashed #8c888059; padding: 40px 48px; }
.final-cta h3 { font-size: 34px; font-variation-settings: "wdth" 118; font-weight: 800; }

/* footer */
footer { background: var(--ground); border-top: 1px solid var(--line); padding: 48px 0; }
footer .wrap { display: flex; align-items: baseline; gap: 28px; }
footer .brand { margin: 0; font-size: 15px; }
footer .spacer { flex: 1; }
footer a.lab { text-decoration: none; transition: color .15s ease; }
footer a.lab:hover { color: var(--ink); }

/* ── email modal (DS: amber fill, hard corners, hairlines only) ── */
.pf-modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(20,20,20,0.72); backdrop-filter: blur(10px); padding: 20px; }
.pf-modal.open { display: flex; }
.pf-modal .card { width: 100%; max-width: 460px; background: var(--inv-ground); border: 1px solid var(--inv-line); color: var(--inv-ink); padding: 32px 28px 24px; position: relative; }
.pf-modal .close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-family: "SpaceMono", monospace; font-size: 16px; color: var(--inv-muted); cursor: pointer; padding: 4px 8px; }
.pf-modal .close:hover { color: var(--inv-ink); }
.pf-modal h3 { margin: 0 0 8px; font-family: "Archivo", sans-serif; font-weight: 800; font-variation-settings: "wdth" 118; font-size: clamp(24px,3.4vw,32px); line-height: 1.02; letter-spacing: -0.02em; color: var(--inv-ink); }
.pf-modal h3 .accent { color: var(--inv-brand-text); }
.pf-modal .lede { font-size: 13px; line-height: 1.55; color: var(--inv-muted); margin: 8px 0 18px; }
.pf-modal .lede b { color: var(--inv-ink); font-weight: 600; }
.pf-modal form { display: grid; gap: 10px; }
.pf-modal input[type="email"] { width: 100%; padding: 13px 14px; border: 1px solid var(--inv-line); background: var(--inv-surface); color: var(--inv-ink); font-family: "SpaceMono", monospace; font-size: 13px; outline: none; border-radius: 0; }
.pf-modal input[type="email"]::placeholder { color: var(--inv-muted); }
.pf-modal input[type="email"]:focus { border-color: var(--brand); }
.pf-modal .cta { width: 100%; justify-content: center; border: none; cursor: pointer; }
.pf-modal .fineprint { margin-top: 12px; font-family: "SpaceMono", monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--inv-muted); }
.pf-modal .err { color: var(--inv-live-text); font-family: "SpaceMono", monospace; font-size: 11px; margin-top: 4px; min-height: 14px; }

.pf-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(30px); background: var(--inv-ground); color: var(--inv-ink); border: 1px solid var(--inv-line); padding: 12px 20px; font-family: "SpaceMono", monospace; font-weight: 500; font-size: 12.5px; z-index: 600; opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.pf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pf-toast b { color: var(--inv-brand-text); font-weight: 700; margin-right: 8px; }

/* ═══ blackbars page additions: pickers + parental advisory ═══ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.zone-buttons { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pick {
  display: inline-flex; align-items: center; cursor: pointer;
  font-family: "SpaceMono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 18px; border: 1px solid var(--inv-line); color: var(--inv-ink); background: var(--inv-surface);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.pick:hover { border-color: var(--brand); background: var(--inv-raised, #262626); }
.pick:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.pa-toggle {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none;
  font-family: "SpaceMono", monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--inv-muted); margin-left: 8px;
}
.pa-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.pa-toggle .pa-box {
  width: 16px; height: 16px; flex: none; border: 1px solid var(--inv-line); border-radius: var(--r-chip);
  display: inline-flex; align-items: center; justify-content: center; background: var(--inv-surface);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.pa-toggle input:checked + .pa-box { background: var(--brand); border-color: var(--brand); }
.pa-toggle input:checked + .pa-box::after { content: "✓"; color: #141414; font-size: 11px; line-height: 1; font-weight: 800; font-family: "Archivo", sans-serif; }
.pa-toggle input:focus-visible + .pa-box { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ═══ responsive (page was desktop-locked before — IG traffic is phones) ═══ */
@media (max-width: 1080px) {
  .pain-head { grid-template-columns: 1fr; gap: 28px; }
  .format-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  .nav { padding: 0 28px; }
  .nav .navitem { display: none; }
  .band { padding: 88px 0; }
  .hero { padding: 72px 0 96px; }
  .zone { padding: 44px 28px 36px; }
  .zone h1 { font-size: clamp(46px, 11vw, 92px); }
  .zone .statusline { flex-wrap: wrap; }
  .ministrip { flex-wrap: wrap; gap: 18px; }
  .hero .under { flex-direction: column; align-items: flex-start; gap: 28px; }
  .steps, .tool-cards, .mathrow { grid-template-columns: 1fr; }
  .steps-head, .tools-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 40px; }
  .final-cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .chaos-stage { height: 380px; }
  .yt-thumb { width: 132px; height: 74px; }
  .yt-thumb i { width: 74px; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 0 16px; }
  .brand { font-size: 13px; margin-right: 10px; white-space: nowrap; }
  .nav .cta--sm { font-size: 12px; padding: 10px 14px; }
  .hero .kicker { flex-direction: column; gap: 6px; align-items: flex-start; }
  .factline { flex-direction: column; gap: 10px; }
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .cta { width: 100%; }
  .rail canvas { width: 128px; height: 72px; }
  footer .wrap { flex-wrap: wrap; gap: 14px 20px; }
}
