/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #4CAF50;
  --green-dark: #388E3C;
  --green-light: #E8F5E9;
  --yellow: #FFC107;
  --red: #F44336;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --text: #1A1A1A;
  --text-secondary: #5F6368;
  --border: #E0E0E0;
  --radius: 12px;
  --max-width: 1080px;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: 8px 16px; background: var(--green); color: #fff;
  z-index: 100; border-radius: 4px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ── Header ────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 8px;
}

.nav { display: flex; gap: 24px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav a:hover { color: var(--green-dark); text-decoration: none; }

/* ── Hero ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 60%);
  padding: 64px 24px 48px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-image {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.store-btn:hover { background: #333; text-decoration: none; }
.store-btn svg { width: 22px; height: 22px; fill: #fff; }

/* ── Section shared ────────────────────────── */
.section {
  padding: 72px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt { background: var(--bg-alt); }
.section-alt .section { margin: 0 auto; }

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── How It Works ──────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.step {
  text-align: center;
  padding: 24px;
}

.step-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Screenshots ───────────────────────────── */
.screenshots {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px;
}

.screenshots img {
  width: 200px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

/* ── Features ──────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card h3 span { margin-right: 8px; }

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Rating demo ───────────────────────────── */
.rating-demo {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.rating-item {
  text-align: center;
}

.rating-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 8px;
}

.rating-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── CTA ───────────────────────────────────── */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 64px 24px;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

.cta-section .store-btn {
  background: #fff;
  color: var(--text);
}
.cta-section .store-btn:hover { background: #f0f0f0; }
.cta-section .store-btn svg { fill: var(--text); }

/* ── Footer ────────────────────────────────── */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Blog ──────────────────────────────────── */
.blog-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.blog-container h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.blog-post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.blog-post-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.blog-post-card h2 a { color: var(--text); }
.blog-post-card h2 a:hover { color: var(--green-dark); }

.blog-post-card .date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.blog-post-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Blog article */
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-container h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.article-container h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.article-container h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 8px;
}

.article-container p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text);
}

.article-container ul, .article-container ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-container li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.article-cta {
  background: var(--green-light);
  padding: 24px;
  border-radius: var(--radius);
  margin: 36px 0;
  text-align: center;
}

.article-cta p {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.article-cta .store-btn {
  font-size: 14px;
  padding: 10px 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--green-dark);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .section-title { font-size: 26px; }
  .screenshots img { width: 150px; }
  .store-btn { padding: 10px 18px; font-size: 14px; }
}
