/* Лэндинг abrikos.pro — направление «Абрикос в лоб».
   Токены дублируются здесь намеренно: лэндинг обязан открываться сам по себе,
   без сборки и без зависимостей. Источник правды по значениям — brand/tokens.json. */

:root {
  --cream: #FFF6ED; --cream-2: #FBEFE0; --pulp: #F3E2CE; --pulp-2: #EBD9C2; --pulp-3: #CDB69A;
  --apricot: #FF7A29; --apricot-lt: #FFA05C; --apricot-dk: #E8763B; --apricot-dp: #C05A12;
  --apricot-wash: #FFE8D2;
  --cocoa: #2E1F14; --cocoa-2: #3B2A1B; --cocoa-3: #17120C;
  --muted: #A08363; --muted-2: #6B5540;
  --leaf: #5B8A5E; --leaf-dk: #3F7A4C; --leaf-wash: #EDF3EE;
  --white: #FFFFFF;

  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --sh-md: 0 4px 14px rgba(46,31,20,.08);
  --sh-lg: 0 18px 48px rgba(46,31,20,.14);
  --sh-glow: 0 8px 28px rgba(255,122,41,.28);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.025em; line-height: 1.04; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: color .12s; }
a:hover { color: var(--apricot-dk); }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--apricot); color: #fff; }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.display-xl { font-size: clamp(40px, 6.4vw, 78px); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
.display-l { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.04; font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted-2); max-width: 54ch; }

/* ─── кнопки, поля, бейджи ───────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15.5px/1 var(--font-text);
  padding: 15px 24px; border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--apricot); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { background: var(--apricot-dk); color: #fff; }
.btn-ghost { border-color: var(--pulp-3); color: var(--cocoa); }
.btn-ghost:hover { background: var(--pulp); color: var(--cocoa); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.field {
  font: 400 15.5px/1.2 var(--font-text); color: var(--cocoa);
  background: var(--white); border: 1px solid var(--pulp-3);
  border-radius: var(--r-pill); padding: 15px 20px; min-width: 240px; flex: 1;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--apricot); box-shadow: 0 0 0 3px rgba(255,122,41,.16); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--apricot-wash); color: var(--apricot-dp);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* ─── шапка ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,246,237,.86); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--pulp-2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
@media (max-width: 720px) { .nav__links a:not(.btn) { display: none; } }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo svg { width: 26px; height: 26px; }
.logo--small { font-size: 18px; }
.logo .tld { color: var(--apricot); }

/* ─── герой ──────────────────────────────────────────────────────────────── */

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 84px); }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { margin: 20px 0 22px; max-width: 12ch; text-wrap: balance; }

.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; margin-top: 30px; }
.waitlist--center { margin-inline: auto; justify-content: center; }
.waitlist__note { font-size: 14.5px; color: var(--muted-2); margin-top: 12px; }
.waitlist__note a { color: var(--apricot-dp); font-weight: 600; }
.waitlist__status { font-size: 15px; font-weight: 600; color: var(--leaf-dk); margin-top: 12px; }
.waitlist__status[data-kind="error"] { color: #B3402E; }

.chat-demo {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  padding: 26px; background: var(--cocoa-3); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
.chat-demo__bubble {
  background: var(--cocoa-2); color: var(--cream);
  padding: 12px 17px; border-radius: 16px 16px 4px 16px; font-size: 14.5px;
}
.chat-demo__result {
  align-self: flex-start; color: var(--apricot-lt);
  font-family: var(--font-mono); font-size: 13px; margin-top: 6px;
}

/* ─── секции ─────────────────────────────────────────────────────────────── */

.section { padding: clamp(56px, 7vw, 100px) 0; }
.section__sub { color: var(--muted); font-size: 16px; margin: 12px 0 44px; }
.section--dark {
  background: var(--cocoa-3); color: var(--cream);
  border-radius: clamp(20px, 3vw, 40px); margin-inline: clamp(0px, 2vw, 24px);
}
.section--dark .section__sub { color: #9C8B74; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border: 1px solid var(--pulp-2);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-md);
}
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--apricot); font-weight: 600; }
.step h3 { font-size: 22px; margin: 10px 0 10px; }
.step p { font-size: 15.5px; color: var(--muted-2); margin-bottom: 18px; }
.step__demo {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--cream-2); border-radius: var(--r-md); padding: 14px; font-size: 14px;
}
.step__demo .q { color: var(--muted-2); }
.step__demo .a { align-self: flex-end; background: var(--cocoa); color: var(--cream); padding: 7px 13px; border-radius: 12px 12px 4px 12px; }
.step__demo--ok { color: var(--leaf-dk); background: var(--leaf-wash); font-family: var(--font-mono); font-size: 13px; }
.step__previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini { display: block; aspect-ratio: 3/4; border-radius: 8px; border: 1px solid var(--pulp-2); }
.mini--poster { background: linear-gradient(160deg, #17120C 46%, #E8542F 46% 52%, #17120C 52%); }
.mini--grid { background:
  linear-gradient(#F1ECE3 0 0) 0 0/100% 34% no-repeat,
  linear-gradient(#E4DCCF 0 0) 0 100%/100% 62% no-repeat, #fff; }
.mini--look { background: linear-gradient(#FAF7F2 0 42%, #E8E1D2 42% 100%); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.feature {
  background: rgba(255,246,237,.05); border: 1px solid rgba(255,246,237,.12);
  border-radius: var(--r-lg); padding: 28px;
}
.feature h3 { font-size: 23px; margin-bottom: 10px; }
.feature p { color: #C9B49B; font-size: 15.5px; }
.feature__demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.feature__demo--order {
  flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--cocoa-2); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px;
}
.feature__demo--order span { color: #9C8B74; }
.chip {
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,246,237,.09); font-size: 13.5px;
}
.chip--accent { background: var(--apricot); color: #fff; font-weight: 600; }
.chip--ok { background: var(--leaf); color: #fff; font-weight: 600; }
.arrow { color: var(--apricot); font-size: 18px; }
.editable {
  position: relative; font-family: var(--font-display); font-weight: 800; font-size: 22px;
  padding: 6px 10px; border: 1px dashed var(--apricot); border-radius: 8px;
}
.caret {
  display: inline-block; width: 2px; height: 20px; margin-left: 3px;
  background: var(--apricot); vertical-align: -3px; animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .templates { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .templates { grid-template-columns: 1fr; } }

.tpl {
  background: var(--white); border: 1px solid var(--pulp-2);
  border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-md);
  display: flex; flex-direction: column; gap: 3px;
  transition: transform .18s, box-shadow .18s;
}
.tpl:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.tpl b { font-family: var(--font-display); font-size: 16.5px; margin-top: 12px; }
.tpl span:not(.tpl__shot) { color: var(--muted); font-size: 13.5px; }

/* скриншот настоящей сборки: показываем верх страницы — герой и первые карточки */
.tpl__shot {
  /* height:auto обязателен: HTML-атрибут height=940 иначе перебивает aspect-ratio
     и картинка растягивается в портрет */
  width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: top center;
  border-radius: var(--r-md); border: 1px solid var(--pulp-2); background: var(--pulp);
}

.templates__note {
  margin-top: 26px; color: var(--muted); font-size: 14.5px; max-width: 62ch;
}

.cta { text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta .lead { margin-inline: auto; }

/* ─── подвал ─────────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--pulp-2); padding: 36px 0 48px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.footer__links { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted-2); }
.footer__note { font-size: 13.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
