/* SIL Vanuatu app store page — minimal, dependency-free, responsive */

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1f2328;
  --muted: #5b6470;
  --accent: #1a5e63;
  --border: #e3e6ea;
  --radius: 14px;
  --maxw: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--accent);
  color: #fff;
  padding: 28px 0;
}
.site-title { margin: 0; font-size: 1.6rem; letter-spacing: 0.2px; }
.site-tagline { margin: 4px 0 0; opacity: 0.85; font-size: 0.95rem; }
/* On .legal pages, `.legal p` would darken the header tagline (a <p>) to near-invisible
   against the dark header. Keep header text light so it pops. */
.site-header .site-title,
.site-header .site-tagline { color: #fff; }

/* Intro */
.intro {
  margin: 28px auto 8px;
  color: var(--muted);
  max-width: 60ch;
}

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0 40px;
}
@media (min-width: 720px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.app-head { display: flex; gap: 14px; align-items: flex-start; }
.app-icon { border-radius: 18px; flex: 0 0 auto; }
.app-name { margin: 0 0 4px; font-size: 1.2rem; }
.app-blurb { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Google Play button (swap for the official badge image if preferred) */
.app-actions { margin: 16px 0 4px; }
.play-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: #000;
  border-radius: 8px;
  padding: 8px 18px;
  line-height: 1.15;
  min-width: 150px;
}
.play-button:hover { background: #1a1a1a; }
.play-button-sub { font-size: 0.62rem; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.85; }
.play-button-main { font-size: 1.15rem; font-weight: 600; }

/* Screenshots */
.shots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 16px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.shots img {
  height: 320px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  margin-top: 20px;
}
.site-footer a { color: var(--accent); }
.copyright { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }

/* Call-to-action button (testers page) */
.cta-wrap { margin: 20px 0; }
.cta-button {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 1.05rem;
}
.cta-button:hover { background: #164f53; }
/* Keep button text white even on .legal pages, where `.legal a` would otherwise
   force the dark accent color onto the dark accent button (invisible text). */
.legal .cta-button { color: #fff; }

/* Numbered steps (testers page) */
.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 20px 0; }
.steps > li { position: relative; padding: 2px 0 20px 48px; margin: 0; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.steps h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.steps p { margin: 0 0 6px; }

/* Callout note (testers page) */
.note {
  background: #eef4f4;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 22px 0;
  font-size: 0.95rem;
}
.note strong { color: var(--ink); }

/* Privacy page typography */
.legal { background: var(--card); }
.legal main { padding-top: 8px; }
.legal h2 { margin-top: 1.8em; font-size: 1.2rem; }
.legal h3 { margin-top: 1.4em; font-size: 1.02rem; }
.legal p, .legal li { color: #303843; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }
.legal a { color: var(--accent); }
