/* Kogni — kogni.win. Short and clear (Pavel, 29.11, after thebrainrotapp.com and opalapp.com): a plain headline, the
   App Store button at once, one phone; what it is and how it works on the second screen, and that's all.
   The app's own light «Hill» colours. System fonts only: the site loads nothing from anyone else. */
:root {
  --page: #f4f2f9;
  --page-top: #e6e0f6;
  --card: #ffffff;
  --line: #e9e6f0;
  --ink: #27263a;
  --muted: #716d84;
  --accent: #5b55a0;
  --sage: #a6cbb1;
  --green: #3f7f58;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--page-top) 0, var(--page) 640px) no-repeat, var(--page);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }

/* Top bar: the mark, and "Try for free" */
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo img { width: 21px; }
.pill { background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; }

/* App Store badge, drawn (black, Apple's proportions) */
.store {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 9px 20px 9px 16px; border: 1px solid #a6a6a6; line-height: 1;
}
.store svg { width: 26px; height: 30px; fill: #fff; }
.store small { display: block; font-size: 11px; letter-spacing: 0.02em; margin-bottom: 3px; }
.store b { display: block; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }

/* First screen */
.hero { text-align: center; padding-top: 14px; }
/* Two short lines on a computer, so the phone below shows as much as it can above the fold (Pavel, 29.11) */
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 900; margin: 0 auto 12px; max-width: 20ch; text-wrap: balance; }
h1 .nb { white-space: nowrap; }
.sub { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 720px; margin: 0 auto 20px; text-wrap: balance; }
.small { color: var(--muted); font-size: 14px; font-weight: 600; margin: 10px 0 0; }

/* The phone: a dark frame like a real iPhone, the island over the status bar */
.phone {
  position: relative; width: min(330px, 78vw); margin: 28px auto 0; padding: 11px;
  background: #1c1b26; border-radius: 58px; box-shadow: 0 40px 80px rgba(60, 50, 110, 0.22);
}
.phone::before {
  content: ""; position: absolute; top: 24px; left: 50%; width: 31%; height: 26px; transform: translateX(-50%);
  background: #000; border-radius: 20px; z-index: 2;
}
.phone img { border-radius: 47px; width: 100%; }
/* The phone goes on behind the second screen's rounded panel, as if tucked into it */
.hero .phone { margin-bottom: -170px; }

/* Around the phone: two cards from the app, a brain game and a French lesson, floating at its sides */
.stage { position: relative; max-width: 880px; margin: 0 auto; }
.float {
  position: absolute; z-index: 2; width: 268px; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: 26px; padding: 18px 18px 16px;
  box-shadow: 0 26px 60px rgba(60, 50, 110, 0.18);
}
.float.left { left: 0; top: 60px; transform: rotate(-5deg); }
.float.right { right: 0; top: 170px; transform: rotate(4deg); }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 4px; }
.float h4 { margin: 0 0 12px; font-size: 17px; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; background: #f1eff8; font-weight: 700; font-size: 15px; color: var(--ink); }
.grid span.found { background: #e8f3eb; color: var(--green); }
.meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.prompt { background: #f7f5fc; border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.answer { min-height: 38px; border-bottom: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; font-weight: 600; font-size: 14px; box-shadow: 0 2px 0 var(--line); }
.answer .chip { background: #eeedf9; border-color: #dcd9f0; }

/* Second screen: why, and how it works */
.how {
  position: relative; z-index: 3; background: linear-gradient(180deg, #ffffff 0%, #f7f5fc 100%);
  border-radius: 44px 44px 0 0; box-shadow: 0 -18px 40px rgba(60, 50, 110, 0.08); padding: 84px 0 80px;
}
.claim { font-size: clamp(28px, 4vw, 44px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 800; text-align: center; max-width: 22ch; margin: 0 auto 14px; }
.claim span { color: var(--muted); }
.claim-note { text-align: center; color: var(--muted); font-size: 14px; margin: 0 auto 60px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.step { text-align: center; }
.step .phone { width: min(230px, 64vw); padding: 8px; border-radius: 40px; margin: 0 auto 22px; box-shadow: 0 24px 50px rgba(60, 50, 110, 0.16); }
.step .phone::before { top: 16px; height: 18px; border-radius: 14px; }
.step .phone img { border-radius: 33px; aspect-ratio: 0.5; object-fit: cover; object-position: top; }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eeedf9; color: var(--accent); font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.step h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0 auto; max-width: 28ch; }
.again { text-align: center; margin-top: 64px; }

/* Documents (privacy, terms, support) */
.doc { padding-block: 10px 64px; max-width: 720px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); text-align: left; max-width: none; margin: 0 0 18px; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc .muted, .doc em { color: var(--muted); font-style: normal; }
.doc ul { padding-left: 22px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--muted); font-size: 14px; background: #f7f5fc; }
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: 980px) {
  .float { width: 220px; padding: 14px; }
  .float.left { left: -6px; top: 60px; }
  .float.right { right: -6px; top: 190px; }
  .grid span { font-size: 13px; border-radius: 7px; }
}
@media (max-width: 760px) {
  /* Small and low at the phone's edges: Home's big number stays in view */
  .hero { overflow-x: clip; }
  .hero .phone { margin-bottom: -40px; }
  .float { width: 150px; padding: 10px; border-radius: 18px; }
  .float h4 { font-size: 12px; margin-bottom: 7px; }
  .eyebrow { font-size: 8px; }
  .grid { gap: 3px; }
  .grid span { font-size: 9px; border-radius: 5px; }
  .prompt { font-size: 11px; padding: 6px 7px; margin-bottom: 7px; }
  .answer { min-height: 26px; padding-bottom: 5px; margin-bottom: 6px; gap: 4px; }
  .chips { gap: 4px; }
  .chip { font-size: 10px; padding: 2px 6px; border-radius: 7px; }
  .meta { font-size: 8px; margin-top: 7px; }
  .float.left { left: -22px; top: 250px; }
  .float.right { right: -22px; top: 270px; }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 52px; }
  .how { padding-top: 64px; border-radius: 32px 32px 0 0; }
}
@media (max-width: 420px) {
  .phone { border-radius: 48px; padding: 9px; }
  .phone img { border-radius: 39px; }
  .phone::before { top: 19px; height: 22px; }
  .hero .phone { margin-bottom: -40px; }
}
