/* Wordayun — лэндинг.
   Язык самого приложения (стиль B2): бумага #F6F1E6 и песок #EBE5D6, чернила, заголовки Unbounded 800, слово и
   примеры — Lora, терракота #E8460A только там, где она и в приложении: переключатели, отметка выбранного.
   Экраны — в корпусе iPhone 17 Pro (экран 1206 × 2622). Тёмных подложек между разделами нет, прокрутку страница
   не перехватывает: ролики играют, только пока видны, проверку листает сам посетитель. */

:root {
  --paper: #f6f1e6;
  --sand: #ebe5d6;
  --card: #fffdf8;
  --ink: #1a1816;
  --ink-2: rgb(26 24 22 / 70%);
  --ink-3: rgb(26 24 22 / 48%);
  --line: rgb(26 24 22 / 12%);
  --terra: #e8460a;
  --pad: clamp(20px, 4.4vw, 72px);
  --max: 1200px;
  --head: "Unbounded", system-ui, sans-serif;
  --serif: "Lora", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
::selection { background: var(--terra); color: #fff; }

.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.h1 { margin: 0; font: 800 clamp(34px, 4.6vw, 68px)/1.06 var(--head); letter-spacing: -.02em; text-wrap: balance; }
.h2 { margin: 0; font: 800 clamp(26px, 2.9vw, 42px)/1.12 var(--head); letter-spacing: -.015em; text-wrap: balance; max-width: 22ch; }
.lead { margin: 0; max-width: 52ch; font: 400 clamp(17px, 1.3vw, 19px)/1.6 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.head { display: grid; gap: 18px; margin-bottom: clamp(28px, 3vw, 44px); }
.note { margin: 18px 0 0; max-width: 64ch; font: 400 14px/1.5 var(--sans); color: var(--ink-3); }
.why { margin: clamp(28px, 3vw, 40px) 0 0; padding: 20px 24px; max-width: 70ch; border-radius: 20px; background: var(--sand); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.why b { font: 500 15px/1.4 var(--head); display: block; margin-bottom: 6px; }

/* ── Кнопки: чёрная капсула, как «Choose This Pack» и «Next» в приложении ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--head); text-decoration: none; cursor: pointer; transition: transform .12s;
}
.btn:active { transform: scale(.96); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn:focus-visible, .chip:focus-visible, .top a:focus-visible, .note-card:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

/* ── Шапка ───────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--pad); background: rgb(246 241 230 / 88%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.top__brand { display: inline-flex; align-items: center; gap: 10px; font: 800 17px/1 var(--head); text-decoration: none; }
.top__brand img { border-radius: 7px; }
.top__home { font: 500 14px/1 var(--head); text-decoration: none; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); }
.top__home:hover { border-color: var(--ink-3); }

/* ── Телефон: iPhone 17 Pro, экран 1206 × 2622, скругление экрана ≈ 9 мм ──── */
.phone { width: 100%; padding: 3.6%; border-radius: 15.5% / 7.2%; background: #1c1b1a; box-shadow: 0 24px 50px rgb(26 24 22 / 16%); }
.phone__screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: 12.6% / 5.8%; overflow: hidden; background: #000; container-type: inline-size; }
.phone__screen > img, .phone__screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot { display: grid; gap: 14px; align-content: start; }
.shot figcaption { font: 400 15px/1.45 var(--sans); color: var(--ink-2); max-width: 30ch; }
.shot figcaption b { font: 500 14px/1 var(--head); color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(36px, 6vw, 90px) 0 0; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); gap: clamp(28px, 6vw, 110px); align-items: center; }
.hero__copy { display: grid; gap: 26px; }
.hero__phone { justify-self: center; width: 100%; }

/* ── Разделы ─────────────────────────────────────────────────────────────── */
.sec { padding: clamp(72px, 8vw, 128px) 0 0; }
.day { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.day.day--three { grid-template-columns: repeat(3, minmax(0, 260px)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(28px, 6vw, 110px); align-items: center; }
.split .head { margin: 0; }
.split--film { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); }

/* бенто: два телефона и карточка; у карточки — песок, как группы в настройках приложения */
.bento { display: grid; gap: clamp(16px, 2.4vw, 36px); }
.bento--two { grid-template-columns: repeat(2, minmax(0, 260px)) minmax(0, 1fr); align-items: start; }
.bento--two:not(:has(.card)) { grid-template-columns: repeat(2, minmax(0, 260px)); }
.card { align-self: stretch; display: grid; align-content: start; gap: 12px; padding: clamp(22px, 2.4vw, 34px); border-radius: 24px; background: var(--sand); }
.card h3 { margin: 0; font: 800 20px/1.2 var(--head); }
.card p { margin: 0; color: var(--ink-2); max-width: 40ch; }

/* наборы: карточки как строки списка «Packs» в приложении — название, первое слово, уровень */
.packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pack { padding: 22px 24px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; }
.pack h3 { margin: 0; font: 500 15px/1.3 var(--head); color: var(--ink-2); }
.pack__word { margin: 6px 0 0; font: 600 clamp(22px, 2vw, 28px)/1.15 var(--serif); }
.pack__meta { margin: 0; font: 400 14px/1.4 var(--sans); color: var(--ink-3); }

/* рил: родные контролы */
.reel { justify-self: center; width: 100%; }
.reel video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; }

/* ── Живая проверка: уведомление на настоящем экране блокировки 21:02 ────── */
.demo { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: center; }
.demo__side { display: grid; gap: 22px; align-content: center; }
.demo__label { margin: 0; font: 500 14px/1 var(--head); color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 400 15px/1 var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--terra); border-color: var(--terra); color: #fff; }
.demo__pack { margin: 0; min-height: 1.4em; font: 400 15px/1.4 var(--sans); color: var(--ink-3); }
.demo__side .note { margin: 0; }

/* карточка уведомления: место и размеры сняты с кадра симулятора (1206 px = 100cqw) */
.note-card {
  position: absolute; left: 4.6cqw; right: 4.6cqw; top: 70.4%; display: flex; gap: 3.4cqw; align-items: center;
  padding: 3.2cqw 3.6cqw; border-radius: 7.4cqw; color: #fff; cursor: pointer; user-select: none; -webkit-user-select: none;
  background: rgb(78 72 66 / 52%); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); transition: transform .18s, opacity .18s; -webkit-touch-callout: none;
}
.note-card.is-pressed { transform: scale(.97); }
.note-card.is-swap { opacity: 0; transform: translateY(-1.5cqw); }
.note-card__icon { width: 8.4cqw; height: 8.4cqw; border-radius: 2cqw; flex: none; }
.note-card__text { min-width: 0; flex: 1; }
.note-card p { margin: 0; font: 400 3.6cqw/1.3 var(--sans); }
.note-card__top { display: flex; justify-content: space-between; gap: 2cqw; }
.note-card__top b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-card__top span { opacity: .6; flex: none; }
.note-card [data-body] { white-space: pre-line; }

/* ── Финал и подвал ──────────────────────────────────────────────────────── */
.end { padding: clamp(96px, 10vw, 160px) 0 clamp(64px, 7vw, 100px); }
.end__in { display: grid; justify-items: center; text-align: center; gap: 22px; }
.end__in .h2, .end__in .lead { margin-inline: auto; }
.end__icon { width: 96px; height: 96px; border-radius: 22px; }
.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); font: 400 14px/1.5 var(--sans); color: var(--ink-3); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── Узкие экраны ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .day { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento--two { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .bento--two .card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero__in, .demo, .split, .split--film { grid-template-columns: 1fr; }
  .hero__phone, .demo__phone, .split .shot, .reel { width: min(100%, 300px); justify-self: start; }
  .day--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .day--three figcaption { font-size: 13px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .day { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .day.day--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .bento--two, .bento--two:not(:has(.card)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .packs { grid-template-columns: 1fr; }
  .shot figcaption { font-size: 13px; }
  .top__brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .note-card, .btn { transition: none; }
}
