:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1a1d29;
  --text-muted: #5b6072;
  --primary: #2f7d5f;
  --primary-dark: #235f47;
  --accent: #ffb648;
  --border: #e7e9f0;
  --shadow: 0 10px 30px rgba(20, 30, 40, 0.08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141c;
    --surface: #1a1d29;
    --text: #f1f2f6;
    --text-muted: #a7abc0;
    --primary: #4fb887;
    --primary-dark: #3a9c70;
    --accent: #ffc266;
    --border: #2a2e3d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 980px;
  margin: 0 auto;
}

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

nav.site a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.95rem;
}

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

.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 0 40px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 360px; }

.hero img.icon-large {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  flex: 1 1 200px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 28px;
  max-width: 46ch;
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badges a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.store-badges a:hover { transform: translateY(-2px); }

.store-badges svg { width: 22px; height: 22px; flex-shrink: 0; }

section { padding: 36px 0; }

section h2 {
  font-size: 1.5rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

section .section-sub {
  color: var(--text-muted);
  margin: 0 0 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card .emoji { font-size: 1.7rem; margin-bottom: 10px; display: block; }

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.review-card .stars { display: block; margin-bottom: 10px; }

.review-card p.quote {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.97rem;
}

.review-card .author {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.review-card .source {
  color: var(--text-muted);
  font-size: 0.82rem;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding: 28px 0 44px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a { color: var(--text-muted); text-decoration: underline; }
footer.site a:hover { color: var(--primary); }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { margin-top: 34px; font-size: 1.25rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal a.back { display: inline-block; margin-bottom: 26px; text-decoration: none; color: var(--text-muted); font-size: 0.9rem; }
.legal a.back:hover { color: var(--primary); }
