/* Clone Viral Videos: re-skin of the inherited site.css (sister-app engine) into the Step Sequencer identity.
   Load order on app-world pages: site.css, /brand/tokens.css, cvv-shell.css, this file. Always light (data-theme="light").
   Rule: no paper sweeps, tape textures, ring light, marker font or tangerine anywhere. */
:root {
  /* site.css palette -> brand tokens */
  --tangerine: var(--primary); --butter: var(--surface); --lilac: var(--surface); --teal: var(--machine); --teal-ink: var(--machine-ink-2);
  --muted-on-dark: var(--machine-ink-2);
  --paper: var(--bg); --paper-2: var(--surface); --card: var(--surface-raised);
  --tape: var(--machine); --spike: var(--primary); --rec: var(--led); --warn: #8A4B00; --bad: var(--error);
  --display: var(--font-display); --text: var(--font-body); --marker: var(--font-display);
  --r-sm: var(--r-key); --r: var(--r-field); --r-lg: var(--r-panel);
  --shadow: var(--shadow-rest); --shadow-lg: var(--shadow-machine); --ease: var(--ease-out);
}
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-stretch: 100%; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2 { font-family: var(--font-display); font-weight: 900; font-stretch: 100%; text-transform: uppercase; letter-spacing: var(--track-display); line-height: var(--lh-heading); }
h1 { line-height: var(--lh-display); }
h3, h4 { font-family: var(--font-body); font-weight: 700; font-stretch: 100%; letter-spacing: -0.01em; }
.lede { color: var(--ink-2); }
.fine, .hint { color: var(--ink-3); }
a { color: var(--link); }
.num { font-family: var(--font-readout); font-weight: 800; font-stretch: 100%; letter-spacing: 0; }

/* Grounds: the photographed sweeps become flat panels. */
.sweep, .sweep--tangerine, .sweep--butter, .sweep--lilac { --sweep-color: var(--surface); --sweep-img: none; background: var(--surface); color: var(--ink); }
.sweep--teal { --sweep-color: var(--machine); --sweep-img: none; background: var(--machine); color: var(--machine-ink); }
.sweep::before { background: none !important; }
.sweep--teal .lede, .sweep--teal .fine { color: var(--machine-ink-2); }
.sweep--teal a:not(.btn) { color: var(--machine-ink); }
.sweep--teal :focus-visible { outline-color: var(--led); }
.body--app, .body--paper, .top-dark { background: var(--bg); }

/* Tape labels become silkscreened panel labels. */
.tape, .tape--spike { transform: none !important; background: var(--machine) none !important; color: var(--machine-ink); font: 800 var(--fs-label)/1.1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-key); box-shadow: var(--key-bevel); }
.tape--spike { background: var(--primary) none !important; color: var(--on-primary); }
.tape small { font: 700 0.625rem/1 var(--font-body); letter-spacing: 0.08em; opacity: 0.8; }

/* Ring light rig: keep the playing phone, drop the photographed ring and glow. */
.rig__img, .rig__glow, .ringed__ring { display: none !important; }
.phone { background: var(--machine); border-radius: 18px; box-shadow: var(--shadow-machine); }
.phone video, .phone img, .phone .phone__empty { border-radius: 12px; background: var(--machine-2); }
.rec__dot::before { background: var(--led); }

/* Keys, not pills. */
.btn { --bg: var(--primary); --fg: var(--on-primary); border-radius: var(--r-button); font: 800 1rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; font-stretch: 100%; box-shadow: var(--key-bevel), var(--key-drop); }
.btn:hover { transform: none; box-shadow: var(--key-bevel), var(--key-drop); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: var(--key-pressed); }
.btn--ink, .btn--spike { --bg: var(--primary); --fg: var(--on-primary); }
.btn--paper { --bg: var(--surface-raised); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 1px 2px rgba(20,21,23,.08); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn .dot { background: var(--led); box-shadow: 0 0 0 2px rgba(255,90,60,.25); }
.linkbtn { color: var(--link); font-family: var(--font-body); }

/* Fields */
.input, textarea, select { border: 1.5px solid var(--line-strong); border-radius: var(--r-field); background: var(--surface-raised); color: var(--ink); font-family: var(--font-body); }
.input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.linkform { border: 1.5px solid var(--line-strong); border-radius: var(--r-panel); background: var(--surface-raised); }
.linkform .input { border-radius: var(--r-field); }
.choice { border-color: var(--line); border-radius: var(--r-field); background: var(--surface-raised); }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface-raised)); box-shadow: inset 0 0 0 1px var(--primary); }
.choice:has(input:focus-visible) { outline-color: var(--focus); }
.drop { background: var(--surface-raised); border: 1.5px dashed var(--line-strong); border-radius: var(--r-panel); }
.drop:hover, .drop.is-over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface-raised)); }
.thumbs img { border: 1px solid var(--line-strong); border-radius: var(--r-key); }

/* Panels, notices, tables */
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-rest); }
.notice { background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--primary); border-radius: var(--r-field); color: var(--ink); }
.notice--ok { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.notice--bad { border-left-color: var(--error); background: color-mix(in srgb, var(--error) 8%, var(--surface)); }
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-panel); background: var(--surface); }
.loading { background: var(--machine); color: var(--machine-ink); border-radius: var(--r-field); }
.callsheet { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-panel); transform: none; box-shadow: var(--shadow-rest); }
.callsheet__head { border-bottom: 1px solid var(--line); font-family: var(--font-display); font-stretch: 100%; }
.callsheet__no { font-family: var(--font-readout); color: var(--led); font-stretch: 100%; }
.cast__card { transform: none; border-radius: var(--r-field); background: var(--surface-raised); box-shadow: var(--shadow-rest); }
.cast__card:hover { transform: translateY(-2px); }
.rules li { border-top: 1px solid var(--line); }
.creditrow, .creditrow div { border-color: var(--line-strong); }
.creditrow b { font-family: var(--font-readout); font-stretch: 100%; }
.prose h2 { font-stretch: 100%; }
.prose th, .prose td { border-bottom-color: var(--line); }

/* Plans */
.plan { background: var(--surface-raised); border-radius: var(--r-panel); box-shadow: var(--shadow-rest), inset 0 0 0 1px var(--line); }
.plan--featured { background: var(--surface-raised); box-shadow: var(--shadow-machine), inset 0 0 0 2px var(--primary); }
.plan--featured .tape { top: -14px; }
.plan__price { font-family: var(--font-readout); font-weight: 800; font-stretch: 100%; letter-spacing: 0; }
.plan__price small { font-family: var(--font-body); }

/* App bar = the machine */
.appbar { background: var(--machine); color: var(--machine-ink); box-shadow: 0 1px 0 var(--machine-line); }
.appbar .brand { color: var(--machine-ink); font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.125rem; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.appbar .brand .logo-mark { width: 26px; height: 26px; }
.appnav a { color: var(--machine-ink-2); border-radius: var(--r-key); font-family: var(--font-body); }
.appnav a:hover { color: #fff; background: var(--machine-2); }
.appnav a[aria-current="page"] { color: var(--on-role); background: var(--role-card); }
.credits { color: var(--machine-ink-2); }
.credits b { font-family: var(--font-readout); color: var(--led); font-stretch: 100%; }
.apptabs { background: var(--machine) !important; }
.apptabs a { color: var(--machine-ink-2) !important; border-radius: var(--r-key) !important; }
.apptabs a[aria-current=page] { background: var(--role-card) !important; color: var(--on-role) !important; }
.apphead h1 { font-stretch: 100%; }
.apphead p { color: var(--ink-3); }

/* Inherited marketing header/footer (old markup) never shows: the shell is .cvh / .cvf. */
.topbar { position: static; background: var(--bg); border-bottom: 1px solid var(--line); }
.foot { background: var(--machine); color: var(--machine-ink-2); }

/* Generic old-brand accents */
.adcard__state--working { background: var(--machine); color: var(--led); }
.adcard__state--failed { background: var(--error); color: #fff; }
.adcard, .adcard__frame { border-radius: var(--r-field); }
@media (prefers-reduced-motion: reduce) { .rec__dot::before { animation: none; } .btn, .cast__card { transition: none; } }

/* App page band: the photographed tangerine sweep becomes a thin machine-coloured strip with the four role keys. */
.appmain::before { background: none !important; -webkit-mask-image: none !important; mask-image: none !important; height: 6px !important; inset: 0 0 auto !important;
  background-image: linear-gradient(to right, var(--role-talk) 0 25%, var(--role-product) 25% 50%, var(--role-cutaway) 50% 75%, var(--role-card) 75% 100%) !important; }
/* Step labels ("Take N") and the credit badge lose the spike tape. */
.step { transform: none !important; background: var(--machine) none !important; color: var(--led) !important; font: 800 var(--fs-label)/1 var(--font-readout) !important; letter-spacing: 0.08em; padding: 6px 10px !important; border-radius: var(--r-key); box-shadow: var(--key-bevel); }
.setfloor { background: var(--surface) none !important; border: 1px solid var(--line); }
.bigcredit { transform: none !important; background: none !important; font-family: var(--font-readout); color: var(--ink); }
