/* Postuta — design tokens & shared primitives */
:root {
  --ink: #0f0d1d;
  --ink-2: #2b2840;
  --muted: #6b6880;
  --line: #e9e7f2;
  --line-2: #dcd9ea;
  --bg: #ffffff;
  --bg-soft: #f7f6fb;
  --bg-tint: #f1effe;
  --surface: #ffffff;

  --brand: #5b4bff;
  --brand-600: #4a3af0;
  --brand-50: #efedff;
  --coral: #ff6b4a;
  --mint: #12b894;
  --amber: #f5a524;
  --sky: #2f9bff;
  --rose: #ec4f8c;

  --grad: linear-gradient(120deg, #5b4bff 0%, #9a5bff 45%, #ff6b4a 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 13, 29, 0.06);
  --shadow: 0 8px 24px -8px rgba(15, 13, 29, 0.12), 0 2px 6px rgba(15, 13, 29, 0.04);
  --shadow-lg: 0 40px 80px -24px rgba(36, 24, 120, 0.28), 0 8px 20px rgba(15, 13, 29, 0.06);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(91, 75, 255, 0.6);
}

.btn-primary:hover {
  background: var(--brand-600);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

/* Logo mark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(91, 75, 255, 0.7);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.logo small {
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand);
  letter-spacing: 0.02em;
}

/* Channel chips (generic, not brand logos) */
.ch {
  --c: var(--brand);
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--c);
  letter-spacing: 0;
}

.ch-x { --c: #17151f; }
.ch-li { --c: #2f6fd6; }
.ch-ig { --c: #e0457b; }
.ch-tt { --c: #222033; }
.ch-yt { --c: #e5443a; }
.ch-fb { --c: #3b63d9; }
.ch-th { --c: #4b4860; }
.ch-pi { --c: #d63a4a; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-50);
  color: var(--brand);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
