/* zerotonero — one stylesheet. Playful, but the plan has to be readable on a
   phone on a shoot, so contrast and tap targets come first. */
:root {
  color-scheme: dark light;
  --bg: #14121f;
  --panel: #1d1a2c;
  --panel-2: #26223a;
  --line: #34304d;
  --ink: #f3f0ff;
  --muted: #a7a1c2;
  --accent: #ffcc33;
  --accent-ink: #1a1400;
  --coral: #ff6b6b;
  --mint: #4fd1a5;
  --sky: #6cb8ff;
  --lilac: #b69cff;
  --radius: 14px;
  --a: #6cb8ff;
  --b: #ffcc33;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fffdf6; --panel: #ffffff; --panel-2: #f6f1e4; --line: #e6dfcc;
    --ink: #1b1830; --muted: #5e5878; --accent: #ffc21a; --coral: #e5484d; --mint: #10956b; --sky: #2f7de1; --lilac: #7a5cf0;
  }
}

* { box-sizing: border-box; }
/* Components set display; `hidden` must still win. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { max-width: 820px; width: 100%; margin: 0 auto; padding: 32px 20px 64px; flex: 1; }
main.wide { max-width: 1200px; }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; }
h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; margin: 36px 0 10px; line-height: 1.2; }
h3 { font-size: 18px; margin: 22px 0 8px; }
a { color: var(--sky); }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 50; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header & footer */
.site-header { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 850; letter-spacing: -0.03em; font-size: 19px; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 99px; font-weight: 600; font-size: 15px; }
.site-header nav a:hover { background: var(--panel-2); }
.site-header nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.account { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.account a:not(.btn) { color: var(--muted); }
.sync-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.sync-dot[data-state="synced"] { background: var(--mint); }
.sync-dot[data-state="syncing"] { background: var(--accent); animation: pulse 1s infinite alternate; }
.sync-dot[data-state="error"], .sync-dot[data-state="offline"] { background: var(--coral); }
@keyframes pulse { to { opacity: .35; } }
.claim { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 20px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.claim .btn { background: var(--accent-ink); color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding: 22px 20px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); }

/* Controls */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.coral { background: var(--coral); color: #fff; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { display: block; font-weight: 650; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.error { color: var(--coral); font-weight: 600; }
.ok { color: var(--mint); font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 750; background: var(--panel-2); border: 1px solid var(--line); }
.pill.good { color: var(--mint); border-color: var(--mint); }
.pill.warn { color: var(--coral); border-color: var(--coral); }
.choice { display: block; text-align: left; width: 100%; background: var(--panel); border: 2px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; font: inherit; }
.choice:hover { border-color: var(--muted); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--panel-2); }
.choice strong { display: block; font-size: 17px; }
.honeypot { position: absolute; left: -5000px; }

/* Landing */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 40ch; }
.tracks-demo { margin: 28px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 52px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
dl.defs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
dl.defs dt { font-weight: 800; }
dl.defs dd { margin: 0; color: var(--muted); }

/* Timeline */
.tl { margin: 16px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; overflow-x: auto; }
.tl-grid { display: grid; grid-template-columns: 62px 1fr; gap: 6px 8px; min-width: 520px; }
.tl-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; align-self: center; }
.tl-ruler { position: relative; height: 22px; border-bottom: 1px solid var(--line); }
.tick { position: absolute; bottom: 0; height: 6px; border-left: 1px solid var(--line); font-size: 11px; color: var(--muted); padding-left: 2px; line-height: 1; }
.tick.major { height: 18px; }
.pin { position: absolute; top: -2px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; display: grid; place-items: center; color: #fff; }
.pin-good { background: var(--mint); }
.pin-bad { background: var(--coral); }
.tl-track { position: relative; height: 64px; background: var(--panel-2); border-radius: 8px; }
.blk { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; padding: 4px 6px; overflow: hidden; font-size: 11.5px; line-height: 1.25; color: #10101a; cursor: default; }
.blk b { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.beat { background: var(--a); }
.beat-hook { background: #ff9f7a; } .beat-problem { background: #9fb2ff; } .beat-solution { background: #6fdcb8; } .beat-proof { background: #ffd56a; } .beat-cta { background: #d7a6ff; }
.shot { background: #ffe9a8; border: 1px solid #c9a227; }
.shot-screen-recording { background: #bfe3ff; border-color: #3d8fd6; }
.shot-text-overlay, .shot-motion-graphic { background: #f2d6ff; border-color: #a35fd1; }
.shot-reaction, .shot-wide, .shot-over-the-shoulder { background: #c9f3dd; border-color: #2f9e6a; }
.tl.editable .shot { cursor: grab; touch-action: none; }
.tl.editable .shot.selected { outline: 3px solid var(--accent); }
.grip { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(0,0,0,.25) 3px 4px); }
.flag { position: absolute; bottom: -6px; height: 4px; background: var(--coral); border-radius: 3px; }
.tl-notes { margin: 12px 0 0; padding-left: 22px; font-size: 14px; }
.tl-notes li { margin: 4px 0; }
.tl-notes .at { font-weight: 800; font-variant-numeric: tabular-nums; }
.note-good::marker { color: var(--mint); font-weight: 800; }
.note-bad::marker { color: var(--coral); font-weight: 800; }

/* Studio */
.studio { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 76px; }
@media (max-width: 860px) { .stepper { position: static; display: flex; overflow-x: auto; gap: 6px; } .stepper li { flex: none; } }
.stepper button { width: 100%; text-align: left; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 650; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.stepper button[aria-current="step"] { background: var(--panel-2); color: var(--ink); }
.stepper button .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); margin-right: 8px; font-size: 12px; }
.stepper button[aria-current="step"] .n { background: var(--accent); color: var(--accent-ink); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .title { flex: 1; min-width: 200px; font-size: 20px; font-weight: 800; background: transparent; border: 1px dashed transparent; }
.toolbar .title:hover, .toolbar .title:focus { border-color: var(--line); }
.coach-toggle { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; cursor: pointer; margin: 0; }
.coach { border-left: 4px solid var(--lilac); background: color-mix(in srgb, var(--lilac) 12%, var(--panel)); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 12px 0; font-size: 14.5px; }
.coach::before { content: "Coach · "; font-weight: 800; color: var(--lilac); }
body:not(.coach-on) .coach { display: none; }
.beat-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .beat-row { grid-template-columns: 1fr; } }
.beat-row .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.beat-row .kind { font-weight: 800; }
.issues { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.issues li { background: color-mix(in srgb, var(--coral) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--coral) 45%, var(--line)); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.issues li.info { background: var(--panel); border-color: var(--line); }
.shot-editor { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.shot-editor .full { grid-column: 1 / -1; }
.shot-editor label { margin: 0 0 4px; font-size: 12px; }
.shotlist-group { margin: 18px 0; }
.shotlist-group .tips { font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check.done .what { text-decoration: line-through; color: var(--muted); }
.check .track { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); }
table.edl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.edl th, table.edl td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
table.edl th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; }
.conflict { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border: 1px solid var(--accent); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }

/* Academy */
.path { list-style: none; padding: 0; display: grid; gap: 10px; }
.path a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); text-decoration: none; }
.path a:hover { border-color: var(--accent); }
.path .num { width: 40px; height: 40px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font-weight: 850; }
.path .done .num { background: var(--mint); color: #062; }
.quiz fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.quiz legend { font-weight: 750; padding: 0 6px; }
.quiz .opt { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 6px 0; }
.quiz .why { font-size: 14px; margin-top: 8px; }
.verdict { font-size: 18px; font-weight: 750; }

/* Progress */
.meter { height: 10px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 14px 10px; border-radius: 14px; background: var(--panel); border: 1px dashed var(--line); color: var(--muted); }
.badge.earned { border-style: solid; border-color: var(--accent); color: var(--ink); }
.badge .icon { font-size: 28px; display: block; }
.spark { vertical-align: middle; }

@media print {
  .site-header, .site-footer, .claim, .stepper, .toolbar, .no-print, .coach { display: none !important; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  .tl, .card { border-color: #ccc; background: #fff; }
  .check { break-inside: avoid; }
}
