/* Dawen website: home, pricing and privacy pages. Plain CSS, no build step. */
:root {
  --bg: #ffffff;
  --surface: #f6f5fb;
  --border: #e4e2ee;
  --text: #18181b;
  --muted: #52525b;
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
  --accent-text: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1a1a1f;
    --border: #2c2b35;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --accent: #a78bfa;
    --accent-soft: rgba(139, 92, 246, 0.16);
    --accent-text: #160b33;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: min(760px, 100% - 32px); margin-inline: auto; }

header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
/* The logo alone (no tile): white on the dark theme, black on the light one. */
.brand picture { display: inline-flex; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 14px; margin-inline-start: 18px; }
nav.site a:hover { color: var(--text); }

.hero { padding-block: 72px 48px; }
.hero picture { display: inline-flex; }
.hero img { width: 80px; height: 80px; object-fit: contain; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 8px; max-width: 58ch; }
.hero .ar { font-size: 20px; color: var(--text); margin-top: 16px; text-align: left; }
.badge {
  display: inline-block;
  margin-top: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding-bottom: 56px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.card h2 { font-size: 16px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

main.doc { padding-block: 48px 64px; }
main.doc h1 { font-size: 32px; line-height: 1.2; margin: 0 0 6px; }
main.doc .updated { color: var(--muted); margin: 0 0 32px; }
main.doc h2 { font-size: 20px; margin: 36px 0 8px; }
main.doc ul { padding-inline-start: 22px; }
main.doc li { margin-bottom: 6px; }
.summary { background: var(--accent-soft); border-radius: 12px; padding: 16px 20px; }
.summary ul { margin: 8px 0 0; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-block: 20px; }
footer.site a { color: var(--muted); }

/* Pricing page (template). */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 28px 0 12px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h2 { font-size: 18px; margin: 0; }
.plan .price { font-size: 34px; font-weight: 700; margin: 8px 0 0; letter-spacing: -0.02em; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .yearly { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.plan .credits { margin: 2px 0 14px; color: var(--accent); font-weight: 600; font-size: 15px; }
.plan ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 15px; }
.plan-tag { position: absolute; top: -11px; inset-inline-start: 18px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.note { color: var(--muted); font-size: 14px; }
main.doc h3 { font-size: 16px; margin: 20px 0 4px; }
main.doc h3 + p { margin-top: 0; color: var(--muted); }
.credit-table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-size: 15px; }
.credit-table caption { text-align: start; color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.credit-table th, .credit-table td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: start; }
.credit-table thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
.credit-table td { font-variant-numeric: tabular-nums; }
.credit-table tbody th { font-weight: 500; }
main.doc .plan h2 { margin: 0; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
