/* mPairsApart website — one stylesheet for every page. Light and dark follow the visitor's system.
   Colors come from the app: cream paper, deep green ink, garden green accent, warm trail orange. */

:root {
  --bg: #f5f0e3;
  --surface: #fffdf7;
  --text: #243127;
  --muted: #5e6a5f;
  --border: #e4ddcb;
  --accent: #3d7552;
  --accent-strong: #2c5a3d;
  --accent-soft: #dbebd9;
  --warm: #a8652e;
  --warm-soft: #f3e3c8;
  --shadow: 0 1px 2px rgba(36, 49, 39, 0.06), 0 8px 24px rgba(36, 49, 39, 0.07);
  --radius: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121612;
    --surface: #1b211c;
    --text: #eef2ea;
    --muted: #a9b4a8;
    --border: #2e372f;
    --accent: #7fc495;
    --accent-strong: #a3d8b2;
    --accent-soft: #213428;
    --warm: #e6a26a;
    --warm-soft: #3a2a1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

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

/* Jump links land below the sticky header. */
[id] { scroll-margin-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

img { max-width: 100%; height: auto; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) { .button { color: #121612; } }
.button:hover { background: var(--accent-strong); text-decoration: none; }
.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.button.secondary:hover { background: var(--accent-soft); }

.app-store-badge img { height: 54px; width: auto; display: block; }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 20px; margin: 0 0 16px; }
.hero p { color: var(--muted); margin: 0 0 16px; }
.hero .actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.hero .note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero .cover img {
  display: block;
  width: auto;
  max-height: 640px;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Sections */
section { padding: 56px 0; }
section h2 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
  text-align: center;
}
section p.section-lead {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--muted);
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.band .card { background: var(--bg); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

/* How to play: numbered steps */
.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warm-soft);
  color: var(--warm);
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.feature-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.pack-list { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.pack-list strong { color: var(--text); }

/* Screens gallery */
.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.screens img {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* Download */
.download { text-align: center; }
.download .app-store-badge { display: inline-block; margin: 8px auto 12px; }
.download p { color: var(--muted); margin: 0; }

/* Legal and support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 42px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; text-align: left; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.doc .summary p { margin: 0 0 8px; }
.doc .summary p:last-child { margin: 0; }
.doc .email { font-size: 22px; font-weight: 700; }
.doc .summary .button { margin-top: 6px; }

/* Support page: quick links and FAQ */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.quick-links a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}
.quick-links a:hover { background: var(--accent-soft); text-decoration: none; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 10px 0;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { color: var(--muted); }
.faq details > p:last-child, .faq details > ul:last-child, .faq details > ol:last-child { margin-bottom: 16px; }
.faq details p:first-of-type { margin-top: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 1000px) {
  .screens { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .cover img { max-height: 520px; }
  .two-col, .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-small { display: none; }
  .hero { padding: 40px 0 32px; }
  section { padding: 40px 0; }
}
