
/* Layout: dark creative studio in Media Simplified's navy + electric blue. Sticky screen picker on top.
   Public screens are full-bleed bands; app screens sit under an app bar (desktop) / bottom nav (phone).
   The video maker is two columns: steps on the left, a live preview that never leaves the screen on the right. */
:root {
  --bg: #070d1f;
  --surface: #0e1830;
  --surface-2: #14213f;
  --ink: #eef3ff;
  --muted: #9aa9c9;
  --line: #22325a;
  --blue: #1a8cff;
  --blue-hi: #3fbaff;
  --blue-deep: #1667c9;
  --grad: linear-gradient(135deg, #3fbaff 0%, #1a8cff 50%, #1667c9 100%);
  --ok: #4ade80;
  --ok-bg: #0f2e22;
  --warn: #ffb27a;
  --warn-bg: #3a1f12;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font-body); }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1100px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 6.4vw, 60px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.12; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--blue-hi); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 10px var(--blue-hi); }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
button { font: 700 15px var(--font-body); border-radius: 999px; padding: 12px 22px; border: 1px solid transparent; cursor: pointer; color: var(--ink); background: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px -8px rgba(26,140,255,.7); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-text { padding: 6px 4px; color: var(--blue-hi); font-weight: 600; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
.hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }
input, select, textarea { font: 15px var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; }
textarea { min-height: 190px; resize: vertical; line-height: 1.55; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13.5px; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--blue); }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pill { display: inline-block; font: 700 12px var(--font-body); padding: 3px 10px; border-radius: 999px; background: rgba(26,140,255,.16); color: var(--blue-hi); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.tag-sample { font: 500 11px var(--font-mono); color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 2px 7px; }
.draft { font: 600 12px var(--font-mono); color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 6px 10px; }

.screen { padding-block: 0 96px; }

/* brand mark */
.mark { display: inline-flex; align-items: center; gap: 10px; font: 800 19px var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.mark i { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); display: inline-grid; place-items: center; flex: none; }
.mark i svg { width: 16px; height: 16px; }
.mark small { display: block; font: 600 10.5px var(--font-body); color: var(--muted); letter-spacing: .02em; margin-top: -3px; }

/* public */
.sitebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; }
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 70% -10%, rgba(26,140,255,.28), transparent 60%), radial-gradient(600px 300px at 10% 110%, rgba(63,186,255,.14), transparent 60%), #050a19; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 36px; align-items: center; padding-block: 24px 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 33em; margin-top: 16px; }
.player { display: grid; gap: 12px; justify-items: center; }
.phone { width: min(270px, 100%); aspect-ratio: 9/16; border-radius: 30px; overflow: hidden; border: 8px solid #02050f; background: #02050f; box-shadow: 0 30px 80px -30px rgba(26,140,255,.55), 0 0 0 1px var(--line); position: relative; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; justify-content: center; }
.seg button { padding: 7px 14px; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--grad); color: #fff; }
.band { padding-block: 56px; }
.band.alt { background: #0a1228; border-block: 1px solid var(--line); }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: s; }
.steps .card h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; margin-right: 10px; font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue-hi); border-bottom: 2.5px solid var(--blue-hi); transform: rotate(-45deg); }
.proof { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--muted); margin-top: 26px; }
.proof b { color: var(--ink); }
.price { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 760px; }
.price .card { display: grid; gap: 14px; align-content: start; }
.price .feature { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.amt { font: 800 46px/1 var(--font-display); }
.amt small { font: 600 15px var(--font-body); color: var(--muted); }
details { border-top: 1px solid var(--line); padding-block: 14px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; color: var(--muted); }
.foot { padding-block: 30px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.ll { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }

/* checkout */
.co { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); align-items: start; padding-block: 20px; }
.secure { border: 1px dashed var(--line); border-radius: 12px; padding: 11px 13px; color: var(--muted); font: 14px var(--font-mono); background: var(--bg); }
.bump { border: 1.5px dashed var(--blue); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; background: rgba(26,140,255,.06); }
.bump input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--blue); }
.line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.line.total { font: 800 19px var(--font-display); border-top: 1px solid var(--line); padding-top: 12px; }

/* app chrome */
.appbar { background: rgba(7,13,31,.92); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; backdrop-filter: blur(8px); }
.appbar .inner { display: flex; align-items: center; gap: 10px 18px; padding-block: 10px; }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; }
.tabs button { padding: 8px 14px; font-size: 14px; white-space: nowrap; color: var(--muted); }
.tabs button[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.credits { font: 700 13px var(--font-body); background: var(--grad); color: #fff; border-radius: 999px; padding: 6px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bnav { display: none; }
@media (max-width: 760px) {
  .tabs { display: none; }
  .appbar .inner { justify-content: space-between; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #050a19; border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .bnav button { padding: 8px 2px; font-size: 12px; border-radius: 12px; color: var(--muted); }
  .bnav button[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
  .sitebar .login { display: none; }
}
.page { padding-block: 26px; display: grid; gap: 20px; }

/* home */
.goals { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.goal { text-align: left; border-radius: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; font-weight: 400; }
.goal b { font: 700 17px var(--font-display); }
.goal small { color: var(--muted); font-size: 13.5px; }
.goal:hover { border-color: var(--blue); }
.tools { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.tool { text-align: left; border-radius: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; font-weight: 400; }
.tool b { font: 700 16px var(--font-display); }
.tool small { color: var(--muted); font-size: 13.5px; }
.tool .pill { justify-self: start; }
.tool.hero-tool { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(63,186,255,.18), rgba(22,103,201,.22)), var(--surface); border-color: var(--blue); }
.tool.hero-tool b { font-size: 22px; }
.hero-card { border-radius: 22px; padding: 22px; border: 1px solid var(--blue); background: radial-gradient(500px 220px at 85% 0%, rgba(63,186,255,.25), transparent 60%), var(--surface); display: grid; gap: 12px; }
.lesson { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.lesson:first-child { border-top: 0; }
.tpl { white-space: pre-wrap; font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.empty { border: 1px dashed var(--line); border-radius: 18px; padding: 26px; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.todo li { display: flex; gap: 10px; align-items: center; }
.todo .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; }
.todo .done .dot { background: var(--ok); border-color: var(--ok); color: #04210f; }
.todo .done span:last-child { color: var(--muted); text-decoration: line-through; }
.vids { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.vid { display: grid; gap: 6px; text-align: left; padding: 0; border-radius: 14px; font-weight: 400; }
.vid .th { aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: #02050f; position: relative; max-width: 100%; border: 1px solid var(--line); }
.vid .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid .th .len { position: absolute; right: 6px; bottom: 6px; font: 500 11px var(--font-mono); background: rgba(0,0,0,.65); padding: 1px 6px; border-radius: 4px; }
.vid b { font-size: 14px; line-height: 1.3; }
.vid small { color: var(--muted); }

/* studio */
.studio { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.studio .live { position: sticky; top: 80px; display: grid; gap: 10px; justify-items: center; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } .studio .live { position: static; order: -1; } .studio .live .phone { width: 200px; } }
.live .overlay { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 22px 12px 18px; pointer-events: none; }
.live .ovhook { justify-self: center; background: var(--blue-deep); color: #fff; font: 800 14px/1.2 var(--font-display); text-transform: uppercase; padding: 6px 10px; border-radius: 6px; text-align: center; max-width: 92%; }
.live .ovcap { justify-self: center; font: 800 17px/1.15 var(--font-display); text-transform: uppercase; color: #fff; text-shadow: 0 2px 6px #000, 0 0 2px #000; text-align: center; }
.live .ovcap em { font-style: normal; color: #ffd43b; }
.live .ovdisc { font: 600 8px/1.3 var(--font-body); background: rgba(0,0,0,.55); padding: 3px 6px; border-radius: 4px; text-align: center; }
.wsteps { display: flex; gap: 6px; flex-wrap: wrap; }
.wsteps span { font: 700 12.5px var(--font-body); padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.wsteps span.on { background: var(--grad); border-color: transparent; color: #fff; }
.wsteps span.past { color: var(--blue-hi); border-color: var(--blue); }
.picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.pick { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 3px; font-weight: 400; }
.pick b { font-weight: 700; font-size: 15px; }
.pick small { color: var(--muted); font-size: 13px; }
.pick[aria-pressed="true"] { border-color: var(--blue); background: rgba(26,140,255,.12); }
.flags { display: grid; gap: 6px; }
.flag { font-size: 14px; padding: 9px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); }
.okline { font-size: 14px; padding: 9px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); }
.board { display: grid; gap: 10px; counter-reset: sc; }
.scene { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.scene .thumb { aspect-ratio: 9/16; border-radius: 8px; background: linear-gradient(160deg, var(--surface-2), #050a19); display: grid; place-items: center; font: 500 11px var(--font-mono); color: var(--muted); }
.scene p { font-size: 14px; }
.scene small { color: var(--muted); font-size: 12px; }
.prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prog li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.prog li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; }
.prog li.run { color: var(--ink); font-weight: 700; }
.prog li.run .dot { border-color: var(--blue-hi); border-top-color: transparent; animation: spin .8s linear infinite; }
.prog li.ok { color: var(--ink); }
.prog li.ok .dot { background: var(--ok); border-color: var(--ok); color: #04210f; }
@keyframes spin { to { transform: rotate(360deg); } }
.ready { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.sizes { display: grid; gap: 8px; }
.script { white-space: pre-wrap; font-size: 14px; background: var(--bg); border-radius: 12px; padding: 12px; border: 1px solid var(--line); }
.notice { border-radius: 14px; padding: 12px 14px; background: rgba(255,178,122,.08); border: 1px solid rgba(255,178,122,.35); font-size: 14px; }

/* brand setup */
.endcard { aspect-ratio: 9/16; width: 100%; max-width: 240px; margin: 0 auto; border-radius: 18px; padding: 22px 14px; display: grid; align-content: center; gap: 7px; color: #fff; font-family: var(--font-display); text-align: center; border: 1px solid var(--line); }
.endcard img { max-width: 60%; max-height: 46px; margin: 0 auto 8px; object-fit: contain; }
.swatch { display: flex; gap: 10px; align-items: center; }
.swatch input[type=color] { width: 52px; height: 42px; padding: 3px; }

table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tw { overflow-x: auto; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.kpi .v { font: 800 30px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi .k { font-size: 13px; color: var(--muted); }
.article { max-width: 680px; }
.article p, .article li { color: #cfd8ee; }
.article ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.legal-tabs button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--blue); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 700; z-index: 40; max-width: calc(100% - 32px); text-align: center; }
@media (prefers-reduced-motion: reduce) { .prog li.run .dot { animation: none; } }

.err { color: var(--warn); font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue-hi); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.stax-field { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); height: 46px; padding: 0 12px; }
.stax-field iframe { width: 100%; height: 44px; border: 0; }
a.btn-primary, a.btn-ghost, a.btn-text { display: inline-block; text-decoration: none; text-align: center; border-radius: 999px; font: 700 15px var(--font-body); }
a.btn-primary, a.btn-ghost { padding: 12px 22px; }
a.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
a.btn-primary { color: #fff; }
a.btn-text { color: var(--blue-hi); font-weight: 600; padding: 0 2px; }
a.btn-sm { padding: 7px 14px; font-size: 13px; }
a.mark { color: var(--ink); text-decoration: none; }
.tabs a, .bnav a { border-radius: 999px; padding: 8px 14px; font: 700 14px var(--font-body); white-space: nowrap; color: var(--muted); text-decoration: none; text-align: center; }
.tabs a[aria-current="page"], .bnav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
@media (max-width: 760px) { .bnav a { padding: 8px 2px; font-size: 12px; border-radius: 12px; } }
.legal-tabs a { padding: 7px 14px; }

.gsi-wrap { display: grid; gap: 10px; justify-items: start; }
.gsi { min-height: 44px; }
.or { width: 100%; text-align: center; display: flex; align-items: center; gap: 10px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
