:root {
  --bg: #f5f6f9;
  --card: #ffffff;
  --text: #15171c;
  --muted: #646b78;
  --line: #e4e6eb;
  --soft: #eff1f5;
  --accent: #d93a54;
  --accent-2: #f2668b;
  --accent-text: #ffffff;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --bad: #c42727;
  --bad-bg: #fee2e2;
  --warn: #a35a06;
  --warn-bg: #fef3c7;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 8px 24px rgb(16 24 40 / .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014;
    --card: #171a20;
    --text: #e9ebef;
    --muted: #9aa1ae;
    --line: #2a2e37;
    --soft: #1f232b;
    --accent: #f26b80;
    --accent-2: #f79ab3;
    --ok: #4ade80; --ok-bg: #0f2e1b;
    --bad: #f87171; --bad-bg: #3a1414;
    --warn: #fbbf24; --warn-bg: #3a2a0c;
    --info: #60a5fa; --info-bg: #10223f;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 17px; margin: 0 0 14px; }
small, .muted { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--soft); padding: 1px 5px; border-radius: 5px; font-size: .9em; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 7px 13px;
  cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--text); white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .55; cursor: progress; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; }

input:not([type=checkbox]):not([type=radio]), textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
textarea { resize: vertical; }
.label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.label small { font-weight: 400; }
.field { margin-bottom: 16px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.check input:disabled + span { opacity: .5; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; box-shadow: var(--shadow); }

/* platform marks */
.pmark {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .3px;
}
.pmark.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.pmark.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 16px; }
.instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.facebook { background: #1877f2; }
.tiktok { background: #111; box-shadow: inset -2px 0 #25f4ee, inset 2px 0 #fe2c55; }
.youtube { background: #ff0000; }
.linkedin, .linkedinpage { background: #0a66c2; }

.badge { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.pro { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.badge.free { background: var(--soft); color: var(--muted); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-weight: 600;
  max-width: min(92vw, 560px); box-shadow: 0 8px 30px rgb(0 0 0 / .25);
}
.toast.error { background: var(--bad); color: #fff; }

/* ---------- site header / footer ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px max(16px, calc((100% - 1160px) / 2)); background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.logo { width: 30px; height: 30px; display: block; flex: none; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a.plain { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 8px; }
@media (max-width: 560px) { .nav a.plain.hide-sm { display: none; } }

.footer { border-top: 1px solid var(--line); padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); margin: 0 8px; }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 72px 16px 40px; max-width: 820px; margin: auto; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 0 0 16px; letter-spacing: -1.2px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 auto 28px; max-width: 600px; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.platform-row { display: flex; gap: 14px; justify-content: center; margin: 40px 0 0; flex-wrap: wrap; }
.section { max-width: 1100px; margin: 0 auto; padding: 56px 16px; }
.section h2 { font-size: 30px; text-align: center; margin-bottom: 8px; letter-spacing: -.5px; }
.section .sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }
.grid3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature h3 { margin: 10px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 800; color: var(--accent); }
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 720px; margin: auto; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.plan .price small { font-size: 15px; font-weight: 500; }
.plan ul { padding: 0; list-style: none; margin: 10px 0 18px; display: grid; gap: 6px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.faq { max-width: 720px; margin: auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(100%, 400px); }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; }
.auth-card .btn.primary { width: 100%; padding: 11px; font-size: 15px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.form-error { background: var(--bad-bg); color: var(--bad); padding: 9px 12px; border-radius: 9px; font-size: 14px; margin-bottom: 14px; }
.form-ok { background: var(--ok-bg); color: var(--ok); padding: 9px 12px; border-radius: 9px; font-size: 14px; margin-bottom: 14px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 16px 60px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 20px; margin-top: 30px; }
.legal p, .legal li { color: var(--text); }
.legal .draft { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
