/* Establish — shared styles for the marketing, privacy and support pages.
   Self-contained: no external fonts, scripts or CSS. Light and dark aware. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fbfaf8;
  --bg-tint: #f4f1fb;
  --surface: #ffffff;
  --line: #e8e4de;
  --ink: #1a1830;
  --ink-soft: #5d5975;
  --ink-faint: #8b8799;
  --accent: #5b4bd6;
  --accent-deep: #3f329e;
  --accent-soft: #ede9fe;
  --gold: #a97c1e;
  --gold-soft: #fdf6e3;
  --good: #128a5a;
  --shadow: 0 1px 2px rgba(26, 24, 48, 0.04), 0 12px 32px -12px rgba(26, 24, 48, 0.12);
  --radius: 16px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111020;
    --bg-tint: #17162a;
    --surface: #1a1930;
    --line: #2c2a45;
    --ink: #f1eff8;
    --ink-soft: #aaa5c2;
    --ink-faint: #837e9c;
    --accent: #a79aff;
    --accent-deep: #c4baff;
    --accent-soft: #241f45;
    --gold: #e2bb63;
    --gold-soft: #2a2313;
    --good: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  }
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(160deg, #e6e6fa, #9370db);
  padding: 3px;
  flex-shrink: 0;
}
.brand span {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
  font-weight: 500;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-faint); transform: none; }
.btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  background:
    radial-gradient(900px 420px at 50% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin: 0 auto 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lede {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
}
.store-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 1.1rem;
}

/* ---------- ayah band ---------- */

.ayah {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 4rem 1.5rem;
}
.ayah p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-style: italic;
  line-height: 1.55;
  max-width: 26ch;
  margin: 0 auto 1.25rem;
  color: var(--ink);
}
.ayah cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- sections ---------- */

.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 34ch; margin: 0 auto 3.25rem; }
.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-head p { color: var(--ink-soft); margin-top: 0.85rem; font-size: 1rem; }

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.card p { font-size: 0.925rem; color: var(--ink-soft); }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card ul { margin: 0.85rem 0 0 1.1rem; }
.card li { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 0.25rem; }

/* ---------- affirmation showcase ---------- */

.showcase { background: var(--bg-tint); }
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.showcase-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.showcase-copy p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.affirmation {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.affirmation .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.affirmation blockquote {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.affirmation .meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.stat .n {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  display: block;
}
.stat .l {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ---------- privacy strip ---------- */

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  padding: 2.25rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.strip-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  flex-shrink: 0;
}

/* ---------- document pages (privacy / support) ---------- */

.page-head {
  padding: 3.75rem 1.5rem 3rem;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% -20%, var(--accent-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-head p { color: var(--ink-soft); margin-top: 0.75rem; font-size: 0.98rem; }
.page-head .updated { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.85rem; }

.doc { padding: 3.25rem 0 4.5rem; }
.doc h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.85rem;
  scroll-margin-top: 5rem;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1rem; font-weight: 650; margin: 1.5rem 0 0.5rem; }
.doc p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.doc ul, .doc ol { margin: 0 0 1rem 1.35rem; }
.doc li { color: var(--ink-soft); margin-bottom: 0.45rem; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.75rem;
  box-shadow: var(--shadow);
}
.callout h2 { font-size: 1.05rem; margin: 0 0 0.6rem; font-family: var(--sans); font-weight: 700; }
.callout ul { margin-bottom: 0; }
.callout li { font-size: 0.93rem; }

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin: 1rem 0 1.5rem;
}
.service h3 { margin-top: 0; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.service p:last-child { margin-bottom: 0; }
.badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--good) 15%, transparent);
  color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent);
}
.badge-soon {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 32%, transparent);
}

.table-wrap { overflow-x: auto; margin: 1rem 0 1.75rem; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-faint); font-weight: 700; }
td { color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq-group { margin-bottom: 2.75rem; }
.faq-group > h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
details[open] { box-shadow: var(--shadow); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 1.3rem;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
details[open] summary::after { transform: rotate(-135deg); top: 1.5rem; }
summary:hover { color: var(--accent); }
.answer { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.answer p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.answer p:last-child, .answer ul:last-child { margin-bottom: 0; }
.answer ul, .answer ol { margin: 0 0 0.7rem 1.25rem; }
.answer li { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.answer strong { color: var(--ink); }
.path {
  font-family: var(--sans);
  font-size: 0.86em;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
  padding: 0.1em 0.45em;
  border-radius: 5px;
  white-space: nowrap;
}

/* ---------- jump links ---------- */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.jump a {
  font-size: 0.83rem;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.jump a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- contact ---------- */

.contact {
  text-align: center;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.75rem 2rem;
  margin-top: 3rem;
}
.contact h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.contact p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 1.6rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 1.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer .ar { font-family: var(--serif); color: var(--ink-soft); margin-bottom: 0.6rem; font-size: 0.95rem; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .showcase-inner { grid-template-columns: 1fr; gap: 2.25rem; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 0.75rem 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
  .hero { padding: 3.5rem 1.25rem 3.25rem; }
  .section { padding: 3.5rem 0; }
  .card { padding: 1.4rem; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
