/* ============================================================
   Nursery — landing styles
   Concept: "питомник" — приложения растут и выходят в App Store.
   Playful-with-character: warm paper, green growth accent, coral pop.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* верхний паддинг секций — вынесен в переменную, чтобы якорный scroll-margin
     мог его скомпенсировать (см. правило #features,#pricing,#faq ниже). */
  --sec-pad-top: clamp(70px, 9vw, 130px);
  /* palette (oklch) */
  --paper:      oklch(0.976 0.011 95);
  --paper-2:    oklch(0.952 0.016 92);
  --card:       oklch(0.992 0.006 95);
  --ink:        oklch(0.255 0.030 158);
  --ink-soft:   oklch(0.470 0.024 158);
  --ink-faint:  oklch(0.620 0.018 150);
  --line:       oklch(0.885 0.016 120);
  --line-soft:  oklch(0.925 0.012 110);

  /* accents — shared L/C, varied hue */
  --green:      oklch(0.720 0.150 150);
  --coral:      oklch(0.720 0.150 40);
  --green-deep: oklch(0.430 0.090 158);
  --panel:      oklch(0.268 0.038 160);   /* deep contrast band */
  --panel-2:    oklch(0.232 0.034 162);

  /* tweakable accent (default green) */
  --accent:        var(--green);
  --accent-deep:   var(--green-deep);

  --radius:   18px;
  --radius-sm: 11px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 2px oklch(0.4 0.03 158 / .05), 0 8px 24px oklch(0.4 0.03 158 / .07);
  --shadow-pop:  0 2px 6px oklch(0.4 0.03 158 / .07), 0 30px 70px oklch(0.35 0.04 158 / .16);

  --maxw: 1180px;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;
}

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

/* overflow-x:hidden именно на html (НЕ на body): на body он делает body
   скролл-контейнером (overflow-y→auto), и тогда window.scrollTo / нативный
   hash-jump не работают. На html — безопасно, html и так дефолтный скроллер. */
html { scroll-behavior: smooth; scroll-padding-top: 0; overflow-x: hidden; }
/* Якорные секции приземляются заголовком ~96px от верха (сразу под навбаром),
   независимо от внутреннего верхнего паддинга секции. Для секций с полным
   паддингом компенсируем его отрицательным scroll-margin: var сокращается,
   и контент всегда оказывается на ~96px при любом значении clamp. */
#features, #pricing, #faq { scroll-margin-top: calc(96px - var(--sec-pad-top)); }
#how, #demo { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.72 0.15 150 / .18);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }

.section { padding-block: var(--sec-pad-top); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 16px 0 14px; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 8px 22px oklch(0.25 0.03 158 / .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px oklch(0.25 0.03 158 / .32); }
.btn-accent { background: var(--accent); color: oklch(0.22 0.04 158); box-shadow: 0 8px 22px oklch(0.72 0.15 150 / .35); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px oklch(0.72 0.15 150 / .45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink-faint); }
.btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: oklch(0.976 0.011 95 / .82);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
header.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px oklch(0.4 0.03 158 / .05); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand .mark { flex: none; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a {
  font-size: .96rem; font-weight: 500; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* language toggle */
.lang {
  display: inline-flex; align-items: center; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.lang button {
  border: none; background: transparent; cursor: pointer; color: var(--ink-faint);
  padding: 5px 11px; border-radius: 999px; font: inherit; transition: .15s;
}
.lang button.on { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 86px); padding-bottom: 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(620px 360px at 78% 8%, oklch(0.72 0.15 150 / .14), transparent 70%),
    radial-gradient(560px 320px at 8% 0%, oklch(0.72 0.15 40 / .10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); margin: 20px 0 0; max-width: 15ch; }
.hero h1 .seed { color: var(--accent-deep); white-space: nowrap; }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.32rem); color: var(--ink-soft); max-width: 54ch; margin-top: 22px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.req {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint);
  margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.req .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); }

.shot-frame {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, oklch(0.99 0.006 95), oklch(0.95 0.014 92));
  padding: 10px; box-shadow: var(--shadow-pop);
  border: 1px solid var(--line-soft);
}
.shot-frame img { border-radius: 19px; width: 100%; }
.hero-shot { margin-top: 14px; }
.hero-laptop { width: 100%; max-width: none; filter: drop-shadow(0 30px 60px oklch(0.35 0.04 158 / .10)); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 8px 13px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center;
}
.chip b { color: var(--ink); }
.chip .ic { color: var(--accent-deep); display: flex; }
.chip .ic svg { width: 14px; height: 14px; }

/* ---------- stats strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 38px; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -0.03em; }
.stat .n em { font-style: normal; color: var(--accent-deep); }
.stat .l { color: var(--ink-soft); font-size: .98rem; margin-top: 8px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--line-soft); }
.ic-badge {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: oklch(0.72 0.15 150 / .12); color: var(--accent-deep); margin-bottom: 18px;
}
.ic-badge svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .99rem; text-wrap: pretty; }

/* highlight (Быстрый залив) */
.highlight {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  background: var(--panel); color: oklch(0.95 0.01 95); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 56px); overflow: hidden; position: relative;
  box-shadow: var(--shadow-pop);
}
.highlight .eyebrow { color: oklch(0.82 0.13 150); }
.highlight .eyebrow::before { box-shadow: 0 0 0 4px oklch(0.72 0.15 150 / .22); }
.highlight h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 14px 0 14px; color: white; }
.highlight p { color: oklch(0.85 0.012 110); font-size: 1.08rem; max-width: 46ch; }
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.flow-pair { display: inline-flex; align-items: center; gap: 6px; }
.flow .step {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .03em;
  background: oklch(1 0 0 / .07); border: 1px solid oklch(1 0 0 / .12); color: oklch(0.92 0.01 95);
  padding: 8px 12px; border-radius: 9px;
}
.flow .arr { color: oklch(0.82 0.13 150); font-weight: 700; }
.highlight-visual {
  display: grid; gap: 12px;
}
.pill-row { display: flex; align-items: center; gap: 12px; background: oklch(1 0 0 / .06); border: 1px solid oklch(1 0 0 / .1); border-radius: 14px; padding: 14px 16px; }
.pill-row .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: oklch(0.22 0.04 158); display: grid; place-items: center; flex: none; }
.pill-row .tick svg { width: 14px; height: 14px; }
.pill-row.pending .tick { background: oklch(1 0 0 / .12); color: oklch(0.85 0.01 95); }
.pill-row span { font-size: .98rem; }
.pill-row .meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: oklch(0.78 0.01 95); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.step-card { position: relative; padding-top: 14px; }
.step-card .num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.step-card .num::before { counter-increment: s; content: "0" counter(s); }
.step-card .leaf { color: var(--accent); }
.step-card h3 { font-size: 1.18rem; margin-bottom: 7px; }
.step-card p { color: var(--ink-soft); font-size: .95rem; text-wrap: pretty; }
.step-card .line-dec { position: absolute; top: 26px; left: 46px; right: -9px; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.step-card:last-child .line-dec { display: none; }
.handnote {
  margin-top: 34px; display: flex; gap: 14px; align-items: flex-start;
  background: oklch(0.72 0.15 40 / .08); border: 1px solid oklch(0.72 0.15 40 / .22);
  border-radius: var(--radius); padding: 20px 22px;
}
.handnote .ic { color: var(--coral); flex: none; margin-top: 2px; }
.handnote .ic svg { width: 22px; height: 22px; }
.handnote b { font-family: var(--font-display); }
.handnote p { color: var(--ink-soft); font-size: 1rem; margin-top: 3px; }

/* ---------- demo / interactive tour ---------- */
.tour-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 26px;
  border-bottom: 1px solid var(--line); padding-bottom: 0;
}
.tour-tab {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ink-faint);
  background: transparent; border: none; padding: 12px 16px; border-radius: 10px 10px 0 0;
  position: relative; transition: color .18s, background .18s;
}
.tour-tab svg { width: 18px; height: 18px; }
.tour-tab:hover { color: var(--ink); background: var(--paper-2); }
.tour-tab.on { color: var(--accent-deep); }
.tour-tab.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px;
  background: var(--accent); border-radius: 3px;
}
.tour-cap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tour-cap .tag { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-deep); letter-spacing: .04em; }
.tour-cap h3 { font-size: 1.32rem; }
.tour-cap .desc { width: 100%; color: var(--ink-soft); font-size: 1.04rem; margin-top: 2px; text-wrap: pretty; max-width: 70ch; }
.tour-stage .shot-frame { transition: opacity .28s ease; }
.tour-stage .shot-frame { background: none; border: none; box-shadow: none; padding: 0; }
.tour-stage .shot-frame img { border-radius: 0; filter: drop-shadow(0 24px 60px oklch(0.35 0.04 158 / .14)); }
.tour-stage.swapping .shot-frame { opacity: 0; }

/* ---------- pricing ---------- */
.pricing { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 46px); box-shadow: var(--shadow-card);
}
.price-card .lead { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.price-card .lead .by { color: var(--accent-deep); }
.price-card .note { color: var(--ink-soft); margin-bottom: 26px; }
.incl { display: grid; gap: 14px; }
.incl li { list-style: none; display: flex; gap: 13px; align-items: flex-start; }
.incl .tick { width: 24px; height: 24px; border-radius: 50%; background: oklch(0.72 0.15 150 / .15); color: var(--accent-deep); display: grid; place-items: center; flex: none; margin-top: 1px; }
.incl .tick svg { width: 13px; height: 13px; }
.incl b { font-weight: 600; }
.incl span { color: var(--ink-soft); }
.buy-card {
  background: var(--panel); color: white; border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 46px); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.buy-card .eyebrow { color: oklch(0.82 0.13 150); }
.buy-card h3 { color: white; font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 12px 0 6px; }
.buy-card p { color: oklch(0.85 0.012 110); margin-bottom: 24px; text-wrap: pretty; }
.buy-card .btn-accent { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; }
.buy-card .fine { font-family: var(--font-mono); font-size: 11.5px; color: oklch(0.78 0.01 95); margin-top: 14px; margin-bottom: 0; text-align: center; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; max-width: 880px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-soft); box-shadow: var(--shadow-card); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { flex: 1; }
.faq-item summary .plus { flex: none; width: 26px; height: 26px; position: relative; transition: transform .25s ease; color: var(--accent-deep); }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-item summary .plus::before { width: 14px; height: 2.4px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-item summary .plus::after { width: 2.4px; height: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform .25s ease; }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item .a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 1.02rem; max-width: 70ch; text-wrap: pretty; }
.faq-item .a code { font-family: var(--font-mono); font-size: .9em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final-card {
  background: var(--panel); color: white; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px); box-shadow: var(--shadow-pop); position: relative; overflow: hidden;
}
.final-card::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 300px; background: radial-gradient(500px 240px at 50% 100%, oklch(0.72 0.15 150 / .3), transparent 70%); }
.final-card .eyebrow { color: oklch(0.82 0.13 150); justify-content: center; }
.final-card h2 { color: white; font-size: clamp(2rem, 4vw, 3.3rem); margin: 16px 0 18px; }
.final-card p { color: oklch(0.85 0.012 110); font-size: 1.15rem; max-width: 50ch; margin-inline: auto; margin-bottom: 30px; }
.final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
footer.foot { border-top: 1px solid var(--line); padding-block: 44px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot .brand { font-size: 1.1rem; }
.foot-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-meta a:hover { color: var(--ink); }

/* ---------- reveal anim ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr 1.26fr; gap: 44px; }
  .hero-shot { margin-top: -24px; }
  .hero-laptop { width: 128%; margin-left: -10%; margin-right: -18%; }
}
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-card .line-dec { display: none; }
  .highlight { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .nav-links { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 22px; }
  .stat + .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .hero-cta { gap: 10px; }
  .btn { width: 100%; justify-content: center; }
  .nav-actions .btn-primary { display: none; }
}
