/* zyquit.com — один стиль на весь сайт (главная, юр. страницы, GEO-страницы).
   Бриф docs/2026-10-09-site-redesign-brief.md. Цвета один в один с Zyn/DesignSystem/Tokens.swift. */

:root {
  color-scheme: light dark;
  --bg: #F6F7F5;
  --card: #FFFFFF;
  --border: #E3E6E1;
  --ink: #171C19;
  --muted: #70786F;
  --faint: #A8AEA6;
  --green: #1F9E57;
  --alert: #C94F42;
  --freeze: #4A7AB5;
  --sos-surface: #0C1614;
  /* Tokens.secondaryText. --muted на --bg в светлой теме даёт 4.24:1 (меньше 4.5),
     поэтому вторичный текст на фоне страницы идёт этим токеном приложения. */
  --ink-2: #3C443D;

  --r-card: 12px;
  --r-sheet: 18px;
  --r-pill: 20px;

  --f-display: "Barlow Semi Condensed", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 20px;
  --wrap: 1120px;
  --section: clamp(64px, 6vw + 40px, 112px);
  --tint: #EAF3EC;
  --glow: rgba(31, 158, 87, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D10;
    --card: #12151A;
    --border: #1D2126;
    --ink: #E8EBEE;
    --muted: #8B939C;
    --faint: #5B626A;
    --green: #5FDD8B;
    --alert: #E05F5F;
    --freeze: #6B9BD1;
    --ink-2: #C8CDD3;
    --tint: #0F1A14;
    --glow: rgba(95, 221, 139, 0.14);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

/* Ссылки отличаются от текста не только цветом: подчёркнуты всегда. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.tap { display: inline-flex; align-items: center; min-height: 44px; }

.eyebrow {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* Цвет по смыслу — точкой у ярлыка: зелёный, красный и синий в светлой теме
   не держат 4.5:1 как мелкий текст, а как графика (3:1) держат. */
.eyebrow.dot::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 10px; vertical-align: 1px;
}
.dot-alert::before { background: var(--alert) !important; }
.dot-freeze::before { background: var(--freeze) !important; }

/* ---------- Шапка и подвал (общие для всех страниц) ---------- */

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.logo img { width: 28px; height: 28px; border-radius: 7px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 0; padding: 40px 0 48px; font-size: 15px; color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer nav + nav { margin-top: 8px; }
.site-footer nav a { color: var(--ink); }
.site-footer .copy { margin-top: 20px; font-size: 14px; }
.site-footer .eyebrow { margin-top: 24px; }

/* ---------- Главная ---------- */

.display, .hero h1, .section h2, .final h2 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}

.hero { text-align: center; padding: 56px 0 0; }
.hero .app-icon { width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 20px; }
.hero .brand { margin-bottom: 14px; }
.hero h1 { font-size: clamp(44px, 5vw + 26px, 96px); max-width: 14ch; margin: 0 auto 20px; }
.hero .subtitle { font-size: clamp(18px, 0.6vw + 16px, 22px); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 0 auto 28px; }
.store { display: inline-block; line-height: 0; border-radius: 9px; }
.store img { width: 162px; height: 54px; }
.store-note { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
/* Сцена первого экрана: подложка с мягким зелёным свечением, кадр выходит снизу, по бокам деревья. */
.stage {
  position: relative; margin: 44px auto 0; padding: 40px var(--gutter) 0;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: radial-gradient(60% 70% at 50% 100%, var(--glow), transparent 70%), var(--tint);
  border: 1px solid var(--border); border-bottom: 0;
  overflow: hidden; max-height: 520px;
}
.stage .frame { position: relative; z-index: 1; margin: 0 auto; }
.stage-tree { position: absolute; bottom: -6px; width: 300px; height: auto; display: none; }
.stage-tree-l { left: 4%; }
.stage-tree-r { right: 6%; width: 220px; }
@media (min-width: 900px) {
  .stage { max-height: 560px; padding-top: 56px; }
  .stage-tree { display: block; }
}
@media (min-width: 1100px) { .stage-tree-l { left: 9%; width: 340px; } .stage-tree-r { right: 11%; width: 250px; } }

/* Три шага под первым экраном. */
.steps { padding-top: 0; }
.steps .wrap { border-top: 1px solid var(--border); padding-top: clamp(40px, 4vw + 24px, 72px); }
.step-grid { list-style: none; display: grid; gap: 16px; }
.step-grid li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sheet);
  padding: 22px 22px 24px;
}
.step-grid h3 { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; margin: 10px 0 8px; }
.step-grid p:not(.eyebrow) { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 700px) { .step-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .step-grid li { padding: 26px 26px 28px; } }


/* Кадр приложения: без рамки телефона, статус-бар уже обрезан. */
.frame {
  width: 100%;
  max-width: 360px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(23, 28, 25, 0.04), 0 24px 48px -24px rgba(23, 28, 25, 0.18);
}

.section { padding: var(--section) 0 0; }
.section .copy { text-align: center; max-width: 34rem; margin: 0 auto; }
.section h2 { font-size: clamp(40px, 3.6vw + 26px, 80px); margin: 14px 0 16px; }
.section .lede { font-size: clamp(18px, 0.6vw + 16px, 22px); line-height: 1.5; color: var(--ink-2); }
.section .media { margin-top: 40px; display: flex; justify-content: center; position: relative; }
/* Свечение за кадром. */
.section .media::before {
  content: ""; position: absolute; inset: 10% 0 -5%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 55%, var(--glow), transparent 70%);
}
.section .media > * { position: relative; z-index: 1; }
/* Кадр обрезан снизу там, где экран приложения пуст: верхняя часть с содержанием, низ растворяется. */
.media[class*="cut-"] .frame {
  object-fit: cover; object-position: top; border-bottom: 0; border-radius: 28px 28px 0 0;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.cut-58 .frame { aspect-ratio: 660 / 778; }
.cut-62 .frame { aspect-ratio: 660 / 831; }
.cut-74 .frame { aspect-ratio: 660 / 992; }
.cut-82 .frame { aspect-ratio: 660 / 1100; }

/* Белая полоса на всю ширину: секция другого тона, чтобы страница шла ритмом. */
.section.band {
  background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: var(--section); padding: var(--section) 0;
}
.section.band .frame, .section.band .step-grid li { background: var(--bg); }
.band + .section { padding-top: var(--section); }

@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .split .copy { text-align: left; margin: 0; }
  .split .media { margin-top: 0; }
  .split.flip .copy { order: 2; }
  .split.flip .media { order: 1; }
  .split .frame { max-width: 380px; }
}

/* Лесенка тапера: норма по неделям из формулы TaperEngine. */
.ladder {
  width: 100%; max-width: 520px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sheet);
  padding: 24px 20px 20px;
}
.ladder .eyebrow { margin-bottom: 20px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; list-style: none; }
.bars li { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bars .n { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.bars .b { width: 100%; background: var(--green); border-radius: 4px 4px 2px 2px; height: calc(var(--v) * 14px); }
.bars .zero .b { height: 2px; background: var(--border); }
.bars .w { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); margin-top: 8px; line-height: 1; }
.ladder .note { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

/* Ряд деревьев Day 1 / 5 / 12 / 21 / 30 на линии роста. */
.trees {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 0;
  width: 100%; max-width: 1080px; margin: 40px auto 0;
}
.trees li { flex: 0 0 33.333%; text-align: center; position: relative; }
.trees img { margin: 0 auto; }
.trees .eyebrow { margin-top: 2px; font-size: 12px; letter-spacing: 0.08em; position: relative; }
/* Точка на линии роста под каждым деревом; линия тянется через весь ряд на широком экране. */
.timeline .eyebrow::before {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--card); box-shadow: 0 0 0 2px var(--green);
  margin: 0 auto 10px;
}
@media (min-width: 700px) {
  .trees li { flex-basis: 20%; }
  .timeline { position: relative; }
  .timeline::before {
    content: ""; position: absolute; left: 10%; right: 10%; bottom: 31px; height: 2px;
    background: linear-gradient(90deg, var(--border), var(--green));
  }
}

/* Единственная тёмная секция — SOS, всегда тёмная, как кадр 04 в сторе. */
.section.sos {
  background:
    radial-gradient(circle at 72% 50%, transparent 0 140px, rgba(95, 221, 139, 0.07) 141px 142px, transparent 143px 220px, rgba(95, 221, 139, 0.05) 221px 222px, transparent 223px 300px, rgba(95, 221, 139, 0.035) 301px 302px, transparent 303px),
    var(--sos-surface);
  color: #E8EBEE;
  margin-top: var(--section);
  padding: var(--section) 0;
}
.sos h2 { color: #E8EBEE; }
.sos .lede { color: #C8CDD3; }
.sos .eyebrow { color: #E05F5F; }
.sos .eyebrow.dot::before { background: #E05F5F !important; }
.sos .frame { border-color: #1D2126; background: #0C1614; box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.6); }
.sos .media::before { background: radial-gradient(50% 50% at 50% 50%, rgba(95, 221, 139, 0.12), transparent 70%); }
/* На узком экране кадр по центру, кольца тоже. */
@media (max-width: 899px) {
  .section.sos {
    background:
      radial-gradient(circle at 50% 70%, transparent 0 140px, rgba(95, 221, 139, 0.07) 141px 142px, transparent 143px 220px, rgba(95, 221, 139, 0.05) 221px 222px, transparent 223px),
      var(--sos-surface);
  }
}
.sos + .section { padding-top: var(--section); }

.privacy { text-align: center; }
.privacy-grid { list-style: none; display: grid; gap: 14px; margin: 24px auto 0; max-width: 960px; }
.privacy-grid li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sheet);
  padding: 28px 20px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.privacy-grid svg { fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy .big { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; font-size: clamp(32px, 2vw + 22px, 44px); }
.privacy .lede { margin-top: 24px; }
@media (min-width: 700px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .privacy-grid li { padding: 36px 20px 32px; } }

/* FAQ главной: ответы лежат в HTML (details), без JS; те же тексты в FAQPage в head. */
.faq-list { max-width: 760px; margin: 32px auto 0; text-align: left; }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 18px; min-height: 52px; display: flex; align-items: center; padding: 8px 0; }
.faq-list details p { font-size: 17px; line-height: 1.6; color: var(--ink-2); padding: 0 0 18px; }

.final { text-align: center; padding: var(--section) 0 var(--section); position: relative; }
.final .wrap { position: relative; }
/* Свечение под деревом: эллипс, растворяется до краёв, без резкой границы у верха секции. */
.final .wrap::before {
  content: ""; position: absolute; left: 50%; top: -40px; width: 560px; max-width: 100vw; height: 420px;
  transform: translateX(-50%); z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--glow), transparent 70%);
}
.final .wrap > * { position: relative; z-index: 1; }
.final-tree { width: min(260px, 60vw); height: auto; margin: 0 auto 8px; }
.final h2 { font-size: clamp(40px, 3.6vw + 26px, 80px); margin-bottom: 32px; }
.disclaimer {
  max-width: 40rem; margin: 40px auto 0; padding: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  font-size: 14px; line-height: 1.6; color: var(--ink-2); text-align: left;
}

/* Появление при прокрутке: reveal.js ставит .js-reveal только без prefers-reduced-motion. */
.js-reveal .reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Текстовые страницы: юр. документы и GEO ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 72px; }
.doc h1 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(36px, 2.4vw + 26px, 52px); margin: 0 0 10px; }
.doc h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-size: 28px; margin: 44px 0 12px; }
.doc h3 { font-weight: 600; font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 17px; color: var(--ink); }
.doc p { margin-bottom: 14px; }
/* Отступ под маркер — с начала строки: в ar/he (i18n.js ставит dir="rtl") он справа. */
.doc ul, .doc ol { margin: 0 0 16px; margin-inline-start: 22px; }
.doc li { margin-bottom: 8px; }
.doc ul li::marker { color: var(--green); }
.doc strong { font-weight: 600; }
.doc .meta, .doc .updated, .doc .subtitle { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; }
.doc .subtitle { margin-bottom: 8px; font-size: 18px; }
.doc .intro { margin-bottom: 24px; }
.doc .muted { color: var(--ink-2); font-size: 15px; }
.doc .caps { text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; }
.doc .contact-block { white-space: pre-line; }
.doc .highlight, .doc .card, .doc .contact-card, .doc .disclaimer {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 18px 20px; margin: 24px 0;
}
.doc .disclaimer { border-left: 3px solid var(--alert); font-size: 17px; color: var(--ink); max-width: none; text-align: left; }
.doc .highlight p:last-child, .doc .card p:last-child, .doc .contact-card p:last-child { margin-bottom: 0; }
.doc .contact-card { text-align: center; }
.doc .email-label, .doc .response { font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }
.doc .email { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.doc .faq-item { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.doc .faq-item p:last-child { margin-bottom: 0; }

/* GEO: прямой ответ, таблицы, FAQ, призыв */
.doc .answer { font-size: 19px; line-height: 1.6; border-left: 3px solid var(--green); padding-left: 16px; margin: 0 0 28px; }
.doc .toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 20px 6px; margin: 0 0 8px; }
.doc .toc h2 { font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.doc .toc ol { margin: 0 0 10px 22px; }
.doc .toc li { font-size: 16px; margin-bottom: 6px; }
.doc .toc a { color: var(--ink); text-decoration-color: var(--border); text-underline-offset: 3px; }
.doc .toc a:hover { color: var(--green); }
.doc h2[id] { scroll-margin-top: 16px; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0 8px; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.doc thead th { font-weight: 600; border-bottom: 2px solid var(--border); }
.doc tbody th { font-weight: 600; }
@media (max-width: 600px) {
  .doc .stack table { min-width: 0; }
  .doc .stack thead { display: none; }
  .doc .stack tr { display: block; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .doc .stack th, .doc .stack td { display: block; border: 0; padding: 2px 0; }
  .doc .stack tbody th { font-size: 17px; padding-bottom: 4px; }
  .doc .stack td::before { content: attr(data-label) ": "; color: var(--ink-2); }
}
.doc details { border-top: 1px solid var(--border); padding: 8px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--border); }
.doc summary { cursor: pointer; font-weight: 600; font-size: 17px; min-height: 44px; display: flex; align-items: center; }
.doc details div { padding: 4px 0 8px; }
.doc details div p:last-child { margin-bottom: 0; }
.doc .cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.doc .cta p { margin: 0; flex: 1 1 240px; }
.doc .cta .store img { width: 144px; height: 48px; }
.doc .sources { font-size: 15px; }
.doc .sources li { font-size: 15px; }

/* Приглашение в пару /j/CODE */
.doc.invite { max-width: 560px; text-align: center; padding-top: 56px; }
.doc.invite ol { text-align: start; margin: 24px auto 32px; max-width: 380px; }
.doc.invite .code {
  display: block; margin: 28px 0; padding: 22px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  font-family: var(--f-mono); font-weight: 500; font-size: 34px; letter-spacing: 0.16em;
  color: var(--ink); word-break: break-all;
}

/* Арабское письмо связное: отрицательный трекинг заголовков рвёт соединения букв. */
[lang="ar"] .doc h1, [lang="ar"] .doc h2 { letter-spacing: 0; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Списки из одних ссылок (источники, «More guides»): тап-цель не ниже 44 px. */
.doc li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
