/* Screen Memos — головна сторінка. Кольори й розміри з дизайн-системи (Claude Design, «Screen Memos»):
   чорна сцена stage для першого екрана й кінцівки, ніч night для Flow, решта — папір paper.
   Політика приватності живе на старих спільних стилях (style.css). */
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("assets/fonts/manrope-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("assets/fonts/manrope-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("assets/fonts/manrope-cyr-500.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("assets/fonts/manrope-cyr-800.woff2") format("woff2"); unicode-range: U+0400-04FF; }

:root {
  --paper: #F3F0E8;
  --paper-band: #E9E5DA;
  --card: #FBFAF6;
  --line: #D2CEC2;
  --ink: #262626;
  --text: #45423C;
  --muted: #5A564E;
  --record: #E8701A;        /* лише крапки, значки й заливки */
  --record-text: #C2570C;   /* помаранчевий текст від 24px */
  --record-soft: #F4E3D2;
  --link: #8F3D06;
  --flow-text: #6B4BD6;
  --flow-soft: #ECE7FB;
  --night: #17151A;
  --night-ink: #F3F0E8;
  --night-text: #C9C4D4;
  --night-flow: #A994FF;
  --stage: #000000;
  --stage-text: #C9C2B3;
  --stage-muted: #8F897D;
  --stage-record: #F79A5A;
  --shadow-tile: 0 1px 2px rgba(60, 50, 30, 0.12), 0 14px 34px rgba(60, 50, 30, 0.08);
  --shadow-shot: 0 40px 80px rgba(60, 50, 30, 0.28), 0 6px 18px rgba(60, 50, 30, 0.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 18px/1.55 "Manrope", -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #6E2E03; }
/* Виділення тексту — з палітри, а не системне синє: на папері кремово-помаранчеве, на чорному — приглушений крем. */
::selection { background: var(--record-soft); color: var(--ink); }
.stage ::selection, .flow-band ::selection { background: rgba(243, 240, 232, 0.24); color: #FFFFFF; }
a:focus-visible, button:focus-visible, .cases:focus-visible { outline: 2px solid var(--record); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
em { font-style: normal; }

/* Текст лише для екранних читалок. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Мова: показуємо одну. Без скрипта лишається англійська. */
html:not([data-lang="uk"]) [lang="uk"] { display: none !important; }
html[data-lang="uk"] [lang="en"] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* ——— Чорна сцена: перший екран і кінцівка ——— */
.stage { position: relative; overflow: hidden; background: var(--stage); color: var(--night-ink); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--night-ink); text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { color: #FFFFFF; }
.brand img { width: 38px; height: 38px; }
.lang { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(243, 240, 232, 0.08); border: 1px solid rgba(243, 240, 232, 0.12); }
.lang button { border: 0; border-radius: 9px; min-height: 44px; padding: 6px 12px; background: none; color: #BDB6A8; font: inherit; font-size: 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }

.hero-body { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: 24px; padding-bottom: 80px; position: relative; z-index: 2; }
.hero-copy { flex: 1 1 580px; min-width: 0; max-width: 680px; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
/* Англійські рядки довші («Record your screen.»): менший кегль, щоб кожна фраза лишалась одним рядком. */
.hero h1[lang="en"] { font-size: clamp(36px, 4.2vw, 60px); }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--stage-record); }
.lead { margin-top: 28px; max-width: 26em; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: var(--stage-text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1.5px solid rgba(243, 240, 232, 0.32); color: var(--night-ink); font-weight: 800; font-size: 17px; text-decoration: none; transition: border-color 0.16s; }
.btn-line:hover { border-color: rgba(243, 240, 232, 0.7); color: #FFFFFF; }
/* Значок App Store — головна дія. Офіційна картинка Apple, лише пропорційно збільшена (не менше 40 px заввишки). */
.store { display: inline-flex; align-items: center; border-radius: 10px; }
.store img { height: 52px; width: auto; }
.stage .note { margin-top: 20px; font-size: 15px; color: var(--stage-muted); }

.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-art .frame { position: relative; width: 100%; max-width: 540px; }
.hero-art .glow { position: absolute; inset: -12% -18% 0; background: radial-gradient(closest-side, rgba(233, 199, 168, 0.22), rgba(233, 199, 168, 0) 100%); pointer-events: none; }

/* Куточок екрана Mac: рядок меню, острівець і панель під значком. 1 пункт = ширина панелі / 340. */
.screen { position: relative; width: 100%; aspect-ratio: 1 / 0.98; border-radius: 22px 22px 0 0; overflow: hidden; container-type: inline-size;
  background: radial-gradient(120% 90% at 20% 10%, #F6D9B8 0%, #E9C7A8 30%, #CDB7C9 62%, #A9A6C4 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
.screen > * { --pt: calc(100cqw * 0.66 / 340); }
.window { position: absolute; left: 5%; top: 20%; width: 40%; height: 50%; border-radius: 12px; background: rgba(255, 255, 255, 0.5); box-shadow: 0 18px 40px rgba(60, 40, 60, 0.18); padding: 14px; display: grid; align-content: start; gap: 9px; }
.window b { display: block; height: 8px; border-radius: 4px; background: rgba(38, 38, 38, 0.14); }
.menubar { position: absolute; inset: 0 0 auto 0; height: calc(var(--pt) * 24); display: flex; align-items: center; padding: 0 calc(var(--pt) * 10); background: rgba(255, 255, 255, 0.34); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: rgba(0, 0, 0, 0.85); font: 500 calc(var(--pt) * 13)/1 -apple-system, system-ui, sans-serif; }
.menubar .menus { display: flex; gap: calc(var(--pt) * 16); white-space: nowrap; }
.menubar .menus b { font-weight: 700; }
.menubar .right { display: flex; align-items: center; gap: calc(var(--pt) * 12); margin-left: auto; }
/* Кнопка «стоп»: кольоровий кружок із білим квадратом і таймер кольором запису, значок блимає. */
.stop { display: inline-flex; align-items: center; gap: calc(var(--pt) * 4); color: #F78533; font-variant-numeric: tabular-nums; transition: opacity 0.12s; }
.stop svg { width: calc(var(--pt) * 15); height: calc(var(--pt) * 15); }
.stop .blink.dim { opacity: 0.4; }
.stop svg.sym-timer { display: none; }
.appicon { display: inline-flex; }
.appicon svg { width: calc(var(--pt) * 15); height: calc(var(--pt) * 15); }
.appicon .off { display: none; }
/* Пружина острівця без перехльосту, як у програмі (Island.swift: spring 0,4 с, dampingFraction 1). */
/* Острівець. Без запису — 150 пунктів із хвилею на всю ширину; під час відліку — та сама ширина
   з крапкою й числом; під час запису розширюється до 228. Форма: «вушка» 6, низ 11. */
.island { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: calc(var(--pt) * 228); height: calc(var(--pt) * 24); padding: 0 calc(var(--pt) * 6); color: #FFFFFF; transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.island::before, .island::after { content: ""; position: absolute; top: 0; width: calc(var(--pt) * 6); height: calc(var(--pt) * 6); }
.island::before { left: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--pt) * 6), #000 calc(var(--pt) * 6 + 0.5px)); }
.island::after { right: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--pt) * 6), #000 calc(var(--pt) * 6 + 0.5px)); }
.island .pill { height: 100%; display: flex; align-items: center; padding: 0 calc(var(--pt) * 12); background: #000; border-radius: 0 0 calc(var(--pt) * 11) calc(var(--pt) * 11); overflow: hidden; }
.armed { display: flex; align-items: center; gap: calc(var(--pt) * 6); }
.armed .dot { width: calc(var(--pt) * 7); height: calc(var(--pt) * 7); border-radius: 50%; background: #F78533; }
.armed .dot.dim { opacity: 0.3; }
.armed .t { font: 600 calc(var(--pt) * 12)/1 ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.armed .mic { height: calc(var(--pt) * 9); width: auto; opacity: 0.45; }
/* Хвиля: стовпчики 2,5 пункта через 2, висота до 15; нові з'являються справа. */
.wave { display: flex; align-items: center; gap: calc(var(--pt) * 2); height: calc(var(--pt) * 15); }
.wave.short { margin-left: auto; }
.wave.long { display: none; margin: 0 auto; opacity: 0.85; }
.wave i { flex: none; width: calc(var(--pt) * 2.5); height: calc(var(--pt) * 2.5); border-radius: calc(var(--pt) * 1.25); background: #FFFFFF; }
/* Стани макета: очікування, відлік, запис. Без скрипта показується запис. */
.screen[data-state="idle"] .stop { visibility: hidden; }
.screen[data-state="idle"] .appicon .off, .screen[data-state="count"] .appicon .off { display: block; }
.screen[data-state="idle"] .appicon .on, .screen[data-state="count"] .appicon .on { display: none; }
.screen[data-state="count"] .stop svg.sym-timer { display: block; }
.screen[data-state="count"] .stop svg.sym-stop { display: none; }
.screen[data-state="idle"] .island, .screen[data-state="count"] .island { width: calc(var(--pt) * 150); }
.screen[data-state="idle"] .island .armed, .screen[data-state="idle"] .island .wave.short { display: none; }
.screen[data-state="idle"] .island .wave.long { display: flex; }
.screen[data-state="count"] .island .dot.dim { opacity: 1; }
.cursor { position: absolute; left: 0; top: 0; width: calc(var(--pt) * 14); height: auto; opacity: 0; transform: translate(-100px, -100px); transition: transform 0.8s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); pointer-events: none; }
.screen .panel { position: absolute; right: 3%; top: calc(var(--pt) * 32); width: 66%; aspect-ratio: 680 / 914; border-radius: 6.2% / 4.6%; overflow: hidden; box-shadow: 0 30px 60px rgba(40, 30, 50, 0.34), 0 4px 12px rgba(40, 30, 50, 0.2); }
.screen .panel img { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .panel img.s-idle, .screen .panel img.s-count { visibility: hidden; }
.screen[data-state="idle"] .panel img.s-idle, .screen[data-state="count"] .panel img.s-count { visibility: visible; }
.screen[data-state="idle"] .panel img.s-rec, .screen[data-state="count"] .panel img.s-rec { visibility: hidden; }
/* З картинок панелі стерто таймер, індикатор, число піку й крапку запису: їх малює сторінка на тих самих
   місцях (у відсотках від картинки 680 × 914; змінилась висота картинки — перерахувати). */
.screen .panel .live { position: absolute; left: 20.5%; top: 12.8%; width: 59.5%; height: 10.28%; display: flex; align-items: center; justify-content: center; color: #F2E8CC; font: 600 calc(var(--pt) * 50)/1 ui-rounded, "SF Pro Rounded", "Manrope", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.screen[data-state="idle"] .panel .live { display: none; }
.screen .panel .live-meter { position: absolute; left: 10.3%; top: 25.6%; width: 79.4%; height: 3.28%; display: grid; gap: calc(var(--pt) * 3); }
.screen .panel .live-meter span { display: grid; grid-template-columns: repeat(36, 1fr); gap: calc(var(--pt) * 2.5); }
.screen .panel .live-meter i { border-radius: calc(var(--pt) * 1.5); background: rgba(242, 232, 204, 0.1); }
.screen .panel .live-meter i.on { background: #F2E8CC; }
.screen .panel .live-meter i.hot { background: #F78533; }
.screen .panel .live-peak { position: absolute; left: 20.1%; top: 31.07%; height: 2.84%; display: flex; align-items: center; color: rgba(242, 232, 204, 0.9); font: 600 calc(var(--pt) * 10)/1 -apple-system, system-ui, sans-serif; letter-spacing: calc(var(--pt) * 0.5); font-variant-numeric: tabular-nums; }
html[data-lang="uk"] .screen .panel .live-peak { left: 17.35%; }
.screen .panel .live-dot { position: absolute; left: 10.3%; top: 7.99%; width: calc(var(--pt) * 6); height: calc(var(--pt) * 6); border-radius: 50%; background: #F78533; display: none; }
.screen:not([data-state]) .panel .live-dot, .screen[data-state="rec"] .panel .live-dot { display: block; }
.screen .panel .live-dot.dim { opacity: 0.25; }
/* Натиск на клавішу запису: коротке затемнення на її місці. */
.screen .panel .press { position: absolute; left: 29.1%; top: 41.1%; width: 41.9%; height: 9.6%; border-radius: 999px; background: rgba(60, 40, 20, 0.16); opacity: 0; transition: opacity 0.12s; }
.screen .panel .press.down { opacity: 1; }

/* Зупинка руху (WCAG 2.2.2). З «менше руху» нічого не рухається, і кнопки немає. */
/* Кнопка стоїть під макетом, на чорному тлі: на самому приладі вона читалася б як його деталь. */
.motion-toggle { position: absolute; right: 0; bottom: -52px; z-index: 3; width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 1px solid rgba(243, 240, 232, 0.22); background: none; color: var(--stage-text); display: grid; place-items: center; cursor: pointer; transition: border-color 0.16s, color 0.16s; }
.motion-toggle:hover { border-color: rgba(243, 240, 232, 0.5); color: var(--night-ink); }
.motion-toggle svg { width: 14px; height: 14px; }
/* Підпис для екранних читачів (обгортка мови) не займає місця в кнопці, інакше значок зсувається донизу. */
.motion-toggle > span { position: absolute; }
.motion-toggle .ic-play { display: none; }
.motion-toggle[aria-pressed="true"] .ic-play { display: block; }
.motion-toggle[aria-pressed="true"] .ic-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

/* ——— Розділи на папері ——— */
.sec { padding-top: 72px; padding-bottom: 72px; }
.how { padding-bottom: 44px; }
.h-sub { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
h2.big { margin-top: 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
/* Помаранчевий лише в головній фразі першого екрана: він означає запис, а не прикрасу (DESIGN.md, One Signal Rule). */
.body-text { margin-top: 20px; max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--text); }
.aside { margin-top: 22px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.points { margin-top: 24px; display: grid; gap: 16px; max-width: 32em; }
.points li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.55; color: var(--text); }
/* Маркер — коротка надрукована риска, як поділки на корпусі; не кольорова крапка. */
.points li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; opacity: 0.45; }
.points b { display: block; color: var(--ink); font-weight: 800; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.split.rev { flex-wrap: wrap-reverse; }
.split > .copy { flex: 1 1 400px; min-width: 0; }
.split > .art { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }


/* Що вміє: чотири стовпчики, як підписи на передній панелі приладу — тонка лінія згори, назва, рядок пояснення.
   Без карток і значків на підкладках; кожен веде до свого розділу. */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 36px; }
.feat { position: relative; display: block; padding: 18px 28px 6px 0; border-top: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; }
.feat .go { position: absolute; top: 20px; right: 0; width: 18px; height: 18px; color: var(--muted); transition: transform 0.16s, color 0.16s; }
.feat:hover .go, .feat:focus-visible .go { color: var(--link); transform: translateX(3px); }
.feat:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.feat h3 { margin-top: 0; font-size: 19px; line-height: 1.25; font-weight: 800; }
.feat p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--text); }
/* Кому буде корисно: простий перелік у три стовпчики, без карток, значків і руху. */
.cases-sec { padding-top: 8px; padding-bottom: 24px; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 28px; }
.case { padding-top: 14px; border-top: 1px solid var(--line); }
.case h3 { font-size: 17px; line-height: 1.25; font-weight: 800; }
.case p { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--text); }
/* Екранчик програми в HTML: 1 одиниця = ширина скла / 312 pt, розміри з SkinRetro. */
.lcd { width: 100%; max-width: 480px; container-type: inline-size; }
/* «Звучить добре» — єдиний розділ по центру й на всю ширину: головна перевага програми, тож ламає зигзаг «текст / картинка».
   Екранчик масштабується від ширини (--u), тож великим лишається чітким. */
.showcase { padding-top: 112px; padding-bottom: 112px; }
.showcase .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.showcase h2.big { margin-top: 0; max-width: 11em; font-size: clamp(40px, 6.2vw, 80px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.showcase .art { width: 100%; margin-top: 56px; display: flex; justify-content: center; }
.showcase .lcd { max-width: 720px; }
.showcase .body-text { margin-top: 56px; max-width: 34em; font-size: 19px; text-wrap: balance; }
.lcd .bezel { --u: calc(100cqw / 312); padding: calc(var(--u) * 5); border-radius: calc(var(--u) * 20); background: #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(60, 50, 30, 0.3), 0 6px 18px rgba(60, 50, 30, 0.2); }
.lcd .glass { display: grid; gap: calc(var(--u) * 10); padding: calc(var(--u) * 14) calc(var(--u) * 16); border-radius: calc(var(--u) * 15); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 50%), #131313; color: #F2E8CC; font-family: -apple-system, system-ui, sans-serif; }
.lcd .row { display: flex; align-items: center; justify-content: space-between; font-size: calc(var(--u) * 10); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.lcd .top { padding: 0; letter-spacing: calc(var(--u) * 0.9); color: rgba(242, 232, 204, 0.55); }
.lcd .rec { display: inline-flex; align-items: center; gap: calc(var(--u) * 5); color: #F78533; }
.lcd .rec i { width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: 50%; background: #F78533; }
.lcd .rec i.dim { opacity: 0.25; }
.lcd .time { margin: calc(var(--u) * -4) 0; text-align: center; font: 600 calc(var(--u) * 50)/1.19 ui-rounded, "SF Pro Rounded", "Manrope", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.lcd .meter { display: grid; gap: calc(var(--u) * 3); }
.lcd .lcd-meter { display: grid; grid-template-columns: repeat(36, 1fr); gap: calc(var(--u) * 2.5); height: calc(var(--u) * 6); }
.lcd .lcd-meter i { border-radius: calc(var(--u) * 1.5); background: rgba(242, 232, 204, 0.1); }
.lcd .lcd-meter i.on { background: #F2E8CC; }
.lcd .lcd-meter i.hot { background: #F78533; }
.lcd .stats { justify-content: flex-start; gap: calc(var(--u) * 10); letter-spacing: calc(var(--u) * 0.5); font-variant-numeric: tabular-nums; }
.lcd .stats small { font-size: inherit; margin-right: calc(var(--u) * 4); color: rgba(242, 232, 204, 0.62); }
.lcd .stats b { font-weight: 600; color: rgba(242, 232, 204, 0.9); }
.lcd .stats .status { margin-left: auto; }

/* Частини панелі (справжні знімки) */
.part { width: 100%; max-width: 540px; border-radius: 26px; box-shadow: var(--shadow-shot); }
.sources { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-band) 100%); }
/* Три способи — той самий стрій, що «Що вміє»: лінія згори, назва, рядок пояснення. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 48px; }
.tile { padding-top: 16px; border-top: 1.5px solid var(--ink); }
.tile h3 { font-size: 19px; line-height: 1.25; font-weight: 800; }
.tile p { margin-top: 4px; font-size: 16px; line-height: 1.45; color: var(--text); }
/* Flow: ніч із фіолетовим світлом */
.flow-band { position: relative; overflow: hidden; color: var(--night-ink);
  background: radial-gradient(55% 70% at 78% 45%, rgba(124, 92, 224, 0.36) 0%, rgba(124, 92, 224, 0) 70%), radial-gradient(40% 50% at 10% 100%, rgba(124, 92, 224, 0.12) 0%, rgba(124, 92, 224, 0) 70%), var(--night); }
.flow-kicker { font-size: clamp(52px, 7vw, 96px); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; }
.flow-kicker em { color: inherit; }
.flow-band h2 { margin-top: 22px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.mark { background: none; }
.flow-band .body-text, .flow-band .points li { color: var(--night-text); }
.flow-band .points { gap: 14px; margin-top: 26px; }
.flow-band .points li::before { background: var(--night-text); }
.flow-band .part { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 80px rgba(124, 92, 224, 0.25); }

/* Острівець у розділі «Не відволікає»: шматок екрана Mac, острівець розгортається під курсором і згортається,
   коли курсор іде. Розгорнутий займає 62% ширини (400 pt з ~645): як на справжньому екрані, меню ліворуч
   («Finder Файл», ~100 pt) і значки праворуч (~103 pt) лишаються видно.
   З Island.swift: згорнутий запис — рамка 228 × 24 pt, «вушка» 6; розгорнутий — 400 pt, «вушка» 10;
   пружина 0,4 с; вміст: згорнутий — проявом, розгорнутий — проявом і з масштабу 0,94 від верху; тінь лише відкритому. */
.isl-stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 300; overflow: hidden; border-radius: 22px 22px 0 0; container-type: inline-size;
  background: radial-gradient(120% 90% at 20% 10%, #F6D9B8 0%, #E9C7A8 30%, #CDB7C9 62%, #A9A6C4 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.isl-stage > * { --pt: calc(100cqw * 0.62 / 400); }
.isl { position: absolute; top: 0; left: 50%; transform: translateX(-50%); --ear: calc(var(--pt) * 6); width: calc(var(--pt) * 228); height: calc(var(--pt) * 24); padding: 0 var(--ear); transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s; }
.isl::before, .isl::after { content: ""; position: absolute; top: 0; width: var(--ear); height: var(--ear); transition: width 0.4s, height 0.4s; }
.isl::before { left: 0; background: radial-gradient(circle at 0 100%, transparent var(--ear), #000 calc(var(--ear) + 0.5px)); }
.isl::after { right: 0; background: radial-gradient(circle at 100% 100%, transparent var(--ear), #000 calc(var(--ear) + 0.5px)); }
.isl .body { position: relative; height: 100%; background: #000; border-radius: 0 0 calc(var(--pt) * 11) calc(var(--pt) * 11); overflow: hidden; transition: border-radius 0.4s, box-shadow 0.4s; }
.isl.open { --ear: calc(var(--pt) * 10); width: calc(var(--pt) * 400); height: calc(var(--pt) * 257); }
.isl.open .body { border-radius: 0 0 calc(var(--pt) * 28) calc(var(--pt) * 28); box-shadow: 0 calc(var(--pt) * 8) calc(var(--pt) * 32) rgba(0, 0, 0, 0.45); }
.isl .small { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--pt) * 24); display: flex; align-items: center; padding: 0 calc(var(--pt) * 12); color: #FFFFFF; transition: opacity 0.2s; }
.isl.open .small { opacity: 0; }
.isl .small .wave { margin-left: auto; }
.isl .big { position: absolute; top: 0; left: 0; width: calc(var(--pt) * 380); opacity: 0; transform: scale(0.94); transform-origin: top center; transition: opacity 0.25s, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.isl.open .big { opacity: 1; transform: none; }
.isl-stage.instant .isl, .isl-stage.instant .isl *, .isl-stage.instant .isl::before, .isl-stage.instant .isl::after { transition: none !important; }

/* Налаштування: вкладка «Звук» до кінця мікрофона, низ розчиняється на верху Flow */
.settings-crop { width: 100%; max-width: 380px; overflow: hidden; border-radius: 28px 28px 0 0; box-shadow: 0 40px 80px rgba(60, 50, 30, 0.24), 0 6px 18px rgba(60, 50, 30, 0.16);
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, #000 88%, transparent 100%); }

/* ——— Кінцівка ——— */
.final { padding-bottom: 80px; text-align: center; }
.final .key { display: block; width: min(340px, 72%); margin: 0 auto -80px; aspect-ratio: 4 / 5; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 50%, #000 58%, transparent 100%); }
.final .wrap { position: relative; }
.final .icon { width: 88px; height: 88px; margin: 0 auto 22px; }
.final h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.final .tag { max-width: 28em; margin: 16px auto 0; font-size: 19px; line-height: 1.5; color: var(--stage-text); }
.final .center { display: flex; justify-content: center; margin-top: 24px; }
.final .note { margin-top: 10px; }

/* ——— Про автора й підвал ——— */
.about { padding-top: 56px; padding-bottom: 16px; }
.about .card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px 32px; border-radius: 24px; border: 1.5px solid var(--line); }
.about .card p { flex: 1 1 420px; min-width: 0; max-width: 36em; font-size: 17px; line-height: 1.55; color: var(--text); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1.5px solid #8A8476; color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; }
.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 28px; margin-top: 40px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot .copy { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.foot .copy img { width: 24px; height: 24px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Поява розділів: лише якщо людина не просила менше руху (клас .motion ставить скрипт). */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal.late { transition-delay: 0.12s; }

/* ——— Телефон ——— */
/* Планшет: по два стовпчики. */
@media (max-width: 900px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  /* «Кому буде корисно» — стрічка, що гортається пальцем: наступна картка видно краєм, тож ясно, що далі є ще.
     Без автопрокрутки й скриптів: рух лише від руки, прилипає до початку картки. Стрічка виходить за поля до краю екрана. */
  .cases { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 2.3); gap: 0 20px;
    margin-left: calc(-1 * max(24px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(24px, env(safe-area-inset-right, 0px)));
    padding: 0 max(24px, env(safe-area-inset-right, 0px)) 6px max(24px, env(safe-area-inset-left, 0px));
    scroll-padding-inline: max(24px, env(safe-area-inset-left, 0px)); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cases::-webkit-scrollbar { display: none; }
  .case { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .feats, .tiles { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cases { grid-auto-columns: 78%; gap: 0 16px; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .how { padding-bottom: 36px; }
  .showcase { padding-top: 72px; padding-bottom: 72px; }
  .showcase .art { margin-top: 36px; }
  .showcase .body-text { margin-top: 36px; font-size: 18px; text-align: left; text-wrap: pretty; }   /* довгий текст по центру на телефоні читається важко */
  .hero-body { padding-bottom: 68px; }   /* під макетом — кнопка паузи */
  .about .card { padding: 24px 22px; }
}
@media (max-width: 520px) {
  .brand span { font-size: 12px; letter-spacing: 0.1em; }
  .brand img { width: 34px; height: 34px; }
  .lang button { padding: 6px 9px; font-size: 13px; }
  .menubar .menus, .window { display: none; }
  .screen > * { --pt: calc(100cqw * 0.74 / 340); }
  .screen { aspect-ratio: 1 / 1.08; }
  .screen .panel { width: 74%; right: 13%; }
  .btn-line { width: 100%; }
}
