:root {
  --primary: #1b2559;
  --primary-dark: #121a3d;
  --primary-mid: #2d3f6e;
  --primary-light: #eef1f8;
  --accent-gold: #c4a962;
  --text: #1a1a2e;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --bg: #ffffff;
  --bg-grouped: #f7f8fc;
  --card: #ffffff;
  --separator: #e5e7eb;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(27, 37, 89, 0.08);
  --shadow-lg: 0 24px 64px rgba(27, 37, 89, 0.12);
  --max-width: 1080px;
  --nav-height: 52px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.25rem 5rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 55%);
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 900px;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(27, 37, 89, 0.08) 0%,
    transparent 70%
  );
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 32px rgba(27, 37, 89, 0.15));
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--primary);
}

.hero-tagline,
.hero-lead {
  margin: 0 auto 1.5rem;
  max-width: 540px;
  font-size: 1.125rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
}

.hero-compact {
  padding: 3rem 1.25rem 2.5rem;
}

.hero-compact .hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
}

.hero-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 0 auto;
}

.hero-version {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-light);
}

.hero-lead-promo {
  font-size: 1.2rem;
  color: var(--text);
}

.marketing-meta {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin: 0 auto;
  max-width: 520px;
  text-align: left;
}

.app-meta div {
  min-width: 140px;
}

.app-meta dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

.app-meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.app-meta code {
  font-size: 0.8rem;
  word-break: break-all;
}

.section-narrow {
  max-width: 640px;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.section-intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.prose {
  margin-bottom: 1.5rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.prose-note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--separator);
}

.feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--separator);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.feature-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--primary);
  font-weight: 600;
}

.store-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.store-ios-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.store-ios-note code {
  font-size: 0.8rem;
}

.legal-article code,
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--primary-light);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* Store badges */
.store-badge {
  display: inline-flex;
  transition: transform 0.2s ease, opacity 0.2s;
}

.store-badge:hover {
  transform: scale(1.03);
  text-decoration: none;
}

.store-badge img,
.store-badge svg {
  height: 48px;
  width: auto;
  display: block;
}

.store-badge.coming-soon {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

.store-badge.coming-soon:hover {
  transform: none;
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.section h2 {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.section-desc {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

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

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--separator);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Download CTA band */
.download-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.download-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.download-band p {
  margin: 0 auto 1.75rem;
  max-width: 480px;
  opacity: 0.9;
  font-size: 1.05rem;
}

.download-band .hero-cta {
  margin-top: 0;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--separator);
  background: var(--bg-grouped);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer nav {
  margin-bottom: 0.75rem;
}

.site-footer nav a {
  margin: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer nav a:hover {
  color: var(--primary);
}

/* Legal pages */
.legal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.legal-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.legal-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.legal-main {
  max-width: 720px;
  margin: -1.25rem auto 3rem;
  padding: 0 1rem;
}

.legal-article {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--separator);
}

.legal-article h2 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article p,
.legal-article li {
  font-size: 0.95rem;
}

.legal-article ul {
  padding-left: 1.25rem;
}

.updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links .hide-mobile {
    display: none;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .store-badge img,
  .store-badge svg {
    height: 44px;
  }
}
