/* Video Automation – design tokens + base components (light / dark). Own style: warm paper, ink, one coral accent, teal second colour. */
:root {
  --bg: #f6f3ee; --bg-2: #efeae2; --surface: #ffffff; --ink: #17151f; --ink-2: #3a3546; --muted: #6b6577; --line: #e4ddd2; --line-2: #d6cec1;
  --accent: #ff5a36; --accent-ink: #ffffff; --accent-soft: #ffe4dc; --teal: #1d6b66; --teal-soft: #d8ece9;
  --ok: #17845a; --ok-soft: #dcf2e7; --warn: #a86400; --warn-soft: #fbedd2; --bad: #c8281c; --bad-soft: #fbe0dd;
  --radius: 14px; --radius-s: 9px; --shadow: 0 1px 0 rgba(23,21,31,.04), 0 10px 30px -12px rgba(23,21,31,.18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121019; --bg-2: #181521; --surface: #1d1a27; --ink: #f1ecf7; --ink-2: #d5cfe0; --muted: #a29bb2; --line: #2d2939; --line-2: #3a3549;
  --accent: #ff6b4a; --accent-ink: #1a0f0b; --accent-soft: #3a1f19; --teal: #5cc2b8; --teal-soft: #173230;
  --ok: #46c48b; --ok-soft: #14301f; --warn: #f0b049; --warn-soft: #33270f; --bad: #ff7b6e; --bad-soft: #3a1714;
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 14px 34px -14px rgba(0,0,0,.6); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 680; }
h1 { font-size: clamp(24px, 3vw, 30px); } h2 { font-size: 20px; } h3 { font-size: 16px; }
p { margin: 0 0 1em; } a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; overflow: auto; }
small, .muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--font); padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: var(--ink); color: var(--bg); text-decoration: none; white-space: nowrap; transition: transform .12s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: none; } .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); font-weight: 500; }

/* forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 14px; } .field small { display: block; font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=datetime-local], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 10px 12px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--teal-soft); color: var(--teal); } .pill.plain::before { display: none; }
.note { padding: 12px 14px; border-radius: var(--radius-s); background: var(--teal-soft); color: var(--ink); font-size: 14px; margin-bottom: 16px; }
.note.warn { background: var(--warn-soft); } .note.bad { background: var(--bad-soft); } .note.ok { background: var(--ok-soft); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* platform marks: CSS-only monograms in brand colours */
.pl { --c: #555; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--c); color: #fff; font: 700 12px/1 var(--font); flex: none; letter-spacing: -.02em; }
.pl::after { content: attr(data-l); }
.pl-youtube { --c: #ff0033; } .pl-tiktok { --c: #111; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; } .pl-instagram { --c: #c13584; background: linear-gradient(135deg, #feda75, #d62976 45%, #4f5bd5); }
.pl-facebook { --c: #1877f2; } .pl-threads { --c: #000; } .pl-linkedin { --c: #0a66c2; } .pl-pinterest { --c: #e60023; } .pl-x { --c: #000; } .pl-bluesky { --c: #1185fe; }
:root[data-theme="dark"] .pl-tiktok, :root[data-theme="dark"] .pl-threads, :root[data-theme="dark"] .pl-x { background: #2a2733; }
.pl.big { width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }

/* privacy notice */
.privacy-note { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; z-index: 50; background: var(--ink); color: var(--bg); border-radius: var(--radius);
  padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 13.5px; box-shadow: var(--shadow); }
.privacy-note p { margin: 0; } .privacy-note a { color: inherit; } .privacy-note .btn { background: var(--accent); color: var(--accent-ink); flex: none; }
