/* Muslim Keep — shared stylesheet
   Locked visual direction: mockups/2b-linear-white.html
   Palette: navy + gold on white
   Typography: Inter + system fallback
*/

:root {
  /* Palette */
  --bg: #FFFFFF;
  --bg-2: #FAFAF7;
  --navy: #0E1B38;
  --navy-deep: #070E24;
  --navy-soft: #465172;
  --gold: #C49A3B;
  --gold-light: #E8B55A;
  --gold-soft: #F2D28C;
  --gold-deep: #8F6A25;
  --ink: #0B1024;
  --mute: #6B7289;
  --line: #EDEEF2;

  /* Type scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 17px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;

  /* Spacing + radii */
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); }

p { color: var(--navy-soft); }

/* Focus-visible: visible ring on all interactive elements */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
/* In dark/navy sections the ring needs to invert */
.section-dark :focus-visible {
  outline-color: var(--gold-light);
}

/* Container utility */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Nav --- */
.nav {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--navy);
}
.brand-mark { width: 28px; height: 28px; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  font-size: var(--text-sm);
  color: var(--mute);
}
.nav-links a { color: inherit; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* --- Hero --- */
.hero {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(232,181,90,0.10), transparent 50%),
    radial-gradient(ellipse at 5% 90%, rgba(14,27,56,0.03), transparent 50%),
    var(--bg);
  padding-bottom: 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(196,154,59,0.10);
  border: 1px solid rgba(196,154,59,0.28);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
h1 {
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--navy);
}
h1 .gold {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: var(--text-lg);
  color: var(--navy-soft);
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 40px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(14, 27, 56, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(14,27,56,0.4); }
.btn-note {
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gold-light);
  color: var(--navy);
}
.btn-ghost {
  color: var(--navy);
  padding: 14px 22px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}
.btn-ghost:hover { background: var(--bg-2); }

/* --- Phone frame --- */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone {
  width: 360px;
  height: 782px;
  border-radius: 48px;
  background: #050505;
  padding: 10px;
  box-shadow:
    0 50px 100px -30px rgba(14,27,56,0.35),
    0 20px 40px -10px rgba(14,27,56,0.18),
    inset 0 0 0 2px rgba(255,255,255,0.06);
  position: relative;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 40px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.05);
  pointer-events: none;
}
.screen-img {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  object-fit: cover;
  object-position: top;
}

/* --- Generic section --- */
.section { padding: 96px 0; }
.section h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-lede {
  text-align: center;
  color: var(--mute);
  font-size: var(--text-md);
  max-width: 560px;
  margin: 0 auto 48px;
}
.eyebrow {
  display: block;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

/* --- Feature grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(14,27,56,0.12);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232,181,90,0.16), rgba(232,181,90,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--navy-soft); font-size: var(--text-sm); }

/* --- Premium (dark) --- */
.section-dark {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-soft); }
.section-lede-light { color: rgba(255, 255, 255, 0.7); }
.premium-header { max-width: 680px; margin: 0 auto 56px; }
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.premium-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.premium-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold-soft);
}
.premium-card p { color: rgba(255, 255, 255, 0.72); font-size: var(--text-sm); }

/* --- Pricing --- */
.pricing {
  max-width: 900px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.price-card-featured {
  background: rgba(232, 181, 90, 0.08);
  border-color: rgba(232, 181, 90, 0.3);
}
.price-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.price-amount {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.price-amount span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}
.price-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

/* --- Privacy section --- */
.section-privacy { padding: 96px 0; }
.section-privacy .container { max-width: 720px; }

/* --- Legal (privacy / terms) pages --- */
.legal {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.legal-header { margin-bottom: 40px; }
.legal-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--navy);
}
.legal .updated {
  color: var(--mute);
  font-size: var(--text-sm);
  margin-top: 4px;
}
.legal h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal p, .legal li {
  color: var(--navy-soft);
  font-size: var(--text-base);
  margin-bottom: 16px;
  line-height: 1.7;
}
.legal ul { padding-left: 24px; margin-bottom: 16px; }
.legal a { color: var(--gold-deep); border-bottom: 1px solid rgba(143, 106, 37, 0.3); transition: border-color 0.15s; }
.legal a:hover { border-bottom-color: var(--gold-deep); }

/* --- Support page (FAQ) --- */
.faq { max-width: 720px; padding-top: 48px; padding-bottom: 96px; }
.faq-header { margin-bottom: 40px; }
.faq-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--navy);
}
.faq-header p.lede { color: var(--navy-soft); font-size: var(--text-lg); max-width: 640px; margin: 0; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  background: var(--bg);
  transition: border-color 0.15s;
}
details[open] { border-color: var(--gold); background: var(--bg-2); }
summary {
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
  font-size: var(--text-base);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--gold-deep);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--navy-soft); font-size: var(--text-base); line-height: 1.65; margin-top: 12px; }
details a { color: var(--gold-deep); }
.faq .contact {
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  text-align: center;
}
.faq .contact h2 { font-size: var(--text-xl); margin-bottom: 8px; color: var(--navy); }
.faq .contact p { color: var(--navy-soft); font-size: var(--text-base); }
.faq .contact a { color: var(--gold-deep); font-weight: 600; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner {
  padding: 36px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-links {
  display: flex;
  gap: 24px;
  color: var(--mute);
  font-size: var(--text-sm);
}
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--mute); font-size: var(--text-xs); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 24px;
  }
  .hero-visual { order: -1; }
  .phone { width: 280px; height: 608px; }
  .cta-row { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .pricing { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; padding: 30px 24px; }
}

/* Screen-reader-only text for accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
