@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/Nunito-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/Nunito-Italic-Variable.woff2") format("woff2");
}

/* Один тёмно-синий #0B2A6F, белый и акцент Cielo #9CBDFF. Оранжевого нет. */
:root {
  color-scheme: dark;
  --bg: #0b2a6f;
  --bg-2: #0b2a6f;
  --ink: #ffffff;
  --muted: #ffffff;
  --accent: #ffffff;
  --accent-ink: #0b2a6f;
  --marker: #9cbdff;
  --line: rgba(255, 255, 255, 0.22);
  --header: #0b2a6f;
  --card: #0b2a6f;
  --link: #9cbdff;
  --gap: rgba(255, 255, 255, 0.08);
  --slot: #0b2a6f;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Nunito, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 78% 46% at 96% -8%, rgba(156, 189, 255, var(--wash-soft)), transparent 58%),
    radial-gradient(ellipse 46% 38% at -6% 22%, rgba(176, 160, 255, var(--wash-soft)), transparent 62%),
    radial-gradient(ellipse 52% 40% at 108% 84%, rgba(70, 120, 220, var(--wash-soft)), transparent 60%),
    linear-gradient(180deg, #0a2768 0%, #0b2a6f 36%, #12357f 70%, #0a2768 100%);
  color: var(--ink);
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  font-weight: 800;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  background: color-mix(in srgb, var(--header) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.platform-bar {
  display: none;
  justify-content: center;
  padding: 0 0 12px;
}

html.js .platform-bar {
  display: flex;
}

.copy-android {
  display: none;
}

html.platform-android .copy-iphone {
  display: none;
}

html.platform-android .copy-android {
  display: revert;
}

.platform-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 0;
  max-width: 100%;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}

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

.platform-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
}

.platform-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.platform-option:has(input:checked) {
  background: var(--accent);
  color: var(--accent-ink);
}

.platform-option:has(input:focus-visible) {
  outline: 3px solid var(--marker);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

nav.primary ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 8px 0;
}

nav.primary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--ink);
}

main section {
  padding: 72px 0;
}

.hero {
  padding: 88px 0 36px;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  margin: 0 0 0.4em;
  max-width: 14em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  margin: 0 0 0.45em;
  max-width: 16em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
  max-width: 40rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
}

.slogan {
  margin: 0 0 0.85em;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--marker);
  letter-spacing: -0.02em;
}

.actions {
  margin-top: 1.4em;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 800;
  cursor: default;
  text-decoration: none;
}

a.btn {
  cursor: pointer;
}

a.btn:hover {
  color: var(--accent-ink);
}

.text-link {
  font-weight: 800;
}

.block-grid {
  display: grid;
  gap: 36px;
  align-items: start;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px 32px;
}

.phone {
  width: min(270px, 100%);
  margin: 0;
}

/* Frames match ghofi design/target-v6/device-frames/metrics.json.
   iPhone canvas 480×972, well x=24 y=20 430×932 r=47. The screenshot
   already includes the Dynamic Island, so the frame does not draw one.
   Pixel canvas 478×980, well x=23 y=28 430×932 r=36. */
.device {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.32));
}

.device picture {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}

.device img {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: fill;
  background: var(--bg-2);
}

.device::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--device-frame) center / 100% 100% no-repeat;
  pointer-events: none;
}

.device--iphone {
  aspect-ratio: 480 / 972;
  --device-frame: url("../device-frames/iphone.svg");
}

.device--iphone img {
  left: calc(24 / 480 * 100%);
  top: calc(20 / 972 * 100%);
  width: calc(430 / 480 * 100%);
  height: calc(932 / 972 * 100%);
  border-radius: calc(47 / 430 * 100%) / calc(47 / 932 * 100%);
}

.device--pixel {
  display: none;
  aspect-ratio: 478 / 980;
  --device-frame: url("../device-frames/pixel.svg");
}

.device--pixel img {
  left: calc(23 / 478 * 100%);
  top: calc(28 / 980 * 100%);
  width: calc(430 / 478 * 100%);
  height: calc(932 / 980 * 100%);
  border-radius: calc(36 / 430 * 100%) / calc(36 / 932 * 100%);
}

html.platform-android .device--iphone {
  display: none;
}

html.platform-android .device--pixel {
  display: block;
}

.screen-gap {
  display: block;
  width: 100%;
  border-radius: 26px;
  background: var(--bg-2);
  aspect-ratio: 430 / 932;
}

.phone figcaption {
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.steps,
.faq {
  margin: 0.2em 0 1em;
  padding-left: 1.3em;
  max-width: 40rem;
  color: var(--muted);
}

.steps li,
.faq li {
  margin: 0 0 0.7em;
  padding-left: 0.25em;
}

.steps li::marker,
.faq li::marker {
  color: var(--marker);
  font-weight: 800;
}

.faq {
  list-style: decimal;
  display: grid;
  gap: 14px;
  padding-left: 0;
  max-width: none;
}

.faq li {
  list-style: decimal inside;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px 8px;
}

.faq li p {
  max-width: none;
}

.site-footer {
  padding: 28px 0 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 18px;
}

@media (min-width: 960px) {
  .block-grid.single {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 72px;
  }

  .block.hero .block-grid {
    align-items: center;
  }

  main section {
    padding: 80px 0;
  }

  .hero {
    padding: 96px 0 20px;
  }

  .hero + .block {
    padding-top: 36px;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  html.js nav.primary {
    display: none;
    width: 100%;
    padding-bottom: 12px;
  }

  html.js nav.primary.is-open {
    display: block;
  }

  nav.primary ul {
    flex-direction: column;
    align-items: stretch;
  }

  nav.primary a {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  body {
    font-size: 1.05rem;
  }

  main section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 12px;
  }
}

/* v2: пустая рамка. Картинка — assets/screens-v2/<id>.png.
   Прозрачный файл показывает подпись; снимок того же имени закрывает её. */
.page-v2 h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.45rem);
  max-width: 16em;
}

.page-v2 .lead {
  color: var(--ink);
  font-size: 1.28rem;
}

.soon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5em;
  padding: 0.32em 0.72em 0.36em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: 0.28em;
  white-space: nowrap;
}

.soon::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.42em;
  border-radius: 50%;
  background: currentColor;
}

.points {
  margin: 0.2em 0 0.4em;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.points li {
  position: relative;
  margin: 0 0 0.95em;
  padding-left: 1.2em;
  color: var(--muted);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.48em;
  height: 0.48em;
  border-radius: 50%;
  background: var(--marker);
}

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

.faq p.pending {
  display: inline-block;
  margin: 0.15em 0 0.8em;
  padding: 0.12em 0.55em;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--ink);
  font-weight: 800;
}

.device--slot .slot-face {
  position: absolute;
  z-index: 0;
  left: calc(24 / 480 * 100%);
  top: calc(20 / 972 * 100%);
  width: calc(430 / 480 * 100%);
  height: calc(932 / 972 * 100%);
  overflow: hidden;
  border-radius: calc(47 / 430 * 100%) / calc(47 / 932 * 100%);
  background: var(--slot);
}

.device--slot .slot-caption {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 22% 11% 26%;
  max-width: none;
  text-align: center;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.device--slot img {
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
}

html.platform-android .page-v2 .device--iphone {
  display: block;
}

.page-v2 .phones {
  justify-content: center;
}

.page-v2 .phones.pair {
  align-items: flex-start;
}

.page-v2 .phones.pair .phone {
  width: min(228px, 100%);
}

.phone-slot figcaption {
  margin: 0 auto;
  max-width: 16em;
  padding-top: 10px;
  text-align: center;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
}

@media (min-width: 960px) {
  .page-v2 .block-grid.single,
  .page-v2 .block-grid.many {
    grid-template-columns: minmax(18rem, 1fr) 280px;
    gap: 56px;
    align-items: center;
  }

  .page-v2 .block-grid.many {
    grid-template-columns: minmax(18rem, 1fr) auto;
  }

  .page-v2 .block-grid.flip {
    grid-template-columns: 280px minmax(18rem, 1fr);
  }

  .page-v2 .block-grid.many.flip {
    grid-template-columns: auto minmax(18rem, 1fr);
  }

  .page-v2 .block-grid.flip .phones {
    order: -1;
    justify-content: flex-end;
  }

  .page-v2 .block-grid:not(.flip) .phones {
    justify-content: flex-start;
  }

  .page-v2 .block-grid.many .phone {
    width: min(236px, 46vw);
  }

  .page-v2 .phones.pair {
    flex-wrap: nowrap;
    gap: 16px 22px;
  }

  .page-v2 .phones.pair .phone {
    width: min(220px, 28vw);
  }
}

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

/* Сияние. Статичное, без анимации. Только синий, Cielo и светло-фиолетовый.
   body.glow-b (и страница без класса) — сильный вариант, он же по умолчанию.
   body.glow-a — мягкий. Класс задаёт scripts/build_site.py (GLOW_CLASS). */
:root,
body.glow-b {
  --wash-strong: 0.5;
  --wash-soft: 0.28;
  --halo-cielo: 1;
  --halo-blue: 0.8;
  --halo-violet: 0.58;
  --card-alpha: 0.78;
  --glow-blur: 46px;
  --glow-spread: 2.3;
}

body.glow-a {
  --wash-strong: 0.2;
  --wash-soft: 0.1;
  --halo-cielo: 0.44;
  --halo-blue: 0.26;
  --halo-violet: 0.18;
  --card-alpha: 0.3;
  --glow-blur: 22px;
  --glow-spread: 1.55;
}

html,
body {
  overflow-x: clip;
}

main section {
  position: relative;
  isolation: isolate;
}

main section::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  top: -4%;
  bottom: -4%;
  background:
    radial-gradient(
      ellipse 54% 82% at var(--blob-x, 84%) 48%,
      rgba(156, 189, 255, var(--wash-strong)) 0%,
      rgba(70, 114, 214, var(--wash-soft)) 42%,
      transparent 74%
    ),
    radial-gradient(
      ellipse 38% 52% at var(--blob-x2, 8%) 14%,
      rgba(186, 170, 255, var(--wash-soft)) 0%,
      transparent 72%
    );
}

main section > .wrap {
  position: relative;
  z-index: 1;
}

section.block:has(.block-grid.flip) {
  --blob-x: 16%;
  --blob-x2: 90%;
}

main section:nth-child(3n + 2)::before {
  background:
    radial-gradient(
      ellipse 44% 70% at var(--blob-x, 84%) 46%,
      rgba(120, 156, 245, var(--wash-strong)) 0%,
      rgba(40, 78, 180, var(--wash-soft)) 48%,
      transparent 74%
    ),
    radial-gradient(
      ellipse 30% 42% at var(--blob-x2, 10%) 82%,
      rgba(156, 189, 255, var(--wash-soft)) 0%,
      transparent 70%
    );
}

main section:nth-child(3n)::before {
  background:
    radial-gradient(
      ellipse 42% 68% at var(--blob-x, 82%) 48%,
      rgba(186, 170, 255, var(--wash-strong)) 0%,
      rgba(110, 140, 230, var(--wash-soft)) 46%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 28% 40% at var(--blob-x2, 12%) 18%,
      rgba(156, 189, 255, var(--wash-soft)) 0%,
      transparent 68%
    );
}

section.hero {
  --wash-strong: 0.4;
  --wash-soft: 0.22;
}

body.glow-a section.hero {
  --wash-strong: 0.16;
  --wash-soft: 0.08;
}

section.hero::before {
  top: -8%;
  bottom: -10%;
  background:
    radial-gradient(
      ellipse 58% 86% at var(--blob-x, 76%) 46%,
      rgba(156, 189, 255, var(--wash-strong)) 0%,
      rgba(96, 138, 236, var(--wash-soft)) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 42% 56% at 18% 6%,
      rgba(196, 180, 255, var(--wash-soft)) 0%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 36% 42% at 64% 100%,
      rgba(48, 92, 196, var(--wash-soft)) 0%,
      transparent 72%
    );
}

.phone {
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 3%;
  width: calc(var(--glow-spread) * 100%);
  height: 56%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 44%,
    rgba(214, 230, 255, var(--halo-cielo)) 0%,
    rgba(132, 172, 255, var(--halo-blue)) 30%,
    rgba(176, 154, 255, var(--halo-violet)) 54%,
    transparent 78%
  );
  filter: blur(var(--glow-blur));
}

.hero .phone::before {
  top: 0;
  width: calc((var(--glow-spread) + 0.35) * 100%);
  height: 62%;
  filter: blur(calc(var(--glow-blur) + 8px));
}

.device,
.phone > figcaption {
  position: relative;
  z-index: 1;
}

main section:nth-child(3n) .phone::before {
  background: radial-gradient(
    ellipse at 50% 46%,
    rgba(214, 204, 255, var(--halo-cielo)) 0%,
    rgba(156, 140, 245, var(--halo-violet)) 38%,
    rgba(120, 160, 255, var(--halo-blue)) 58%,
    transparent 74%
  );
}

main section:nth-child(3n + 2) .phone::before {
  background: radial-gradient(
    ellipse at 50% 48%,
    rgba(176, 208, 255, var(--halo-cielo)) 0%,
    rgba(70, 120, 230, var(--halo-blue)) 40%,
    rgba(156, 189, 255, var(--halo-violet)) 60%,
    transparent 76%
  );
}

.faq li {
  position: relative;
}

.faq li::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -26px -16px;
  border-radius: 32px;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 42%,
    rgba(198, 216, 255, var(--card-alpha)) 0%,
    rgba(176, 160, 255, var(--wash-soft)) 48%,
    transparent 74%
  );
  filter: blur(var(--glow-blur));
}
