:root {
  color-scheme: light;
  --bg: #f6f8f9;
  --surface: #ffffff;
  --text: #12181f;
  --muted: #4b5563;
  --accent: #2451b8;
  --accent-text: #ffffff;
  --border: #dde3e8;
  --link: #2451b8;
  --focus: #2451b8;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12181f;
    --surface: #1a2230;
    --text: #f6f8f9;
    --muted: #aab3c0;
    --accent: #2451b8;
    --accent-text: #ffffff;
    --border: #2a3545;
    /* Signal Blue itself fails AA as text on this dark a background —
       fine as a solid button fill (verified against white at ~7:1), but
       link/focus color needs a lighter tint to clear 4.5:1 here. */
    --link: #8fb2f5;
    --focus: #8fb2f5;
  }
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--link);
}

a:not(.btn):hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
}

.site-header nav a:hover {
  text-decoration: underline;
}

/* Sections */
main section {
  padding: 3.5rem 0;
}

main section + section {
  border-top: 1px solid var(--border);
}

.hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero .subhead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

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

h2 {
  font-size: 1.6rem;
  margin: 0 0 1.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

/* Buttons / links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  opacity: 0.92;
}

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

.btn-secondary:hover {
  border-color: var(--accent);
}

.text-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

.step {
  display: flex;
  gap: 1rem;
}

.step-number {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

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

/* Feature grid */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  color: var(--muted);
}

/* Pricing */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  max-width: 36rem;
}

.pricing-card p {
  margin: 0 0 1rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

/* Download cards */
.download-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.download-card .btn {
  margin: 0.75rem 0;
}

.download-card .note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* FAQ */
.faq-list {
  max-width: 48rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
}

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

.footer-links a {
  font-weight: 600;
}

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