:root {
  --ink: #14202e;
  --ink-soft: #39495a;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #d9ded8;
  --mint: #cde8d6;
  --mint-strong: #4da874;
  --blue: #4c6bdc;
  --blue-soft: #dbe4ff;
  --coral: #ff7a5c;
  --coral-soft: #ffe3dc;
  --gold: #f1c75b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(20, 32, 46, 0.08);
  backdrop-filter: blur(16px);
}

.site-header--overlay {
  position: absolute;
  width: 100%;
  background: linear-gradient(180deg, rgba(20, 32, 46, 0.46), rgba(20, 32, 46, 0));
  border-bottom: 0;
  color: var(--white);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.site-header--overlay .brand-mark {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
}

.page .site-nav a:hover,
.page .site-nav a:focus-visible,
.page .site-nav a[aria-current="page"] {
  background: var(--blue-soft);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 112px 32px 56px;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 15, 24, 0.82), rgba(9, 15, 24, 0.42) 48%, rgba(9, 15, 24, 0.08)),
    linear-gradient(0deg, rgba(9, 15, 24, 0.45), rgba(9, 15, 24, 0.08) 45%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 5rem;
  line-height: 0.94;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  line-height: 1.65;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.button--primary {
  background: var(--white);
  color: var(--ink);
}

.button--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.button--dark {
  background: var(--ink);
  color: var(--white);
}

.button--on-light {
  background: var(--blue);
  color: var(--white);
}

.section {
  padding: 82px 32px;
}

.section--intro {
  padding-top: 62px;
  background: var(--white);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(780px, 100%);
}

.intro-grid,
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: start;
}

.large-copy,
.download-card p,
.page-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 34px;
}

.feature-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.support-card {
  min-height: 244px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20, 32, 46, 0.04);
}

.feature-card p,
.support-card p,
.faq-list p,
.legal-content p,
.content-aside p {
  color: var(--ink-soft);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 7px;
  font-weight: 900;
}

.feature-icon--mint {
  background: var(--mint);
  color: #216044;
}

.feature-icon--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.feature-icon--coral {
  background: var(--coral-soft);
  color: #a33b27;
}

.section--download {
  background:
    linear-gradient(90deg, rgba(205, 232, 214, 0.86), rgba(219, 228, 255, 0.9)),
    var(--white);
}

.download-panel {
  align-items: center;
}

.download-card {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: 28px;
  border: 1px solid rgba(20, 32, 46, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(20, 32, 46, 0.08);
}

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

.download-points li {
  padding: 8px 10px;
  border: 1px solid rgba(20, 32, 46, 0.12);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.app-store-badge {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: #05070a;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  transform: translateY(-1px);
}

.app-store-badge--dark {
  border-color: #05070a;
}

.store-badge-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--white);
  color: #05070a;
  font-weight: 900;
}

.store-badge-text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.store-badge-text span {
  font-size: 0.75rem;
  font-weight: 700;
}

.store-badge-text strong {
  font-size: 1.42rem;
  font-weight: 900;
}

.site-footer {
  padding: 30px 32px;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand--footer .brand-mark {
  background: var(--white);
  color: var(--ink);
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.page-hero {
  padding: 96px 32px 64px;
  background:
    linear-gradient(90deg, rgba(205, 232, 214, 0.86), rgba(219, 228, 255, 0.88)),
    var(--paper);
}

.page-hero--support {
  background:
    linear-gradient(90deg, rgba(255, 227, 220, 0.92), rgba(219, 228, 255, 0.86)),
    var(--paper);
}

.page-hero h1,
.not-found h1 {
  font-size: 3.6rem;
  color: var(--ink);
}

.page-lede {
  margin-top: 18px;
  max-width: 720px;
}

.page-hero .button {
  margin-top: 28px;
}

.content-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.content-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.content-aside h2 {
  font-size: 1.15rem;
}

.content-aside .button {
  margin-top: 12px;
  width: 100%;
}

.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  margin-top: 0;
  padding-top: 8px;
  font-size: 1.45rem;
}

.legal-content h2 + p {
  margin-top: 12px;
}

.legal-content p + h2 {
  margin-top: 38px;
}

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

.support-card {
  min-height: 230px;
}

.support-card h2 {
  font-size: 1.2rem;
}

.support-card a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.section--faq {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.faq-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.not-found {
  min-height: 68svh;
  display: grid;
  align-items: center;
  padding: 64px 32px;
}

@media (max-width: 880px) {
  .site-header {
    padding: 14px 18px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 0.9rem;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding: 96px 20px 44px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(9, 15, 24, 0.86), rgba(9, 15, 24, 0.32)),
      linear-gradient(90deg, rgba(9, 15, 24, 0.55), rgba(9, 15, 24, 0.18));
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .section,
  .page-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro-grid,
  .download-panel,
  .content-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .support-card {
    min-height: auto;
  }

  .download-card {
    padding: 22px;
  }

  .content-aside {
    position: static;
  }

  .page-hero h1,
  .not-found h1 {
    font-size: 2.7rem;
  }

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

@media (max-width: 430px) {
  .site-nav a {
    font-size: 0.84rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-actions,
  .hero-actions .button,
  .hero-actions .app-store-badge,
  .page-hero .button {
    width: 100%;
  }

  .app-store-badge {
    justify-content: center;
  }
}
