:root {
  --color-bg: #f6f8fa;
  --color-surface: #ffffff;
  --color-text: #1a1d21;
  --color-text-muted: #5a6470;
  --color-primary: #1565c0;
  --color-primary-dark: #0d47a1;
  --color-accent: #2e7d32;
  --color-border: #e1e4e8;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --max-width: 900px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav a { color: var(--color-text-muted); }
.nav a:hover { color: var(--color-primary); text-decoration: none; }

/* Hero */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(135deg, #1565c0 0%, #2e7d32 100%);
  color: #fff;
  text-align: center;
}
.hero img.app-icon {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 44px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: 19px;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 26px;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* Sections */
section {
  padding: 56px 0;
}
section.alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
h2 {
  font-size: 28px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
p { margin: 0 0 14px; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature .icon {
  font-size: 26px;
  margin-bottom: 10px;
}
.feature p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0;
}

/* Screenshot */
.screenshot-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.screenshot {
  max-width: 280px;
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* Article (legal / support pages) */
.article {
  background: var(--color-surface);
  padding: 48px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 40px auto;
  max-width: var(--max-width);
}
.article h1 {
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.article .meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}
.article h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.article ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.article ul li {
  margin-bottom: 6px;
}
.article .callout {
  background: #f1f8e9;
  border-left: 4px solid var(--color-accent);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
  color: #2e3d2e;
}

/* FAQ */
details.faq {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  float: right;
  color: var(--color-text-muted);
  font-weight: 400;
}
details.faq[open] summary::after { content: "−"; }
details.faq p, details.faq ul {
  margin-top: 12px;
  color: var(--color-text-muted);
}

/* Version history */
.version {
  border-left: 3px solid var(--color-primary);
  padding: 4px 0 4px 16px;
  margin-bottom: 18px;
}
.version h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.version .date {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.version ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
  margin-top: 50px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 17px; }
  .nav { gap: 14px; font-size: 14px; }
  .article { padding: 32px 20px; }
}
