:root {
  --bg: #fbfaf7;
  --panel: #ffffff;
  --text: #1c1b19;
  --muted: #5d5a54;
  --accent: #e5532d;
  --accent-ink: #ffffff;
  --line: #e6e2da;
  --soft: #f3efe7;
  --ok: #1f8a4c;
  --no: #b3402a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --panel: #1d1c19;
    --text: #f2efe9;
    --muted: #aaa49a;
    --accent: #ff7a52;
    --accent-ink: #1a0d06;
    --line: #34312c;
    --soft: #24221e;
    --ok: #4cc27f;
    --no: #ff8a70;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 820px; margin: 0 auto; padding: 14px 16px; }
.brand { font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 14px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--text); }
main { max-width: 820px; margin: 0 auto; padding: 0 16px 40px; }
h1 { font-size: clamp(27px, 6vw, 40px); line-height: 1.15; margin: 14px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 23px; line-height: 1.25; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { color: var(--text); }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 10px; }
.note { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.answer { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.answer p { margin: 0; }
.answer p + p { margin-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; background: var(--panel); }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; background: var(--soft); }
pre { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 14px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
p code, li code { overflow-wrap: anywhere; }
ol, ul { padding-left: 22px; }
.faq h3 { margin-top: 18px; }
.related { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lang { font-size: 13px; color: var(--muted); }
.lang a { margin-right: 10px; }
.ad-slot:empty { display: none; }
footer { max-width: 820px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer p { color: var(--muted); }
footer .small { font-size: 12px; }

/* ---- header button ---- */
.btn { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 650; padding: 10px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.big { padding: 13px 22px; font-size: 16px; }
.btn.small { padding: 6px 12px; font-size: 13px; color: var(--text) !important; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--accent); font: inherit; padding: 0; cursor: pointer; text-decoration: underline; }
.top nav { align-items: center; }

/* ---- home ---- */
main.home { max-width: 1120px; }
.top { max-width: 1120px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; padding: 28px 0 12px; }
.eyebrow { font: 600 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.specs { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); background: var(--panel); }
.specs b { color: var(--text); margin-right: 4px; }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 46px 16px; text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus { border-color: var(--accent); background: var(--soft); outline: none; }
.drop svg { color: var(--accent); }
.drop-title { font-size: 20px; font-weight: 750; color: var(--text); margin: 8px 0 2px; }
.drop-sub { margin: 0; font-size: 14px; }
#preview { width: 100%; max-height: 260px; background: #000; border-radius: 10px; }
.file-name { font-size: 13px; color: var(--muted); margin: 6px 0 10px; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.fields input, .fields select { font: inherit; font-size: 15px; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-width: 0; }
.hint-row { font-size: 13px; color: var(--muted); margin: 10px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.status { font-size: 14px; color: var(--muted); margin: 12px 0 6px; min-height: 1.2em; }
progress { width: 100%; height: 8px; accent-color: var(--accent); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.clip { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.clip video { width: 100%; aspect-ratio: 9/16; background: #000; border-radius: 8px; }
.clip-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.clip .btn { text-align: center; font-size: 13px; padding: 8px; }
.tag { background: var(--soft); border-radius: 6px; padding: 0 6px; }
.band { margin: 56px 0 0; }
.band h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card a { display: inline-block; margin-top: 12px; font-size: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--muted); font-size: 15px; }
.steps li::before { content: "0" counter(s); display: block; font: 700 13px ui-monospace, Menlo, monospace; color: var(--accent); margin-bottom: 8px; }
.steps b { color: var(--text); display: block; }
main.home .faq, main.home .related { max-width: 820px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 420px) { .fields { grid-template-columns: 1fr; } }
