/* Article Pulse website. Plain CSS, system fonts (no web fonts or other
   outside requests), light and dark to match the device. */

:root {
  --brand: #1a56a4;
  --brand-strong: #13427f;
  --brand-soft: #e8f0fb;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
  --radius: 14px;
  --max: 1080px;
  --prose: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6ea4ef;
    --brand-strong: #9cc2f5;
    --brand-soft: #16253b;
    --bg: #0f1520;
    --bg-alt: #141c2a;
    --surface: #182233;
    --text: #f3f4f6;
    --text-2: #d1d5db;
    --muted: #9ca3af;
    --border: #273449;
    --success: #22c55e;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--prose); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(26, 86, 164, 0.25);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.1;
  margin: 24px 0 14px;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 28px;
}
.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  min-width: 190px;
}
.store-btn small { font-size: 12px; opacity: 0.8; }
.store-btn strong { font-size: 18px; }
.store-btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.hero .note { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 64px 0; scroll-margin-top: 72px; }
@media (max-width: 560px) { section { scroll-margin-top: 96px; } }
section.alt { background: var(--bg-alt); }
h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-intro { color: var(--text-2); margin: 0 0 32px; max-width: 680px; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.step h3 { margin: 4px 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--text-2); font-size: 16px; }

/* ── Plans ────────────────────────────────────────────────── */
.plans { display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .price { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.plan.pro { border: 2px solid var(--brand); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 6px 0 6px 28px; position: relative; color: var(--text-2);
  font-size: 16px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg);
}
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ── Privacy band ─────────────────────────────────────────── */
.privacy-band { text-align: center; }
.privacy-band p { max-width: 640px; margin: 0 auto 10px; color: var(--text-2); }

/* ── Prose pages (privacy, terms, support) ───────────────── */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.page .meta { color: var(--muted); margin: 0 0 32px; }
.page h2 { font-size: 24px; margin: 36px 0 10px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; }
.page p, .page li { color: var(--text-2); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px;
  border-bottom: 1px solid var(--border); }
th { color: var(--text); background: var(--bg-alt); }
details { border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin: 10px 0; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; color: var(--text); }
details p { margin: 10px 0 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start;
    padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
  .hero { padding-top: 48px; }
  section { padding: 48px 0; }
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Screenshots ──────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  display: block;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
}
.shots figcaption { margin-top: 12px; color: var(--text-2); font-size: 15px;
  font-weight: 600; }
@media (max-width: 860px) {
  /* Side-scrolling row on narrower screens. */
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .shots figure { scroll-snap-align: center; }
}
@media (max-width: 560px) { .shots { grid-auto-columns: 78%; } }
