/* Salawat website: the app's palette (sage ground, charcoal ink, lime accents), SF Pro. */
:root {
  --bg: #eef3e8;
  --surface: #f8faf5;
  --text: #222222;
  --muted: #566572;
  --hairline: #d3deca;
  --accent: #4e7a1f;
  --accent-soft: #e3f2d2;
  --glow: #b2ea9a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1a1a1a;
    --text: #f2f5ee;
    --muted: #a0a0a0;
    --hairline: #333333;
    --accent: #d1f0b1;
    --accent-soft: #1e2c1b;
    --glow: #67c090;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--glow) 55%, transparent) 0, transparent 420px);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }

/* Language: English by default; html.ar shows the Arabic blocks instead. Scoped to body
   so the lang attribute on <html> itself never hides the page. */
body [lang="ar"] { display: none; direction: rtl; text-align: right; }
html.ar body [lang="en"] { display: none; }
html.ar body [lang="ar"] { display: block; }
html.ar body span[lang="ar"] { display: inline; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang-toggle {
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 8px; font-weight: 650; }
h2 { font-size: 21px; margin: 32px 0 8px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
a { color: var(--accent); }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.hero h1 { margin-top: 20px; }
.hero .tagline { font-size: 20px; color: var(--muted); }
.pill {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 20px;
  margin-top: 24px;
}
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.features .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 3px;
}
.features strong { display: block; }

details { border-top: 1px solid var(--hairline); padding: 14px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 8px; }

footer { margin-top: 48px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .hero .tagline { font-size: 18px; }
}

.support-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pill-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
