:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --bg-alt: #eef2f9;
  --panel: #ffffff;
  --ink: #142033;
  --muted: #526176;
  --line: #d9e0eb;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --green: #0f766e;
  --ok-bg: #dcfce7;
  --ok-ink: #14532d;
  --soon-bg: #fef3c7;
  --soon-ink: #78350f;
  --code-bg: #101827;
  --code-ink: #eef4ff;
  --shadow: 0 24px 70px rgba(31, 45, 68, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #111933;
    --panel: #141d36;
    --ink: #eaf0fb;
    --muted: #9fb0cc;
    --line: #27324f;
    --accent: #5b8cff;
    --accent-dark: #93b4ff;
    --green: #5eead4;
    --ok-bg: #0d3b2a;
    --ok-ink: #7bf1c4;
    --soon-bg: #3b2e0d;
    --soon-ink: #fcd34d;
    --code-bg: #060a16;
    --code-ink: #dbe7ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  background: var(--accent);
  border-radius: 0 0 8px 0;
  color: #fff;
  left: 0;
  padding: 10px 16px;
  position: absolute;
  top: -100px;
  z-index: 50;
}

.skip-link:focus {
  top: 0;
}

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

/* ---------- header ---------- */

.site-header {
  align-items: center;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px clamp(20px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  font-size: 1rem;
  font-weight: 760;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
  height: 36px;
  width: 36px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 650;
  gap: 18px;
  justify-content: flex-end;
}

.site-header nav a,
.site-footer a,
.text-link {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover,
.text-link:hover {
  text-decoration: underline;
}

/* ---------- layout ---------- */

main {
  overflow: hidden;
}

section[id] {
  scroll-margin-top: 86px;
}

@media (max-width: 900px) {
  section[id] {
    scroll-margin-top: 16px;
  }
}

.hero,
.get-section,
.problem-section,
.how-section,
.features-section,
.shots-section,
.ipad-section,
.russian-section,
.faq-section,
.site-footer {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.get-section,
.problem-section,
.how-section,
.features-section,
.shots-section,
.ipad-section,
.russian-section,
.faq-section {
  padding-bottom: 88px;
  padding-top: 88px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

h3 {
  font-size: 1.06rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 16px 0 0;
}

/* ---------- hero ---------- */

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  padding-bottom: 72px;
  padding-top: clamp(48px, 7vw, 88px);
}

.hero-lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  margin: 0 0 28px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 8px 22px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.trust-row li::before {
  color: var(--green);
  content: "✓ ";
  font-weight: 800;
}

.hero-visual img {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
}

/* ---------- buttons ---------- */

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  font-weight: 740;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.button.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--accent-dark);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.button.block {
  display: flex;
  width: 100%;
}

.button.disabled {
  background: var(--bg-alt);
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

/* ---------- download ---------- */

.platform-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 36px;
}

.platform-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.platform-card.available {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.platform-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.platform-head h3 {
  margin: 0;
}

.pill {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.pill.soon {
  background: var(--soon-bg);
  color: var(--soon-ink);
}

.platform-card > p {
  color: var(--muted);
  margin: 0 0 16px;
}

.platform-card > p:first-of-type {
  flex: 1;
}

.platform-card .or {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
  text-align: center;
}

.platform-card .small {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 14px 0 0;
}

.platform-card .text-link {
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- problem ---------- */

.problem-section {
  background: var(--bg-alt);
  display: grid;
  gap: 24px 46px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  max-width: none;
  padding-left: max(clamp(20px, 4vw, 56px), calc(50% - 590px));
  padding-right: max(clamp(20px, 4vw, 56px), calc(50% - 590px));
}

.problem-section p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0 0 16px;
}

.problem-section p:last-child {
  margin-bottom: 0;
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.step-n {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  margin-bottom: 14px;
  width: 32px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

/* ---------- features / faq / russian ---------- */

.feature-list,
.russian-grid,
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.feature-list,
.russian-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list article,
.russian-grid article,
.faq-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.feature-list p,
.russian-grid p,
.faq-list p {
  color: var(--muted);
  margin: 0;
}

.russian-section {
  background: var(--bg-alt);
  max-width: none;
  padding-left: max(clamp(20px, 4vw, 56px), calc(50% - 590px));
  padding-right: max(clamp(20px, 4vw, 56px), calc(50% - 590px));
}

.ru-cta {
  margin: 32px 0 0;
}

/* ---------- screenshots ---------- */

.shot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.shot-grid figure {
  margin: 0;
}

.shot-grid img {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(31, 45, 68, 0.1);
  display: block;
  width: 100%;
}

.shot-grid figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 12px;
}

.ipad-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- code ---------- */

pre {
  background: var(--code-bg);
  border-radius: 10px;
  color: var(--code-ink);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 14px 0 0;
  overflow-x: auto;
  padding: 16px;
  white-space: pre;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.text-link {
  display: inline-block;
  font-weight: 740;
}

/* ---------- footer ---------- */

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 36px;
  padding-top: 36px;
}

.site-footer p {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .steps,
  .feature-list,
  .russian-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    position: static;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .hero,
  .problem-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .platform-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .ipad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .steps,
  .feature-list,
  .russian-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .get-section,
  .problem-section,
  .how-section,
  .features-section,
  .shots-section,
  .ipad-section,
  .russian-section,
  .faq-section {
    padding-bottom: 60px;
    padding-top: 60px;
  }

  pre {
    font-size: 0.74rem;
  }
}

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