:root {
  --ink: #0e1116;
  --ink-2: #3b4250;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --wash: #f6f7f9;
  --accent: #f59e0b;
  --accent-ink: #1a1203;
  --accent-soft: #fff7e6;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --err: #b91c1c;
  --err-soft: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}
img, video { max-width: 100%; }
a { color: inherit; }
p a, li a, .link { color: #b45309; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.hidden { display: none !important; }

/* Header: Terms and Privacy stay visible at every width (no collapsed menu). */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.125rem; }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 0.8125rem; }
.site-nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; margin-left: auto; font-size: 0.9375rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff; line-height: 1.2;
}
.btn:hover { background: #222833; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: #e38e05; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--wash); }
.btn.danger { background: transparent; color: var(--err); border-color: #f3c7c7; }
.btn.danger:hover { background: var(--err-soft); }
.btn.big { padding: 14px 24px; font-size: 1rem; }
.site-nav .btn { color: #fff; }
.site-nav .btn.ghost { color: var(--ink); }
.site-nav .btn:hover { text-decoration: none; }
.tt-icon { width: 18px; height: 18px; flex: none; }

/* Landing */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--accent-soft), #fff 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #92400e; background: #fde8c4; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; font-size: 0.9375rem; }
.mock-row b { margin-left: auto; font-weight: 600; }
.mock-video { aspect-ratio: 9 / 12; border-radius: 12px; background: linear-gradient(160deg, #1f2937, #0b0f14); display: grid; place-items: center; color: #fff; font-weight: 600; }
.pill { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--wash); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.soon { background: #eef2ff; color: #3730a3; }

section.band { padding: 64px 0; }
section.band.alt { background: var(--wash); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--ink-2); }
.step-no { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); margin: 0; }
.platforms { display: flex; gap: 12px; flex-wrap: wrap; }
.platform { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal h2 { font-size: 1.375rem; margin-top: 2em; }
.legal h3 { margin-top: 1.5em; }
.legal li { margin: 0.35em 0; }
.legal .updated { color: var(--muted); }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9375rem; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--ink-2); }

/* Post page */
.app-main { padding: 32px 0 72px; }
.account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--wash); border: 1px solid var(--line); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.panel h2 { font-size: 1.25rem; }
.post-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; align-items: start; }
.preview-box { aspect-ratio: 9 / 16; border-radius: 14px; background: var(--wash); border: 1px dashed #cfd4dc; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 16px; color: var(--muted); }
.preview-box video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 12px; }
.preview-box.has-video { padding: 0; border-style: solid; background: #000; }
.field { margin-top: 18px; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
textarea, select, input[type="file"] { width: 100%; font: inherit; border: 1px solid #cfd4dc; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
select:invalid { color: var(--muted); }
.counter { text-align: right; font-size: 0.8125rem; color: var(--muted); }
.counter.over { color: var(--err); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle-row:first-child { border-top: 0; }
.toggle-row.locked { color: var(--muted); }
.toggle-row .hint { display: block; font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; inset: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: background 0.15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform 0.15s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { background: #eceef1; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.sub-options { margin: 4px 0 8px 4px; padding: 6px 14px; border-left: 3px solid var(--line); }
.mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-choice label { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.mode-choice label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mode-choice input { margin-top: 5px; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 0.9375rem; margin-top: 12px; background: var(--wash); color: var(--ink-2); }
.notice.warn { background: var(--accent-soft); color: #7c4a03; }
.notice.err { background: var(--err-soft); color: var(--err); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.declaration { font-size: 0.9375rem; color: var(--ink-2); margin-top: 16px; }
.blocker { font-size: 0.875rem; color: var(--muted); margin-top: 8px; min-height: 1.4em; }
.progress { height: 8px; background: var(--wash); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.steps { list-style: none; padding: 0; margin: 12px 0 0; }
.steps li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #cfd4dc; }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active::before { border-color: var(--accent); background: var(--accent); }
.steps li.done { color: var(--ok); }
.steps li.done::before { border-color: var(--ok); background: var(--ok); }
.steps li.fail { color: var(--err); }
.steps li.fail::before { border-color: var(--err); background: var(--err); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; font-size: 0.9375rem; }

@media (max-width: 860px) {
  .hero .wrap, .grid-3, .grid-2, .post-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .preview-box { max-width: 320px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .site-nav { margin-left: 0; width: 100%; }
  .mode-choice { grid-template-columns: 1fr; }
  .site-footer nav { margin-left: 0; }
}
.mt { margin-top: 14px; }
