/* Public landing page of Поток. Same palette as the app; light and dark themes. */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f6fc;
  --surface: #ffffff;
  --border: #eae5f3;
  --text: #24202c;
  --text-2: #5f586d;
  --muted: #898397;
  --accent: #7954d6;
  --accent-strong: #6a45cc;
  --accent-bg: #eee8ff;
  --danger: #d74d61;
  --ok: #63ac45;
  --shadow: 0 30px 70px #2b204814, 0 6px 18px #2b20480d;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #15131b;
  --bg-soft: #1c1924;
  --surface: #1c1924;
  --border: #322c3f;
  --text: #ece9f3;
  --text-2: #c4bed2;
  --muted: #938ca5;
  --accent: #a88bf5;
  --accent-strong: #8a66ea;
  --accent-bg: #2f2748;
  --danger: #f08a98;
  --ok: #8fd47a;
  --shadow: 0 30px 70px #0006;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; }
.logo.small { font-size: 16px; }
.logo-mark { position: relative; width: 28px; height: 28px; }
.logo.small .logo-mark { width: 22px; height: 22px; }
.logo-mark i { position: absolute; width: 42%; height: 42%; border-radius: 50%; background: var(--accent); }
.logo-mark i:nth-child(1) { left: 4%; bottom: 8%; }
.logo-mark i:nth-child(2) { top: 6%; left: 29%; }
.logo-mark i:nth-child(3) { right: 4%; bottom: 8%; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 18px; border: 1px solid var(--border); border-radius: 8px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.button.primary { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }
.button.ghost { background: var(--surface); color: var(--text); }
.button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.button.large { min-height: 50px; padding: 12px 24px; font-size: 17px; }

.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 32px; padding: 14px max(24px, calc((100vw - 1180px) / 2)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-nav { display: flex; gap: 24px; color: var(--text-2); font-size: 15px; }
.site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 10px; margin-left: auto; }

main { padding: 0 max(24px, calc((100vw - 1180px) / 2)); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding: 72px 0 64px; }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-size: 14px; font-weight: 500; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; font-weight: 700; }
.lead { margin: 20px 0 28px; color: var(--text-2); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.mock-window { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-top strong { margin-left: 10px; font-size: 14px; }
.mock-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.mock-column { display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 10px; background: var(--bg-soft); }
.mock-column h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.mock-column h3 b { color: var(--muted); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.violet { background: #7954d6; } .dot.amber { background: #e0a030; } .dot.green { background: #3fae6a; }
.mock-card { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; }
.mock-card.active { border-color: var(--accent); }
.mock-card p { margin: 0; font-weight: 600; line-height: 1.35; }
.mock-card.done p { color: var(--muted); }
.mock-card small { color: var(--muted); font-size: 12px; }
.mock-card small.overdue { color: var(--danger); }
.mock-card .progress { display: block; height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; }
.mock-card .progress span { display: block; height: 100%; background: var(--accent); }
.chip { justify-self: start; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 500; }
.chip.blue { background: #e4efff; color: #2364aa; } .chip.orange { background: #fff0e4; color: #c75c2c; } .chip.green { background: #e6f6ea; color: #2f8a4c; }
:root[data-theme="dark"] .chip.blue { background: #1b2d3a; color: #8ec3e6; }
:root[data-theme="dark"] .chip.orange { background: #3a2a1f; color: #f0a878; }
:root[data-theme="dark"] .chip.green { background: #1f3320; color: #8fd47a; }

.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section > h2, .cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.features article { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); font-size: 22px; }
.features h3, .steps h3 { font-size: 18px; font-weight: 600; }
.features p, .steps p { margin: 8px 0 0; color: var(--text-2); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.steps li { padding: 24px; border-radius: 12px; background: var(--bg-soft); }
.steps b { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--accent-strong); color: #fff; }

.pricing { display: flex; justify-content: center; margin-top: 36px; }
.plan { width: min(420px, 100%); padding: 32px; border: 2px solid var(--accent); border-radius: 14px; background: var(--surface); text-align: center; }
.plan h3 { font-size: 20px; }
.price { margin: 12px 0 4px; font-size: 44px; font-weight: 700; }
.plan-note { margin: 0 0 20px; color: var(--muted); }
.plan ul { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; text-align: left; }
.plan li { padding-left: 28px; position: relative; color: var(--text-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .button { width: 100%; }

.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { padding: 18px 0; cursor: pointer; font-size: 17px; font-weight: 500; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

.cta { margin: 24px 0 64px; padding: 56px 24px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-bg), var(--bg-soft)); text-align: center; }
.cta p { margin: 12px 0 24px; color: var(--text-2); font-size: 18px; }

.site-footer { display: flex; align-items: center; gap: 24px; padding: 24px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .logo { color: var(--text); margin-right: auto; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .features, .steps { grid-template-columns: minmax(0, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .site-header { gap: 12px; padding: 12px 16px; }
  .header-actions .button.ghost { display: none; }
  main { padding: 0 16px; }
  .mock-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-column:nth-child(3) { display: none; }
  .hero-actions .button { width: 100%; }
  .section { padding: 48px 0; }
  .site-footer { flex-wrap: wrap; padding: 20px 16px; }
}
