/* ─────────────────────────────────────────────────────
   WASIYYAH — Editorial Islamic Aesthetic
   Cream paper · Forest green ink · Muted gold accents
   ───────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --cream: #F5EFE0;
  --cream-deep: #EDE5D1;
  --paper: #FBF7EC;
  --ink: #14241C;
  --ink-soft: #2E3F36;
  --ink-mute: #5C6B62;

  /* Accents */
  --emerald: #1F4D38;
  --emerald-deep: #143426;
  --gold: #B89043;
  --gold-soft: #D4B570;
  --gold-faint: #E9D9B0;

  /* Lines */
  --line: #D9CDB0;
  --line-soft: #E5DCC4;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-arabic: 'Amiri', serif;

  /* Spacing */
  --container: 1080px;
  --container-narrow: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--emerald); text-decoration: none; }
a:hover { color: var(--gold); }

em { font-style: italic; color: var(--emerald); }

/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 224, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald);
  color: var(--gold-soft);
  border-radius: 50%;
  font-family: var(--font-arabic);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  padding-bottom: 2px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-nav a {
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 500;
}
.header-nav a:hover { color: var(--emerald); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  line-height: 1;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary {
  background: var(--emerald);
  color: var(--paper);
  box-shadow: 0 1px 0 var(--emerald-deep);
}
.btn-primary:hover {
  background: var(--emerald-deep);
  color: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 36, 28, 0.18);
}
.btn-ghost {
  background: transparent;
  color: var(--emerald);
  border: 1px solid var(--emerald);
}
.btn-ghost:hover {
  background: var(--emerald);
  color: var(--paper);
}
.btn-disabled {
  background: transparent;
  color: var(--ink-mute);
  border: 1px dashed var(--line);
  cursor: not-allowed;
}
.btn-block { width: 100%; }

/* ─── Eyebrow ─── */
.eyebrow,
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
}

/* ─── HERO ─── */
.hero {
  padding: 70px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(184, 144, 67, 0.06), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 auto 28px;
  max-width: 920px;
  font-variation-settings: "SOFT" 50, "opsz" 100;
}
.hero-sub {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 50px;
}

/* ─── Hadith Block ─── */
.hadith {
  max-width: 720px;
  margin: 0 auto 50px;
  padding: 36px 32px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}
.hadith::before,
.hadith::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  top: -14px;
  background: var(--paper);
}
.hadith::before { left: -14px; }
.hadith::after { right: -14px; }

.hadith-arabic {
  font-family: var(--font-arabic);
  font-size: 26px;
  line-height: 2;
  color: var(--emerald);
  margin-bottom: 22px;
  font-weight: 400;
}
.hadith-english {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.hadith-source {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ─── Waitlist Form ─── */
.waitlist-form {
  max-width: 540px;
  margin: 0 auto;
}
.waitlist-fields {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.waitlist-form input {
  flex: 1;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.waitlist-form input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(31, 77, 56, 0.08);
}
.waitlist-form input::placeholder {
  color: var(--ink-mute);
}
.waitlist-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.meta-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.form-message {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 16px;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(31, 77, 56, 0.08);
  color: var(--emerald);
  border: 1px solid var(--emerald);
}
.form-message.error {
  display: block;
  background: rgba(180, 50, 50, 0.06);
  color: #913232;
  border: 1px solid #C76060;
}

/* ─── Section base ─── */
.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--line-soft);
}
.section-cream { background: var(--cream-deep); }
.section-dark {
  background: var(--emerald);
  color: var(--paper);
  border: none;
}
.section-final {
  background: var(--paper);
  text-align: center;
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 56px;
  max-width: 820px;
  font-variation-settings: "SOFT" 60, "opsz" 80;
}

/* ─── Problem Section ─── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}
.problem-card {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
}
.problem-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--emerald);
  margin-bottom: 12px;
}
.problem-card p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.problem-conclusion {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ─── Steps Section ─── */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  font-variation-settings: "SOFT" 80;
}
.step-body p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.feature-card {
  padding: 36px 30px;
  background: var(--paper);
  transition: background 0.25s ease;
}
.feature-card:hover { background: var(--cream); }
.feature-icon {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.price-card {
  padding: 36px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card-featured {
  background: var(--cream-deep);
  border: 2px solid var(--emerald);
  box-shadow: 0 8px 28px rgba(20, 36, 28, 0.08);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  background: var(--emerald);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
}
.price-tier {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--ink);
}
.price-currency {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}
.price-value {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 30;
}
.price-period {
  font-size: 18px;
  color: var(--ink-mute);
  font-style: italic;
}
.price-strikethrough {
  font-size: 15px;
  color: var(--ink-mute);
  text-decoration: line-through;
  margin-bottom: 24px;
  min-height: 1em;
}
.price-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}
.price-features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--ink-soft);
  position: relative;
  padding-left: 24px;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.price-features li:last-child { border-bottom: none; }
.pricing-note {
  text-align: center;
  font-style: italic;
  color: var(--ink-mute);
  font-size: 16px;
  margin-top: 12px;
}

/* ─── Trust Section ─── */
.section-dark .container { color: var(--paper); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
}
.trust-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-soft);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.trust-card p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(251, 247, 236, 0.78);
}

/* ─── FAQ ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.faq-item:hover { border-color: var(--gold); }
.faq-item[open] { background: var(--cream-deep); border-color: var(--emerald); }
.faq-item summary {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ─── Final CTA ─── */
.final-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--emerald);
  margin-bottom: 22px;
  font-variation-settings: "SOFT" 60;
}
.final-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 40px;
}
.waitlist-form-final {
  margin-bottom: 20px;
}
.final-note {
  font-size: 15px;
  color: var(--ink-mute);
  font-style: italic;
  max-width: 460px;
  margin: 0 auto;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--emerald-deep);
  color: rgba(251, 247, 236, 0.7);
  padding: 50px 0 40px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .brand-mark {
  background: var(--gold);
  color: var(--emerald-deep);
}
.footer-brand .brand-name { color: var(--paper); font-size: 19px; }
.footer-text {
  font-size: 15px;
  margin-bottom: 14px;
}
.footer-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-soft);
  opacity: 0.85;
}

/* ─── Animations on scroll ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero { padding: 50px 0 60px; }
  .hero-sub { font-size: 18px; }
  .hadith { padding: 28px 22px; }
  .hadith-arabic { font-size: 22px; line-height: 1.9; }
  .hadith-english { font-size: 17px; }
  .header-nav a:not(.btn) { display: none; }
  .header-nav { gap: 8px; }
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 36px; }
  .step { flex-direction: column; gap: 16px; }
  .step-number { width: 44px; height: 44px; font-size: 19px; }
  .step-body h3 { font-size: 22px; }
  .waitlist-fields { flex-direction: column; }
  .price-value { font-size: 56px; }
  .container, .container-narrow { padding: 0 22px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 24px; }
  .problem-card { padding: 28px 22px; }
  .problem-conclusion { font-size: 18px; padding: 22px 18px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 19px; }
  .hero-title { font-size: 32px; }
}
