/* Creative Studio (/creative/). Site tokens, light only, one dark stage for the billboard. */
:root {
  --bg: #f7f7f5; --paper: #fff; --wash: #eeefec; --ink: #1c1b1a; --muted: #625e59; --line: #e3e1dc;
  --teal: #2f7d74; --rust: #9f1414; --gold: #b8860b; --night: #171b1c;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif; --sans: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }

.cs-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.cs-wrap--wide { width: min(1320px, calc(100% - 24px)); }
.cs h1, .cs h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.cs h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: none; }
.cs h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 24ch; }
.cs p { margin: 0; max-width: 62ch; }
.cs-sub { color: var(--muted); margin-top: 14px !important; }
.cs :focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Hero */
.cs-hero { padding: 0 0 34px; }
.cs-hero__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 20px; }
.cs-lede { color: var(--muted); font-size: 1.05rem; }
.cs-stage { position: relative; aspect-ratio: 16 / 9; max-height: min(40vh, 640px); width: 100%; background: var(--night); border-radius: 6px; overflow: hidden; }
.cs-stage__still, #cs-board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 40%; }
#cs-board { opacity: 0; transition: opacity .4s; }
#cs-board.is-live { opacity: 1; }
.cs-stage__pause { position: absolute; left: 12px; bottom: 12px; font: 600 13px var(--sans); color: #fff; background: rgba(0, 0, 0, .6); border: 0; border-radius: 99px; padding: 9px 16px; cursor: pointer; }
.cs-stage__pause:hover { background: rgba(0, 0, 0, .8); }
.cs-stage__now { position: absolute; right: 12px; bottom: 12px; margin: 0; font: 500 13px var(--sans); color: #fff; background: rgba(0, 0, 0, .6); border-radius: 99px; padding: 9px 16px; }
.cs-stage__now:empty { display: none; }

.cs-picker { display: flex; gap: 10px; margin-top: 14px; padding: 4px 4px 12px; overflow-x: auto; scrollbar-width: thin; }
.cs-picker button { flex: none; cursor: pointer; padding: 0; border: 0; background: none; }
/* Random stays pinned at the left while the ads scroll under it. Teal means "Random is choosing". */
.cs-picker .cs-dice { position: sticky; left: 0; z-index: 1; width: 84px; height: 72px; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), -8px 0 0 var(--bg), 10px 0 0 var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 600 12px var(--sans); }
.cs-dice svg { width: 26px; height: 26px; fill: currentColor; }
.cs-picker .cs-dice[aria-pressed="true"] { background: var(--teal); color: #fff; box-shadow: -8px 0 0 var(--bg), 10px 0 0 var(--bg); }
.cs-thumb { width: 128px; height: 72px; border-radius: 4px; overflow: hidden; opacity: .72; transition: opacity .15s; }
.cs-thumb canvas { display: block; width: 100%; height: 100%; }
.cs-thumb:hover, .cs-thumb[aria-pressed="true"] { opacity: 1; }
.cs-thumb[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ink); }
.cs-note { color: var(--muted); font-size: .88rem; margin-top: 6px !important; }

/* Sections */
.cs-sec { padding: 72px 0; }
.cs-sec--wash { background: var(--wash); }

/* Rate card */
.cs-rates { width: 100%; border-collapse: collapse; margin-top: 30px; }
.cs-rates th, .cs-rates td { text-align: left; vertical-align: baseline; padding: 20px 20px 20px 0; border-top: 1px solid var(--line); }
.cs-rates thead th { border-top: 0; padding-block: 0 10px; font: 500 .82rem var(--sans); color: var(--muted); }
.cs-rates tbody th { font: 600 1.15rem/1.25 var(--display); width: 22%; }
.cs-rates td { color: var(--muted); }
.cs-rates .cs-price { font: 600 clamp(1.6rem, 3vw, 2.3rem)/1 var(--display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; padding-right: 0; }
.cs-rates thead th:last-child { text-align: right; padding-right: 0; }

/* Editor */
.cs-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px 56px; align-items: start; }
.cs-edit__copy { display: flex; flex-direction: column; gap: 16px; }
.cs-edit__copy p { color: var(--muted); }
.cs-editor { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cs-editor canvas { display: block; width: 100%; height: auto; border-radius: 3px; }
.cs-field { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 500; }
.cs-field input, .cs-field select { font: 400 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; }
.cs-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; }
.cs-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }

.cs-btn { display: inline-block; align-self: flex-start; font: 600 .95rem var(--sans); color: #fff; background: var(--teal); border: 0; border-radius: 99px; padding: 12px 22px; cursor: pointer; text-decoration: none; }
.cs-btn:hover { background: #256a62; }
.cs-btn--light { background: #fff; color: var(--ink); }
.cs-btn--light:hover { background: var(--wash); }

/* Films */
.cs-films { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 24px; margin-top: 30px; align-items: start; }
.cs-films__player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--night); border-radius: 6px; }
.cs-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-langs button { font: 500 .88rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--ink); border-radius: 99px; padding: 7px 14px; cursor: pointer; }
.cs-langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cs-films__list { list-style: none; margin: 0; padding: 0; }
.cs-films__list button { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.cs-films__list li:last-child button { border-bottom: 1px solid var(--line); }
.cs-films__list strong { font: 600 1.05rem var(--display); }
.cs-films__list span { color: var(--muted); font-size: .9rem; }
.cs-films__list button:hover { background: var(--wash); }
.cs-films__list button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cs-films__list button[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }

/* Places */
.cs-place { margin-top: 30px; min-height: 420px; background: var(--night); border-radius: 6px; overflow: hidden; position: relative; }
.cs-place__wait { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); max-width: none !important; padding: 20px; text-align: center; }
.cs-uses { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cs-uses li { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--ink); padding-top: 12px; }
.cs-uses strong { font: 600 1.1rem var(--display); }
.cs-uses span { color: var(--muted); }

/* Builder, close, footer */
.cs-builder { display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 28px 48px; align-items: center; }
.cs-builder p { color: var(--muted); margin-top: 14px; }
.cs-close { background: var(--night); color: #fff; padding: 72px 0; }
.cs-close h2 { max-width: 22ch; }
.cs-close p { color: rgba(255, 255, 255, .72); margin: 14px 0 26px; }
.cs-foot { padding: 22px 0; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.cs-foot .cs-wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .cs-hero__head, .cs-edit, .cs-films, .cs-builder { grid-template-columns: minmax(0, 1fr); }
  .cs-uses { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cs-sec, .cs-close { padding: 52px 0; }
  .cs-rates thead { display: none; }
  .cs-rates, .cs-rates tbody, .cs-rates tr, .cs-rates th, .cs-rates td { display: block; width: 100%; }
  .cs-rates tr { border-top: 1px solid var(--line); padding: 18px 0; }
  .cs-rates th, .cs-rates td { border: 0; padding: 0; }
  .cs-rates td { margin-top: 8px; }
  .cs-rates td::before { content: attr(data-l) ": "; color: var(--ink); font-weight: 500; }
  .cs-rates .cs-price { text-align: left; margin-top: 12px; }
  .cs-rates .cs-price::before { font: 500 .9rem var(--sans); color: var(--muted); }
  .cs-stage__now { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #cs-board, .cs-thumb { transition: none; }
}


.cs-hero { scroll-margin-top: 76px; }
@media (max-width: 860px) { .cs-rates tbody th { width: 100%; } }

/* Random's current pick: teal ring, matching the Random button, unlike the dark ring of a chosen ad. */
.cs-thumb.is-on { opacity: 1; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--teal); }

/* Jump vignettes: a preview of each section, placed above the billboard so nobody has to scroll to find them. */
.cs-jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.cs-jump a { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; min-width: 0; }
.cs-jump a:hover { border-color: var(--ink); }
.cs-jump img, .cs-jump svg { flex: none; width: 88px; height: 50px; object-fit: cover; border-radius: 3px; display: block; }
.cs-jump span { display: flex; flex-direction: column; min-width: 0; font-size: .82rem; line-height: 1.3; color: var(--muted); }
.cs-jump strong { font: 600 1rem/1.25 var(--display); color: var(--ink); }
.cs-stage__cap { color: var(--muted); font-size: .95rem; margin-bottom: 8px !important; }
.cs-sec { scroll-margin-top: 60px; }
@media (max-width: 980px) { .cs-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cs-jump { gap: 8px; } .cs-jump a { flex-direction: column; align-items: flex-start; gap: 6px; } .cs-jump img, .cs-jump svg { width: 100%; height: auto; aspect-ratio: 16 / 9; } }

/* Page top: the studio line and the jump vignettes. */
.cs-top { padding: 22px 0 6px; }
.cs-top h1 { margin-bottom: 14px; }
/* Product separator: a heavy rule and the product's name, the same name its vignette uses. */
.cs-prod { max-width: none !important; border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 14px !important; font: 600 1rem var(--display); color: var(--teal); }
.cs-hero__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 24ch; }
.cs-hero__head { margin-bottom: 12px; }
.cs-sec--sub { padding-top: 0; }

.cs-theme { color: var(--muted); max-width: none !important; margin-bottom: 14px !important; }
.cs-top h1 { margin-bottom: 8px; }

/* Film picker: a list of buttons that reads as a selector (icon per sector, play mark on the right). */
.cs-films__label { font: 600 .95rem var(--display); margin-bottom: 10px !important; }
.cs-films__list { display: flex; flex-direction: column; gap: 8px; }
.cs-films__list button { flex-direction: row; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 10px 12px; }
.cs-films__list li:last-child button { border-bottom: 1px solid var(--line); }
.cs-films__list button:hover { background: var(--paper); border-color: var(--ink); }
.cs-films__list button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.cs-films__t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cs-ico { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cs-films__list button[aria-pressed="true"] .cs-ico { stroke: #fff; }
.cs-play { flex: none; width: 18px; height: 18px; fill: var(--muted); }
.cs-films__list button[aria-pressed="true"] .cs-play { fill: #fff; }

/* The recurring offer: order it from us, or make it in your platform. Same block under every product. */
.cs-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper); }
.cs-ways > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.cs-ways > div + div { border-left: 1px solid var(--ink); }
.cs-ways strong { font: 600 1.1rem var(--display); }
.cs-ways p { color: var(--muted); }
.cs-ways .cs-ways__price { color: var(--ink); font: 600 1rem var(--display); margin-top: auto; padding-top: 6px; }
@media (max-width: 700px) { .cs-ways { grid-template-columns: minmax(0, 1fr); } .cs-ways > div + div { border-left: 0; border-top: 1px solid var(--ink); } }

/* Other pages reset link underlines globally; this page does not, so the shared header needs it here. */
header.nav a { text-decoration: none; }

.cs-ways__price a, .cs-rates td a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
