/* UnkiSocialManager — official site
   Dark theme, purple→blue accent. No external fonts, no trackers, no dependencies. */

:root {
  --bg: #08080d;
  --bg-2: #0c0c14;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eceaf6;
  --muted: #a5a2c0;
  --muted-2: #7f7c9b;
  --brand: #7c6cff;
  --brand-2: #5b93ff;
  --brand-soft: rgba(124, 108, 255, 0.14);
  --brand-glow: rgba(124, 108, 255, 0.35);
  --success: #4fd1a5;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(91, 147, 255, 0.14), transparent 60%),
    radial-gradient(52rem 38rem at 12% -4%, rgba(124, 108, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #0a0a12, var(--bg) 42%);
  pointer-events: none;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  background: rgba(8, 8, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 1.06rem; }
.brand b { color: var(--brand); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--brand-soft); }

@media (max-width: 560px) {
  .site-header .container { flex-wrap: wrap; min-height: 0; row-gap: 4px; padding-block: 12px; }
  .nav { width: 100%; justify-content: flex-start; gap: 4px; margin-left: -13px; }
  .nav .nav-anchor { display: none; }
  .brand span { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 28px -10px var(--brand-glow);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px var(--brand-glow); }
.btn-ghost {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Layout / sections ---------- */
main { display: block; }
section { padding-block: clamp(48px, 8vw, 88px); }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2)); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
.section-lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.04rem;
  margin: 0 0 40px;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(52px, 9vw, 104px); text-align: center; }
.hero-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin: 0 auto 26px;
  box-shadow: 0 24px 60px -20px var(--brand-glow);
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin: 0 0 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #b9aeff, var(--brand) 45%, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
  max-width: 66ch;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.pill .dot.blue { background: var(--brand-2); }
.pill .dot.green { background: var(--success); }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--panel-2);
}
.card .ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Split / OAuth explainer ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list .tick {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.check-list .tick svg { width: 13px; height: 13px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.flow { display: grid; gap: 14px; }
.flow-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  align-items: start;
}
.flow-step .n {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.flow-step h4 { margin: 2px 0 3px; font-size: 1rem; letter-spacing: -0.01em; }
.flow-step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.flow-line { height: 1px; background: var(--border); margin-left: 47px; }

/* ---------- Callout ---------- */
.callout {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.08), rgba(91, 147, 255, 0.05));
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.callout .ico {
  width: 44px; height: 44px; flex: none; min-width: 0;
  border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.callout .ico svg { width: 24px; height: 24px; }
.callout div { flex: 1; min-width: 220px; }
.callout h3 { margin-bottom: 6px; }
.callout p { margin: 0; color: var(--muted); }
.callout .cta { margin-top: 16px; }

/* ---------- Legal / long-form document pages ---------- */
.doc { max-width: 820px; }
.doc-header { padding-block: clamp(40px, 7vw, 66px) 8px; }
.doc-header h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.doc-meta { color: var(--muted-2); font-size: 0.9rem; margin: 0; }
.doc-body { padding-top: 20px; padding-bottom: clamp(48px, 8vw, 80px); }
.doc-body h2 {
  font-size: 1.28rem;
  margin: 40px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.doc-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.doc-body h3 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--text); }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body a { text-decoration: underline; text-underline-offset: 2px; }
.doc-body ul { padding-left: 22px; margin: 10px 0; }
.doc-body li { margin: 7px 0; }
.doc-body li strong, .doc-body p strong { color: var(--text); font-weight: 600; }
.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 4px 0 8px;
}
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; color: var(--muted); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

.note {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 18px 0;
}
.note p { margin: 0; color: var(--text); }
.scopes {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.92rem;
}
.scopes th, .scopes td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.scopes th { color: var(--text); font-weight: 600; }
.scopes td { color: var(--muted); }
.scopes code {
  color: #cdc6ff;
  font-size: 0.85em;
  word-break: break-word;
}
.scopes-wrap { overflow-x: auto; }
code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  margin-top: 20px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot-brand .fb-name { font-weight: 600; color: var(--text); }
.foot-brand .fb-copy { color: var(--muted-2); font-size: 0.85rem; }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-links a {
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
}
.foot-links a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}
.back-home svg { width: 15px; height: 15px; }

/* ---------- 404 ---------- */
.center-screen {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.center-screen .big { font-size: clamp(3.5rem, 12vw, 6rem); margin: 0; }
.center-screen .big .grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Legal pages v2 (privacy / terms) ---------- */
.legal-hero {
  padding-block: clamp(44px, 8vw, 84px) 28px;
  text-align: center;
}
.legal-hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.legal-hero .badge svg { width: 15px; height: 15px; color: var(--brand); }
.legal-hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.3rem);
  margin: 0 0 14px;
  background: linear-gradient(120deg, #fff, #b9aeff 55%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal-hero p { color: var(--muted); max-width: 60ch; margin: 0 auto 8px; font-size: 1.05rem; }
.legal-hero .doc-meta { font-size: 0.88rem; }

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: clamp(48px, 8vw, 88px);
}
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 20px; } }
.legal-toc {
  position: sticky; top: 90px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 12px;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
@media (max-width: 900px) { .legal-toc { position: static; max-height: none; } }
.legal-toc p {
  margin: 0 0 8px 10px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2);
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.legal-toc li { counter-increment: t; }
.legal-toc a {
  display: block; padding: 6px 10px; border-radius: 8px;
  color: var(--muted); font-size: 0.88rem;
}
.legal-toc a::before { content: counter(t) ". "; color: var(--muted-2); }
.legal-toc a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }

.highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 40px;
}
.hl {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 18px 16px;
}
.hl .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 12px;
}
.hl .ico svg { width: 20px; height: 20px; }
.hl h3 { font-size: 1rem; margin: 0 0 4px; }
.hl p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.legal-body section { scroll-margin-top: 90px; padding-block: 0; margin-bottom: 14px; }
.legal-body h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.4rem; margin: 44px 0 12px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.legal-body section:first-of-type h2 { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h2 .num {
  flex: none; min-width: 34px; height: 34px; padding-inline: 8px; border-radius: 10px;
  display: grid; place-items: center; font-size: 0.9rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.legal-body h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body p strong, .legal-body li strong { color: var(--text); font-weight: 600; }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; }
.legal-body ul { padding-left: 22px; margin: 10px 0; }
.legal-body li { margin: 7px 0; }
.legal-body li::marker { color: var(--brand); }

.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin: 16px 0;
}
.platform {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.platform h3 { margin: 0 0 6px; font-size: 1rem; }
.platform p { margin: 0 0 8px; font-size: 0.9rem; }
.platform p:last-child { margin: 0; }

.note.warn { border-left-color: #f2b950; background: rgba(242, 185, 80, 0.1); }
.note.good { border-left-color: var(--success); background: rgba(79, 209, 165, 0.1); }
.legal-body .contact-card {
  margin-top: 16px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,108,255,0.1), rgba(91,147,255,0.05));
}
.legal-body .contact-card p { margin: 0; }

/* Pricing (1.4) */
.pricing { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 820px; }
.pricing .price { font-size: 2rem; font-weight: 800; margin: 6px 0 2px; }
.pricing .price small { font-size: 1rem; font-weight: 500; opacity: 0.75; }
.pricing .price-alt { margin: 0 0 10px; }
.pricing .price-list { margin: 10px 0 0; padding-left: 1.1em; line-height: 1.7; }
.pricing .featured { border-color: rgba(124, 108, 255, 0.6); }
#pricing .fine { margin-top: 18px; max-width: 820px; font-size: 0.9rem; opacity: 0.8; }
