/* bringmychats.com — те же токены, что у панели расширения (static/styles/tokens.css). */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #FFFFFF;
  --surface: #F7F7F4;
  --surface-strong: #F1F0EC;
  --border: #E3E2DD;
  --text: #1B1B19;
  --text-secondary: #5F5E5A;
  --text-strong: #3D3D3A;
  --accent: #2B59C3;
  --accent-soft: #EBF0FB;
  --btn: #1B1B19;
  --btn-text: #FFFFFF;
  --hero: linear-gradient(135deg, #F7F7F4 0%, #EBF0FB 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(27,27,25,.12);
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --surface: #1F1F1D;
    --surface-strong: #2A2A27;
    --border: #34332F;
    --text: #F2F1EC;
    --text-secondary: #A9A8A1;
    --text-strong: #D6D5CF;
    --accent: #7FA0EC;
    --accent-soft: #1E2740;
    --btn: #F2F1EC;
    --btn-text: #161615;
    --hero: linear-gradient(135deg, #1A1A18 0%, #1B2136 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.top { display: flex; gap: 20px; font-size: 15px; }
nav.top a { color: var(--text-secondary); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; background: var(--btn); color: var(--btn-text); border: 0; }
.btn:hover { opacity: .9; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }

.hero { background: var(--hero); border-bottom: 1px solid var(--border); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 52px); }
.hero .lead { font-size: 20px; color: var(--text-secondary); margin-top: 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.hero .note { font-size: 14px; color: var(--text-secondary); margin-top: 16px; }
.shots { display: flex; gap: 20px; justify-content: center; }
.shots img { width: 280px; border-radius: 14px; box-shadow: var(--shadow); }
.shots img + img { margin-top: 48px; }

section.block { padding: 72px 0; }
section.block + section.block { border-top: 1px solid var(--border); }
section.block h2 { font-size: clamp(28px, 3.5vw, 36px); }
section.block .intro { color: var(--text-secondary); font-size: 18px; margin-top: 12px; max-width: 640px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 600; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--text-secondary); }
.steps img { border-radius: 10px; box-shadow: var(--shadow); margin-top: auto; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; margin-top: 40px; }
.features h3 { font-size: 19px; margin-bottom: 6px; }
.features p { color: var(--text-secondary); }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.plan { border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.main { border: 2px solid var(--accent); background: var(--surface); }
.plan .price { font-family: var(--display); font-size: 40px; font-weight: 600; }
.plan .price small { font-family: var(--body); font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-strong); }

.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--text-secondary); margin-top: 10px; }

.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); }
.doc .updated { color: var(--text-secondary); margin-top: 8px; }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc p, .doc li { color: var(--text-strong); }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.doc code { font-size: 14px; background: var(--surface-strong); padding: 1px 5px; border-radius: 4px; }
.doc .box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-top: 20px; }
.doc table { border-collapse: collapse; width: 100%; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text-secondary); font-weight: 500; }
.table-scroll { overflow-x: auto; }

footer.bottom { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-secondary); font-size: 14px; }
footer.bottom .wrap { display: flex; flex-direction: column; gap: 12px; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.bottom a { color: var(--text-secondary); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .shots img { width: 46%; }
  .steps, .features, .pricing { grid-template-columns: 1fr; }
  nav.top { gap: 14px; font-size: 14px; }
  nav.top .optional { display: none; }
  section.block { padding: 48px 0; }
}
