/* FrogBooks — frogbooks.app
   One stylesheet for every page. Light + dark via prefers-color-scheme.
   Artwork with baked-in white backgrounds always sits on a white .art-card,
   so night mode never shows halos or fringe around the illustrations. */

:root {
  --bg: #f4f6f1;
  --card: #ffffff;
  --ink: #1a2b1f;
  --muted: #657468;
  --border: #dce4da;
  --green: #1e7a3e;
  --green-dark: #124b27;
  --green-bright: #3fa838;
  --shadow: 0 6px 24px rgba(18, 75, 39, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a13;
    --card: #16241b;
    --ink: #e8efe9;
    --muted: #9fb0a3;
    --border: #24382b;
    --green: #4CAF50;
    --green-dark: #a5d6a7;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Century Gothic', 'Avenir Next', 'Futura', -apple-system, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand span b { color: var(--green); }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
nav a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 30px; text-align: center; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero p.lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 26px;
}

/* Opaque illustration on its own white card — crisp in both themes */
.art-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 720px;
  margin: 34px auto 0;
  border: 1px solid var(--border);
}
.art-card img { display: block; width: 100%; height: auto; }

.tagline {
  margin-top: 26px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Store badges (official-style, plain HTML) — App Store + Google Play side by side, wrapping on narrow screens */
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 12px 22px;
}
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge .lines { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store-badge .small { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.store-badge .big { font-size: 1.15rem; font-weight: 600; }
.store-badge:hover { background: #1c1c1e; }
@media (prefers-color-scheme: dark) {
  .store-badge { border: 1px solid #3a3a3c; }
}

/* ---------- Sections ---------- */
section { padding: 54px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
p.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 40px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; padding: 0 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
}
section.alt .feature { background: var(--bg); }
.feature img {
  width: 84px; height: 84px; border-radius: 20px;
  margin-bottom: 14px;
  background: #fff; /* art has white/green baked backgrounds — keep them on white */
}
.feature h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* CPA block */
.cpa {
  display: flex; align-items: center; gap: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 36px;
  box-shadow: var(--shadow);
}
.cpa img { width: 130px; height: 130px; border-radius: 50%; flex-shrink: 0; }
.cpa h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.cpa p { color: var(--muted); }
.cpa p + p { margin-top: 10px; }

/* Closing call-to-action */
.closer { text-align: center; }
.closer .store-badges { margin-top: 18px; }

/* ---------- Content pages (privacy / support / delete) ---------- */
/* Top/bottom only — the wrap/wrap-narrow container owns the 20px side padding
   (a `padding: 46px 0 70px` shorthand here was zeroing it → edge-to-edge text
   on phones). */
.page { padding-top: 46px; padding-bottom: 70px; }
.page h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 34px; }
.page h2 { font-size: 1.25rem; font-weight: 800; margin: 34px 0 10px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--ink); font-size: 1rem; }
.page p + p { margin-top: 10px; }
.page ul { margin: 10px 0 10px 22px; }
.page li { margin-bottom: 6px; }
.page a { color: var(--green); font-weight: 600; }
.page .note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--ink);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot-links { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--green); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .steps, .features { grid-template-columns: 1fr; }
  .cpa { flex-direction: column; text-align: center; padding: 28px 22px; }
  nav { gap: 14px; }
  .hero { padding-top: 40px; }
}
