/* Kogni — kogni.win. The app's own palette: night blue, mint, a warm flame for the streak.
   System fonts only: the site loads nothing from anyone else (as the privacy policy promises). */
:root {
  --bg: #0f1119;
  --bg-2: #171a28;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.11);
  --fg: #f2f3f8;
  --muted: #a4a9bb;
  --accent: #73dbba;
  --accent-ink: #0d1a15;
  --flame: #ffb359;
  --radius: 22px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --bg-2: #eceef5;
    --card: #ffffff;
    --stroke: rgba(16, 20, 40, 0.1);
    --fg: #14161f;
    --muted: #5a6072;
    --accent: #138a66;
    --accent-ink: #ffffff;
    --flame: #c96a00;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 720px; }

/* Top bar */
.bar { padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--fg); }

/* Hero */
.hero { padding-block: 40px 30px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; padding: 15px 24px; border-radius: 16px; text-decoration: none;
}
.button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--stroke); }
.note { color: var(--muted); font-size: 14px; }

.phones { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.phone {
  width: 31%; max-width: 210px; border-radius: 30px; overflow: hidden;
  border: 6px solid #05060a; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background: #05060a;
}
.phone:nth-child(2) { transform: translateY(28px); }

/* Sections */
section { padding-block: 56px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 24px; min-width: 0;
}
.card p { margin: 0; color: var(--muted); }
.num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { border: 1px solid var(--stroke); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list { margin: 0; padding-left: 20px; color: var(--muted); }
.list li { margin: 6px 0; }
.flame { color: var(--flame); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0; color: var(--fg); }
.plan.best { border-color: var(--accent); }
.badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }

/* Documents (privacy, terms, support) */
.doc { padding-block: 10px 60px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: var(--fg); }
.doc .muted, .doc em { color: var(--muted); font-style: normal; }
.doc ul { padding-left: 22px; }
details { border-top: 1px solid var(--stroke); padding-block: 14px; }
details:last-of-type { border-bottom: 1px solid var(--stroke); }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--stroke); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .lead { max-width: none; }
  .grid3, .plans, .split { grid-template-columns: 1fr; }
  .bar nav { gap: 14px; }
}
@media (max-width: 420px) {
  .bar nav a.hide-sm { display: none; }
  .phone { border-width: 4px; border-radius: 22px; }
}
