/* DualRead landing — palette taken verbatim from the app (lib/main.dart):
   paper #FBF6EC · ink #2C1A0E · leather #7B4F2E · brass #D4A87A · umber #9E7240 */

:root {
  --paper: #FBF6EC;
  --paper-2: #F2E8D5;
  --paper-3: #E8DCC5;
  --ink: #2C1A0E;
  --ink-soft: #5C4030;
  --leather: #7B4F2E;
  --leather-deep: #5E3A1F;
  --brass: #D4A87A;
  --umber: #9E7240;
  --night: #1C120A;
  --night-2: #2A1C10;
  --line: #BFA882;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(44, 26, 14, .35);
  --display: "Literata", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--leather); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
}

.site-head .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
}

.brand-icon {
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: 0 2px 6px -2px rgba(44, 26, 14, .5);
}

.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }

.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem;
}
.nav a:hover { color: var(--leather); }

.lang-switch {
  display: flex; gap: 2px; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px; margin-left: 8px;
}
.lang-switch a {
  padding: 2px 10px; border-radius: 999px; font-size: .8rem;
  text-decoration: none; color: var(--ink-soft);
}
.lang-switch a[aria-current="true"] {
  background: var(--leather); color: var(--paper);
}

.menu-btn { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero { padding: 72px 0 40px; position: relative; }

.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -.015em;
}

.hero h1 em {
  font-style: italic; color: var(--leather);
}

.hero .lede {
  margin-top: 20px; font-size: 1.13rem; color: var(--ink-soft);
  max-width: 34em;
}

.cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary {
  background: var(--leather); color: var(--paper);
  box-shadow: 0 10px 26px -10px rgba(123, 79, 46, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(123, 79, 46, .6); }
.btn-ghost {
  border: 1.5px solid var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--leather); color: var(--leather); }

.hero-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }

/* ── The book demo (signature) ──────────────────────────────────────── */

.book {
  position: relative;
  /* Без 3D-нахилу: rotateX/Y растеризує площину в текстуру й розмиває
     текст. Глибину дає лише тінь + торець стосу сторінок (::before). */
  filter: drop-shadow(0 26px 38px rgba(44, 26, 14, .26));
}

/* Стос сторінок під розворотом. Лежить на .book (НЕ на .book-spread з
   transform: там stacking context малює z-index:-1 ПОВЕРХ фону розвороту —
   через це вся десктопна книга була темна/смугаста). */
.book::before {
  content: ""; position: absolute; inset: 6px -8px -10px 6px;
  background: repeating-linear-gradient(180deg, #e9dfc9 0 2px, #f6efdd 2px 4px);
  border-radius: 12px 18px 18px 12px;
  z-index: -1;
}

.book-spread {
  display: grid; grid-template-columns: 1fr 1fr;
  background: linear-gradient(105deg, #fffdf7 0%, #FBF6EC 48%, #efe5d0 50%, #fffdf7 53%, #FBF6EC 100%);
  border-radius: 10px 16px 16px 10px;
  border: 1px solid var(--paper-3);
  min-height: 380px;
  position: relative;
}

.page { padding: 30px 26px; font-family: var(--display); }
.page + .page { border-left: 1px solid rgba(191, 168, 130, .5); }

.page .folio {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--umber); margin-bottom: 14px;
  display: flex; justify-content: space-between;
}

.para {
  font-size: .84rem; line-height: 1.62; color: var(--ink);
  margin-bottom: 12px; text-align: justify; hyphens: auto;
  transform-origin: 50% 0%;
  backface-visibility: hidden;
  /* Обидва тексти лежать у ОДНІЙ комірці сітки й накладаються один на
     одного: висота абзацу = висота довшого з них, тож перемикання
     мови ніколи не міняє висоту книги (інакше весь hero стрибає). */
  display: grid;
}

.para .layer { grid-area: 1 / 1; }
.para .layer.trans { visibility: hidden; }
.para.show-trans .layer.orig { visibility: hidden; }
.para.show-trans .layer.trans { visibility: visible; }

.para.flip { animation: paraflip .7s ease both; }

@keyframes paraflip {
  0%   { transform: rotateX(0deg); opacity: 1; }
  49%  { transform: rotateX(88deg); opacity: .2; }
  51%  { transform: rotateX(-88deg); opacity: .2; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

.tap-hint {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  font-size: .78rem; padding: 7px 18px; border-radius: 999px;
  white-space: nowrap; cursor: default; user-select: none;
  box-shadow: var(--shadow);
}

/* ── Section scaffolding ────────────────────────────────────────────── */

section { padding: 84px 0; }

.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--umber); font-weight: 700;
}

h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -.01em; margin-top: 10px; line-height: 1.18;
}

.section-lede { color: var(--ink-soft); max-width: 44em; margin-top: 14px; font-size: 1.05rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Features ───────────────────────────────────────────────────────── */

.features { background: var(--paper-2); border-block: 1px solid color-mix(in srgb, var(--line) 40%, transparent); }

.feature-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

.card {
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .glyph {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brass), var(--umber));
  display: grid; place-items: center; margin-bottom: 16px;
  color: var(--paper);
}
.card .glyph svg { width: 22px; height: 22px; }

.card h3 { font-family: var(--display); font-size: 1.12rem; margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--ink-soft); }

.card .tag {
  align-self: flex-start; margin-top: auto; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--leather);
  border: 1px solid var(--brass); padding: 3px 10px; border-radius: 999px;
}
/* відступ над тегом, коли він притиснутий донизу flex-ом */
.card p { margin-bottom: 16px; }

/* ── Night section (offline / queue) ────────────────────────────────── */

.night {
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(212, 168, 122, .16), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
  color: #F0E6D2;
}

.night .eyebrow { color: var(--brass); }
.night h2 { color: #FBF6EC; }
.night .section-lede { color: #C9B79B; }

.night .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.queue-demo {
  background: rgba(251, 246, 236, .05);
  border: 1px solid rgba(212, 168, 122, .25);
  border-radius: var(--radius); padding: 26px;
  font-size: .9rem;
}

.queue-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 4px; border-bottom: 1px dashed rgba(212, 168, 122, .2);
}
.queue-row:last-child { border-bottom: 0; }

.queue-row .st { margin-left: auto; font-size: .78rem; color: var(--brass); white-space: nowrap; }

.bar {
  position: relative; height: 6px; border-radius: 999px;
  background: rgba(212, 168, 122, .18); width: 120px; overflow: hidden;
  flex-shrink: 0;
}
.bar i {
  position: absolute; inset: 0; width: var(--p, 40%);
  background: linear-gradient(90deg, var(--umber), var(--brass));
  border-radius: 999px;
}
.bar.live i { animation: crawl 3.2s ease-in-out infinite alternate; }
@keyframes crawl { from { width: 34%; } to { width: 82%; } }

.q-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Screenshots ────────────────────────────────────────────────────── */

.shots { background: var(--paper); }

.shot-row {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}

.shot {
  aspect-ratio: 9 / 19; border-radius: 26px;
  border: 2px dashed var(--line);
  background:
    linear-gradient(160deg, var(--paper-2), var(--paper-3));
  display: grid; place-items: center; text-align: center;
  padding: 24px; color: var(--ink-soft); font-size: .85rem;
  position: relative; overflow: hidden;
}
.shot::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 18px; border-radius: 999px; background: color-mix(in srgb, var(--line) 55%, transparent);
}
.shot strong { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 6px; font-size: .95rem; }

/* Реальний скріншот замість плейсхолдера: рамка суцільна, «виїмка» приховано,
   картинка сама заповнює той самий 9/19 контур. Підпис — окремим блоком під
   телефоном, а не поверх зображення. */
.shot.has-media {
  display: block; padding: 0; border-style: solid;
  background: var(--paper-2);
}
.shot.has-media::before { display: none; }
.shot-media { aspect-ratio: 9 / 19; overflow: hidden; }
.shot-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block;
}
.shot-cap {
  padding: 16px 20px 20px; text-align: left; font-size: .85rem; color: var(--ink-soft);
}
.shot-cap strong { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 6px; font-size: .95rem; }

/* ── Pricing ────────────────────────────────────────────────────────── */

.pricing { background: var(--paper-2); border-top: 1px solid color-mix(in srgb, var(--line) 40%, transparent); }

.price-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 860px; }

.price-card {
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: var(--radius); padding: 30px;
}
.price-card.hot { border: 2px solid var(--leather); position: relative; }
.price-card.hot::after {
  content: attr(data-badge);
  position: absolute; top: -13px; right: 22px;
  background: var(--leather); color: var(--paper);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px;
}
.price-card h3 { font-family: var(--display); font-size: 1.3rem; }
.price-card .sub { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.price-card ul { list-style: none; margin-top: 18px; }
.price-card li {
  padding: 8px 0 8px 30px; font-size: .95rem; position: relative;
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brass);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 2%, 40% 70%);
}

/* ── Final CTA ──────────────────────────────────────────────────────── */

.finale { text-align: center; padding: 100px 0; }
.finale h2 { max-width: 20em; margin-inline: auto; }
.finale .cta-row { justify-content: center; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  padding: 36px 0; font-size: .85rem; color: var(--ink-soft);
}
.site-foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
/* wrap + nowrap: без них вузький екран стискає пункти і рве їх усередині
   назви («Privacy / Policy»); тепер переноситься цілий пункт на новий рядок */
.site-foot nav { margin-left: auto; display: flex; gap: 10px 18px; flex-wrap: wrap; }
.site-foot nav a { white-space: nowrap; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }

/* Мобільний футер: посилання сіткою 2×2 по центру, копірайт — під ними.
   order міняє їх місцями без правок HTML (у розмітці копірайт іде першим). */
@media (max-width: 560px) {
  .site-foot { padding: 20px 0 14px; }
  .site-foot .wrap {
    flex-direction: column; align-items: center; text-align: center; gap: 12px;
  }
  .site-foot .wrap > span { order: 2; }
  .site-foot nav {
    order: 1; margin: 0;
    display: grid; grid-template-columns: repeat(2, auto);
    justify-content: center; justify-items: center; gap: 0 28px;
    /* успадкований від body line-height: 1.6 сам по собі лишав над і під
       кожним рядком стільки місця, що між рядками вміщався ще один */
    line-height: 1.35;
  }
}
.site-foot a:hover { color: var(--leather); }

/* ── Quality band (translation craft) ───────────────────────────────── */

.quality { background: var(--paper); }
.q-grid {
  margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}
.q-item { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.q-item .n {
  font-family: var(--display); font-weight: 800; color: var(--brass);
  font-size: 1.4rem; line-height: 1; min-width: 1.4em;
}
.q-item h3 { font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }
.q-item p { font-size: .92rem; color: var(--ink-soft); }

/* ── Security ────────────────────────────────────────────────────────── */

.security {
  background:
    radial-gradient(900px 400px at 20% -20%, rgba(212, 168, 122, .14), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
  color: #F0E6D2;
}
.security .eyebrow { color: var(--brass); }
.security h2 { color: #FBF6EC; }
.security .section-lede { color: #C9B79B; }
.sec-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sec-card {
  border: 1px solid rgba(212, 168, 122, .22);
  border-radius: var(--radius); padding: 22px 24px;
  background: rgba(251, 246, 236, .04);
}
.sec-card .glyph {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center; color: var(--night);
  background: linear-gradient(135deg, var(--brass), var(--umber));
}
.sec-card .glyph svg { width: 20px; height: 20px; }
.sec-card h3 { font-family: var(--display); font-size: 1.05rem; color: #FBF6EC; margin-bottom: 6px; }
.sec-card p { font-size: .9rem; color: #C9B79B; }

/* ── Plans (free + 3 subscription tiers) ────────────────────────────── */

.plan-grid {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  align-items: start;
}
/* Пакетів монет три, а не чотири: без цього третя картка лишала б порожню
   четверту колонку, і блок читався б як недороблений. */
.plan-grid.packs { grid-template-columns: repeat(3, 1fr); }
.plan {
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column;
}
.plan.free { background: var(--paper-3); }
.plan.hot { border: 2px solid var(--leather); position: relative; }
.plan.hot::after {
  content: attr(data-badge); position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--leather); color: var(--paper); white-space: nowrap;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-family: var(--display); font-size: 1.15rem; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 1.9rem; margin-top: 8px; }
.plan .price span { font-size: .8rem; font-weight: 400; color: var(--ink-soft); }
.plan .coins {
  margin-top: 4px; font-size: .92rem; color: var(--leather); font-weight: 600;
}
.plan ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: .86rem; padding-left: 24px; position: relative; color: var(--ink); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--brass);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 2%, 40% 70%);
}
.plan li.muted { color: var(--ink-soft); }
.plan li.muted::before { background: color-mix(in srgb, var(--line) 70%, transparent); }
.plan-note { margin-top: 18px; font-size: .85rem; color: var(--ink-soft); }

/* ── Cost guide (coins per chapter) ─────────────────────────────────── */

.cost-h { font-family: var(--display); font-size: 1.3rem; margin-top: 52px; }
.cost-strip { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cost-item {
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.cost-item .lbl {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--umber); font-weight: 700;
}
.cost-item .val {
  font-family: var(--display); font-weight: 800; color: var(--leather);
  font-size: 1.7rem; margin-top: 8px; line-height: 1.1;
}
.cost-item .val small { font-size: .8rem; font-weight: 400; color: var(--ink-soft); display: block; margin-top: 2px; }

@media (max-width: 620px) { .cost-strip { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq { background: var(--paper-2); border-top: 1px solid color-mix(in srgb, var(--line) 40%, transparent); }
.faq-list { margin-top: 36px; max-width: 800px; }
.faq details {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative;
  font-family: var(--display); font-size: 1.06rem; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--leather); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 18px 0; color: var(--ink-soft); font-size: .96rem; }

/* ── Legal documents (privacy / terms) ──────────────────────────────── */

.doc { padding: 56px 0 84px; }
.doc .wrap { max-width: 760px; }

.doc .eyebrow { margin-bottom: 10px; }
.doc h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.015em;
  line-height: 1.15;
}
.doc .updated { color: var(--ink-soft); font-size: .9rem; margin-top: 10px; }

.doc .intro {
  margin-top: 22px; font-size: 1.06rem; color: var(--ink-soft);
  border-left: 3px solid var(--brass); padding-left: 18px;
}

.doc h2 {
  font-family: var(--display); font-size: 1.3rem; font-weight: 700;
  margin-top: 40px; margin-bottom: 4px; letter-spacing: 0;
}
.doc h3 { font-size: 1.02rem; margin-top: 22px; margin-bottom: 4px; color: var(--ink); }
.doc p { margin-top: 12px; color: var(--ink); }
.doc ul { margin: 12px 0 12px 22px; }
.doc li { margin-top: 8px; }
.doc a { color: var(--leather); }

.doc .callout {
  margin-top: 16px; background: var(--paper-2);
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: var(--radius); padding: 16px 18px; font-size: .95rem;
}
.doc .fill {
  background: color-mix(in srgb, var(--brass) 22%, transparent);
  border-radius: 4px; padding: 0 4px; font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

/* Tablet / small laptop */
@media (max-width: 900px) {
  .hero .wrap, .night .wrap { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-row { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .q-grid { grid-template-columns: 1fr; gap: 0; }
  .sec-grid { grid-template-columns: 1fr; }
  .plan-grid, .plan-grid.packs { grid-template-columns: 1fr 1fr; }
  .plan.hot::after { top: -12px; }
  .hero .book { transform: none; max-width: 520px; margin-inline: auto; width: 100%; }
}

/* Collapse the nav to a hamburger before the links start to crowd */
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--paper); padding: 20px 24px;
    border-bottom: 1px solid var(--line); gap: 16px;
    box-shadow: var(--shadow);
  }
  .nav.open .lang-switch { margin-left: 0; }
  .menu-btn {
    display: block; margin-left: auto; background: none; border: 0;
    font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer;
    padding: 4px 6px;
  }
}

/* Phone */
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 24px; }
  /* .finale — клас, тож правило section вище його НЕ перебивало: на телефоні
     лишались десктопні 100px згори й знизу, через що між кнопкою і футером
     зяяла порожнеча майже на екран */
  .finale { padding: 48px 0 32px; }

  .feature-grid, .shot-row, .plan-grid, .plan-grid.packs { grid-template-columns: 1fr; }

  /* Книжковий розворот → одна сторінка: на телефоні дві колонки
     виправданого тексту розсипаються, тож показуємо лише першу.
     Вужча й вища — пропорції справжньої книжкової сторінки (2:3). */
  .hero .book { max-width: 360px; }
  .book-spread {
    grid-template-columns: 1fr; min-height: 0;
    border-radius: 8px 10px 10px 8px;
    aspect-ratio: 2 / 3;
  }
  .page { padding: 26px 22px; }
  .page + .page { display: none; }
  .para { font-size: .92rem; }
  .tap-hint {
    white-space: normal; text-align: center; box-sizing: border-box;
    width: 85%; font-size: .72rem; padding: 8px 14px;
  }

  /* Черга перекладу: рядки переносяться, а не вилазять за край */
  .queue-row { flex-wrap: wrap; gap: 8px 12px; }
  .queue-row .bar { order: 3; width: 100%; }
  .queue-row .st { margin-left: auto; }

  /* CTA-кнопки на всю ширину — зручніше тапати */
  .cta-row { gap: 12px; }
  .cta-row .btn { width: 100%; justify-content: center; }
}

/* Дуже вузькі телефони */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.95rem; }
  .site-head .wrap { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .para.flip { animation: none; }
  .bar.live i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---- Cookie consent banner (створюється з assets/analytics.js) ---- */
#cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
#cookie-banner p { flex: 1 1 260px; font-size: .92rem; color: var(--ink); }
#cookie-banner a { color: var(--leather); }
#cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner button {
  font-family: var(--body); font-size: .9rem; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
}
#cookie-banner button:hover { border-color: var(--leather); color: var(--leather); }
#cookie-banner button.primary {
  background: var(--leather); border-color: var(--leather); color: var(--paper);
}
#cookie-banner button.primary:hover { background: var(--leather-deep); color: var(--paper); }

/* кнопка «змінити вибір» на cookies.html */
#cookie-reset { font-family: var(--body); cursor: pointer; background: transparent; }

@media (max-width: 560px) {
  #cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  /* 🔴 flex-grow у column тягне параграф по ВИСОТІ (банер розтягувався на пів
     екрана при двох рядках тексту) — у вертикальній розкладці зростання не треба */
  #cookie-banner p { flex: 0 0 auto; }
  #cookie-banner .cookie-actions button { flex: 1; white-space: nowrap; }
}
