:root {
  color-scheme: dark;

  /* Same design tokens as home.css, so this page reads as one system
     with index.html rather than its own separate theme. */
  --bg: #0e1726;
  --bg-alt: #101c30;
  --surface: #16233a;
  --surface-border: #26364f;
  --text: #f4f7fb;
  --muted: #a9b6cb;
  --accent: #ffc233;
  --accent-ink: #0e1726;

  /* Legacy aliases so the rest of this file didn't need a rewrite */
  --bg-card: var(--surface);
  --text-muted: var(--muted);
  --border: var(--surface-border);

  /* Same adaptive layout system as home.css - see its :root comment. */
  --gutter: clamp(16px, 4vw, 48px);
  --content-w: clamp(320px, calc(100% - 2 * var(--gutter)), 1120px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(16px, 15px + 0.25vw, 18px);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

main {
  width: var(--content-w);
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 0 48px;
}

header.hero {
  padding: 40px 0 8px;
  text-align: center;
}

h1,
h2 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  font-weight: 700;
}

h1 {
  font-size: clamp(26px, 1.4rem + 1.5vw, 34px);
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: clamp(20px, 1.1rem + 0.6vw, 24px);
  margin: 0 0 8px;
}

p {
  font-size: 1em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 8px;
}

@media (min-width: 420px) {
  .buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-block;
  min-height: 44px;
  text-align: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

section {
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
}

/* The card itself may use the full container width, but its own prose
   stays capped for readability (the ~65ch max line-length rule). */
.card p,
.card li {
  max-width: 65ch;
}

.callout {
  font-size: 14px;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-top: 16px;
  max-width: 65ch;
}

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

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

footer a {
  margin-right: 14px;
}

.tba {
  color: var(--text-muted);
  font-style: italic;
}

ul,
ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 1em;
}

li {
  margin-bottom: 6px;
}

.tagline {
  font-size: 1em;
  color: var(--text-muted);
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }
}

.app-icon {
  display: block;
  margin: 0 auto 12px;
  border-radius: 18px;
}

.banner {
  background: var(--accent);
}

.banner p {
  color: var(--accent-ink);
  margin-bottom: 14px;
}

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

@media (min-width: 900px) {
  .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .features-grid .card {
    margin-bottom: 0;
  }
}
