:root {
  --green-900: #0b3f38;
  --green: #0f5c52;
  --green-300: #6ee7d5;
  --gold: #c8a25a;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.font-display { font-family: 'Lora', Georgia, serif; }
.font-amiri { font-family: 'Amiri', serif; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Brand mark ---------- */
.mark {
  display: block;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--green) 55%, var(--gold) 55%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ---------- Decorative hero pattern ---------- */
.pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15, 92, 82, 0.14) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom left, black, transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom left, black, transparent 65%);
  opacity: 0.75;
  pointer-events: none;
}
.dark .pattern { background-image: radial-gradient(circle at 1px 1px, rgba(110, 231, 213, 0.16) 1px, transparent 0); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.15rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { border-color: #d6d3d1; color: #44403c; background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.dark .btn-ghost { border-color: #44403c; color: #d6d3d1; }
.dark .btn-ghost:hover { border-color: var(--green-300); color: var(--green-300); }
.btn-gold { background: var(--gold); color: #221a08; font-weight: 600; }
.btn-gold:hover { background: #d9b673; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 92, 82, 0.2);
  background: rgba(15, 92, 82, 0.05);
  color: var(--green);
}
.dark .badge { border-color: rgba(110, 231, 213, 0.22); background: rgba(110, 231, 213, 0.08); color: var(--green-300); }
.badge-dark { border-color: rgba(200, 162, 90, 0.4); background: rgba(200, 162, 90, 0.12); color: #f2e2c2; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green); }
.dark .dot { background: var(--green-300); }
.dot-gold { background: var(--gold); }

/* ---------- Section headings ---------- */
.h2 {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1c1917;
  margin-bottom: 0.5rem;
}
.dark .h2 { color: #fafaf9; }
@media (min-width: 640px) { .h2 { font-size: 2rem; } }

.lead { max-width: 60ch; color: #57534e; }
.dark .lead { color: #a8a29e; }

/* ---------- Verse card ---------- */
.verse-card, .hadith-card {
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 32px -18px rgba(15, 92, 82, 0.25);
}
.dark .verse-card, .dark .hadith-card { background: #1c1917; border-color: #292524; }

/* ---------- Credential strip ---------- */
.cred { border-inline-start: 2px solid var(--gold); padding-inline-start: 1rem; }
.cred-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: #a8a29e; }
.cred-value { font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 600; color: var(--green); margin-top: 0.15rem; }
.dark .cred-value { color: var(--green-300); }
.cred-note { font-size: 0.8rem; color: #78716c; margin-top: 0.1rem; }
.dark .cred-note { color: #a8a29e; }

/* ---------- Generic cards ---------- */
.card {
  border: 1px solid #e7e5e4;
  border-radius: 0.85rem;
  background: #fff;
  padding: 1.35rem 1.4rem;
}
.dark .card { background: #1c1917; border-color: #292524; }
.card > p { color: #57534e; font-size: 0.9rem; }
.dark .card > p { color: #a8a29e; }
.card-title { font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 600; color: #1c1917; margin-bottom: 0.4rem; }
.dark .card-title { color: #fafaf9; }
.num { font-family: 'Lora', serif; font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.3rem; }

/* ---------- Stages ---------- */
.stage {
  display: grid;
  gap: 0.75rem 1.5rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.85rem;
  background: #fff;
  padding: 1.35rem 1.4rem;
}
@media (min-width: 768px) { .stage { grid-template-columns: 150px 1fr; } }
.dark .stage { background: #1c1917; border-color: #292524; }
.stage-side { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.stage-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--green); color: #fff;
}
.dark .stage-tag { background: var(--green-300); color: #06201c; }
.stage-time { font-size: 11px; color: #a8a29e; }
.stage-main > p { color: #57534e; font-size: 0.9rem; }
.dark .stage-main > p { color: #a8a29e; }
.deliv {
  display: inline-block; margin-top: 0.7rem;
  font-size: 0.78rem; font-weight: 500; color: var(--green);
  background: rgba(15, 92, 82, 0.07); border-radius: 0.4rem; padding: 0.35rem 0.65rem;
}
.dark .deliv { color: var(--green-300); background: rgba(110, 231, 213, 0.09); }

/* ---------- Plans ---------- */
.plan {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background: #fff;
  padding: 1.6rem 1.5rem;
}
.dark .plan { background: #1c1917; border-color: #292524; }
.plan-featured {
  border-color: var(--green);
  box-shadow: 0 16px 40px -24px rgba(15, 92, 82, 0.45);
}
.dark .plan-featured { border-color: var(--green-300); }
.ribbon {
  position: absolute; top: -11px; inset-inline-start: 1.5rem;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--green); color: #fff; padding: 3px 10px; border-radius: 999px;
}
.dark .ribbon { background: var(--green-300); color: #06201c; }
.plan-name { font-family: 'Lora', serif; font-size: 1.15rem; font-weight: 600; color: #1c1917; }
.dark .plan-name { color: #fafaf9; }
.plan-price { font-family: 'Lora', serif; font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1.2; margin-top: 0.3rem; }
.dark .plan-price { color: var(--green-300); }
.plan-per { font-size: 0.85rem; font-weight: 400; color: #a8a29e; }
.plan-note { font-size: 0.75rem; color: #a8a29e; margin-bottom: 1rem; }

/* ---------- Tick lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.ticks > li { position: relative; padding-inline-start: 1.4rem; margin-bottom: 0.45rem; color: #57534e; }
.dark .ticks > li { color: #a8a29e; }
.ticks > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.1rem; top: 0.55em;
  width: 8px; height: 4px;
  border-inline-start: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Sanad ---------- */
.sanad {
  border: 1px solid rgba(200, 162, 90, 0.35);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.6rem;
}
.sanad-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(242, 226, 194, 0.8); margin-bottom: 1rem; }
.sanad-chain { list-style: none; margin: 0; padding: 0; }
.sanad-chain > li {
  position: relative;
  padding-inline-start: 1.5rem;
  padding-bottom: 0.7rem;
  font-size: 0.875rem;
  color: #eef7f4;
}
.sanad-chain > li::before {
  content: '';
  position: absolute; inset-inline-start: 3px; top: 0.5em;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--gold);
}
.sanad-chain > li:not(:last-child)::after {
  content: '';
  position: absolute; inset-inline-start: 6px; top: 1.3em; bottom: 0;
  width: 1px; background: rgba(200, 162, 90, 0.4);
}
.sanad-chain > li.dots { color: rgba(238, 247, 244, 0.5); }
.sanad-chain > li.final { font-weight: 600; color: #fff; }

/* ---------- Form ---------- */
.field {
  flex: 1;
  border: 1px solid #d6d3d1;
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #1c1917;
  width: 100%;
}
.field:focus { outline: 2px solid rgba(15, 92, 82, 0.35); outline-offset: 1px; border-color: var(--green); }
.dark .field { background: #1c1917; border-color: #44403c; color: #fafaf9; }
.msg-ok { color: var(--green); }
.dark .msg-ok { color: var(--green-300); }
.msg-err { color: #b91c1c; }
.dark .msg-err { color: #fca5a5; }

/* ---------- FAQ ---------- */
.faq { padding: 1rem 0; }
.faq > summary {
  cursor: pointer;
  font-weight: 500;
  color: #1c1917;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.dark .faq > summary { color: #fafaf9; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: '+'; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.faq[open] > summary::after { content: '\2212'; }
.faq > p { margin-top: 0.6rem; font-size: 0.9rem; color: #57534e; max-width: 62ch; }
.dark .faq > p { color: #a8a29e; }

/* ---------- Nav ---------- */
.navlink { color: #57534e; text-decoration: none; }
.navlink:hover { color: var(--green); }
.dark .navlink { color: #a8a29e; }
.dark .navlink:hover { color: var(--green-300); }

section { scroll-margin-top: 70px; }

/* ---------- Logo assets ---------- */
.logo-tile {
  display: block;
  width: 40px; height: 40px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);
}
.logo-footer {
  display: block;
  width: 118px;
  height: auto;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* ---------- Founding price strip ---------- */
.founding-strip {
  background: var(--green-900);
  color: #eef7f4;
  font-size: .78rem;
  text-align: center;
}
.founding-strip a {
  display: block;
  padding: .55rem 1rem;
  color: inherit;
  text-decoration: none;
}
.founding-strip a:hover { background: #0d4b43; }
.founding-strip strong { color: var(--gold); font-weight: 600; }

/* ---------- Private recitation row under the plans ---------- */
.private-line {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  border: 1px solid #e7e5e4;
  border-inline-start: 3px solid var(--gold);
  border-radius: .85rem;
  background: #fff;
  padding: 1.15rem 1.25rem;
}
@media (min-width: 640px) {
  .private-line { flex-direction: row; align-items: center; justify-content: space-between; }
}
.dark .private-line { background: #1c1917; border-color: #292524; border-inline-start-color: var(--gold); }
.private-title { font-family: 'Lora', serif; font-weight: 600; font-size: 1.02rem; color: #1c1917; }
.dark .private-title { color: #fafaf9; }
.private-note { margin-top: .3rem; font-size: .85rem; color: #57534e; max-width: 62ch; }
.dark .private-note { color: #a8a29e; }

/* ---------- Month-by-month table ---------- */
.month-wrap {
  overflow-x: auto;
  border: 1px solid #e7e5e4;
  border-radius: .85rem;
  background: #fff;
}
.dark .month-wrap { background: #1c1917; border-color: #292524; }
table.months { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.months thead th {
  text-align: left;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #a8a29e;
  padding: .75rem .95rem;
  border-bottom: 1px solid #e7e5e4;
  white-space: nowrap;
}
.dark table.months thead th { border-bottom-color: #292524; }
table.months tbody td {
  padding: .8rem .95rem;
  border-bottom: 1px solid #f5f5f4;
  vertical-align: top;
  color: #57534e;
}
.dark table.months tbody td { border-bottom-color: #262626; color: #a8a29e; }
table.months tbody tr:last-child td { border-bottom: none; }
table.months td.m {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  white-space: nowrap;
  width: 4.5rem;
}
.dark table.months td.m { color: var(--green-300); }
table.months tbody tr.hot { background: rgba(15,92,82,.04); }
.dark table.months tbody tr.hot { background: rgba(110,231,213,.06); }

.callout-light {
  border-inline-start: 3px solid var(--gold);
  background: rgba(200,162,90,.08);
  border-radius: .6rem;
  padding: 1rem 1.15rem;
  font-size: .9rem;
  color: #57534e;
  max-width: 70ch;
}
.dark .callout-light { color: #d6d3d1; background: rgba(200,162,90,.1); }

/* ---------- Gender cards in the recitation section ---------- */
.gender-card {
  border: 1px solid rgba(200,162,90,.35);
  border-radius: .75rem;
  background: rgba(255,255,255,.06);
  padding: .9rem 1rem;
  font-size: .875rem;
  color: #eef7f4;
}
.gender-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: .35rem;
}

/* ---------- Signup box: intent chip + fields ---------- */
.intent-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 auto 1.25rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(15,92,82,.25);
  background: rgba(15,92,82,.06);
  border-radius: 999px;
  padding: .4rem .95rem;
  font-size: .78rem;
  color: #44403c;
}
.dark .intent-chip { border-color: rgba(110,231,213,.28); background: rgba(110,231,213,.08); color: #d6d3d1; }
.intent-chip strong { color: var(--green); font-weight: 600; }
.dark .intent-chip strong { color: var(--green-300); }
.intent-chip button {
  font-family: inherit;
  font-size: .72rem;
  color: #78716c;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}
.intent-chip button:hover { color: var(--green); }
.dark .intent-chip button:hover { color: var(--green-300); }

.field-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1.3fr; } }

.extra-fields {
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
  border-top: 1px dashed #d6d3d1;
  padding-top: 1rem;
}
.dark .extra-fields { border-top-color: #44403c; }

.field-label {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: #78716c;
  margin-bottom: .25rem;
}
.dark .field-label { color: #a8a29e; }

select.field { appearance: none; background-image: none; }

.hint-box {
  border-inline-start: 3px solid var(--gold);
  background: rgba(200,162,90,.08);
  border-radius: .5rem;
  padding: .7rem .85rem;
  font-size: .78rem;
  line-height: 1.6;
  color: #57534e;
  text-align: left;
}
.dark .hint-box { color: #d6d3d1; background: rgba(200,162,90,.1); }


/* ---------- Optional field hints (phone / country code) ---------- */
.field-optional { font-weight: 400; color: #a8a29e; font-size: 0.8em; }
.field-optional-note { margin-top: 0.5rem; font-size: 0.78rem; color: #78716c; line-height: 1.5; }


/* ---------- Install-app button (PWA) ---------- */
.install-btn{
  display:inline-flex; align-items:center; gap:.4em;
  border:1px solid #0f5c52; color:#0f5c52; background:#ecfdf5;
  border-radius:9px; padding:.55em 1em; font:inherit; font-size:.82rem; font-weight:600;
  cursor:pointer; transition:background .15s;
}
.install-btn:hover{ background:#d9f7ee; }
