:root {
  --primary: #2e3092;
  --primary-dark: #202267;
  --secondary: #922e2e;
  --text: #1f2937;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-alt: #eff3f8;
  --border: #d6dbe5;
  --background: #f7f8fb;
  --shadow: 0 16px 40px rgba(26, 42, 77, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 219, 229, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  color: var(--primary-dark);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary-dark);
}

h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.hero-text,
.section-heading p,
.feature-card p,
.step p,
.cta-panel p,
.faq-list p {
  color: var(--muted);
}

.hero-text {
  font-size: 1.08rem;
  max-width: 40rem;
  margin: 1rem 0 1.5rem;
}

.hero-summary {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.badge-link {
  display: inline-block;
  line-height: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.badge-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.badge-link img {
  display: block;
}

.badge-link--apple img {
  /* Match the transparent safe-zone padding baked into the Google Play PNG */
  padding: 3px 5px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(26, 42, 77, 0.14);
}

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

.button-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}

.hero-points {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.hero-points li {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
  justify-content: flex-end;
}

.screen-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f2f5fb 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.screen-card ul {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.screen-label {
  margin: 0 0 0.5rem;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screen-card-offset {
  max-width: 82%;
  margin-top: -1rem;
  margin-left: auto;
}

.screenshot-wrap {
  position: relative;
  line-height: 0;
  flex: 1;
  max-width: 210px;
}

.screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  filter: drop-shadow(0 20px 40px rgba(26, 42, 77, 0.15));
}

.screenshot-wrap-offset {
  max-width: 210px;
  margin-top: 0;
  margin-left: 0;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading-compact {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card,
.step,
.cta-panel,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 1.4rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list details {
  padding: 1rem 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-dark);
}

.faq-list p {
  margin: 0.85rem 0 0;
}

.cta-section {
  padding-top: 2rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-layout,
  .card-grid,
  .steps,
  .cta-panel,
  .footer-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-visual {
    justify-content: center;
  }

  .screen-card-offset {
    max-width: 100%;
    margin-top: 1rem;
  }

  .screenshot-wrap {
    max-width: 155px;
  }

  .screenshot-wrap-offset {
    max-width: 155px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .footer-layout {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .section,
  .hero {
    padding: 3rem 0;
  }

  .cta-panel,
  .feature-card,
  .step,
  .screen-card {
    padding: 1.2rem;
  }

  .button {
    width: 100%;
  }

  .cta-row {
    width: 100%;
  }
}
