:root {
  --ground: #F4F6F5;
  --surface: #FFFFFF;
  --ink: #13241F;
  --muted: #4A5B55;
  --line: #DCE3E0;
  --field: #B9C6C1;
  --green: #0E5C4A;
  --green-hover: #09402F;
  --dark: #0E3B31;
  --dark-raised: #145545;
  --on-dark-muted: #C9DAD4;
  --amber: #A86B12;
  --gold: #E9C77F;
  --error-bg: #FBEDEA;
  --error-ink: #8A2A1B;
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
}

a { color: var(--green); }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--display); line-height: 1.2; margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 6px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.nav a { text-decoration: none; }
.nav-cta { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--green); color: #FFFFFF !important; }
.nav-cta:hover { background: var(--green-hover); }
@media (max-width: 640px) { .nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Ccircle cx='45.00' cy='36.00' r='1.8' fill='%23FFFFFF' fill-opacity='0.13'/%3E%3Ccircle cx='42.36' cy='42.36' r='1.8' fill='%23FFFFFF' fill-opacity='0.13'/%3E%3Ccircle cx='36.00' cy='45.00' r='1.8' fill='%23FFFFFF' fill-opacity='0.13'/%3E%3Ccircle cx='29.64' cy='42.36' r='1.8' fill='%23FFFFFF' fill-opacity='0.13'/%3E%3Ccircle cx='27.00' cy='36.00' r='1.8' fill='%23FFFFFF' fill-opacity='0.13'/%3E%3Ccircle cx='29.64' cy='29.64' r='1.8' fill='%23FFFFFF' fill-opacity='0.13'/%3E%3Ccircle cx='36.00' cy='27.00' r='1.8' fill='%23FFFFFF' fill-opacity='0.13'/%3E%3Ccircle cx='42.36' cy='29.64' r='1.8' fill='%23FFFFFF' fill-opacity='0.13'/%3E%3Ccircle cx='36' cy='36' r='2.4' fill='%23E9C77F' fill-opacity='0.28'/%3E%3C/svg%3E");
  color: #FFFFFF;
}
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--dark-raised); color: var(--gold); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; }
.lede { margin: 0; max-width: 540px; font-size: 19px; color: var(--on-dark-muted); }
.hadith { margin: 8px 0 0; padding-left: 16px; border-left: 3px solid var(--gold); display: flex; flex-direction: column; gap: 6px; }
.hadith p { margin: 0; font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 28px; line-height: 1.6; color: var(--gold); text-align: left; }
.hadith figcaption { color: var(--on-dark-muted); font-size: 15px; }
@media (max-width: 640px) { .hero-inner { padding-block: 48px 56px; gap: 36px; } }

/* Form card */
.card { flex: 1 1 380px; max-width: 460px; padding: 32px; background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.card:focus { outline: none; }
@media (max-width: 480px) { .card { padding: 24px 20px; } }
.card h2 { font-size: 24px; }
#waitlist, .joined { display: flex; flex-direction: column; gap: 16px; }
#waitlist h2 + .muted { margin-top: -10px; }

.field { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 600; padding: 0; }
legend.label { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
input[type="email"], input[type="text"] { min-height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--field); font: inherit; color: inherit; background: var(--surface); }
input[aria-invalid="true"] { border-color: var(--error-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--field); background: var(--surface); font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--error-bg); color: var(--error-ink); font-size: 15px; }

.btn { min-height: 48px; border-radius: 8px; border: 0; background: var(--green); color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--green-hover); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-outline { min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--green); background: var(--surface); color: var(--green); font: inherit; font-weight: 600; cursor: pointer; }
.btn-link { min-height: 44px; border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; }

.share { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--ground); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-url { flex: 1 1 180px; min-height: 42px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; overflow-wrap: anywhere; }

/* Sections */
.section { padding-block: 64px 8px; }
.section h2 { font-size: 32px; margin-bottom: 24px; }
.narrow { max-width: 820px; padding-bottom: 72px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.steps strong { font-size: 18px; }
.num { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--amber); }

.orgs { padding: 36px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
@media (max-width: 480px) { .orgs { padding: 24px 20px; } }
.orgs-copy { flex: 1 1 420px; }
.orgs-copy h2 { font-size: 28px; margin-bottom: 12px; }
.orgs-copy p { font-size: 18px; }
.checks { flex: 1 1 280px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li:not(:last-child)::before { content: ""; flex: none; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5C4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / contain no-repeat; }
.checks a { font-weight: 600; }

details { padding: 16px 20px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
summary { font-weight: 600; font-size: 17px; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; }
.site-footer .wrap { padding-block: 24px; }
