/* Visdap — лендинг. Системні шрифти, токени кольорів, світла й темна теми. */

:root {
  --bg: #eef6f5;
  --bg-alt: #f6fafa;
  --surface: #ffffff;
  --ink: #11181c;
  --muted: #3f5459;
  --line: #c2d5d3;
  --brand: #1d4044;
  --tap: rgb(29 64 68 / 12%);
  --focus: #1d63c9;
  --pill-bg: #1d4044;
  --pill-ink: #ffffff;
  --dial-face: #ffffff;
  --dial-ink: #11181c;
  --dial-hub: #f3f8f8;
  --bezel: #1d4044;
  --hand: #e8551d; /* фірмовий #FF6B35, трохи темніший — 3:1 на білому (WCAG 1.4.11) */
  --sector-sleep: #8e7ce6;
  --sector-work: #06c393;
  --sector-sport: #ff6b35;
  --sector-family: #4b8fd1;
  --ring-free: #1d4044; /* вільний час — як у застосунку */
  --ring-past: #121819; /* минула частина доби */
  --tick-accent: #e8551d;
  --holo-a: #9cebec;
  --holo-b: #f9c7df;
  --holo-c: #ccd2ef;
  --holo-d: #fdeee5;
  --glass: rgb(255 255 255 / 55%);
  --shadow: 0 1px 2px rgb(29 64 68 / 8%), 0 10px 30px rgb(29 64 68 / 10%);
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09181b;
    --bg-alt: #0d1f22;
    --surface: #112529;
    --ink: #ffffff;
    --muted: #a5c8cc;
    --line: #22434a;
    --brand: #06d6a0;
    --tap: rgb(6 214 160 / 18%);
    --focus: #8ab8ff;
    --pill-bg: #19363d;
    --pill-ink: #ffffff;
    --dial-face: #112529;
    --dial-ink: #ffffff;
    --dial-hub: #09181b;
    --bezel: #06d6a0;
    --hand: #ff6b35;
    --sector-sleep: #9d8df0;
    --sector-work: #06d6a0;
    --sector-sport: #ff7a48;
    --sector-family: #6aa6e2;
    --ring-free: #24535a;
    --ring-past: #000000;
    --tick-accent: #ff6b35;
    --holo-a: #0f3a3c;
    --holo-b: #2a1f33;
    --holo-c: #1b2440;
    --holo-d: #09181b;
    --glass: rgb(17 37 41 / 60%);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #09181b;
  --bg-alt: #0d1f22;
  --surface: #112529;
  --ink: #ffffff;
  --muted: #a5c8cc;
  --line: #22434a;
  --brand: #06d6a0;
  --tap: rgb(6 214 160 / 18%);
  --focus: #8ab8ff;
  --pill-bg: #19363d;
  --pill-ink: #ffffff;
  --dial-face: #112529;
  --dial-ink: #ffffff;
  --dial-hub: #09181b;
  --bezel: #06d6a0;
  --hand: #ff6b35;
  --sector-sleep: #9d8df0;
  --sector-work: #06d6a0;
  --sector-sport: #ff7a48;
  --sector-family: #6aa6e2;
  --ring-free: #24535a;
  --ring-past: #000000;
  --tick-accent: #ff6b35;
  --holo-a: #0f3a3c;
  --holo-b: #2a1f33;
  --holo-c: #1b2440;
  --holo-d: #09181b;
  --glass: rgb(17 37 41 / 60%);
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Атрибут hidden сильніший за будь-який display у класах (кнопка теми без JS). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* Переливчасте тло, як у світлій темі програми (settings_bg.jpg), відтворене градієнтами. */
  /* Плями розкладено по всій висоті сторінки (без fixed: мобільні браузери його ігнорують). */
  background:
    radial-gradient(1100px 820px at 0% 0%, var(--holo-a), transparent 70%),
    radial-gradient(1000px 760px at 100% 6%, var(--holo-b), transparent 70%),
    radial-gradient(1100px 900px at 90% 30%, var(--holo-c), transparent 70%),
    radial-gradient(1000px 800px at 0% 48%, var(--holo-a), transparent 70%),
    radial-gradient(1000px 800px at 100% 66%, var(--holo-b), transparent 70%),
    radial-gradient(1100px 900px at 10% 84%, var(--holo-c), transparent 70%),
    radial-gradient(1000px 700px at 90% 100%, var(--holo-d), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; margin: 0; }
.brand img { border-radius: 9px; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.97rem; }
.nav a:hover { color: var(--brand); text-decoration: underline; }
@media (min-width: 60em) { .nav { display: flex; } }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 60em) { .tools { margin-left: 8px; } }

.lang, .menu { position: relative; }
.lang summary, .menu summary, .theme {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; list-style: none;
}
.lang summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  margin: 0; padding: 6px; list-style: none; min-width: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-list a, .foot-langs a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.lang-list a:hover, .foot-langs a:hover { background: var(--tap); }
.lang-list a[aria-current], .foot-langs a[aria-current] { font-weight: 750; color: var(--brand); }
.theme { padding: 0; width: 44px; }
.theme svg { fill: currentColor; }

/* Перший екран */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 56em) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
/* На телефоні й планшеті циферблат іде одразу за значками, інакше перший екран не показує, що це за програма; подробиці — під ним. */
@media (max-width: 55.99em) {
  .hero-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .hero-text { display: contents; }
  .eyebrow { align-self: flex-start; }
  .hero-dial { order: 1; align-self: center; margin-top: 24px; }
  .trust, .trust-note, .soon, .notify-hero, .hero-text > .note { order: 2; }
}
.eyebrow { display: inline-block; color: var(--pill-ink); background: var(--pill-bg); font-weight: 700; font-size: 0.9rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 38em; }
.hero .lead { margin-bottom: 1.5em; }
.hero-free { margin: 8px 0 0; font-weight: 700; }
.note { color: var(--muted); font-size: 0.95rem; }
.soon { margin: 14px 0 6px; font-weight: 600; }
.soon span { color: var(--brand); }
/* «Повідомте мене» в першому екрані — лише відвідувачам з iPhone/Mac, яким значки магазинів не допоможуть. */
.notify-hero { display: none; margin: 0 0 6px; }
.notify-hero .more { margin-top: 0; }
[data-os="apple"] .notify-hero { display: block; }
/* «Свій» магазин першим: Windows-ПК бачить Microsoft Store перед Google Play. */
[data-os="windows"] .badges .badge-ms,
[data-os="windows"] .platform-list .p-windows { order: -1; }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.badge { display: inline-block; border-radius: 10px; }
/* PNG Google Play містить вбудоване вільне поле; видима висота ≈ 48 px — не менша за значок Microsoft. Лівий відступ компенсуємо лише частково, щоб значок не виходив за поля сторінки. */
.badge-gp img { height: 72px; width: 186px; max-width: none; margin-left: -10px; }
.badge-ms img { height: 48px; width: auto; }
.badge-ms .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-ms .on-light { display: none; }
  :root:not([data-theme="light"]) .badge-ms .on-dark { display: block; }
}
:root[data-theme="dark"] .badge-ms .on-light { display: none; }
:root[data-theme="dark"] .badge-ms .on-dark { display: block; }

.hero-dial { margin: 0; justify-self: center; width: min(100%, 460px); }
.dial { width: 100%; filter: drop-shadow(0 12px 28px rgb(29 64 68 / 14%)); }
.ring-free { fill: none; stroke: var(--ring-free); }
.sector, .ring-past { fill: none; stroke-linecap: butt; }
.ring-past { stroke: var(--ring-past); opacity: 0.74; } /* минуле згасає, але справи під ним ще видно */
.dial-face { fill: var(--dial-face); }
.tick { stroke: var(--dial-ink); stroke-width: 1.2; stroke-linecap: round; opacity: 0.45; }
.tick.hour { stroke-width: 2; opacity: 0.7; }
.tick.major { stroke: var(--tick-accent); stroke-width: 3; opacity: 1; }
.num { fill: var(--dial-ink); font: 650 14px var(--font); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.num.major { font-size: 17px; font-weight: 800; }
.hand { transform-box: view-box; transform-origin: 50% 50%; }
.hand line { stroke: var(--dial-ink); stroke-width: 5; stroke-linecap: round; }
.dial-hub { fill: var(--hand); stroke: var(--dial-face); stroke-width: 3; }
.dial-time { fill: var(--dial-ink); font: 750 24px var(--font); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .hand { transition: transform 0.6s ease; } }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }

/* Розділи */
section { padding: clamp(48px, 7vw, 96px) 0; }
.how, .platforms, .faq { background: var(--glass); }

.vrow { display: grid; gap: 28px; margin: 28px auto 0; max-width: 760px; }
@media (min-width: 40em) { .vrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vfig { margin: 0; }
.vfig video { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #08181b; }
.vfig figcaption { max-width: 360px; margin: 12px auto 0; color: var(--muted); font-size: 0.95rem; }
.video .note { text-align: center; }

.steps { counter-reset: step; display: grid; gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--pill-bg); color: var(--pill-ink); font-weight: 800;
}
.steps p, .cards p { margin: 0; color: var(--muted); }

.cards { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cards h3 { color: var(--ink); }


.watch-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 48em) { .watch-grid { grid-template-columns: auto 1fr; gap: 56px; } }
.watch-img { width: 240px; border-radius: 50%; justify-self: center; box-shadow: 0 0 0 10px #1b1d1f, 0 0 0 12px #3a3d40, var(--shadow); margin: 12px; }

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.45em; width: 7px; height: 12px;
  border: solid var(--brand); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

.platform-list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.platform-list li { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; box-shadow: var(--shadow); }
.platform-list h3 { margin: 0; }
.platform-list .req { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pill { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-ink); font-weight: 650; font-size: 0.93rem; }

.plans { display: grid; gap: 20px; margin: 28px 0 20px; }
@media (min-width: 48em) { .plans { grid-template-columns: 1fr 1.3fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan h3 { font-size: 1.5rem; }
.plan-pro { border: 2px solid var(--brand); }

.more { display: inline-block; margin-top: 20px; font-weight: 700; }

.faq details { background: var(--surface); border-radius: 14px; margin: 0 0 12px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Підвал */
.foot { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 48em) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-links, .foot-langs { margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-block; padding: 6px 0; }
.foot-langs a { padding: 6px 0; }
.legal { margin-top: 28px; font-size: 0.88rem; color: var(--muted); }
.legal p { margin: 0 0 6px; }

/* Смуга фактів */
.facts { padding: 0 0 clamp(32px, 5vw, 56px); }
.fact-list { display: grid; gap: 12px 24px; margin: 0 auto; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fact-list li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-top: 2px solid var(--line); }
.fact-list strong { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.fact-list span { color: var(--muted); font-weight: 550; }

/* Іконки карток */
.ico { width: 32px; height: 32px; margin-bottom: 12px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill { fill: var(--brand); stroke: none; opacity: 0.85; }

/* Фінальний заклик */
.cta { padding-top: 0; background: var(--glass); }
.cta-box { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-box .lead { margin-bottom: 1.4em; }
.cta-box .badges { justify-content: center; }

/* Корінь сайту: вибір мови */
.root-choose { padding: 15vh 16px 64px; }
.root-choose .brand { font-size: 1.6rem; margin-bottom: 12px; }
.root-langs { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.root-langs a { display: block; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; }
.root-langs a:hover { border-color: var(--brand); }

/* Короткі переваги під кнопками */
.trust { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.93rem; }
.trust li::before { content: ""; width: 6px; height: 10px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }

/* Як читати циферблат */
.read-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 56em) { .read-grid { grid-template-columns: 0.9fr 1.1fr; } }
.read-dial { width: min(100%, 420px); justify-self: center; }
.read-list { counter-reset: mark; margin: 20px 0 0; padding: 0; list-style: none; }
.read-list li { counter-increment: mark; position: relative; padding: 6px 0 6px 48px; margin-bottom: 8px; font-size: 1.08rem; }
.read-list li::before {
  content: counter(mark); position: absolute; left: 0; top: 2px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--pill-bg); color: var(--pill-ink); font-weight: 800;
}
.marker circle { fill: var(--pill-bg); stroke: var(--dial-face); stroke-width: 3; }
.marker text { fill: var(--pill-ink); font: 800 16px var(--font); text-anchor: middle; dominant-baseline: central; }

/* Windows */
.windows { background: var(--glass); }
.win-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 56em) { .win-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; } }
.win-img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }

/* Таблиця платформ */
.table-scroll { position: relative; margin-top: 32px; overflow-x: auto; border-radius: var(--radius); } /* relative: інакше приховані підписи .sr-only виходять за межі прокрутки */
.matrix { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface); }
.matrix caption { text-align: left; font-weight: 750; font-size: 1.15rem; padding: 0 0 12px; caption-side: top; }
.matrix th, .matrix td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.97rem; }
.matrix thead th { font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.matrix tbody th { font-weight: 650; }
.matrix .yes { color: var(--brand); font-weight: 800; font-size: 1.15rem; }
.matrix .no { color: var(--muted); }
.matrix .soon-cell { text-align: center; vertical-align: middle; color: var(--muted); font-weight: 650; background: var(--bg-alt); }

.cards-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

@media (prefers-reduced-motion: no-preference) {
  /* Один авторський момент: справи проявляються, а минула частина доби замальовується від 24 до «зараз». */
  .hero-dial .sector { animation: sector-in 0.7s ease-out both; }
  .hero-dial .sector:nth-of-type(2) { animation-delay: 0.08s; }
  .hero-dial .sector:nth-of-type(3) { animation-delay: 0.16s; }
  .hero-dial .sector:nth-of-type(4) { animation-delay: 0.24s; }
  .hero-dial .ring-past { stroke-dasharray: 1 1; animation: past-in 1.4s cubic-bezier(.16,1,.3,1) 0.35s both; }
}
@keyframes sector-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes past-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Довга адреса пошти не має розпирати сітку при великому шрифті. */
.foot-grid > * { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Збільшений шрифт і довгі слова (uk/de): елементи сітки можуть стискатися, заголовки переносяться. */
.hero-grid > *, .read-grid > *, .win-grid > *, .watch-grid > *, .plans > *, .steps > li { min-width: 0; }
h2, h3, h4 { hyphens: auto; overflow-wrap: break-word; }
/* h1 без автопереносів: з text-wrap: balance вони рвуть «24-годин-ному»; довгі слова все одно переносяться. */
h1 { hyphens: manual; overflow-wrap: break-word; }
.table-scroll { padding: 0; }
.trust-note { margin: 8px 0 0; font-size: 0.88rem; color: var(--muted); }

/* Довгі слова (de: «Datenschutzerklärung») на 320 px при шрифті 200 %. */
.more, .foot-links a, .foot-langs a { hyphens: auto; overflow-wrap: anywhere; }

/* Web Interface Guidelines (Vercel): переноси заголовків, дотик, стани наведення. */
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: var(--tap); }
.lang summary:hover, .menu summary:hover, .theme:hover { border-color: var(--brand); }
.faq summary:hover { color: var(--brand); }
.badge { transition: transform 0.15s ease; }
.badge:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .badge, .badge:hover { transition: none; transform: none; } }

/* QR на Google Play — лише для широких екранів (з телефона простіше натиснути значок). */
.qr { display: none; }
@media (min-width: 64em) and (pointer: fine) {
  .qr { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; max-width: 30em; }
  .qr img { width: 144px; height: 144px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
  .qr figcaption { font-size: 0.93rem; color: var(--muted); }
}

/* Можливості: 4 сценарії «скріншот + пункти», що чергуються сторонами. */
.frow { display: grid; gap: 28px; align-items: center; margin-top: clamp(32px, 5vw, 64px); }
.frow .fshot { width: min(240px, 70%); justify-self: center; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
@media (min-width: 48em) {
  .frow { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; }
  .frow-flip { grid-template-columns: minmax(0, 1fr) 300px; }
  .frow-flip .fshot { order: 2; }
  .frow .fshot { width: 260px; }
}
.frow h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 18px; }
.flist { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.flist li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.flist .ico { width: 28px; height: 28px; margin: 2px 0 0; }
.flist h4 { margin: 0 0 4px; font-size: 1.06rem; font-weight: 700; }
.flist p { margin: 0; color: var(--muted); }

/* Для кого: 4 сценарії без карток — іконка, заголовок, рядок тексту. */
.who-list { display: grid; gap: 28px 40px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.who-list li { border-top: 2px solid var(--brand); padding-top: 18px; }
.who-list p { margin: 0; color: var(--muted); }

/* Висока контрастність Windows (forced colors): система прибирає кольори тла —
   повертаємо легенді її кольори (інакше не зрозуміло, який сектор що означає) і даємо рамки «таблеткам» та номерам. */
@media (forced-colors: active) {
  .legend i { forced-color-adjust: none; outline: 1px solid CanvasText; }
  .steps li::before, .read-list li::before { border: 2px solid CanvasText; }
  .eyebrow, .pill, .trust li { border: 1px solid CanvasText; }
  .frow .fshot, .win-img, .watch-img { border: 1px solid CanvasText; }
}

/* Меню розділів для телефонів (на широких екранах розділи видно в шапці). */
.menu summary { padding: 0; width: 44px; }
.menu summary svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.menu-list a { padding: 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-list a:hover { background: var(--tap); }
@media (min-width: 60em) { .menu { display: none; } }
@media (forced-colors: active) { .menu-list, .lang-list { border: 1px solid CanvasText; } }

/* Шапка на 320 px при шрифті 200 %: кнопки переносяться, а не виходять за екран. */
.top-row { flex-wrap: wrap; row-gap: 8px; padding-block: 10px; }
.tools { flex-wrap: wrap; justify-content: flex-end; }

/* Сторінки другої хвилі */
.crumbs { margin: 0 0 16px; font-size: 0.93rem; color: var(--muted); }
.crumbs a { font-weight: 650; }
.sub-img { margin: 0; justify-self: center; }
.sub-pic { border-radius: 24px; box-shadow: var(--shadow); }
.sub-pic-wear-os-watch-face { border-radius: 50%; box-shadow: 0 0 0 10px #1b1d1f, 0 0 0 12px #3a3d40, var(--shadow); margin: 12px; }
.sub-pic-android-widget { border-radius: 50%; }
.sub-pic-windows-desktop-clock { width: min(100%, 560px); }
.sub-pic-24-hour-planner, .sub-pic-freelance-day-planner, .sub-pic-study-planner { width: min(240px, 70vw); height: auto; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
.more-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.more-links a { display: inline-block; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; text-decoration: none; }
.more-links a:hover { border-color: var(--brand); }
.platform-list .more { margin-top: 4px; }

/* Сторінка для преси */
.fact-sheet { display: grid; gap: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.fact-sheet > div { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40em) { .fact-sheet > div { grid-template-columns: 12em 1fr; } }
.fact-sheet dt { font-weight: 700; }
.fact-sheet dd { margin: 0; overflow-wrap: anywhere; }
.press-copy h2 + .press-quote { margin-bottom: 40px; }
.press-quote { margin: 16px 0 0; padding: 18px 22px; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.press-quote p { margin: 0; }
.press-quote p + p { margin-top: 1em; }
.press-gallery { display: grid; gap: 20px; margin: 24px 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.press-item { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; }
.press-item:hover { border-color: var(--brand); }
.press-item img { width: 100%; height: 200px; object-fit: contain; border-radius: 12px; }
.press-cap { font-weight: 650; }
.press-meta { font-size: 0.85rem; color: var(--muted); }

/* Блог */
.post { padding: 40px 0 56px; }
.post h1 { margin: 0 0 8px; }
.post-date { margin: 0 0 16px; color: var(--muted); font-size: 0.93rem; }
.post-dial { margin: 24px auto; width: min(100%, 320px); text-align: center; }
.post-dial .dial { filter: none; }
.post-dial figcaption { margin-top: 12px; color: var(--muted); font-size: 0.93rem; }
.post-body h2 { margin: 32px 0 12px; font-size: 1.4rem; }
.post-body p { margin: 0 0 16px; }
.post-body details { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.post-body summary { min-height: 24px; font-weight: 650; cursor: pointer; }
.post-body details p { margin: 12px 0 0; }
.post-about { margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.post-about h2 { margin: 0 0 8px; font-size: 1.25rem; }
.post-about p { margin: 0 0 16px; }
.post-note { margin: 16px 0 0; color: var(--muted); font-size: 0.93rem; }
.post-about .post-note { margin: 0 0 16px; }
.post-list { display: grid; gap: 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.post-list li { border-top: 2px solid var(--brand); padding-top: 18px; }
.post-list h2 { margin: 0 0 8px; font-size: 1.3rem; }
.post-list p { margin: 0; color: var(--muted); }
.more-links li { min-width: 0; }
.more-links a { overflow-wrap: anywhere; }
