/* Стилі лендінга krokul.com. Значення взято з app/src/styles/tokens.css
 * (палітра «ba-», шрифти Inter / Inter Tight / IBM Plex Mono), щоб сайт і
 * продукт були однією родиною. Сайт — окремий статичний артефакт, тому
 * значення повторені тут явно, а не імпортовані: жодного npm і збірки. */

:root {
  --ink: #0A1523;
  --ink-2: #33415A;
  --ink-3: #57677F;
  --surface: #FFFFFF;
  --canvas: #F4F6FA;
  --line: #CFD9E6;
  --accent: #2C5C95;
  --accent-strong: #1F4677;
  --accent-press: #17355B;
  --accent-soft: #DBE7F5;
  --on-accent: #FFFFFF;
  --ok: #027F58;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --radius: 6px;
  --measure: 68ch;
  --gutter: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.2em; }
li { margin: 0.25em 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lead { color: var(--ink-2); font-size: 18px; max-width: var(--measure); }
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.muted { color: var(--ink-3); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.top nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
.top nav a { color: var(--ink-2); }
.top .enter { font-size: 14px; font-weight: 600; }

/* Кнопки */
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); text-decoration: none; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); text-decoration: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 20px; }

/* Герой */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--canvas), var(--surface)); }
.kicker { color: var(--accent-strong); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: 19px; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }
.proofs li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Сітки */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.card.primary { border-color: var(--accent); background: var(--accent-soft); grid-column: span 1; }
.card ul { color: var(--ink-2); font-size: 14px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* Ланцюг */
.chain { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; padding: 0; list-style: none; counter-reset: step; }
.chain li { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); font-weight: 600; font-size: 14px; }
.chain li + li::before { content: "→ "; color: var(--ink-3); font-weight: 400; margin-left: -4px; }

/* Можливості */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.caps h3 { margin-bottom: 8px; }
.caps ul { color: var(--ink-2); font-size: 15px; }

/* Чому */
.why .card h3 { color: var(--accent-strong); }

/* Старт */
.steps { counter-reset: n; }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before { counter-increment: n; content: counter(n); position: absolute; top: 14px; left: 22px; width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; }

/* Партнерам */
.partners { background: var(--canvas); }
.terms .card h3 { font-size: 20px; }
.note { font-size: 14px; color: var(--ink-3); margin-top: 16px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: var(--measure); }

/* Таблиця порівняння */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); font-weight: 600; }
td.us { font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); }
th:last-child { color: var(--accent-strong); }

/* Ціни */
.pricing { background: var(--canvas); }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan .price { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin: 6px 0 0; color: var(--ink); }
.plan .price span { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.plan .volume { font-weight: 600; color: var(--accent-strong); margin: 0; }
.plan p { margin: 0; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Фінальний заклик */
.final { background: var(--accent-soft); text-align: left; }

/* Підвал */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .caps { grid-template-columns: 1fr; }
  .top nav { display: none; }
  section { padding: 40px 0; }
  .hero { padding: 48px 0 36px; }
}
