/* Producer Command Center — sales + download pages.
   Tokens and fonts come from /heroes/ds-tokens.css; chrome (nav, footer,
   bands, .cta, .wrap, .lab) comes from /home/hub.css. Only page-specific
   layout lives here.

   Structural differentiation is deliberate, per the teardown: the competitor
   page we learned the SHAPE from is amber-on-black too, so we separate on
   craft — hairlines instead of glows, generous space, calm density, and
   type doing the work. No hue-carrying gradients. No drop shadows. */

/* The install steps name real filenames. Without this they fall back to the
   system monospace, which is the same silent-fallback bug the Upload Kit had. */
code {
  font-family: "SpaceMono", ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--raised);
  padding: 1px 5px;
  border-radius: var(--r-chip);
}

/* ═══ ticker ═══ */
.ticker {
  border-bottom: 1px solid var(--inv-line);
  background: var(--inv-ground);
  color: var(--inv-muted);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 56px;
  padding: 11px 0;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker-track span {
  font-family: "SpaceMono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; padding: 11px 56px; gap: 28px; }
}

/* ═══ hero ═══ */
.cc-hero { padding: 112px 0 96px; background: var(--inv-ground); color: var(--inv-ink); }
.cc-hero h1 {
  font-size: clamp(46px, 7.2vw, 104px);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 22px 0 0;
}
/* Line two carries the brand. Amber on #141414 measures 8.63:1 — the one
   place a fill colour is allowed to be a text colour. */
.cc-hero h1 .out { color: var(--inv-brand-text); display: block; }
.cc-hero .body-copy { margin-top: 30px; font-size: 19px; max-width: 60ch; }

.cta-row { margin-top: 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta--os {
  background: transparent;
  border: 1px solid var(--inv-line);
  color: var(--inv-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta--os:hover { border-color: var(--inv-muted); background: transparent; color: var(--inv-ink); }
/* The size label. This lives on .cta as well as .cta--os — the download page's
   primary button is a filled .cta and was rendering "macOS4.5 MB" without it. */
.cta:has(.os-size) { display: inline-flex; align-items: center; gap: 10px; }
.os-size {
  font-family: "SpaceMono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--inv-muted);
}
/* On the filled amber button the muted grey would drop below AA, so it takes
   the same dark ink as the label, at reduced opacity. */
.cta:not(.cta--os):not(.cta--ghost) .os-size { color: #141414; opacity: 0.62; }

.reassure {
  margin-top: 18px;
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-family: "SpaceMono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--inv-muted);
}

/* The unsigned-build disclosure. Beside the CTA, not buried, not dramatised —
   a hairline box in the muted tone, the same weight as any other fact. */
.disclosure {
  margin-top: 26px;
  border: 1px solid var(--inv-line);
  border-left: 2px solid var(--brand);
  padding: 16px 20px;
  max-width: 62ch;
  color: var(--inv-muted);
  font-size: 14px;
  line-height: 1.6;
}
.disclosure a { color: var(--inv-ink); }

/* ═══ the math table ═══ */
.math-wrap { overflow-x: auto; margin-top: 48px; }
.math {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
}
.math th, .math td {
  text-align: left;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}
.math th {
  font-family: "SpaceMono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 400;
}
.math td:last-child, .math th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.math tr.ours td {
  border-bottom: none;
  border-top: 1px solid var(--ink);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 19px;
  padding-top: 26px;
}
.math tr.ours td:last-child { color: var(--brand-text); }
.math .every-year { color: var(--muted); font-size: 13px; }

/* ═══ feature grid ═══ */
.features { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--ground); padding: 34px 30px 38px; }
.feature .n {
  font-family: "SpaceMono", monospace;
  font-size: 11px;
  color: var(--brand-text);
  letter-spacing: 0.14em;
}
.feature h3 { margin-top: 14px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ═══ alternating deep sections ═══ */
.deep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
.deep + .deep { margin-top: 112px; }
.deep--flip .deep-text { order: 2; }
.deep ul { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.deep li { padding-left: 22px; position: relative; color: var(--muted); }
.deep li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--brand);
}

/* A real screenshot goes in here. Until one exists the frame stays empty and
   labelled — an illustration of a product that runs is worse than nothing. */
.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  aspect-ratio: 1180 / 780;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shot .placeholder {
  font-family: "SpaceMono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

/* ═══ pricing ═══ */
.tiers { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tier {
  border: 1px solid var(--inv-line);
  padding: 34px 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.tier--lead { border-color: var(--brand); }
.tier .price { font-variation-settings: "wdth" 118; font-weight: 800; font-size: 42px; letter-spacing: -0.03em; line-height: 1; }
.tier .once { font-family: "SpaceMono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--inv-muted); }
.tier ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tier li { padding-left: 20px; position: relative; font-size: 15px; color: var(--inv-muted); }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 11px; height: 1px; background: var(--brand); }
.tier .cta { margin-top: auto; text-align: center; }
.tier-flag {
  font-family: "SpaceMono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--inv-brand-text);
}

/* The metering rule. It goes on the page verbatim because it IS the promise. */
.rule {
  margin-top: 44px;
  border: 1px dashed #8c888059;
  padding: 32px 36px;
  max-width: 76ch;
}
.rule p { color: var(--inv-muted); margin-top: 12px; }
.rule strong { color: var(--inv-ink); font-weight: 600; }

/* ═══ faq ═══ */
.faq { margin-top: 48px; max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  cursor: pointer;
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "SpaceMono", monospace; color: var(--muted); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 14px; color: var(--muted); max-width: 66ch; }

/* ═══ download page ═══ */
.dl-steps { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-os { border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px 30px 36px; background: var(--surface); }
.dl-os h3 { display: flex; align-items: baseline; gap: 12px; }
.dl-os ol { margin: 22px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.dl-os li::marker { font-family: "SpaceMono", monospace; font-size: 13px; color: var(--brand-text); }
.dl-os .gif {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--raised);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-os .gif img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dl-os .gif .placeholder {
  font-family: "SpaceMono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}
.stuck { margin-top: 40px; font-size: 15px; color: var(--muted); }

/* ═══ responsive ═══ */
@media (max-width: 1080px) {
  .features { grid-template-columns: 1fr 1fr; }
  .deep { grid-template-columns: 1fr; gap: 40px; }
  .deep--flip .deep-text { order: 0; }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .nav { padding: 0 22px; }
  .cc-hero { padding: 72px 0 64px; }
  .band { padding: 80px 0; }
  .features { grid-template-columns: 1fr; }
  .dl-steps { grid-template-columns: 1fr; }
  .rule { padding: 24px 22px; }
}
