:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eaf0f8;
  --text: #131a24;
  --muted: #4f5f75;
  --border: #d5dfeb;
  --brand: #1565d8;
  --brand-strong: #0d4ca8;
  --shadow: 0 8px 30px rgba(14, 25, 38, 0.08);
  --radius: 18px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 10%, #d8e8ff 0, transparent 28%),
    radial-gradient(circle at 15% 20%, #e7f0ff 0, transparent 24%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--brand-strong);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffb11e;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #101720;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  z-index: 999;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.nav-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-list a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.hero-grid,
.split-grid,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid,
.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.reverse {
  direction: rtl;
}

.reverse > * {
  direction: ltr;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--brand-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.lead {
  font-size: 1.1rem;
  color: #334a66;
  max-width: 56ch;
}

.button-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
}

.app-store-badge {
  width: 180px;
  height: auto;
  display: block;
}

.app-store-badge-link:hover {
  opacity: 0.92;
}

.hero-image-card,
.screen-card {
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  justify-content: center;
}

.hero-image-card img {
  width: min(100%, 320px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.screen-card img {
  width: min(100%, 280px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

.prose {
  max-width: 760px;
}

.prose p,
.prose li {
  color: #26364b;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.muted {
  color: #334a66;
}

.faq-list {
  margin-bottom: 2rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.75rem;
}

.faq-list summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.faq-list details p {
  margin: 0.7rem 0 0.2rem;
}

@media (prefers-contrast: more) {
  .site-header {
    background: #ffffff;
  }

  .section-alt {
    background: #ffffff;
  }

  .btn-secondary,
  .faq-list details {
    border-color: #7b8da6;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .split-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 0.6rem 0;
    flex-wrap: wrap;
  }

  .site-header {
    position: static;
  }

  .section {
    padding: 3.4rem 0;
  }
}
