/* Shared design system for samuapps.dev — linked by every page before its own style.css.
   Pages override only what differs (e.g. mutemi sets its own --accent). */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --border: #e3e3e6;
  --accent: #0a84ff;
  --btn-bg: #1d1d1f;
  --btn-text: #ffffff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --bg-soft: #2c2c2e;
    --text: #f5f5f7;
    --text-soft: #aeaeb2;
    --border: #3a3a3c;
    --btn-bg: #ffffff;
    --btn-text: #000000;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* full-bleed marquees use 100vw; harmless elsewhere */
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Card surface ---------- */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ---------- Store / download buttons ---------- */
.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 14px;
  min-width: 220px;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-btn:hover { transform: translateY(-2px); opacity: 0.92; }

.store-btn__apple {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.store-btn__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn__text small { font-size: 0.72rem; opacity: 0.85; }
.store-btn__text strong { font-size: 1.2rem; font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  color: var(--text-soft);
  font-size: 0.9rem;
}
footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .dot { margin: 0 10px; }
