/* 99 Names — Shared stylesheet
   Palette: cream #FFF8F0, teal #0D4F4F, gold #D4A843
   Typography: Inter
*/

:root {
  --cream: #FFF8F0;
  --cream-deep: #F5ECD9;
  --teal: #0D4F4F;
  --teal-soft: #1A6B6B;
  --teal-ink: #073333;
  --gold: #D4A843;
  --gold-soft: #E6BF5C;
  --ink: #1F2A2A;
  --muted: #5C6A6A;
  --line: rgba(13, 79, 79, 0.12);
  --shadow-sm: 0 2px 6px rgba(13, 79, 79, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 79, 79, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--teal-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-top: 2em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.6em; }

p { margin: 0 0 1em; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--teal-ink);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--teal-soft));
  color: var(--gold);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
}
.nav__links { display: flex; gap: 22px; font-size: 0.95rem; }
.nav__links a { color: var(--teal-ink); font-weight: 500; }
.nav__links a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .nav__links { gap: 14px; font-size: 0.88rem; }
  .nav__links a.hide-sm { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--teal);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--teal-ink); color: var(--gold); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--teal-ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

/* HERO */
.hero {
  padding: 72px 24px 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.12), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.18);
  color: #8a6a1e;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero__meta {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: inline-block; }

/* Phone mockup */
.phone {
  justify-self: center;
  width: 300px;
  height: 600px;
  border-radius: 44px;
  background: #0a2424;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(13, 79, 79, 0.25), 0 10px 30px rgba(13, 79, 79, 0.15);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #0a2424;
  border-radius: 14px;
  z-index: 3;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone__header {
  padding: 44px 22px 14px;
  text-align: center;
}
.phone__greet {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.phone__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-ink);
}
.phone__card {
  margin: 10px 18px;
  padding: 18px;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.phone__card-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.phone__arabic {
  font-size: 2.4rem;
  text-align: center;
  color: var(--teal);
  font-weight: 700;
  margin: 6px 0 4px;
  font-family: 'Amiri', 'Scheherazade New', serif;
}
.phone__translit {
  text-align: center;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.phone__meaning {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.phone__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 18px 0;
}
.phone__stat {
  padding: 10px 8px;
  background: rgba(13, 79, 79, 0.06);
  border-radius: 12px;
  text-align: center;
}
.phone__stat-num {
  font-weight: 700;
  color: var(--teal-ink);
  font-size: 1rem;
}
.phone__stat-label {
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.phone__progress {
  margin: 14px 18px;
}
.phone__progress-bar {
  height: 8px;
  background: rgba(13, 79, 79, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.phone__progress-fill {
  height: 100%;
  width: 32%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
}
.phone__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
}
.phone__cta {
  margin: auto 18px 28px;
  padding: 14px;
  background: var(--teal);
  color: var(--cream);
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(13, 79, 79, 0.25);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__eyebrow { margin-inline: auto; }
  .phone { transform: scale(0.92); }
}

/* FEATURES */
.features {
  padding: 72px 24px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.features__inner { max-width: var(--max); margin: 0 auto; }
.features__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.features__head p { color: var(--muted); font-size: 1.05rem; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.feature h3 { margin-top: 0; }
.feature p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

/* HOW IT WORKS */
.how {
  padding: 72px 24px;
}
.how__inner { max-width: var(--max); margin: 0 auto; }
.how__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.how__head p { color: var(--muted); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -16px; left: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 8px; font-size: 1.1rem; }
.step p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

/* MISSION */
.mission {
  padding: 72px 24px;
  background: var(--teal);
  color: var(--cream);
}
.mission__inner {
  max-width: var(--max-narrow);
  margin: 0 auto;
  text-align: center;
}
.mission h2 { color: var(--cream); }
.mission p { color: rgba(255, 248, 240, 0.88); font-size: 1.1rem; max-width: 60ch; margin-inline: auto; }
.mission__split {
  display: inline-flex;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.1);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

/* DOWNLOAD CTA */
.download {
  padding: 72px 24px;
  text-align: center;
}
.download__inner {
  max-width: var(--max-narrow);
  margin: 0 auto;
}
.download__badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--teal-ink);
  color: var(--cream);
  border-radius: 14px;
  min-width: 200px;
  transition: transform .12s ease, background .15s ease;
}
.badge:hover { background: var(--teal); transform: translateY(-1px); color: var(--cream); }
.badge__icon { font-size: 1.7rem; }
.badge__small { font-size: 0.72rem; opacity: 0.85; line-height: 1; }
.badge__big { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.badge__note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* FOOTER */
.footer {
  padding: 48px 24px 32px;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; color: var(--teal-ink); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer__brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer__bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > div:first-child { grid-column: 1 / -1; }
}

/* LEGAL / SUPPORT PAGES */
.page {
  padding: 56px 24px 72px;
}
.page__inner {
  max-width: var(--max-narrow);
  margin: 0 auto;
}
.page__kicker {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.page__inner h1 { margin-bottom: 0.3em; }
.page__updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2em;
}
.page__inner p, .page__inner li {
  font-size: 1rem;
  color: var(--ink);
}
.page__inner ul { padding-left: 22px; }
.page__inner li { margin-bottom: 8px; }
.page__inner strong { color: var(--teal-ink); }
.page__inner h2 {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.page__inner h2:first-of-type { border-top: 0; padding-top: 0; }

.callout {
  padding: 18px 20px;
  background: rgba(212, 168, 67, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 0.95rem;
}
.callout p:last-child { margin-bottom: 0; }

/* Support page */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0 12px;
}
.support-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.support-card h3 { margin-top: 0; font-size: 1.05rem; }
.support-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.support-card a { font-weight: 600; }
.faq { margin-top: 16px; }
.faq details {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  margin-bottom: 10px;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--teal-ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 700;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
