/* UGC Hub × Insider — design tokens and components (from docs/BRAND.md + design PDF) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #1c1c1e; --paper: #ffffff; --soft: #f6f7f9; --line: #e4e7ec; --line2: #d0d5dd;
  --muted: #667085; --muted2: #475467;
  --red: #fc3a30; --red-dark: #d92a21; --blue: #56aae3; --yellow: #edfc35; --violet: #6a36f7;
  --yellow-soft: #fbfecb; --blue-soft: #e4f2fb; --violet-soft: #ece4fe; --red-soft: #fee9e7;
  --radius: 8px; --radius-lg: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Manrope, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper); }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: 44px; font-weight: 800; text-transform: uppercase; }
h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; margin: 36px 0 16px; }
h2 .cnt { font-weight: 400; color: var(--muted); margin-left: 8px; text-transform: none; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 10px; }
.lead { color: var(--muted2); font-size: 17px; max-width: 760px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.num { font-weight: 800; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1184px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } h1 { font-size: 32px; } h2 { font-size: 22px; } }

/* ---------- header ---------- */
header.top { border-bottom: 1px solid var(--line); background: var(--paper); }
header.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: flex-start; gap: 4px; text-decoration: none; color: var(--ink); }
.logo b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.logo small { font-size: 10px; color: var(--red); font-weight: 500; margin-top: -2px; }
.logo.short b { font-size: 20px; }
nav.main { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
nav.main a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 22px 0 20px; border-bottom: 2px solid transparent; }
nav.main a.on { font-weight: 700; border-bottom-color: var(--red); }
nav.main .pill { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; margin-left: 6px; }
.hright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { text-decoration: none; padding: 7px 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang a.on { background: var(--ink); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 8px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; letter-spacing: 0.02em; }
.avatar.lg { width: 56px; height: 56px; font-size: 16px; }
.avatar.xl { width: 80px; height: 80px; font-size: 22px; }
form.inline { display: inline; } button.link { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.burger { display: none; width: 44px; height: 40px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: #fff; font-size: 18px; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  header.top .wrap { gap: 12px; }
  nav.main { order: 3; width: 100%; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
  nav.main a { padding: 12px 14px 10px; white-space: nowrap; }
  .hright form.inline { display: none; }
}

/* ---------- dark strip / KPI ---------- */
.strip { background: var(--ink); color: #fff; }
.strip .wrap { display: flex; gap: 48px; align-items: center; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.kpi { display: flex; align-items: baseline; gap: 10px; }
.kpi .big { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.kpi .big.paren { font-weight: 400; }
.kpi .big.y { color: var(--yellow); }
.kpi .cap { font-size: 14px; line-height: 1.25; color: #d0d5dd; }
.strip a { color: #fff; } .strip .right { margin-left: auto; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.tile .label { color: #a3a7ad; } .tile .big { font-size: 36px; font-weight: 800; line-height: 1.1; margin: 6px 0 4px; letter-spacing: -0.02em; }
.tile .sub { color: #d0d5dd; font-size: 13px; }
.bar { height: 3px; background: #3a3a3d; border-radius: 2px; margin: 8px 0 6px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--red); }

/* ---------- layout blocks ---------- */
main.page { padding: 40px 0 72px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.stack > .card + .card { margin-top: 0; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.dark .label { color: #a3a7ad; } .card.dark .muted { color: #d0d5dd; }
.card.yellow { background: var(--yellow); border: 2px solid var(--ink); }
.card.soft { background: var(--soft); border-color: var(--soft); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 2fr 1fr; align-items: start; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted2); } .kv dd { margin: 0; font-weight: 700; text-align: right; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .v { font-size: 18px; font-weight: 800; margin-top: 2px; } .facts .s { font-size: 12px; color: var(--muted); line-height: 1.3; }
.eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.titlebar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sub { color: var(--muted2); font-size: 18px; margin-top: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); padding: 11px 18px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; border: 2px solid var(--red); background: var(--red); color: #fff; line-height: 1.2; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); } .btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line2); } .btn.ghost:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.btn.danger { background: var(--paper); color: var(--red); border-color: var(--red); } .btn.danger:hover { background: var(--red); color: #fff; }
.btn.disabled, .btn[disabled] { background: var(--soft); color: var(--muted); border-color: var(--soft); cursor: not-allowed; }
.btn.small { padding: 7px 12px; font-size: 13px; border-width: 1.5px; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.linkbtn { font-weight: 600; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line2); border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 110px; resize: vertical; } .help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.drop { border: 2px dashed var(--line2); border-radius: var(--radius-lg); background: var(--soft); padding: 28px; text-align: center; color: var(--muted2); }
.drop input { display: block; margin: 10px auto 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 14px 0; } .check input { margin-top: 4px; width: 18px; height: 18px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.2; background: var(--soft); color: var(--muted2); white-space: nowrap; }
.badge.y, .badge.pending, .badge.changes_requested, .badge.changes, .badge.no_data, .badge.not_returned, .badge.threshold_not_met, .badge.not_requested, .badge.expired, .badge.ready, .badge.draft_submitted, .badge.selected { background: var(--yellow); color: var(--ink); }
.badge.b, .badge.approved, .badge.active { background: var(--blue); color: var(--ink); }
.badge.v, .badge.completed, .badge.paid, .badge.available, .badge.draft_approved, .badge.published { background: var(--violet); color: #fff; }
.badge.r, .badge.rejected, .badge.revoked, .badge.auth_error, .badge.permission_error, .badge.api_error, .badge.unsupported, .badge.network_error, .badge.rate_limited, .badge.closed { background: var(--red); color: #fff; }
.badge.g, .badge.applied, .badge.accruing, .badge.superseded { background: var(--soft); color: var(--muted2); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--ink); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.hl td { background: var(--yellow-soft); }
.thumb { width: 40px; height: 56px; border-radius: 4px; background: var(--ink); display: inline-block; vertical-align: middle; }
.media-thumb { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--line); display: inline-block; }

/* ---------- misc ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; background: var(--violet-soft); color: #3b1a9c; font-weight: 500; }
.flash.error { background: var(--red-soft); color: #9f1d15; } .flash.info { background: var(--blue-soft); color: #0b4a73; } .flash.success { background: var(--violet-soft); color: #3b1a9c; }
.notice { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.notice.warn { background: var(--yellow-soft); border-color: var(--yellow); }
.demo-banner { background: var(--yellow); color: var(--ink); text-align: center; padding: 6px 12px; font-weight: 700; font-size: 13px; }
details.json summary { cursor: pointer; font-weight: 600; font-size: 13px; }
details.json pre { background: var(--ink); color: #e2e8f0; padding: 12px; border-radius: 8px; overflow: auto; font-size: 12px; max-height: 420px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; } .steps li { position: relative; padding-left: 40px; margin: 10px 0; }
.steps li::before { counter-increment: s; content: "(" counter(s) ")"; position: absolute; left: 0; top: 0; font-weight: 800; font-size: 16px; }
.stepper { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 13px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0 28px; }
.stepper span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.stepper i { font-style: normal; width: 18px; height: 18px; border: 1.5px solid var(--line2); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.stepper .done { color: var(--ink); font-weight: 600; } .stepper .done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper .cur { color: var(--ink); font-weight: 800; } .stepper .cur i { border-color: var(--ink); background: var(--yellow); }
.video { background: var(--ink); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.video video, .video img { width: 100%; display: block; max-height: 420px; object-fit: contain; background: #000; }
.vtag { position: absolute; top: 10px; left: 10px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 3px; }
.quote { border-left: 3px solid var(--red); padding: 8px 12px; background: var(--soft); border-radius: 0 6px 6px 0; font-size: 14px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 26px 0 8px; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 10px 0; white-space: nowrap; font-weight: 500; border-bottom: 2px solid transparent; }
.tabs a.on { font-weight: 700; border-bottom-color: var(--red); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chips a, .chips span { text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.chips a.on { border: 2px solid var(--ink); font-weight: 700; }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--radius-lg); }
footer.foot { background: var(--ink); color: #d0d5dd; margin-top: 48px; }
footer.foot .wrap { padding-top: 36px; padding-bottom: 28px; }
footer.foot .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
footer.foot a { color: #fff; text-decoration: none; } footer.foot a:hover { color: var(--red); }
footer.foot .links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; font-size: 14px; }
footer.foot .bottom { border-top: 1px solid #3a3a3d; margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #a3a7ad; }
.tag { font-size: 11px; letter-spacing: 0.3em; margin-top: 4px; color: #fff; }
.hero { background: var(--ink); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.02em; }
.hero p { color: #d0d5dd; font-size: 18px; max-width: 520px; margin: 22px 0 28px; }
.hero .calc { border: 1px solid #3a3a3d; border-radius: var(--radius-lg); padding: 24px; }
.hero .calc .big { font-size: 40px; font-weight: 400; line-height: 1; margin-top: 10px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { font-size: 40px; } }
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.howto > div { padding: 28px 24px 32px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.howto > div:last-child { border-right: 0; margin-right: 0; }
.howto .n { font-size: 44px; font-weight: 400; line-height: 1; margin-bottom: 18px; letter-spacing: -0.02em; }
.howto h3 { margin-bottom: 10px; font-weight: 500; font-size: 20px; } .howto p { color: var(--muted2); font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .howto { grid-template-columns: 1fr 1fr; } .howto > div:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 560px) { .howto { grid-template-columns: 1fr; } .howto > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; } }
.section-soft { background: var(--soft); padding: 56px 0; margin: 56px 0 0; }
.applicant .pitch { background: var(--soft); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 48px 0; }
