/* ============================================================
   Hifz Musaa'id — shared site styles
   Mirrors the iOS app's palette so the brand reads as one
   product across web + mobile.
   ============================================================ */

:root {
  --teal:        #1B5C6B;
  --teal-dark:   #154F5C;
  --teal-light:  #1A8A8A;
  --gold:        #C49A3C;
  --gold-deep:   #9F7829;
  --gold-light:  #F5E6C0;
  --cream:       #F0EDE6;
  --cream-soft:  #FAF7F1;
  --ink:         #1A1A1A;
  --ink-mid:     #555550;
  --ink-light:   #999990;
  --divider:     #E8E2D8;
  --card-border: rgba(196, 154, 60, 0.25);
  --green:       #2E8B57;
  --max-width:   1080px;
  --radius:      14px;
  --radius-sm:   10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================ Navigation ============================ */

.nav {
  position: sticky;
  top: 0;
  background: var(--teal);
  color: #fff;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-brand {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.2px;
}
.nav-brand .arabic {
  font-family: "Amiri", "Scheherazade New", serif;
  font-weight: 400;
  color: var(--gold-light);
  margin-left: 8px;
  font-size: 17px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  margin-left: 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: var(--gold-light); }

@media (max-width: 600px) {
  .nav-links { width: 100%; display: flex; justify-content: space-between; }
  .nav-links a { margin-left: 0; }
}

/* ============================ Hero ============================ */

.hero {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 80px 24px 90px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.hero .tagline {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .badge {
  display: inline-block;
  background: rgba(245, 230, 192, 0.18);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 24px;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero .cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold-deep);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
  border-color: rgba(255,255,255,0.85);
}

@media (max-width: 600px) {
  .hero { padding: 60px 20px 70px; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 17px; }
}

/* ============================ Sections ============================ */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
}
.section-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px;
}
.section h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
.section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.section .lead {
  font-size: 17px;
  color: var(--ink-mid);
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-narrow p { color: var(--ink-mid); font-size: 16px; }
.section-title-center { text-align: center; }

/* ============================ Feature grid ============================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  padding: 24px 22px;
}
.feature-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 6px;
}
.feature-card p {
  font-size: 14px;
  color: var(--ink-mid);
  margin: 0;
}

/* ============================ Pricing ============================ */

.pricing-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

@media (max-width: 980px) {
  .pricing-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pricing-row { grid-template-columns: 1fr; }
}

.tier {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fff 0%, #FFFBF1 100%);
  position: relative;
}
.tier.featured::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 4px 11px;
  border-radius: 12px;
}
.tier.future {
  background: linear-gradient(180deg, #FAF7F1 0%, #fff 100%);
  border-style: dashed;
}
.tier .tier-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 4px;
}
.tier .tier-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 8px 0 2px;
}
.tier .tier-price .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light);
}
.tier .tier-trial {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 18px;
  min-height: 18px;
}
.tier .tier-trial.future-pricing { font-style: italic; }
.tier ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
  flex-grow: 1;
}
.tier ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.tier ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}
.tier.future ul li::before {
  content: "○";
  color: var(--gold-deep);
  font-weight: 400;
}
.tier .tier-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--cream);
  color: var(--ink-mid);
}
.tier.featured .tier-cta {
  background: linear-gradient(to right, var(--gold-deep), var(--gold));
  color: #fff;
}
.tier.future .tier-cta {
  background: transparent;
  border: 1px dashed var(--gold-deep);
  color: var(--gold-deep);
}

.pricing-support-note {
  margin-top: 36px;
  padding: 18px 22px;
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* ============================ Tables / Lists in legal pages ============================ */

.legal-section {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  padding: 28px 30px;
  margin-bottom: 22px;
}
.legal-section h3 { color: var(--teal); margin-top: 0; }
.legal-section p { font-size: 15px; color: var(--ink-mid); }
.legal-section ul { padding-left: 22px; }
.legal-section ul li { padding: 4px 0; color: var(--ink-mid); font-size: 14px; }
.legal-section strong { color: var(--ink); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.data-table th {
  background: var(--cream-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.data-table td { color: var(--ink-mid); }
.data-table td:first-child { color: var(--ink); font-weight: 600; }

/* ============================ Footer ============================ */

.footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px 30px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.footer-brand { color: var(--gold-light); font-weight: 700; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  display: inline-block;
  margin-left: 18px;
  font-size: 13px;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-fine {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; }
  .footer-links a { margin-left: 0; margin-right: 16px; }
}
