/* ==========================================================================
   Sawmly Official Website — Design System
   Matches Sawmly's dual signature palettes:
   1. Cosmic Indigo (Default Dark) — Circadian-friendly night aesthetic
   2. Parchment & Emerald (Light) — Warm alabaster daylight aesthetic
   ========================================================================== */

:root {
  /* Cosmic Indigo (Default Dark Theme) */
  --bg: #070B19;
  --bg-elevated: #0D1224;
  --surface: #141A2D;
  --surface-lighter: #1C233B;
  --surface-glass: rgba(20, 26, 45, 0.78);
  --border: #222B45;
  --border-gold: rgba(214, 169, 66, 0.34);

  --text-primary: #ECE5D8;
  --text-muted: #9AA0B4;
  --text-subtle: #6E758D;

  --gold: #D6A942;
  --gold-bright: #E8C367;
  --gold-container: rgba(214, 169, 66, 0.14);
  --gold-text-on: #070B19;

  --teal: #1E8B8A;
  --teal-deep: #134B4C;
  --teal-soft: rgba(30, 139, 138, 0.16);

  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.15);
  --violet-glow: rgba(59, 42, 112, 0.38);
  --gold-glow: rgba(214, 169, 66, 0.16);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-phone: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(214, 169, 66, 0.22);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --nav-height: 76px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  /* Parchment & Emerald (Light Theme) */
  --bg: #FBF9F5;
  --bg-elevated: #F5F0E6;
  --surface: #F3EFE7;
  --surface-lighter: #FFFFFF;
  --surface-glass: rgba(251, 249, 245, 0.86);
  --border: #E5DDD0;
  --border-gold: rgba(13, 74, 62, 0.22);

  --text-primary: #1A1E1D;
  --text-muted: #525B59;
  --text-subtle: #788280;

  --gold: #0D4A3E;
  --gold-bright: #136454;
  --gold-container: rgba(13, 74, 62, 0.1);
  --gold-text-on: #FBF9F5;

  --teal: #C89D54;
  --teal-deep: #0D4A3E;
  --teal-soft: rgba(200, 157, 84, 0.16);

  --emerald: #0D7A5F;
  --emerald-soft: rgba(13, 122, 95, 0.12);
  --violet-glow: rgba(13, 74, 62, 0.08);
  --gold-glow: rgba(200, 157, 84, 0.16);

  --shadow-sm: 0 4px 16px rgba(26, 30, 29, 0.06);
  --shadow-lg: 0 24px 60px rgba(26, 30, 29, 0.1);
  --shadow-phone: 0 28px 70px rgba(13, 74, 62, 0.16), 0 0 0 1px rgba(13, 74, 62, 0.14);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

/* Subtle Islamic Geometric Background Pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D6A942' stroke-width='0.9'%3E%3Cpath d='M40 4L48 24L68 12L56 32L76 40L56 48L68 68L48 56L40 76L32 56L12 68L24 48L4 40L24 32L12 12L32 24Z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}

[data-theme="light"] body::before {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230D4A3E' stroke-width='0.9'%3E%3Cpath d='M40 4L48 24L68 12L56 32L76 40L56 48L68 68L48 56L40 76L32 56L12 68L24 48L4 40L24 32L12 12L32 24Z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

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

img, svg {
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), border-color var(--transition);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--gold);
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.mobile-nav-list a {
  display: block;
  padding: 8px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.86rem;
  border-radius: 12px;
}

.btn-primary {
  background: var(--gold);
  color: var(--gold-text-on);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--gold-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-gold);
  background: var(--surface-lighter);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--gold);
  padding: 10px 14px;
}

.btn-ghost:hover {
  background: var(--gold-container);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 56px) 0 88px;
  overflow: hidden;
}

.hero-glow-1,
.hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
}

.hero-glow-1 {
  width: 560px;
  height: 560px;
  top: -120px;
  left: -140px;
  background: var(--violet-glow);
}

.hero-glow-2 {
  width: 480px;
  height: 480px;
  top: 80px;
  right: -120px;
  background: var(--gold-glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gold-container);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5.4vw, 4.45rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.72;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.play-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 15px;
  background: var(--gold);
  color: var(--gold-text-on);
  box-shadow: 0 10px 28px var(--gold-glow);
  transition: transform var(--transition), background-color var(--transition);
}

.play-badge-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.play-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.play-badge-small {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.play-badge-big {
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-trust-item svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Phone Showcase (Hero Right Column)
   ========================================================================== */
.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: 100%;
  max-width: 368px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(155deg, #1E2744 0%, #0A0F20 100%);
  box-shadow: var(--shadow-phone);
  position: relative;
}

[data-theme="light"] .phone-frame {
  background: linear-gradient(155deg, #253331 0%, #111918 100%);
}

.phone-screen {
  border-radius: 30px;
  background: #070B19;
  color: #ECE5D8;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 280ms ease, color 280ms ease;
}

.phone-screen[data-preview-theme="parchment"] {
  background: #FBF9F5;
  color: #1A1E1D;
  border-color: #E5DDD0;
}

.phone-screen[data-preview-theme="tahajjud"] {
  background: #0E1413;
  color: #EAE6DF;
  border-color: #233533;
}

.phone-screen[data-preview-theme="oled"] {
  background: #000000;
  color: #E8E3D9;
  border-color: #242220;
}

.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.8;
}

.phone-notch {
  width: 78px;
  height: 18px;
  border-radius: 999px;
  background: #000;
}

.phone-content {
  padding: 6px 16px 14px;
  min-height: 472px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-greeting-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.phone-greeting-sub {
  font-size: 0.72rem;
  opacity: 0.7;
}

.phone-pill-gold {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(214, 169, 66, 0.16);
  border: 1px solid rgba(214, 169, 66, 0.38);
  color: #D6A942;
  font-size: 0.68rem;
  font-weight: 700;
}

.phone-screen[data-preview-theme="parchment"] .phone-pill-gold {
  background: rgba(13, 74, 62, 0.1);
  border-color: rgba(13, 74, 62, 0.28);
  color: #0D4A3E;
}

/* Sticky Prayer Hero Card inside phone */
.phone-hero-card {
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #1B1F4B 0%, #141A2D 100%);
  border: 1px solid rgba(214, 169, 66, 0.32);
  color: #F5EFE0;
}

.phone-screen[data-preview-theme="parchment"] .phone-hero-card {
  background: linear-gradient(135deg, #0D4A3E 0%, #135E50 100%);
  border-color: rgba(200, 157, 84, 0.45);
  color: #FBF9F5;
}

.phone-screen[data-preview-theme="tahajjud"] .phone-hero-card {
  background: linear-gradient(135deg, #1B3832 0%, #161F1E 100%);
  border-color: rgba(212, 177, 106, 0.35);
}

.phone-screen[data-preview-theme="oled"] .phone-hero-card {
  background: #0E0E10;
  border-color: rgba(224, 184, 92, 0.35);
}

.phone-card-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E8C367;
  font-weight: 700;
  margin-bottom: 4px;
}

.phone-countdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.phone-countdown {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phone-countdown-sub {
  font-size: 0.74rem;
  opacity: 0.8;
}

.phone-progress-track {
  margin-top: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.phone-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D6A942, #7FD1B9);
  transition: width 350ms ease;
}

/* Interactive Prayer List inside Phone */
.phone-card {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-screen[data-preview-theme="parchment"] .phone-card {
  background: #F3EFE7;
  border-color: #E5DDD0;
}

.phone-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.prayer-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.prayer-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  font-weight: 700;
  transition: all 180ms ease;
}

.phone-screen[data-preview-theme="parchment"] .prayer-pill {
  background: #FFFFFF;
  border-color: #E5DDD0;
  color: #1A1E1D;
}

.prayer-pill.prayed {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.55);
  color: #7FD1B9;
}

.phone-screen[data-preview-theme="parchment"] .prayer-pill.prayed {
  background: rgba(13, 74, 62, 0.14);
  border-color: #0D4A3E;
  color: #0D4A3E;
}

.prayer-pill-time {
  font-size: 0.58rem;
  opacity: 0.75;
  font-weight: 600;
}

.phone-hydration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phone-add-water {
  padding: 6px 11px;
  border-radius: 999px;
  background: #F2B35E;
  color: #2A2410;
  font-size: 0.68rem;
  font-weight: 800;
  transition: transform 150ms ease;
}

.phone-add-water:active {
  transform: scale(0.95);
}

/* Phone Tab Views */
.phone-view {
  display: none;
  flex-direction: column;
  gap: 11px;
  animation: fadeSlideIn 220ms ease;
}

.phone-view.active {
  display: flex;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fasting Phase Slider in Phone */
.phase-ring-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phase-badge-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #D6A942;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(214, 169, 66, 0.12);
}

.phase-hour-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.phase-hour-unit {
  font-size: 0.56rem;
  opacity: 0.75;
  text-transform: uppercase;
}

.phase-slider {
  width: 100%;
  accent-color: #D6A942;
  margin-top: 6px;
}

/* Word by Word inside Phone */
.wbw-grid {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 6px;
}

.wbw-chip {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 169, 66, 0.22);
  text-align: center;
  min-width: 72px;
  transition: all 180ms ease;
}

.phone-screen[data-preview-theme="parchment"] .wbw-chip {
  background: #FFFFFF;
  border-color: #E5DDD0;
}

.wbw-chip.selected {
  border-color: #D6A942;
  background: rgba(214, 169, 66, 0.18);
}

.wbw-ar {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  line-height: 1.4;
  color: #E8C367;
}

.phone-screen[data-preview-theme="parchment"] .wbw-ar {
  color: #0D4A3E;
}

.wbw-tr {
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.9;
}

.wbw-en {
  font-size: 0.6rem;
  opacity: 0.7;
}

/* Meal FCI inside Phone */
.fci-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fci-badge {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #7FD1B9;
  font-size: 0.75rem;
  font-weight: 800;
}

.phone-screen[data-preview-theme="parchment"] .fci-badge {
  color: #0D4A3E;
  background: rgba(13, 74, 62, 0.12);
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.macro-box {
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.phone-screen[data-preview-theme="parchment"] .macro-box {
  background: #FFFFFF;
}

.macro-val {
  font-size: 0.85rem;
  font-weight: 800;
}

.macro-lbl {
  font-size: 0.62rem;
  opacity: 0.7;
}

/* Phone Bottom Navigation */
.phone-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px 12px;
  background: rgba(0, 0, 0, 0.22);
}

.phone-screen[data-preview-theme="parchment"] .phone-bottom-nav {
  background: #F3EFE7;
  border-color: #E5DDD0;
}

.phone-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  opacity: 0.6;
  transition: all 180ms ease;
}

.phone-nav-btn.active {
  opacity: 1;
  color: #D6A942;
  background: rgba(214, 169, 66, 0.12);
}

.phone-screen[data-preview-theme="parchment"] .phone-nav-btn.active {
  color: #0D4A3E;
  background: rgba(13, 74, 62, 0.1);
}

.phone-caption {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Stats & Trust Strip
   ========================================================================== */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 36px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-stat {
  text-align: center;
  padding: 8px 12px;
}

.trust-stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 4px;
}

.trust-stat-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Bento Feature Grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.feature-card.span-2 {
  grid-column: span 2;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gold-container);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon.teal {
  background: var(--teal-soft);
  border-color: rgba(30, 139, 138, 0.32);
  color: var(--teal);
}

.feature-icon.emerald {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.32);
  color: var(--emerald);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-lighter);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ==========================================================================
   Fasting Phase Coach Interactive Timeline
   ========================================================================== */
.phase-explorer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.phase-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: left;
  transition: all var(--transition);
}

.phase-tab-btn:hover {
  border-color: var(--border-gold);
}

.phase-tab-btn.active {
  background: var(--gold-container);
  border-color: var(--gold);
}

.phase-tab-hours {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.phase-tab-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.phase-detail-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
}

.phase-detail-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 10px;
}

.phase-detail-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

.phase-detail-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.phase-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.phase-tip {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.phase-tip-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 4px;
}

.phase-tip-text {
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Theme Palette Showcase (Matches Sawmly's 4 In-App Themes)
   ========================================================================== */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.theme-swatch-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  transition: transform var(--transition), border-color var(--transition);
}

.theme-swatch-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.theme-swatch-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-container);
}

.swatch-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.theme-swatch-card h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.theme-swatch-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.segmented-control {
  display: inline-flex;
  padding: 5px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.segmented-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.segmented-btn.active {
  background: var(--gold);
  color: var(--gold-text-on);
}

.save-chip {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
}

.segmented-btn.active .save-chip {
  background: rgba(7, 11, 25, 0.2);
  color: inherit;
}

.ramadan-deal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all var(--transition);
}

.ramadan-deal-toggle.active {
  background: var(--gold-container);
  border-color: var(--gold);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 920px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-container) 0%, var(--surface) 38%);
  position: relative;
}

.pricing-ribbon {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-text-on);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price-num {
  font-family: var(--font-display);
  font-size: 3.3rem;
  font-weight: 700;
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 40px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.pricing-list svg {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   Privacy / Amanah Banner
   ========================================================================== */
.amanah-card {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.amanah-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.amanah-pillar {
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.amanah-pillar h4 {
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.amanah-pillar p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--border-gold);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  color: var(--text-primary);
}

.faq-icon {
  transition: transform var(--transition);
  color: var(--gold);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-panel-inner {
  padding: 0 24px 22px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #134B4C 0%, #0D162E 58%, #1C1838 100%);
  border: 1px solid rgba(214, 169, 66, 0.4);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: #ECE5D8;
  position: relative;
  overflow: hidden;
}

.cta-banner .arabic-dua {
  font-family: var(--font-arabic);
  font-size: 1.7rem;
  color: #E8C367;
  margin-bottom: 12px;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.12;
}

.cta-banner p {
  font-size: 1.05rem;
  color: #C7CEDA;
  max-width: 580px;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 310px;
  line-height: 1.65;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Legal & Support Subpages (privacy.html, terms.html, delete-account.html)
   ========================================================================== */
.legal-hero {
  padding: calc(var(--nav-height) + 52px) 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.callout-box {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--gold-container);
  border: 1px solid var(--border-gold);
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Articles Section — CSS Grid Masonry Layout
   ========================================================================== */
.articles-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.article-filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.article-filter-btn:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.article-filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-text-on);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.articles-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 10px;
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
}

/* Progressive enhancement for browsers supporting native CSS Grid Masonry */
@supports (grid-template-rows: masonry) {
  .articles-masonry {
    grid-template-rows: masonry;
    grid-auto-rows: auto;
    gap: 24px;
  }

  .article-card {
    grid-row-end: auto !important;
    margin-bottom: 0 !important;
  }
}

.article-card {
  grid-row-end: span 30;
  margin-bottom: 24px;
}

.article-card.is-hidden {
  display: none;
}

.article-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card-inner:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.article-card.featured-article .article-card-inner {
  background: linear-gradient(170deg, var(--gold-container) 0%, var(--surface) 44%);
  border-color: var(--border-gold);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--gold-container);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.article-category.teal {
  background: var(--teal-soft);
  border-color: rgba(30, 139, 138, 0.34);
  color: var(--teal);
}

.article-category.emerald {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.34);
  color: var(--emerald);
}

.article-read-time {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.article-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.68;
}

.article-arabic-quote {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-right: 3px solid var(--gold);
}

.article-arabic-quote .arabic {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--gold);
  margin-bottom: 6px;
  text-align: right;
}

.article-arabic-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.76rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.article-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.article-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.article-checklist li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.74rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.article-stat-pill-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.article-mini-stat {
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.article-mini-stat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
}

.article-mini-stat span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.article-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.article-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.article-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.article-share-btn:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: var(--gold-container);
  transform: translateY(-1px);
}

.article-share-btn.copied {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.5);
  background: var(--emerald-soft);
}

.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  padding: 6px 10px;
  border-radius: 10px;
  transition: background-color var(--transition), transform var(--transition);
}

.article-read-btn:hover {
  background: var(--gold-container);
  transform: translateX(2px);
}

/* Article Reader Modal */
.article-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 18, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.article-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.article-modal {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.article-modal-backdrop.open .article-modal {
  transform: translateY(0) scale(1);
}

.article-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.article-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.article-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}

.article-modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Floating Share Toast */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.share-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.article-modal-body {
  padding: 26px 28px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-modal-body h4 {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 6px;
}

.article-modal-body p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.article-modal-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .hero-trust-row {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card.span-2 {
    grid-column: span 2;
  }

  .phase-explorer,
  .amanah-card {
    grid-template-columns: 1fr;
  }

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid,
  .pricing-grid,
  .phase-tips-grid,
  .amanah-pillars,
  .articles-masonry {
    grid-template-columns: 1fr;
  }

  .feature-card.span-2 {
    grid-column: span 1;
  }

  .phase-explorer,
  .amanah-card,
  .pricing-card,
  .legal-card,
  .article-card-inner {
    padding: 24px;
  }

  .article-modal-header,
  .article-modal-body {
    padding: 20px;
  }

  .cta-banner {
    padding: 44px 22px;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 480px) {
  .themes-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

