/* Meepers marketing & support site — shared styles.
   Brand green matches the app icon / splash (#26B565). */

:root {
  color-scheme: light dark;
  --green: #26b565;
  --green-dark: #157a42;
  --bg: #ffffff;
  --surface: #f4f5f8;
  --ink: #1a1c22;
  --muted: #5c6470;
  --border: #e3e6eb;
  --link: #157a42;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --surface: #1f222a;
    --ink: #e8e9ec;
    --muted: #9aa1ac;
    --border: #2c3038;
    --link: #3ecf7e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
}

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

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

/* ---- Header / nav ---------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

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

.site-nav a.cta {
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav a.cta:hover { background: var(--green-dark); color: #fff; }

/* ---- Hero ------------------------------------------------------------ */

.hero {
  text-align: center;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(38, 181, 101, 0.16), transparent);
}

.hero img.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(21, 122, 66, 0.3);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  margin: 24px auto 12px;
  max-width: 640px;
}

.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ---- App Store badge ------------------------------------------------- */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #4a4a4a;
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
  line-height: 1.2;
  text-align: left;
}

.store-badge:hover { background: #1a1a1a; }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .small { display: block; font-size: 11px; opacity: 0.85; }
.store-badge .big { display: block; font-size: 18px; font-weight: 600; }

.store-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---- Feature grid ---------------------------------------------------- */

.section { padding: 56px 0; }
.section.alt { background: var(--surface); }

.section h2 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 8px;
}

.section p.sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

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

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

.section:not(.alt) .feature { background: var(--surface); border-color: transparent; }

.feature .emoji { font-size: 26px; }
.feature h3 { font-size: 17px; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Premium panel --------------------------------------------------- */

.premium-panel {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: 18px;
  padding: 32px;
}

.premium-panel h2 { text-align: left; color: #fff; margin-top: 0; }
.premium-panel p { color: rgba(255, 255, 255, 0.9); }

.premium-panel ul {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
  margin: 16px 0 0;
}

.premium-panel li { margin-bottom: 8px; break-inside: avoid; }

@media (max-width: 640px) {
  .premium-panel ul { columns: 1; }
}

/* ---- Article pages (legal, support) ---------------------------------- */

.article { padding: 40px 0 80px; }
.article h1 { font-size: 30px; line-height: 1.25; margin: 0 0 4px; }
.article .date { color: var(--muted); margin-bottom: 28px; }
.article h2 { font-size: 20px; margin: 32px 0 8px; }
.article h3 { font-size: 16px; margin: 20px 0 6px; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 6px; }

/* ---- FAQ ------------------------------------------------------------- */

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 0 18px;
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details > :not(summary) { margin-top: 0; }
.faq-list details p, .faq-list details ul { color: var(--muted); margin: 0 0 14px; }

/* ---- Support cards --------------------------------------------------- */

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

.support-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: var(--surface);
}

.support-card h3 { margin: 0 0 6px; font-size: 17px; }
.support-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Footer ---------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .copyright { margin-right: auto; }
