@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/archivo-latin-wght.woff2') format('woff2');
}

:root {
  --navy: #14273a;
  --navy-soft: #1f3a55;
  --navy-line: #3a5470;
  --red: #cc1f1f;
  --red-dark: #a8191a;
  --gold: #b8986a;
  --warm: #f2f0ec;
  --card: #ffffff;
  --border: #e5e2da;
  --text: #14273a;
  --muted: #5a6672;
  --on-navy: #c3cbd4;
  --radius: 14px;
  --shell: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--warm);
  color: var(--text);
  font-family:
    'Archivo',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--red);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-dark);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--card);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 50;
  font-weight: 700;
}

.skip:focus {
  top: 16px;
}

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

.topbar {
  background: var(--navy);
  color: #fff;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: #fff;
}

.brand svg {
  flex: none;
}

.topnav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  color: var(--on-navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}

.topnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 0 55%;
  background: linear-gradient(105deg, transparent 0 18%, #182f46 18% 60%, var(--navy-soft) 60%);
  pointer-events: none;
}

.hero .shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}

.hero-copy {
  padding-bottom: 72px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}

.hero h1 span {
  color: var(--gold);
}

.lead {
  font-size: 19px;
  color: var(--on-navy);
  max-width: 34em;
  margin: 0 0 28px;
}

.rule {
  width: 56px;
  height: 4px;
  background: var(--red);
  border: 0;
  margin: 0 0 24px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.badge small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.badge:hover {
  color: var(--navy);
  transform: translateY(-2px);
}

.badge[href=''],
.badge[href$='_STORE_URL'] {
  display: none;
}

.badge-soon {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

.badges:has(.badge[href^='http']) ~ .badge-soon {
  display: none;
}

.badge-note {
  color: var(--on-navy);
  font-size: 14px;
  margin: 14px 0 0;
}

.hero-phones {
  position: relative;
  height: 520px;
}

.hero-phones .phone {
  position: absolute;
  bottom: -40px;
}

.hero-phones .phone:nth-child(1) {
  left: 0;
  width: 200px;
  transform: rotate(-6deg) translateY(30px);
  opacity: 0.9;
}

.hero-phones .phone:nth-child(2) {
  left: 50%;
  width: 250px;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-phones .phone:nth-child(3) {
  right: 0;
  width: 200px;
  transform: rotate(6deg) translateY(30px);
  opacity: 0.9;
}

.phone {
  position: relative;
  aspect-ratio: 1320 / 2868;
  padding: 3.2%;
  border-radius: 13% / 6%;
  background: #12161b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 30px 60px rgba(9, 18, 28, 0.35);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10.5% / 4.9%;
  background: var(--warm);
}

section {
  scroll-margin-top: 16px;
}

.features {
  padding: 32px 0;
}

.feature {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.feature:last-child {
  border-bottom: 0;
}

.feature.flip {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.feature.flip .phone {
  order: 2;
}

.feature .phone {
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

.feature h2,
.block h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}

.tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}

.feature p {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 34em;
}

.points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.points li {
  position: relative;
  padding-left: 28px;
}

.points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--red);
}

.block {
  padding: 80px 0;
}

.block.alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.block .intro {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 36px;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

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

.signup .phone {
  width: 100%;
  max-width: 280px;
  justify-self: center;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 700;
  font-size: 18px;
  position: relative;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

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

.contact {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.contact h2 {
  margin: 0 0 8px;
}

.contact p {
  margin: 0;
  color: var(--on-navy);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 10px;
  white-space: nowrap;
}

.button:hover {
  background: var(--red-dark);
  color: #fff;
}

.footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer a {
  color: var(--navy);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.download {
  background: var(--navy);
  color: #fff;
  padding: 72px 24px 96px;
  min-height: calc(100vh - 180px);
}

.download-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.download h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}

.download .rule {
  margin: 0 auto 28px;
}

.download .lead {
  margin: 0 auto 28px;
}

.download .badges {
  justify-content: center;
  margin-bottom: 28px;
}

.qr {
  display: inline-flex;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 28px;
}

.download-qr {
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.download-fallback {
  color: var(--on-navy);
  font-size: 15px;
  margin: 24px 0 0;
}

.download-fallback a {
  color: #fff;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid var(--navy-line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

[hidden] {
  display: none !important;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.doc h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 36px;
}

.doc h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 44px 0 10px;
  letter-spacing: -0.01em;
}

.doc h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 6px;
}

.doc p,
.doc li {
  color: #2f3d4b;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
  margin: 12px 0;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.doc th {
  background: #f8f7f4;
  font-weight: 700;
}

.doc tr:last-child td {
  border-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
}

@media (max-width: 900px) {
  .hero .shell,
  .feature,
  .feature.flip,
  .signup,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-bottom: 8px;
  }

  .hero-phones {
    height: 440px;
  }

  .hero-phones .phone:nth-child(1) {
    left: 4%;
    width: 170px;
  }

  .hero-phones .phone:nth-child(2) {
    width: 210px;
  }

  .hero-phones .phone:nth-child(3) {
    right: 4%;
    width: 170px;
  }

  .feature,
  .feature.flip {
    gap: 32px;
    padding: 48px 0;
  }

  .feature.flip .phone {
    order: 0;
  }

  .feature .phone {
    max-width: 240px;
  }

  .signup .phone {
    max-width: 240px;
  }

  .block {
    padding: 56px 0;
  }

  .contact {
    padding: 28px;
  }
}

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

  .shell {
    padding: 0 16px;
  }

  .topnav a:not(.keep) {
    display: none;
  }

  .hero-phones {
    height: 380px;
  }

  .hero-phones .phone:nth-child(1),
  .hero-phones .phone:nth-child(3) {
    display: none;
  }

  .doc {
    padding: 40px 16px 64px;
  }
}

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

  .badge:hover {
    transform: none;
  }

  .spinner {
    animation-duration: 2.4s;
  }
}
