/* ============================================================
   DyvoApps — глобальні стилі
   Натхнення: apple.com/pixelmator-pro — темна тема, велика
   типографіка, плавні reveal-анімації.
   ============================================================ */

:root {
  --bg: #06060a;
  --bg-elev: #0c0c0e;
  --bg-card: #121214;
  --bg-card-hover: #18181b;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);

  /* Liquid glass — напівпрозорий матеріал зі скла */
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.085);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.2);
  --glass-blur: 22px;
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --text: #f5f5f7;
  --text-soft: #c9c9ce;
  --muted: #86868b;
  --accent-blue: #0a84ff;
  --accent-purple: #bf5af2;
  --accent-green: #30d158;
  --accent-teal: #64d2ff;
  --accent-orange: #ff9f0a;
  --accent-pink: #ff375f;
  --grad-budget: linear-gradient(120deg, #0a84ff 0%, #bf5af2 60%, #ff375f 100%);
  --grad-strings: linear-gradient(120deg, #30d158 0%, #64d2ff 60%, #0a84ff 100%);
  --grad-hero: linear-gradient(110deg, #ffffff 20%, #9b9ba1 90%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-h: 52px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --container: 1100px;
  --container-wide: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Стильний фон: глибокий градієнт із кольоровими відсвітами замість плаского чорного */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 720px at 8% -8%, rgba(10, 132, 255, 0.16), transparent 60%),
    radial-gradient(820px 700px at 96% 4%, rgba(191, 90, 242, 0.14), transparent 58%),
    radial-gradient(1000px 820px at 50% 116%, rgba(48, 209, 88, 0.1), transparent 60%),
    linear-gradient(180deg, #0a0a14 0%, #070709 46%, #0a0810 100%);
}

/* Делікатна зернистість, щоб градієнт не бандингувався */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: rgba(10, 132, 255, 0.35); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

/* ---------- Типографіка ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

.display {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.headline {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.title { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }

.lead {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.text-grad-hero {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-grad-budget {
  background: var(--grad-budget);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-grad-strings {
  background: var(--grad-strings);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Reveal-анімації ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="scale"] { transform: translateY(48px) scale(0.95); }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="blur"]  { filter: blur(14px); transform: translateY(20px); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }

.is-visible[data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Навігація ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(8, 8, 10, 0.72);
  border-bottom-color: var(--stroke);
}

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }

/* Перемикач мови */
.lang-switch-li { display: flex; align-items: center; }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.on { background: #fff; color: #000; }
@media (max-width: 760px) {
  .lang-switch-li { padding: 14px 24px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: rgba(8, 8, 10, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    backdrop-filter: saturate(180%) blur(30px);
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links a {
    display: block;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 24px;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease,
    background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: #fff;
  color: #000;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.18);
}

.btn-glow-budget {
  background: var(--grad-budget);
  color: #fff;
}
.btn-glow-budget:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 44px rgba(123, 97, 255, 0.45);
}

.btn-glow-strings {
  background: var(--grad-strings);
  color: #02140a;
}
.btn-glow-strings:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 44px rgba(48, 209, 88, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--stroke-strong);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-store {
  background: #fff;
  color: #000;
  padding: 12px 24px;
}
.btn-store svg { width: 22px; height: 22px; }
.btn-store small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.65;
  line-height: 1;
  margin-bottom: 2px;
  text-align: left;
}
.btn-store strong { display: block; font-size: 16px; line-height: 1.15; text-align: left; }
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,0.16); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 17px;
  color: var(--accent-blue);
  transition: gap 0.3s var(--ease-out);
}
.link-arrow:hover { gap: 11px; }
.link-arrow.green { color: var(--accent-green); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 64px) 24px 80px;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 2; max-width: 980px; }

.hero .lead { max-width: 660px; margin: 28px auto 0; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}

/* Анімація появи hero при завантаженні */
.hero-enter {
  opacity: 0;
  transform: translateY(34px);
  animation: heroIn 1.2s var(--ease-out) forwards;
  animation-delay: var(--enter-delay, 0s);
}
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* Сяючі плями фону */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
}
.glow-blue   { background: radial-gradient(circle, rgba(10,132,255,0.55), transparent 65%); }
.glow-purple { background: radial-gradient(circle, rgba(191,90,242,0.45), transparent 65%); }
.glow-green  { background: radial-gradient(circle, rgba(48,209,88,0.4), transparent 65%); }
.glow-teal   { background: radial-gradient(circle, rgba(100,210,255,0.4), transparent 65%); }
.glow-pink   { background: radial-gradient(circle, rgba(255,55,95,0.35), transparent 65%); }

.glow-float { animation: glowFloat 14s ease-in-out infinite alternate; }
@keyframes glowFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(40px, -50px, 0) scale(1.12); }
  100% { transform: translate3d(-30px, 30px, 0) scale(0.95); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  animation: hintBob 2.4s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Секції ---------- */

.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section-tight { padding: clamp(60px, 8vw, 110px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent);
  border: 0;
  margin: 0 auto;
  max-width: var(--container-wide);
}

/* ---------- Продуктові showcase-картки (головна) ---------- */

.showcase {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 560px;
  isolation: isolate;
  transition: border-color 0.4s ease, transform 0.6s var(--ease-out), box-shadow 0.6s ease;
}
/* Скляний відблиск зверху ліворуч */
.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 50%);
}
.showcase:hover {
  border-color: var(--glass-border-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.showcase + .showcase { margin-top: 40px; }

.showcase-copy { padding: clamp(40px, 5vw, 80px); position: relative; z-index: 2; }
.showcase-copy .lead { margin-top: 18px; max-width: 460px; font-size: clamp(17px, 1.6vw, 21px); }
.showcase-copy .platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--stroke-strong);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.showcase-copy .platform-tag svg { width: 14px; height: 14px; }
.showcase-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; align-items: center; }

.showcase-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
  min-height: 480px;
}

@media (max-width: 920px) {
  .showcase { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: center; }
  .showcase-copy { padding: clamp(32px, 7vw, 56px); }
  .showcase-copy .lead { margin-left: auto; margin-right: auto; }
  .showcase-actions { justify-content: center; }
  .showcase-visual { min-height: 0; order: 2; padding: 8px 16px 36px; }
  .phone { width: 100%; max-width: 300px; }
}

/* ---------- iPhone mockup ---------- */

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 612;
  border-radius: 48px;
  background: #1a1a1e;
  border: 1px solid #2c2c31;
  box-shadow:
    inset 0 0 0 6px #000,
    inset 0 0 0 7px #3a3a40,
    0 40px 90px rgba(0, 0, 0, 0.7);
  padding: 14px;
  will-change: transform;
}
.phone::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #0e1220 0%, #090a12 55%, #08080d 100%);
  display: flex;
  flex-direction: column;
  padding: 58px 18px 18px;
  font-size: 12px;
}

.phone-float { animation: phoneFloat 7s ease-in-out infinite; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0.0deg); }
  50%      { transform: translateY(-14px) rotate(-0.6deg); }
}

/* UI всередині екрана бюджет-трекера */
.bt-month { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.bt-balance { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.bt-balance span { font-size: 14px; color: var(--accent-green); font-weight: 700; margin-left: 8px; }

.bt-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 6px;
  position: relative;
}
.bt-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.bt-ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.bt-ring .track { stroke: rgba(255, 255, 255, 0.07); }
.bt-ring .meter {
  stroke: url(#btRingGrad);
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 1.8s var(--ease-out) 0.3s;
}
.is-visible .bt-ring .meter, .phone-live .bt-ring .meter { stroke-dashoffset: 110; }
.bt-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.bt-ring-label strong { font-size: 22px; font-weight: 800; }
.bt-ring-label small { color: var(--muted); font-size: 10px; }

.bt-cats { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.bt-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 9px 12px;
}
.bt-cat-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.bt-cat-body { flex: 1; min-width: 0; }
.bt-cat-name { font-weight: 600; font-size: 12px; display: flex; justify-content: space-between; }
.bt-cat-name b { font-weight: 700; }
.bt-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  overflow: hidden;
}
.bt-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.6s var(--ease-out) 0.5s;
}
.is-visible .bt-bar i, .phone-live .bt-bar i { width: var(--w, 60%); }

/* ============================================================
   Реальний UI застосунку Dyvo Budget — світла тема
   Піксельно близьке відтворення справжніх екранів у рамці iPhone.
   ============================================================ */

.phone-screen.light {
  background: #f2f2f7;
  color: #1c1c1e;
  padding: 44px 11px 12px;
  gap: 0;
  overflow: hidden;
}
.appui { display: flex; flex-direction: column; gap: 9px; width: 100%; }

/* Верхня панель */
.appui-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 1px; }
.appui-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 999px; padding: 5px 9px;
  font-size: 9.5px; font-weight: 700; color: #1c1c1e;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
}
.appui-title { font-size: 13px; font-weight: 800; letter-spacing: -0.02em; }
.appui-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #00c9a7);
  color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0a84ff;
}

/* Картка балансу з градієнтом */
.appui-balance {
  border-radius: 18px; padding: 14px 16px; color: #fff; position: relative;
  background: linear-gradient(115deg, #0a5cff 0%, #0a84ff 42%, #00c9a7 100%);
  box-shadow: 0 12px 26px rgba(10, 110, 255, 0.34);
}
.appui-balance .lbl { font-size: 10px; font-weight: 600; opacity: 0.92; }
.appui-balance .amt { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 1px; }
.appui-balance .amt small { font-size: 15px; font-weight: 800; }
.appui-balance .sub { margin-top: 9px; display: flex; align-items: center; gap: 8px; font-size: 9.5px; }
.appui-balance .chip { background: rgba(255, 255, 255, 0.24); border-radius: 999px; padding: 3px 8px; font-weight: 700; }
.appui-balance .sub em { opacity: 0.86; font-style: normal; }
.appui-balance .doc { position: absolute; top: 13px; right: 14px; opacity: 0.85; }
.appui-balance .doc svg { width: 15px; height: 15px; }

/* Універсальна біла картка */
/* Явний темний колір: ці картки використовуються і поза .phone-screen.light
   (у feature-media на темному фоні), тож не можна покладатися на успадкування. */
.appui-card, .appui-sub-row, .appui-invite { color: #1c1c1e; }
.appui-hd h4, .appui-tx-body .t, .appui-sub-body .t, .appui-tx-amt, .appui-mrow { color: #1c1c1e; }
.appui-card { background: #fff; border-radius: 18px; padding: 13px 14px; box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05); }
.appui-card + .appui-card { margin-top: 0; }
.appui-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.appui-hd h4 { font-size: 13px; font-weight: 800; letter-spacing: -0.02em; }
.appui-hd .lnk { font-size: 11px; font-weight: 700; color: #0a84ff; }
.appui-tag { background: #e9e9ee; color: #636366; font-size: 8.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* Місячний бюджет: кільце + показники */
.appui-budget { display: flex; align-items: center; gap: 13px; margin-top: 8px; }
.appui-ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.appui-ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.appui-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.appui-ring .trk { stroke: #d8f0df; }
.appui-ring .mtr { stroke: #34c759; stroke-dasharray: 213; stroke-dashoffset: 213; transition: stroke-dashoffset 1.6s var(--ease-out) 0.4s; }
.is-visible .appui-ring .mtr, .phone-live .appui-ring .mtr { stroke-dashoffset: 168; }
.appui-ring .lab { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.appui-ring .lab b { font-size: 18px; font-weight: 800; }
.appui-ring .lab span { font-size: 7px; color: #8e8e93; }
.appui-bstats { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.appui-stat .k { color: #8e8e93; font-weight: 600; font-size: 10px; }
.appui-stat .v { font-weight: 800; font-size: 12.5px; }
.appui-stat .v.green { color: #34c759; }
.appui-warn { margin-top: 11px; padding-top: 10px; border-top: 1px solid #f0f0f3; display: flex; gap: 6px; align-items: flex-start; font-size: 9.5px; color: #6c6c70; line-height: 1.35; }
.appui-warn svg { width: 13px; height: 13px; color: #ff9500; flex-shrink: 0; margin-top: 1px; }

/* Кільцевий графік категорій */
.appui-donut-row { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.appui-donut { width: 74px; height: 74px; transform: rotate(0deg); flex-shrink: 0; }
.appui-donut circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.appui-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.appui-leg { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.appui-leg .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.appui-leg .nm { flex: 1; min-width: 0; font-weight: 600; color: #1c1c1e; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appui-leg .pc { font-weight: 700; color: #636366; flex-shrink: 0; white-space: nowrap; }

/* Рядок транзакції / підписки */
.appui-tx { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.appui-tx + .appui-tx { border-top: 1px solid #f0f0f3; }
.appui-ic { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.appui-tx-body { flex: 1; min-width: 0; }
.appui-tx-body .t { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.appui-tx-body .d { font-size: 10px; color: #8e8e93; margin-top: 1px; }
.appui-tx-amt { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.appui-tx-amt.green { color: #34c759; }
.tint-green { background: #d6f5df; } .tint-red { background: #ffe0dd; }
.tint-purple { background: #f0dcfb; } .tint-orange { background: #ffe6d1; }
.tint-blue { background: #dbe9ff; } .tint-gray { background: #e6e6eb; }
.tint-dark { background: #1c1c1e; color: #fff; }

/* Плитки швидких дій */
.appui-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.appui-qt { background: #fff; border-radius: 15px; padding: 10px 4px 8px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.appui-qt .qic { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 5px; display: flex; align-items: center; justify-content: center; }
.appui-qt .qic svg { width: 15px; height: 15px; }
.appui-qt .qn { font-size: 9.5px; font-weight: 700; }

/* Екран підписок */
.appui-subsum {
  border-radius: 18px; padding: 15px 16px; color: #fff; position: relative;
  background: linear-gradient(115deg, #0a5cff 0%, #0a84ff 42%, #00c9a7 100%);
  box-shadow: 0 12px 26px rgba(10, 110, 255, 0.32);
}
.appui-subsum .lbl { font-size: 10px; font-weight: 600; opacity: 0.92; }
.appui-subsum .amt { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin-top: 1px; }
.appui-subsum .amt small { font-size: 15px; opacity: 0.85; }
.appui-subsum .sub { margin-top: 9px; display: flex; align-items: center; gap: 8px; font-size: 9.5px; }
.appui-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.appui-chip { font-size: 10px; font-weight: 700; padding: 6px 13px; border-radius: 999px; background: #fff; color: #1c1c1e; box-shadow: 0 3px 9px rgba(0,0,0,0.05); }
.appui-chip.on { background: #0a84ff; color: #fff; box-shadow: 0 4px 12px rgba(10,132,255,0.4); }
.appui-badge-on { background: #d6f5df; color: #1f9d4d; font-size: 8.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.appui-sub-row { display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 16px; padding: 11px 13px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.appui-sub-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.appui-sub-body { flex: 1; min-width: 0; }
.appui-sub-body .t { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.appui-sub-body .d { font-size: 10px; color: #8e8e93; margin-top: 2px; }

/* Витрати за учасниками */
.appui-member { display: flex; align-items: center; gap: 9px; }
.appui-member + .appui-member { margin-top: 11px; }
.appui-mav { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0; }
.appui-mbody { flex: 1; }
.appui-mrow { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; }
.appui-mrow .mu { color: #8e8e93; font-weight: 600; }
.appui-mbar { height: 6px; border-radius: 6px; background: #eeeef1; margin-top: 5px; overflow: hidden; }
.appui-mbar i { display: block; height: 100%; border-radius: 6px; width: 0; transition: width 1.5s var(--ease-out) 0.5s; }
.is-visible .appui-mbar i, .phone-live .appui-mbar i { width: var(--w, 60%); }

/* Картка з кодом запрошення */
.appui-invite { background: #fff; border-radius: 16px; padding: 14px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.appui-invite .lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8e8e93; }
.appui-invite .code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 800; letter-spacing: 0.22em; margin-top: 6px; color: #0a84ff; }

/* Іконка застосунку (реальна) */
.app-icon-img {
  width: 96px; height: 96px; border-radius: 24px;
  margin-bottom: 30px; display: inline-block;
  box-shadow: 0 24px 60px rgba(10, 110, 255, 0.4);
}

/* ---------- Mac window mockup ---------- */

.macwin {
  position: relative;
  width: min(620px, 100%);
  border-radius: 14px;
  background: #141417;
  border: 1px solid #2a2a30;
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-size: 12px;
  will-change: transform;
}
.macwin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #1c1c20;
  border-bottom: 1px solid #2a2a30;
}
.macwin-bar i {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
}
.macwin-bar i:nth-child(1) { background: #ff5f57; }
.macwin-bar i:nth-child(2) { background: #febc2e; }
.macwin-bar i:nth-child(3) { background: #28c840; }
.macwin-bar span {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-right: 52px;
}
.macwin-body { display: grid; grid-template-columns: 158px 1fr; min-height: 330px; }

.macwin-side {
  background: #18181c;
  border-right: 1px solid #26262c;
  padding: 12px 8px;
}
.macwin-side h5 {
  margin: 4px 8px 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.macwin-side .sitem {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.macwin-side .sitem svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--accent-teal); }
.macwin-side .sitem.active { background: rgba(10, 132, 255, 0.25); color: #fff; }

.macwin-main { padding: 14px; overflow: hidden; }

.loc-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.loc-row.head {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.loc-key { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; color: var(--accent-teal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-val { color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-val.missing { color: var(--accent-orange); font-style: italic; }
.loc-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
}
.loc-status.warn { background: var(--accent-orange); box-shadow: 0 0 8px rgba(255, 159, 10, 0.8); }

.loc-progress {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.loc-progress .bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
}
.loc-progress .bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: var(--grad-strings);
  transition: width 1.8s var(--ease-out) 0.4s;
}
.is-visible .loc-progress .bar i, .macwin-live .loc-progress .bar i { width: 87%; }

@media (max-width: 560px) {
  .macwin-body { grid-template-columns: 1fr; }
  .macwin-side { display: none; }
  .loc-row { grid-template-columns: 1fr 1fr auto; }
  .loc-row .loc-val:nth-child(3) { display: none; }
}

/* ---------- Bento / фічі ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento-card {
  position: relative;
  grid-column: span 2;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 14px 40px rgba(0, 0, 0, 0.32);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease,
    background 0.4s ease, box-shadow 0.4s ease;
}
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.07), transparent 52%);
}
.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 22px 56px rgba(0, 0, 0, 0.45);
}
.bento-card.wide { grid-column: span 3; }
.bento-card.full { grid-column: span 6; }

.bento-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.bento-icon svg { width: 24px; height: 24px; }
.bento-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.bento-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.icon-blue   { background: rgba(10, 132, 255, 0.15); color: var(--accent-blue); }
.icon-purple { background: rgba(191, 90, 242, 0.15); color: var(--accent-purple); }
.icon-green  { background: rgba(48, 209, 88, 0.15); color: var(--accent-green); }
.icon-teal   { background: rgba(100, 210, 255, 0.15); color: var(--accent-teal); }
.icon-orange { background: rgba(255, 159, 10, 0.15); color: var(--accent-orange); }
.icon-pink   { background: rgba(255, 55, 95, 0.15); color: var(--accent-pink); }

@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.wide { grid-column: span 1; }
  .bento-card.full { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card.wide, .bento-card.full { grid-column: span 1; }
}

/* ---------- Статистика / лічильники ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-value {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.stat-label { color: var(--muted); font-size: 16px; margin-top: 10px; font-weight: 500; }
@media (max-width: 680px) { .stats { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Feature rows (продуктові сторінки) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(90px, 11vw, 150px); }
.feature-row.flip > .feature-media { order: 2; }
.feature-copy h2 { margin-bottom: 18px; }
.feature-copy .lead { font-size: clamp(17px, 1.8vw, 21px); }
.feature-copy ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 16px;
}
.feature-copy li svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; }

.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 18px 50px rgba(0, 0, 0, 0.35);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip > .feature-media { order: 0; }
}

/* ---------- CTA-блок завантаження ---------- */

.cta {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  padding: clamp(64px, 9vw, 120px) 32px;
  overflow: hidden;
  isolation: isolate;
}
.cta .lead { max-width: 560px; margin: 20px auto 0; }
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.cta-note { margin-top: 22px; color: var(--muted); font-size: 13.5px; }

/* ---------- Специфікації ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--stroke);
}
.spec {
  padding: 28px 24px;
  border-bottom: 1px solid var(--stroke);
}
.spec dt { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.spec dd { margin: 0; font-size: 17px; font-weight: 600; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--stroke);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 4px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.4s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 640px;
}
.faq .faq-body {
  overflow: hidden;
}

/* ---------- Футер ---------- */

.footer {
  border-top: 1px solid var(--stroke);
  padding: 64px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h4 { color: var(--text); font-size: 14px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { transition: color 0.25s ease; }
.footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-bottom {
  border-top: 1px solid var(--stroke);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Юридичні сторінки (Privacy / Terms) ---------- */

.legal-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 90px)) 24px clamp(24px, 4vw, 44px);
  overflow: hidden;
}
.legal-hero .eyebrow { justify-content: flex-start; }
.legal-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.legal-hero .updated { margin: 14px 0 0; color: var(--muted); font-size: 15px; font-weight: 500; }

.legal {
  padding: clamp(8px, 2vw, 24px) 0 clamp(60px, 8vw, 100px);
}
.legal .container { max-width: 820px; }

.legal h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 8px;
  color: var(--text);
}
.legal p { color: var(--text-soft); margin: 0 0 16px; line-height: 1.7; }
.legal ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-soft); line-height: 1.7; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 700; }
.legal a { color: var(--accent-blue); text-decoration: none; word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal hr { border: 0; height: 1px; background: var(--stroke); margin: 28px 0; }
.legal .intro { font-size: 18px; color: var(--text-soft); }

.legal .table-wrap { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 460px;
}
.legal th, .legal td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stroke);
  color: var(--text-soft);
  vertical-align: top;
}
.legal th { color: var(--text); font-weight: 700; background: rgba(255, 255, 255, 0.03); }
.legal td code, .legal p code, .legal li code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  color: var(--accent-teal);
  background: rgba(100, 210, 255, 0.1);
  border: 1px solid rgba(100, 210, 255, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
}
.legal .note { color: var(--muted); font-size: 13.5px; }

/* ---------- Marquee стрічка ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--stroke);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee span::after { content: "✦"; font-size: 11px; opacity: 0.5; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Дрібниці ---------- */

.product-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(70px, 10vw, 130px)) 24px clamp(60px, 8vw, 100px);
  text-align: center;
  overflow: hidden;
}
.product-hero .lead { max-width: 640px; margin: 26px auto 0; }
.product-hero-visual {
  margin-top: clamp(56px, 7vw, 90px);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.app-icon svg { width: 52px; height: 52px; }
.app-icon.budget { background: var(--grad-budget); }
.app-icon.strings { background: var(--grad-strings); }

.kbd {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke-strong);
  border-radius: 6px;
  padding: 2px 7px;
}

.code-chip {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--accent-teal);
  background: rgba(100, 210, 255, 0.1);
  border: 1px solid rgba(100, 210, 255, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-block;
}
