:root {
  --bg: #fbfbfc;
  --ink: #14141a;
  --muted: #5c5c68;
  --faint: #8a8a96;
  --line: #e9e9ef;
  --soft: #f4f3ff;
  --track: #eeeef2;
  --white: #ffffff;
  --brand: #5034ff;
  --brand-deep: #3b21d6;
  --brand-light: #6d55ff;
  --brand-ink: #2a1a8f;
  --radius-hero: 36px;
  --radius-panel: 32px;
  --shadow-phone: 0 30px 70px rgba(20, 20, 40, 0.14);
  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

html.lang-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
}

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

::selection {
  background: var(--brand);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

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

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  border-radius: 19px 19px 2px 19px;
  background: linear-gradient(135deg, oklch(0.62 0.24 275 / 0.7), oklch(0.44 0.26 279 / 0.95));
  box-shadow: inset 1px 1px 1.5px rgba(255, 255, 255, 0.7), 0 4px 9px oklch(0.45 0.24 277 / 0.3);
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand-check {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 18px;
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lang-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--track);
  border-radius: 999px;
}

.lang-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  background: transparent;
  color: #7a7a86;
}

.lang-btn.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.14);
}

.page {
  padding: 0 0 120px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 76px 60px 0;
  margin-top: 28px;
  border-radius: var(--radius-hero);
  background: linear-gradient(165deg, #3b21d6 0%, #5034ff 58%, #6d55ff 100%);
  overflow: hidden;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.lede {
  margin: 26px 0 0;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  text-wrap: pretty;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.store-row--center {
  justify-content: center;
}

.store-badge {
  display: block;
  flex: none;
  line-height: 0;
}

.store-badge:hover {
  color: inherit;
  opacity: 0.92;
}

.store-badge__img {
  display: block;
  height: 40px;
  width: auto;
}

.hero-actions .store-row {
  margin-top: 38px;
}

.hero-actions {
  margin-bottom: 46px;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-self: end;
}

.phone {
  overflow: hidden;
  background: #f2f2f7;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.phone--hero {
  width: min(330px, 100%);
  margin-bottom: -70px;
  border-radius: 52px 52px 0 0;
  box-shadow: 0 -20px 70px rgba(12, 8, 50, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.16);
}

.phone--card {
  width: min(280px, 100%);
  border-radius: 44px;
  box-shadow: var(--shadow-phone), 0 0 0 7px #fff;
}

.features {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding-top: 80px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 0 0 88px;
}

.feature--flip .feature-media {
  order: -1;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.feature-copy p {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
  text-wrap: pretty;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.steps {
  background: var(--soft);
  border-radius: var(--radius-panel);
  padding: 64px 56px;
}

.steps h2 {
  margin: 0 0 44px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

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

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.steps h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
}

.steps p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.cta {
  padding: 96px 0 0;
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta p {
  margin: 18px auto 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
}

.cta .store-row {
  margin-top: 34px;
}

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

.footer-tag {
  margin: 0;
  font-size: 15px;
  color: var(--faint);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 15px;
}

.legal {
  padding: 72px 0 0;
  max-width: 68ch;
}

.legal h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.2em;
}

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

  .hero {
    gap: 36px;
    padding: 56px 40px 0;
  }

  .phone--hero {
    width: min(280px, 100%);
    border-radius: 44px 44px 0 0;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 44px 32px 0;
    gap: 24px;
  }

  .hero-copy,
  .hero-actions {
    width: 100%;
  }

  .hero-actions {
    margin-bottom: 8px;
  }

  .hero-actions .store-row {
    justify-content: center;
    margin-top: 24px;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-media {
    justify-content: center;
    width: 100%;
  }

  .phone--hero {
    width: min(300px, 72vw);
    margin-bottom: -56px;
    box-shadow: 0 -16px 50px rgba(12, 8, 50, 0.3);
  }

  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .feature--flip .feature-media {
    order: 0;
  }

  .feature-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .steps {
    padding: 48px 36px;
  }

  .steps-grid {
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-bar {
    padding-top: 20px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-mark,
  .brand-pin {
    width: 32px;
    height: 32px;
  }

  .brand-pin {
    border-radius: 16px 16px 2px 16px;
  }

  .brand-check {
    width: 8px;
    height: 14px;
    border-right-width: 4px;
    border-bottom-width: 4px;
  }

  .page {
    padding-bottom: 72px;
  }

  .hero {
    margin-top: 16px;
    padding: 28px 20px 0;
    border-radius: 24px;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.2vw, 34px);
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    padding: 6px 12px;
  }

  .lede {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    margin-bottom: 4px;
  }

  .hero-actions .store-row {
    margin-top: 20px;
  }

  .store-badge__img {
    height: 36px;
  }

  .phone--hero {
    width: min(250px, 70vw);
    margin-bottom: -40px;
    border-radius: 40px 40px 0 0;
  }

  .features {
    margin-top: 48px;
    padding-top: 48px;
  }

  .feature {
    padding-bottom: 56px;
  }

  .feature-copy p,
  .steps p,
  .cta p {
    font-size: 16px;
  }

  .phone--card {
    width: min(240px, 72vw);
    border-radius: 36px;
  }

  .steps {
    padding: 36px 22px;
    border-radius: 24px;
  }

  .steps h2 {
    margin-bottom: 28px;
  }

  .cta {
    padding-top: 64px;
  }

  .site-footer {
    margin-top: 64px;
    padding-top: 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .footer-nav {
    gap: 20px;
  }

  .legal {
    padding-top: 48px;
  }
}

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