/* ──────────────────────────────────────────────────────────
   Метка — landing + LK
   Modern light SaaS, accent blue, dark mode supported
   ────────────────────────────────────────────────────────── */

:root {
  /* Light theme tokens */
  --bg: #fbfbfa;
  --bg-elev: #ffffff;
  --bg-sunken: #f4f4f1;
  --bg-tint: #f0efeb;
  --line: #ececea;
  --line-strong: #d9d8d4;
  --text: #161616;
  --text-mid: #4b4b48;
  --text-mute: #7a7a76;
  --text-faint: #aaaaa5;
  --accent: oklch(60% 0.18 252);
  --accent-soft: oklch(94% 0.04 252);
  --accent-text: oklch(45% 0.16 252);
  --good: oklch(60% 0.14 155);
  --good-soft: oklch(95% 0.04 155);
  --warn: oklch(70% 0.16 70);
  --warn-soft: oklch(96% 0.06 80);
  --bad: oklch(60% 0.18 28);
  --bad-soft: oklch(96% 0.04 28);
  --shadow-sm: 0 1px 0 rgba(20, 20, 20, 0.04), 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow-md: 0 1px 0 rgba(20, 20, 20, 0.04), 0 8px 24px -8px rgba(20, 20, 20, 0.10);
  --shadow-lg: 0 1px 0 rgba(20, 20, 20, 0.05), 0 24px 60px -20px rgba(20, 20, 20, 0.18);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-text: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #0e0f10;
  --bg-elev: #17191b;
  --bg-sunken: #0a0b0c;
  --bg-tint: #1d1f22;
  --line: #25282b;
  --line-strong: #34373b;
  --text: #f3f3f0;
  --text-mid: #c5c6c2;
  --text-mute: #898a86;
  --text-faint: #5a5b58;
  --accent: oklch(72% 0.16 252);
  --accent-soft: oklch(28% 0.07 252);
  --accent-text: oklch(82% 0.12 252);
  --good: oklch(72% 0.14 155);
  --good-soft: oklch(28% 0.05 155);
  --warn: oklch(78% 0.16 70);
  --warn-soft: oklch(28% 0.07 70);
  --bad: oklch(70% 0.18 28);
  --bad-soft: oklch(28% 0.07 28);
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 1px 0 rgba(0,0,0,0.4), 0 8px 24px -8px rgba(0,0,0,0.5);
  --shadow-lg: 0 1px 0 rgba(0,0,0,0.5), 0 24px 60px -20px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: white; }

/* ── Top app chrome (tabs) ─────────────────────────── */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.appbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -3px; bottom: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-sunken);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.tab {
  border: 0; background: transparent;
  color: var(--text-mute);
  font-weight: 600; font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}
.tab[data-active="true"] {
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.appbar-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-mute);
  font-size: 13px;
}
.appbar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--text);
  color: var(--bg);
  border: 0;
  font-weight: 600; font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0.5px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: color-mix(in oklab, var(--text) 88%, var(--accent)); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-soft { background: var(--bg-sunken); color: var(--text); border-color: var(--line); }
.btn-soft:hover { background: var(--bg-tint); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }

/* ── Chips, badges ─────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--bg-sunken);
  color: var(--text-mid);
  border: 1px solid var(--line);
}
.chip-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.chip-good   { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip-warn   { background: var(--warn-soft); color: oklch(50% 0.16 70); border-color: transparent; }
.chip-bad    { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip-free   { background: var(--text); color: var(--bg); border-color: transparent; }
.chip-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ── Type ─────────────────────────── */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.h-card {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--text-faint);
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ── Layout ─────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section-tight { padding: 64px 0; }

/* ── Cards ─────────────────────────── */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-tint { background: var(--bg-sunken); }

/* ── Misc ─────────────────────────── */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kbd {
  display: inline-flex; align-items: center; padding: 1px 6px;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--bg-sunken); color: var(--text-mid);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px;
}
.mono { font-family: var(--font-mono); }

/* hide on small */
@media (max-width: 880px) {
  .hide-mobile { display: none !important; }
}
