:root {
  --bg: #14174a;
  --bg-header: #0a0d2e;
  --surface: #1c2158;
  --border: #2e3468;
  --accent: #ffb547;
  --white: #ffffff;
  --text-muted: #c8c4d8;
  --text-faint: #8a86a0;
  --font-heading: "Barlow Semi Condensed", "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --content-max: 760px;
  --page-max: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--bg);
}

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

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

a:hover {
  color: var(--white);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.logo img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: 9999px;
  padding: 0.625rem 1.125rem;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: var(--bg);
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-header);
  padding: 0.875rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu__section-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: right;
  width: 100%;
  margin-bottom: 0.5rem;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.mobile-menu__links a {
  font-size: 1.25rem;
  color: var(--white);
}

.mobile-menu__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0 1.25rem;
}

.mobile-menu__footer a {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.mobile-menu__copyright {
  margin-top: 1.5rem;
  font-size: 0.6875rem;
  color: var(--text-faint);
  text-align: right;
  width: 100%;
}

main {
  flex: 1;
}

.section {
  padding: 3rem 1.25rem;
}

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

.section__inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--content-max);
}

.section__inner--center {
  text-align: center;
}

.eyebrow {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero .section__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__video-wrap {
  margin: 0 auto;
  width: min(280px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.store-badge-btn {
  display: inline-flex;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.375rem;
}

.store-badge-btn:hover {
  opacity: 0.92;
}

.app-store-badge {
  width: 140px;
  height: auto;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  visibility: hidden;
  pointer-events: none;
}

.download-modal[data-open="true"] {
  visibility: visible;
  pointer-events: auto;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgb(0 0 0 / 62%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.download-modal[data-open="true"] .download-modal__backdrop {
  opacity: 1;
}

.download-modal__panel {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(90vh, 40rem);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgb(0 0 0 / 45%);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.download-modal[data-open="true"] .download-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.download-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.download-modal__close:hover {
  color: var(--white);
}

.download-modal__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  margin: 0 2rem 0.75rem 0;
  line-height: 1.1;
}

.download-modal__message {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.download-modal__submit {
  width: 100%;
  padding: 0.8125rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.download-modal__submit:hover {
  filter: brightness(1.05);
}

.download-modal__steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.download-modal__step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.download-modal__step-num {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  background: rgb(255 255 255 / 8%);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.download-modal__step-title {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

.download-modal__step-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.download-modal__submit--link {
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  color: var(--bg);
}

.download-modal__ios-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-modal__submit--app-store {
  background: #007aff;
  color: var(--white);
}

.download-modal__submit--app-store:hover {
  color: var(--white);
  filter: brightness(1.06);
}

.download-modal__submit--link[hidden],
.download-modal__invite-hint[hidden] {
  display: none;
}

.download-modal__invite-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-faint);
  text-align: center;
}

.steps {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.125rem;
}

.card--bg {
  background: var(--bg);
}

.section--platforms .section__inner--narrow {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .section--platforms .section__inner--narrow {
    grid-template-columns: 1fr 1fr;
  }
}

.card__label {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item .faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.faq-item .faq-a {
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

.site-footer {
  background: var(--surface);
  padding: 2rem 1.25rem;
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.site-footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  margin: 0;
}

.page-article h1 {
  margin-bottom: 0.5rem;
}

.page-meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.legal-section {
  margin-bottom: 1.25rem;
}

.legal-section h2 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.troubleshoot-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.troubleshoot-stack ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.troubleshoot-stack li {
  margin-bottom: 0.35rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 0.75rem;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    margin-left: auto;
    justify-content: flex-end;
  }

  .nav-cta {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .site-header {
    padding: 1.25rem 4rem;
  }

  .section {
    padding: 4rem;
  }

  .hero .section__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero__copy {
    text-align: left;
  }

  .hero__actions {
    align-items: flex-start;
  }

  .hero__video-wrap {
    width: min(315px, 100%);
    margin: 0;
    margin-left: auto;
  }

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

  .site-footer__row {
    flex-direction: row;
    justify-content: space-between;
  }

  .copyright {
    text-align: left;
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}