/* Namaz Widgets — landing page.
   Single stylesheet, no framework, no external requests. Accent is the app's
   BrandPrimary (#0F9D58); the "board" colours mirror the LED panel the app draws. */

:root {
  --accent: #0F9D58;
  --accent-bright: #75F0B4;
  --board: #080A08;
  --ink: #16201a;
  --ink-soft: #55635b;
  --surface: #ffffff;
  --surface-alt: #f4f7f4;
  --line: #e2e8e4;
  --radius: 14px;
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eee9;
    --ink-soft: #9aa8a0;
    --surface: #101512;
    --surface-alt: #171d19;
    --line: #26302a;
  }
}

* { box-sizing: border-box; }

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

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

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

/* ── Header ─────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand span { font-weight: 700; font-size: 1rem; }
.site-header nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .9rem; margin-left: 16px;
}
.site-header nav a:hover { color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { text-align: center; padding: 56px 0 8px; }
.hero img.app-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 .35em; letter-spacing: -.02em; }
.hero p.tagline { font-size: 1.15rem; color: var(--ink-soft); margin: 0 auto 28px; max-width: 30em; }

.cta {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: 14px 28px; border-radius: 999px;
}
.cta:hover { filter: brightness(1.07); }
.cta-note { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 12px; }

/* ── Screenshots ────────────────────────────────────────── */
.shots {
  display: flex; gap: 16px; overflow-x: auto; padding: 36px 4px 12px;
  scroll-snap-type: x mandatory;
}
.shots img {
  width: 220px; flex: none; border-radius: var(--radius);
  border: 1px solid var(--line); scroll-snap-align: center;
}

/* ── Features ───────────────────────────────────────────── */
section { padding: 40px 0; }
section h2 { font-size: 1.45rem; margin: 0 0 1em; letter-spacing: -.01em; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
.features li {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.features h3 { margin: 0 0 .3em; font-size: 1rem; }
.features p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.features p + p { margin-top: .4em; }
.features p[dir="rtl"] { color: var(--accent); font-size: 1rem; }

/* ── Contact ────────────────────────────────────────────── */
.contact a { color: var(--accent); }

/* ── Legal pages ────────────────────────────────────────── */
.legal { padding: 40px 0 16px; }
.legal h1 { font-size: 1.9rem; margin-bottom: .2em; }
.legal h2 {
  font-size: 1.15rem; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line);
}
.legal table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .9rem; }
.legal th, .legal td {
  border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top;
}
.legal th { background: var(--surface-alt); }
.legal a { color: var(--accent); }
.back { display: inline-block; margin: 24px 0 0; color: var(--ink-soft); text-decoration: none; }
.back:hover { color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 48px; padding: 26px 0 40px;
  color: var(--ink-soft); font-size: .87rem;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.site-footer .links a { margin-right: 14px; }
