/* CURL landing — пастельный одностраничник, продолжение ASO-скриншотов приложения.
   Правила игры: никаких инлайновых style="" (CSP: style-src 'self'), только светлая тема,
   логические свойства (inline/block) — чтобы RTL-локали заработали без правок.
   Ссылки на файлы из /assets/ внутри url() build.mjs заменяет на хешированные. */

/* ---------- шрифт ---------- */

/* Один вариативный файл на подмножество; unicode-range не даёт EN-странице качать кириллицу. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/manrope-latin.e310b55a.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;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/manrope-cyrillic.95a49306.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Запасной шрифт с метриками Manrope: пока woff2 грузится, текст не прыгает. */
@font-face {
  font-family: "Manrope Fallback";
  font-weight: 200 600;
  src: local("Arial"), local("ArialMT");
  size-adjust: 103.5%;
  ascent-override: 103%;
  descent-override: 29%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Manrope Fallback";
  font-weight: 700 800;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 102.4%;
  ascent-override: 104.1%;
  descent-override: 29.3%;
  line-gap-override: 0%;
}

/* ---------- токены ---------- */

:root {
  color-scheme: light;

  --bg: #FDF3F4;
  --tint-sky: #E6F1FB;
  --tint-peach: #FDE8DC;
  --tint-lilac: #ECE8FA;
  --surface: #fff;
  --ink: #2B2B2B;
  --muted: #6B6467;
  --line: rgba(43, 43, 43, .10);
  --grid: rgba(226, 150, 165, .22);
  --accent: #C2255C;

  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-h1: clamp(34px, 9.6vw, 64px);
  --fs-h2: clamp(26px, 6.6vw, 44px);
  --fs-lead: clamp(16px, 4.2vw, 19px);

  --gutter: 24px;
  --sec: clamp(52px, 10vw, 104px);
  --r-card: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --sh-chip: 0 1px 2px rgba(43, 43, 43, .06), 0 6px 16px rgba(194, 37, 92, .08);
  --sh-float: 0 10px 30px rgba(43, 43, 43, .12);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- типографика ---------- */

.h1, .h2 {
  font-weight: 800;
  text-wrap: balance;
}

.h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
}

/* Кириллица плотнее латиницы — чуть отпускаем трекинг. */
:lang(ru) .h1 { letter-spacing: -.02em; }
:lang(ru) .h2 { letter-spacing: -.015em; }

.h2--center { text-align: center; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--muted);
}

.body {
  margin-block-start: 14px;
  color: var(--muted);
  max-width: 34em;
}

.kicker {
  margin-block-end: 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- кнопки ---------- */

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}

.pill:hover { background: #000; }
.pill:active { transform: scale(.97); }

.pill--sm {
  height: 36px;
  padding-inline: 16px;
  font-size: 14px;
}

/* Визуально 36px, зона нажатия — 44px. */
.pill--sm::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.pill--lg {
  height: 56px;
  padding-inline: 32px;
  font-size: 17px;
}

/* Официальный бейдж Apple: не перекрашиваем, не анимируем, свободное поле ≥ ¼ высоты. */
.badge {
  display: inline-block;
  margin-block: 18px 12px;
  border-radius: 10px;
}

.badge img {
  width: auto;
  height: 56px;
}

/* ---------- шапка ---------- */

.hdr {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: rgba(253, 243, 244, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand .logo { width: 28px; height: 28px; }

.brand__name {
  font-size: 24px;
  line-height: 1;
  font-weight: 200;
  letter-spacing: .01em;
}

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: 16px 44px;
}

/* Бледная сетка из ASO-скриншота №1: два градиента, гаснет к краям маской. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 50% 0 / 56px 56px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 50% 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 35%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 35%, #000 35%, transparent 78%);
}

.hero__copy .lead { margin-block-start: 10px; }

/* Кольцо вокруг слова — нарисованная линия вместо второго шрифта. */
.ring {
  position: relative;
  display: inline-block;
  margin-inline: .2em;
  white-space: nowrap;
}

/* Путь кольца занимает ~85% ширины своего viewBox, поэтому бокс заметно шире слова —
   иначе линия режет первую и последнюю буквы (на длинном «кружок» это видно сразу). */
.ring svg {
  position: absolute;
  inset: -.14em -.34em -.2em;
  width: calc(100% + .68em);
  height: calc(100% + .34em);
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  pointer-events: none;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--muted);
}

.trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Композиция из кружков. Все размеры и отступы — доли диаметра --d, поэтому
   она целиком масштабируется одной переменной. */
.art {
  --d: min(232px, 60vw);
  position: relative;
  height: calc(var(--d) * 1.3);
  margin-block-start: 22px;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--surface);
}

.orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb--main {
  width: var(--d);
  height: var(--d);
  inset-inline-start: calc(50% - var(--d) * .5);
  inset-block-start: calc(var(--d) * .15);
}

.arc {
  position: absolute;
  width: calc(var(--d) * 1.1);
  height: calc(var(--d) * 1.1);
  inset-inline-start: calc(50% - var(--d) * .55);
  inset-block-start: calc(var(--d) * .1);
  fill: none;
  stroke-width: 2.4;
  pointer-events: none;
}

.arc__track { stroke: rgba(43, 43, 43, .1); }
.arc__bar { stroke: var(--accent); stroke-linecap: round; }

.orb--a, .orb--b {
  border: 3px solid #fff;
  box-shadow: var(--sh-float);
}

.orb--a {
  width: calc(var(--d) * .36);
  height: calc(var(--d) * .36);
  inset-inline-start: calc(50% - var(--d) * .66);
  inset-block-start: calc(var(--d) * .06);
}

.orb--b {
  width: calc(var(--d) * .29);
  height: calc(var(--d) * .29);
  inset-inline-start: calc(50% + var(--d) * .315);
  inset-block-start: calc(var(--d) * .94);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-chip);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.chip svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.art .chip { position: absolute; }

.chip--1 { inset-inline-start: calc(50% + var(--d) * .24); inset-block-start: calc(var(--d) * .05); }
.chip--2 { inset-inline-start: calc(50% - var(--d) * .74); inset-block-start: calc(var(--d) * .62); transform: rotate(-3deg); }
.chip--3 { inset-inline-start: calc(50% + var(--d) * .4); inset-block-start: calc(var(--d) * .5); transform: rotate(2deg); }
.chip--4 { inset-inline-start: calc(50% - var(--d) * .7); inset-block-start: calc(var(--d) * 1.1); }

.arrow {
  position: absolute;
  width: calc(var(--d) * .2);
  height: calc(var(--d) * .25);
  inset-inline-start: calc(50% + var(--d) * .3);
  inset-block-start: calc(var(--d) * .2);
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 359px) {
  .art { --d: 192px; }
  .chip--4 { display: none; }
}

/* Низкие экраны (встроенный браузер + клавиатура/панели): ужимаем картинку, кнопка важнее. */
@media (max-height: 620px) and (max-width: 767px) {
  .art { --d: min(180px, 52vw); }
}

@media (min-width: 768px) {
  .hero { padding-block: 40px 72px; }
  .art { --d: 300px; }
}

@media (min-width: 1024px) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
  }
  .hero__copy .lead { margin-block-start: 18px; max-width: 30em; }
  .badge { margin-block: 28px 16px; }
  .art { --d: 360px; margin-block-start: 0; }
  .art .chip { height: 36px; font-size: 14px; }
}

/* ---------- главы ---------- */

.chap { padding-block: var(--sec); }
.chap--sky { background: var(--tint-sky); }
.chap--peach { background: var(--tint-peach); }
.chap--lilac { background: var(--tint-lilac); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 20px;
}

.chap__visual { margin-block-start: 32px; }

@media (min-width: 1024px) {
  .chap__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .chap__grid--flip .chap__visual { order: -1; }
  .chap__visual { margin-block-start: 0; }
}

/* Глава 1: два кружка с подписями. */
.duo {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 32px);
}

.duo__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(44%, 240px);
}

.duo__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: var(--sh-float);
}

/* Глава 2: лента шаблонов — нативная горизонтальная прокрутка. */
.body--narrow { max-width: 36em; }

.row {
  margin-block-start: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  padding-block-end: 8px;
}

.row::-webkit-scrollbar { display: none; }

.row__list {
  display: flex;
  gap: 12px;
  width: max-content;
}

.card {
  position: relative;
  flex: none;
  width: clamp(140px, 40vw, 200px);
  scroll-snap-align: start;
}

.card img {
  width: 100%;
  aspect-ratio: 600 / 1066;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: 0 6px 20px rgba(43, 43, 43, .1);
}

.card .chip {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  height: 26px;
  padding-inline: 10px;
  font-size: 12px;
}

@media (min-width: 1024px) {
  .row {
    overflow: visible;
    max-width: 1120px;
    margin-inline: auto;
  }
  .row__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: auto;
  }
  .card { width: auto; }
}

/* Глава 3: «карточки профиля» с кольцом. Без логотипа и вёрстки LinkedIn. */
.rings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px 18px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--sh-chip);
}

.pcard img {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  border-radius: 12px;
}

.pcard__bar {
  width: 62%;
  height: 8px;
  margin-block-start: 12px;
  border-radius: 4px;
  background: rgba(43, 43, 43, .12);
}

.pcard__bar--short {
  width: 40%;
  margin-block-start: 8px;
  background: rgba(43, 43, 43, .07);
}

.pcard--extra { display: none; }

@media (min-width: 640px) {
  .rings { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pcard--extra { display: flex; }
}

/* ---------- три шага ---------- */

.steps { padding-block: var(--sec); }

.steps__list {
  display: grid;
  gap: 28px;
  margin-block-start: 36px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  align-items: center;
}

/* Номер в двойном кольце — отсылка к иконке приложения. */
.step__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  outline: 2px solid var(--ink);
  outline-offset: -9px;
  font-size: 18px;
  font-weight: 800;
}

.step__title { font-size: 18px; line-height: 1.25; font-weight: 800; align-self: end; }
.step__body { color: var(--muted); align-self: start; }

@media (min-width: 768px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; gap: 6px; }
  .step__num { grid-row: auto; margin-block-end: 8px; }
}

/* ---------- финал ---------- */

.final { padding-block: 0 var(--sec); }

.final__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.final .logo { width: 88px; height: 88px; }
.final .h2 { max-width: 16em; }
.final .pill { margin-block-start: 6px; }

@media (max-width: 479px) {
  .final .pill { width: 100%; padding-inline: 16px; }
}

/* ---------- футер ---------- */

.footer {
  padding-block: 28px max(36px, env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--ink); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-weight: 600;
  color: var(--ink);
}

/* Системный шрифт: иначе слово «Русский» заставит EN-страницу скачать кириллический woff2. */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-block: 14px;
  font-family: var(--font-system);
}

.langs [aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  cursor: default;
}

.footer__note + .footer__note { margin-block-start: 6px; font-size: 12px; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.notfound .logo { width: 72px; height: 72px; }

/* ---------- появление блоков ---------- */

/* Класс ставит app.js и только элементам ниже сгиба: без JS всё видно сразу. */
.will-reveal {
  opacity: 0;
  transform: translateY(12px);
}

.will-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}

/* заглушки картинок (из media.manifest.json) */
.ph-hero-main{background-color:#927669}
.ph-hero-a{background-color:#877F73}
.ph-hero-b{background-color:#978277}
.ph-msg-telegram{background-color:#887F7F}
.ph-msg-whatsapp{background-color:#A98E82}
.ph-tpl-vlog{background-color:#A18A8A}
.ph-tpl-telegram{background-color:#CFBFC0}
.ph-tpl-whatsapp{background-color:#BAADA3}
.ph-tpl-love{background-color:#6D4A52}
.ph-tpl-pets{background-color:#C0AE9A}
.ph-tpl-letter{background-color:#834349}
.ph-tpl-texture{background-color:#CBC49B}
.ph-tpl-classic{background-color:#9C9690}
.ph-tpl-spring{background-color:#C6B08C}
.ph-tpl-glam{background-color:#96918F}
.ph-ring-gold{background-color:#D7BDA1}
.ph-ring-blue{background-color:#CDC1B2}
.ph-ring-black{background-color:#CBB49C}
.ph-ring-rainbow{background-color:#D3BAA5}
.ph-ring-silver{background-color:#D7C1AB}
.ph-ring-chrome{background-color:#D2C1B0}
