/* cofooding.kz — the one stylesheet.
   Tokens are the Cofooding design canon, light world (apps/leadmagnet/app/cofooding-theme.css,
   docs/superpowers/specs/2026-08-27-design-canon-cofooding.md §1). Light only, per the owner's
   2026-09-01 freeze («всё светлое»); no dark block on purpose.
   The face is Golos Text, cofood.ing's Cyrillic partner (apps/leadmagnet/app/layout.tsx),
   SELF-HOSTED from /fonts/ so the site makes no external request at all. One variable woff2 per
   subset (400–700), unicode-range as Google Fonts serves it; OFL licence in /fonts/OFL.txt. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-text-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF; --soft: #F6F7F8; --card: #FFFFFF; --line: #E8EAED;
  --ink: #17191C; --dim: #6A7178; --faint: #9AA1A8;
  --accent: #6FA23E;
  --accent-fill: #B4D98A;
  --on-accent: #33491A;
  --accent-deep: #456121;
  --accent-soft: #EEF4E2;
  --amber: #EFB158; --amber-soft: #F7EFDD; --amber-ink: #8A5A16;
  --r-card: 16px; --r-ctl: 11px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15,20,25,.04);
  --shadow-md: 0 1px 2px rgba(15,20,25,.04), 0 6px 18px rgba(15,20,25,.06);
  --focus: 0 0 0 3px rgba(111,162,62,.38);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1040px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-ctl);
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.nowrap { white-space: nowrap; }
.dim { color: var(--dim); }
.eyebrow {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 700;
}

/* Anchored sections must clear the sticky header. */
[id] { scroll-margin-top: 84px; }

/* ── Buttons: the owner's swatch — soft pea fill, dark-green ink; never white on green. ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--accent-fill);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: filter 160ms ease-out, transform 160ms ease-out, border-color 160ms ease-out;
}
.btn:hover { filter: brightness(0.96); }
.btn:active { transform: translateY(0.5px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { filter: none; border-color: var(--dim); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn--wide { width: 100%; }
@media (min-width: 560px) {
  .btn--wide { width: auto; }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--ink);
  border-radius: var(--r-ctl);
}
.brand img { height: 30px; width: auto; }
.site-nav {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a { color: var(--dim); text-decoration: none; padding: 6px 2px; }
.site-nav a:hover { color: var(--ink); }
@media (min-width: 760px) {
  .site-nav { display: flex; }
}
.site-header__cta { flex: none; }

/* ── Hero ── */
.hero { padding: 40px 0 36px; }
.hero h1 { margin-top: 10px; }
.hero__lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--dim);
  text-wrap: pretty;
  max-width: 40em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.facts {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { padding: 16px 18px; font-size: 16px; }
}

/* A tick in a soft-pea disc — the same tick the /office page uses. */
.tick {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.tick svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Sections ── */
.section { padding: 40px 0; }
.section--soft { background: var(--soft); }
.section h2 + p, .section h2 + .lead { margin-top: 12px; }
.section__intro { max-width: 40em; color: var(--dim); }

.problem {
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Steps: numbered discs on the swatch fill, body-size text. */
.steps {
  display: grid;
  gap: 22px;
  margin-top: 24px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin: 4px 0 4px; }
.step p { color: var(--dim); }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
}

/* Who pays: two cards, the lead offer marked as selected. */
.cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.card {
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.card--lead {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.card h3 { margin-bottom: 8px; }
.card p + p { margin-top: 8px; }
.card .btn { margin-top: 16px; }
.card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { padding: 26px 24px; }
}

/* Ticked list in body-size ink (owner's readability preference). */
.ticks {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.ticks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ticks li > span:last-child { padding-top: 4px; }

/* FAQ as native disclosures. The marker is drawn, so it is the same glyph on every OS. */
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
/* The marker is Material Symbols Rounded `chevron_left` (the glyph the app ships in
   components/cofooding/icons.tsx), inlined as a data URI: no request, the same shape on every OS.
   Closed = turned to point down, open = turned to point up; the turn passes through «left», so a
   frame caught mid-transition is still a chevron. */
.faq summary::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%236A7178'%3E%3Cpath d='m432-480 156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-90deg);
  transition: transform 160ms ease-out;
}
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details > p {
  padding: 0 0 18px;
  color: var(--dim);
  max-width: 44em;
}
.faq details > p + p { margin-top: -8px; }

/* Final CTA panel. */
.connect {
  padding: 28px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-align: center;
}
.connect h2 { font-size: 24px; }
.connect p { margin-top: 10px; color: var(--dim); }
.connect .btn { margin-top: 20px; }
@media (min-width: 720px) {
  .connect { padding: 40px 32px; }
  .connect h2 { font-size: 30px; }
}

/* Footer. */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 14px;
  color: var(--dim);
}
.site-footer__row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__note { margin-top: 14px; font-size: 13px; color: var(--faint); }
@media (min-width: 720px) {
  .site-footer__row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Small pages: /kk/ placeholder and 404. */
.plain {
  padding: 56px 0 72px;
  max-width: 40em;
}
.plain h1 { margin-top: 10px; }
.plain p { margin-top: 16px; color: var(--dim); }
.plain .hero__actions { margin-top: 28px; }

@media (min-width: 760px) {
  body { font-size: 18px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { max-width: 18em; }
  .hero__lead { font-size: 20px; }
  .section { padding: 56px 0; }
  .problem { font-size: 20px; padding: 24px 28px; }
}

/* «В чате»: the channels row and a static chat mock-up. Neutral line icons, no third-party logos. */
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.channel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--card); font-size: 15px; font-weight: 600;
}
.channel--on { border-color: var(--accent); background: var(--accent-soft); }
.channel__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--dim); }
.channel--on .channel__icon { color: var(--accent-deep); }
.channel__tag {
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--accent-fill); color: var(--on-accent);
  font-size: 12px; font-weight: 700;
}
.channel__tag--soon { background: var(--amber-soft); color: var(--amber-ink); }
.chat-grid { display: grid; gap: 24px; margin-top: 8px; }
.chat-grid .ticks strong { font-weight: 600; }
.chat {
  margin: 16px 0 0;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--soft); box-shadow: var(--shadow-md); overflow: hidden;
}
.chat__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.chat__title { font-weight: 700; }
.chat__meta { color: var(--faint); font-size: 13px; align-self: center; }
.chat__topics { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; font-size: 13px; }
.chat__topics span { padding: 3px 10px; border-radius: var(--r-pill); background: var(--card); color: var(--dim); border: 1px solid var(--line); white-space: nowrap; }
.chat__topics .is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.chat__body { display: grid; gap: 8px; padding: 12px 16px 14px; }
.msg {
  justify-self: start; max-width: 92%;
  padding: 8px 12px; border-radius: 12px 12px 12px 4px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 15px; line-height: 1.4;
}
.msg b { display: block; font-size: 13px; color: var(--accent-deep); margin-bottom: 2px; }
.msg--bot { background: var(--accent-soft); border-color: #DCE9C8; }
.msg__btn {
  display: block; margin-top: 8px; padding: 7px 12px; text-align: center;
  border-radius: var(--r-ctl); background: var(--accent-fill); color: var(--on-accent); font-weight: 700; font-size: 14px;
}
.chat__note { padding: 0 16px 12px; color: var(--faint); font-size: 12px; }
@media (min-width: 880px) {
  .chat-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .chat-grid .ticks { margin-top: 28px; }
}
