/* Flixed.me landing. Colors follow frontend/src/app/shared/styles/_tokens.scss (dark theme). */
:root {
  --bg: #07070f;
  --bg-2: #0b0b16;
  --surface: #11111f;
  --raised: #1b1a2e;
  --border: #29263e;
  --text: #f4f1ff;
  --muted: #a9a5c4;
  --accent: #a78aff;
  --accent-strong: #7c4dff;
  --pink: #f0b1fb;
  --violet: #7740fd;
  --sub-ua: #ffe693;
  --ok: #00e58d;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px -20px #000c, 0 0 0 1px #ffffff0d;
  --glow: 0 10px 40px -8px #7c4dff99;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);
  --font:
    Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, #6840b040, transparent 60%),
    radial-gradient(900px 600px at -10% 30%, #3b1f7a33, transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: #0b0b16;
  border-radius: var(--radius-sm);
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.muted {
  color: var(--muted);
}

.gradient-text {
  background: linear-gradient(100deg, var(--pink), var(--accent) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--primary {
  background: linear-gradient(135deg, #a775ff, #6b3cf5);
  color: #fff;
  box-shadow: var(--glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 50px -8px #7c4dffcc;
}

.btn--ghost {
  border-color: var(--border);
  background: #ffffff08;
  color: var(--text);
}

.btn--ghost:hover {
  background: #ffffff12;
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.btn--lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 17px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #07070fb3;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: #ffffff0d;
}

/* Hero */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 var(--section);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--center {
  text-align: center;
}

h1 {
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 800;
}

.lead {
  margin-top: 24px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__actions .btn--lg {
  padding: 0 24px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.hero__facts strong {
  color: var(--text);
}

.hero__visual {
  position: relative;
  padding: 0 0 56px;
}

.hero__desktop {
  width: 90%;
}

.hero__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  max-width: 200px;
}

.hero__facts a {
  color: var(--accent);
}

/* Hero demo: one finished line with a prepared phrase breakdown (no AI request). */
.hero-demo {
  max-width: 560px;
  margin-top: 24px;
  border: 1px solid #a78aff55;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #24164a, var(--surface) 70%);
}

.hero-demo__line {
  display: grid;
  gap: 2px;
  padding: 14px 18px 10px;
  font-size: 17px;
}

.hero-demo__explain summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 10px 6px;
  padding: 0 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.hero-demo__explain summary::-webkit-details-marker {
  display: none;
}

.hero-demo__explain summary::before {
  content: '✦';
}

.hero-demo__explain[open] summary {
  color: var(--text);
}

.hero-demo__explain dl {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 18px 16px;
  font-size: 15px;
}

.hero-demo__explain dt {
  margin-top: 6px;
  font-weight: 700;
}

.hero-demo__explain dd {
  margin: 0;
  color: var(--muted);
}

/* Frames */
.window {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff14;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid #ffffff0f;
  background: #14142a;
}

.window__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.window__bar i:nth-child(2) {
  background: #febc2e;
}

.window__bar i:nth-child(3) {
  background: #28c840;
}

.window__bar span {
  margin: 0 auto;
  padding: 2px 14px;
  border-radius: 999px;
  background: #ffffff0d;
  color: var(--muted);
  font-size: 12px;
  transform: translateX(-20px);
}

.window figcaption {
  padding: 12px 16px;
  border-top: 1px solid #ffffff0f;
  color: var(--muted);
  font-size: 14px;
}

.phone {
  overflow: hidden;
  padding: 7px;
  border: 1px solid #ffffff26;
  border-radius: 34px;
  background: linear-gradient(160deg, #2a2840, #0d0d18);
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 27px;
}

/* Subtitles */
.sub-en,
.sub-ua {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}

.sub-en {
  color: #fff;
}

.sub-ua {
  color: var(--sub-ua);
}

/* Sections */
.section {
  padding: var(--section) 0;
}

.section__title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
}

.section__title--center {
  text-align: center;
}

.section__lead {
  margin-top: 18px;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
}

.section__lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__lead b {
  color: var(--text);
}

/* Pain */
.pain {
  padding-top: calc(var(--section) * 0.6);
}

.pain .section__title,
.pain .section__lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pain-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pain-card h3 {
  font-size: 19px;
}

.pain-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.pain-card__screen {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 4px;
  min-height: 150px;
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent 30%, #000a),
    radial-gradient(circle at 30% 30%, #3a2b5c, #12121f 70%);
  text-align: center;
  font-size: 15px;
}

.pain-card__screen span {
  padding: 2px 8px;
  border-radius: 6px;
  background: #000a;
}

.pain-card--win {
  border-color: #a78aff80;
  background: linear-gradient(160deg, #24164a, var(--surface) 60%);
  box-shadow: var(--glow);
}

/* Core idea: phrases, not words */
.idea__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.idea-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.idea-card h3 {
  font-size: 20px;
}

.idea-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.tip {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 24px 26px;
  border: 1px solid #a78aff66;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #24164a, var(--surface) 70%);
  box-shadow: var(--glow);
}

.tip__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a775ff, #6b3cf5);
  font-size: 20px;
}

.tip h3 {
  font-size: 19px;
}

.tip p {
  margin-top: 8px;
  color: var(--muted);
}

/* Features */
.feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.feature--reverse .feature__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.feature--reverse .feature__copy {
  order: 2;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.checks li b {
  color: var(--text);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E")
      center / 13px no-repeat,
    linear-gradient(135deg, #a775ff, #6b3cf5);
}

.feature__note {
  margin-top: 20px;
  font-size: 15px;
}

.checks--compact {
  margin: 0;
}

/* Chrome extension: YouTube above, a smaller Netflix below. They do not overlap: both have
   subtitles and buttons along the bottom edge. */
.extension__actions {
  margin-top: 28px;
}

.extension__media {
  display: grid;
  gap: 20px;
}

.extension__youtube {
  width: 90%;
}

.extension__netflix {
  justify-self: end;
  width: 66%;
}

@media (max-width: 560px) {
  .extension__actions .btn {
    width: 100%;
  }
}

/* Subtitle toggle demo */
.toggle {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.toggle__label {
  color: var(--muted);
  font-size: 14px;
}

.toggle__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.toggle__buttons button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.toggle__buttons button[aria-pressed='true'] {
  border-color: transparent;
  background: linear-gradient(135deg, #a775ff, #6b3cf5);
}

.toggle__screen {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 4px;
  min-height: 110px;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent 20%, #000b),
    radial-gradient(circle at 70% 20%, #4b3470, #141325 70%);
  text-align: center;
  font-size: 16px;
}

.toggle__screen span {
  padding: 2px 8px;
  border-radius: 6px;
  background: #000b;
}

.toggle__screen[data-mode-view='en'] .sub-ua,
.toggle__screen[data-mode-view='ua'] .sub-en {
  display: none;
}

/* Explanation */
.explain__visual {
  position: relative;
  padding-bottom: 48px;
}

.explain__visual .window {
  width: 88%;
}

.explain__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  max-width: 220px;
}

/* Learn */
.learn__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.learn-card {
  padding: 18px 18px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.learn-card h3 {
  margin: 22px 6px 0;
  font-size: 22px;
}

.learn-card p {
  margin: 10px 6px 0;
  color: var(--muted);
}

.learn-card .window {
  box-shadow: none;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.chips b {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 600;
}

/* Mac */
.mac {
  background:
    radial-gradient(900px 500px at 50% 0%, #6840b033, transparent 70%),
    linear-gradient(180deg, transparent, #0b0b16 30%, #0b0b16 70%, transparent);
}

.mac__hero {
  max-width: 1040px;
  margin: 56px auto 0;
}

/* Desktop app downloads: a highlighted card, reached from the header (#download) */
.download {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 820px;
  margin: 40px auto 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #a775ff59;
  border-radius: var(--radius-lg);
  background: radial-gradient(600px 240px at 50% 0%, #7c4dff2e, transparent 70%), var(--surface);
  box-shadow: 0 24px 80px -30px #7c4dff80;
  text-align: center;
  scroll-margin-top: 96px;
}

.download__head {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.download__title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
}

.download__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.download__note,
.download__version {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.download__head .download__note {
  margin-top: 4px;
}

.download__note a {
  color: var(--text);
}

.download__version[hidden] {
  display: none;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.download__guides {
  margin-top: 8px;
}

.guide-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 48px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff08;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* The extension is not a desktop app: a full-width card under the two guides. */
.download__extension {
  width: 100%;
}

.guide-card:hover {
  border-color: #a775ff80;
  background: #ffffff10;
}

.guide-card__title {
  font-size: 17px;
  font-weight: 750;
}

.guide-card__text {
  color: var(--muted);
  font-size: 14px;
}

.guide-card__arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  fill: none;
  stroke: #a775ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.install__choose {
  margin-top: 28px;
}

.install__choose .guide-card {
  padding: 24px;
}

.install__choose .guide-card__title {
  font-size: 22px;
}

.install__crumbs {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.legal .install__other {
  margin-top: 32px;
}

/* Guide opened by a download button: says the file is on its way. */
.install__started {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #39d98a66;
  border-radius: 16px;
  background: #39d98a14;
}

.install__started[hidden] {
  display: none;
}

.legal .install__started p {
  margin-top: 6px;
}

.legal .install__started .install__started-title {
  margin-top: 0;
  color: var(--text);
  font-weight: 750;
}

/* Header shortcut to the downloads, next to «Спробувати». */
.site-header__download {
  margin-right: -12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.steps__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a775ff, #6b3cf5);
  font-weight: 800;
}

.steps h3 {
  font-size: 20px;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.steps p b {
  color: var(--text);
}

.mac__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.formats li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff06;
  color: var(--muted);
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Mobile */
.mobile__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.mobile__phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
  align-items: start;
}

.phone--lift {
  transform: translateY(-28px);
}

/* TV */
.tv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.tv__set {
  margin: 0;
  display: grid;
  justify-items: center;
}

.tv__screen {
  width: 100%;
  padding: clamp(6px, 1vw, 12px);
  border: 1px solid #ffffff1a;
  border-radius: clamp(10px, 1.6vw, 18px);
  background: linear-gradient(160deg, #23213a, #0c0b16);
  box-shadow: var(--shadow), var(--glow);
}

.tv__screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(4px, 0.8vw, 8px);
  background: #000;
}

.tv__stand {
  width: 34%;
  height: clamp(10px, 1.4vw, 16px);
  margin-top: -1px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #23213a, #14131f);
  box-shadow: 0 18px 30px -12px #000c;
}

/* Price */
.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid #a78aff55;
  border-radius: 28px;
  background: radial-gradient(600px 300px at 0% 0%, #6840b04d, transparent 70%), var(--surface);
  box-shadow: var(--glow);
}

/* FAQ */
.faq__list {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* CTA */
.cta__inner {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
  border: 1px solid #a78aff40;
  border-radius: 32px;
  background: radial-gradient(700px 360px at 50% 0%, #7c4dff40, transparent 70%), var(--bg-2);
  text-align: center;
}

.cta__inner img {
  margin-bottom: 24px;
}

.cta__inner .btn {
  margin-top: 32px;
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.site-footer .brand {
  color: var(--text);
  font-size: 17px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__inner .muted {
  margin-left: auto;
}

/* Legal pages (privacy.html) */
.site-header--solid {
  border-bottom-color: var(--border);
}

/* Inner pages have no section links: «Спробувати» goes to the right. */
.site-header--solid .btn {
  margin-left: auto;
}

.legal h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
}

.legal__updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.legal__lead {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px);
}

.legal h2 {
  margin-top: 40px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 750;
}

.legal p,
.legal ul {
  margin-top: 14px;
  color: var(--muted);
}

.legal ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal b {
  color: var(--text);
}

.legal a {
  color: var(--accent);
}

/* Install guide (install.html) */
.install__steps {
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.legal .install__steps {
  padding-left: 0;
}

.install__steps > li {
  position: relative;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  counter-increment: step;
}

.install__steps > li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #a775ff, #6b3cf5);
  color: #fff;
  font-weight: 800;
}

.install__steps h3 {
  font-size: 19px;
  font-weight: 750;
}

.install__steps p {
  margin-top: 8px;
}

.install__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal .install__downloads a {
  color: #fff;
}

.legal .install__downloads .btn--ghost {
  color: var(--text);
}

.install__dmg,
.install__shot {
  margin: 16px 0 0;
}

.install__dmg figcaption,
.install__shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.install__dmg-window {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ececf1;
  color: #1d1d24;
  font-size: 14px;
}

.install__dmg-item {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.install__dmg-arrow {
  max-width: 30%;
  height: auto;
  fill: none;
  stroke: #6b3cf5;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install__dmg-folder {
  fill: #4fa3f7;
}

.install__shot-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.install__shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Rings the "Все одно відкрити" button: its place in mac-open-anyway.webp, in per cent. */
.install__shot-mark {
  position: absolute;
  top: 84.5%;
  left: 80.2%;
  width: 17%;
  height: 11.2%;
  border: 3px solid #ffb020;
  border-radius: 10px;
  box-shadow: 0 0 0 4px #ffb02040;
}

/* Windows dialogs are tall: keep them readable without filling the screen. */
.install__shot--dialog {
  max-width: 420px;
}

.install__shot-mark--more {
  top: 22.5%;
  left: 2.3%;
  width: 19%;
  height: 6.8%;
}

.install__shot-mark--run {
  top: 86.6%;
  left: 49.4%;
  width: 20.4%;
  height: 9.4%;
}

@media (max-width: 560px) {
  .install__steps > li {
    padding: 18px 16px 18px 60px;
  }

  .install__steps > li::before {
    top: 16px;
    left: 14px;
    width: 32px;
    height: 32px;
  }

  .install__dmg-window {
    gap: 12px;
  }

  /* The phone picture is only the blocked-app card (mac-open-anyway-phone.webp). */
  .install__shot-mark:not(.install__shot-mark--more, .install__shot-mark--run) {
    top: 30%;
    left: 70.5%;
    width: 26.5%;
    height: 33%;
  }
}

/* Reveal on scroll: main.js marks only blocks below the first screen. */
[data-reveal] {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(24px);
}

/* Responsive */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .site-header .btn {
    margin-left: auto;
  }

  .site-header__download + .btn {
    margin-left: 0;
  }

  .price-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .price-card .btn {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .feature__grid,
  .feature--reverse .feature__grid,
  .mobile__grid,
  .tv__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* On a phone the text comes first, as in the other sections. */
  .tv__copy {
    order: -1;
  }

  .feature--reverse .feature__copy {
    order: 0;
  }

  .hero__desktop {
    transform: none;
  }

  .hero__phone {
    left: auto;
    right: 4%;
    bottom: -24px;
    width: 28%;
  }

  .pain__grid,
  .idea__grid,
  .steps,
  .learn__grid,
  .mac__pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual {
    padding-bottom: 72px;
  }

  .hero__phone {
    width: 34%;
  }

  .phone {
    padding: 4px;
    border-radius: 22px;
  }

  .phone img {
    border-radius: 18px;
  }

  .phone--lift {
    transform: translateY(-14px);
  }

  .site-footer__inner .muted {
    margin-left: 0;
  }

  .cta__inner .btn,
  .price-card .btn,
  .download__buttons,
  .download__buttons .btn {
    width: 100%;
  }

  /* A phone does not run the desktop app: the header keeps only «Спробувати», on the right. */
  .site-header__download {
    display: none;
  }

  .site-header__download + .btn {
    margin-left: auto;
  }

  .guide-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    transition: none;
  }

  .btn {
    transition: none;
  }
}

.search-link a {
  color: var(--accent);
}
.search-link,
.search-related,
.listening-video {
  margin-top: 1.25rem;
}
.search-related {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.listening-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.legal ol {
  padding-left: 1.5rem;
}
.legal li + li {
  margin-top: 0.5rem;
}

/* Search pages (serialy-anhliiskoiu, podviini-subtytry-youtube, anhliiska-na-slukh-a2) */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.legal .breadcrumbs a {
  color: var(--muted);
}

.legal a:not(.btn):hover,
.search-link a:hover {
  color: var(--text);
}

.search-list a {
  font-weight: 600;
}

.legal .search-list {
  gap: 18px;
}

.search-list p {
  margin-top: 4px;
}

.search-cta {
  display: grid;
  justify-items: start;
  gap: 0;
  margin-top: 48px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #a78aff40;
  border-radius: var(--radius-lg);
  background: radial-gradient(500px 260px at 0% 0%, #7c4dff33, transparent 70%), var(--bg-2);
}

.legal .search-cta h2 {
  margin-top: 0;
}

.search-cta .btn {
  margin-top: 20px;
}

.legal .search-cta .btn--primary {
  color: #fff;
}
