/* Suhbah — shared styles for the landing page and the legal pages.
   Extracted verbatim from index.html's inline <style> block so all pages
   share one set of tokens. The four theme blocks below must stay in sync:
   :root (light default), the prefers-color-scheme media query, and the two
   explicit [data-theme] overrides. */

:root {
  --green: #15803D;
  --green-dark: #166534;
  --green-soft: #16A34A;
  --green-vivid: #22C55E;
  --mint: #DCFCE7;
  --mint-soft: #EDF6EE;
  --gold: #D97706;
  --gold-soft: #FEF3C7;
  --cream: #F7FAF6;
  --card: #FFFFFF;
  --charcoal: #0B1F14;
  --ink: #22302A;
  --muted: #5F7268;
  --line: #E3EBE5;

  --bg: var(--cream);
  --surface: var(--card);
  --text: var(--charcoal);
  --text-muted: var(--muted);
  --border: var(--line);
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #22C55E;
    --green-dark: #16A34A;
    --green-soft: #4ADE80;
    --green-vivid: #34D77F;
    --mint: #13301F;
    --mint-soft: #16241D;
    --gold: #F59E0B;
    --gold-soft: #2C220A;
    --cream: #0B1410;
    --card: #16231C;
    --charcoal: #EAF2EC;
    --ink: #CBD8D0;
    --muted: #8FA89A;
    --line: #26332C;

    --bg: var(--cream);
    --surface: var(--card);
    --text: var(--charcoal);
    --text-muted: var(--muted);
    --border: var(--line);
  }
}

:root[data-theme="dark"] {
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-soft: #4ADE80;
  --green-vivid: #34D77F;
  --mint: #13301F;
  --mint-soft: #16241D;
  --gold: #F59E0B;
  --gold-soft: #2C220A;
  --cream: #0B1410;
  --card: #16231C;
  --charcoal: #EAF2EC;
  --ink: #CBD8D0;
  --muted: #8FA89A;
  --line: #26332C;
  --bg: var(--cream);
  --surface: var(--card);
  --text: var(--charcoal);
  --text-muted: var(--muted);
  --border: var(--line);
}

:root[data-theme="light"] {
  --green: #15803D;
  --green-dark: #166534;
  --green-soft: #16A34A;
  --green-vivid: #22C55E;
  --mint: #DCFCE7;
  --mint-soft: #EDF6EE;
  --gold: #D97706;
  --gold-soft: #FEF3C7;
  --cream: #F7FAF6;
  --card: #FFFFFF;
  --charcoal: #0B1F14;
  --ink: #22302A;
  --muted: #5F7268;
  --line: #E3EBE5;
  --bg: var(--cream);
  --surface: var(--card);
  --text: var(--charcoal);
  --text-muted: var(--muted);
  --border: var(--line);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient glow background */
.glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow::before, .glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.glow::before {
  width: 560px;
  height: 560px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--green-vivid), transparent 70%);
}
.glow::after {
  width: 420px;
  height: 420px;
  top: 120px;
  right: -140px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  opacity: 0.2;
}

header.nav {
  position: relative;
  z-index: 2;
  padding: 24px 0 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
}
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}
.nav-cta:hover { border-color: var(--green-soft); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 0 24px;
}
.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(13, 38, 24, 0.22);
  margin: 0 auto 28px;
  display: block;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--mint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-vivid);
  box-shadow: 0 0 0 3px var(--mint-soft);
}
h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 auto 18px;
  max-width: 780px;
  color: var(--text);
}
h1 .accent {
  background: linear-gradient(100deg, var(--green-soft), var(--green-vivid) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subhead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Signup form */
.signup {
  max-width: 460px;
  margin: 0 auto;
}
form.email-form {
  display: flex;
  gap: 10px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(13, 38, 24, 0.08);
}
form.email-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 8px 12px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
}
form.email-form input[type="email"]::placeholder {
  color: var(--text-muted);
}
.submit-btn {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.submit-btn:hover { transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}
.form-message {
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  min-height: 20px;
}
.form-message.success { color: var(--green-dark); }
.form-message.error { color: #DC2626; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Section headers */
.section {
  padding: 72px 0;
  position: relative;
  z-index: 1;
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Screenshot showcase */
.showcase {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 20px 4px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.showcase::-webkit-scrollbar { height: 8px; }
.showcase::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.phone {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 220px;
}
.phone-frame {
  position: relative;
  border-radius: 34px;
  background: var(--charcoal);
  padding: 10px;
  box-shadow: 0 24px 48px rgba(13, 38, 24, 0.22);
}
.phone-screen {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--mint-soft);
  aspect-ratio: 402 / 874;
}
.phone-screen img {
  position: absolute;
  top: -34px;
  left: 0;
  width: 100%;
  height: calc(100% + 34px);
  object-fit: cover;
  display: block;
}
.phone-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Bottom CTA */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta-band p {
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 15px;
}
.cta-band form.email-form {
  background: rgba(255,255,255,0.98);
  box-shadow: none;
  max-width: 440px;
  margin: 0 auto;
}
.cta-band .submit-btn {
  background: var(--charcoal);
}
.cta-band .form-note { color: rgba(255,255,255,0.7); }
.cta-band .form-message.success { color: #DCFCE7; }
.cta-band .form-message.error { color: #FECACA; }

footer {
  padding: 40px 0 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
footer .foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
}
footer .foot-brand img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ */
/* Legal pages                                                         */
/* ------------------------------------------------------------------ */
/* The landing page has no long-form prose styles — .wrap's 1120px is
   far too wide to read a policy in. Everything below is additive and
   scoped under .legal so the landing page is untouched. */

/* Anchored headings must clear the sticky-ish nav. /legal/privacy
   #delete-account is the URL filed in Play Console; if it lands under
   the header the requirement is effectively unmet. */
[id] { scroll-margin-top: 88px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
  color: var(--ink);
}

.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12;
  margin: 0 0 12px;
  max-width: none;
  text-align: left;
  color: var(--text);
}

.legal h2 {
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }

.legal h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
  color: var(--text);
}

.legal p { margin: 0 0 16px; }
.legal strong { color: var(--text); font-weight: 700; }

.legal ul, .legal ol { margin: 0 0 16px; padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal li > ul, .legal li > ol { margin-top: 8px; }

.legal a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal a:hover { text-decoration-thickness: 2px; }

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.legal-lede {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 40px;
}

/* Table of contents */
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 0 0 48px;
}
.legal-toc h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin: 0 0 12px;
  padding-top: 0;
  border-top: none;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  columns: 2;
  column-gap: 28px;
}
@media (max-width: 620px) {
  .legal-toc ol { columns: 1; }
}
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { text-decoration: none; color: var(--text); }
.legal-toc a:hover { color: var(--green-dark); text-decoration: underline; }

/* Tables — wide content scrolls inside its own container so the page
   body never scrolls horizontally on a phone. */
.legal-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.legal-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  background: var(--mint-soft);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.legal-table td { color: var(--ink); }

/* Callout — the halal disclaimer, the message-encryption notice, and
   anything else a reader must not skim past. */
.callout {
  background: var(--mint-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 24px;
  font-size: 15px;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--green-dark); }

.callout.warn {
  background: var(--gold-soft);
  border-left-color: var(--gold);
}
.callout.warn strong { color: var(--gold); }

/* Footer legal link row (all pages) */
footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 14px;
}
footer .foot-links a {
  color: var(--text-muted);
  text-decoration: none;
}
footer .foot-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}
