/* ==========================================================
   HADITH AI & COMPANION - OFFICIAL WEBSITE STYLESHEET
   Inspired by SpeakX.ai modern design + Islamic calm elegance
   Colors: Cream (#FAF7F2), Sage (#4F9A74), Dark Sage (#2E6B4F), Warm Gold (#C5A059)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

:root {
  --bg-cream: #FAF7F2;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4EFE6;
  --bg-dark: #121E17;
  
  --sage-primary: #4F9A74;
  --sage-dark: #2E6B4F;
  --forest-deep: #1A4633;
  --sage-light: #E8F4ED;
  --sage-glow: rgba(79, 154, 116, 0.15);
  
  --gold-warm: #C5A059;
  --gold-light: #F7F1E1;
  --gold-glow: rgba(197, 160, 89, 0.2);
  
  --text-dark: #1E2A24;
  --text-body: #3A4C42;
  --text-muted: #6B7E74;
  --text-light: #9BAEA4;
  
  --border-subtle: #E8E2D8;
  --border-active: #4F9A74;
  
  --shadow-sm: 0 2px 8px rgba(30, 42, 36, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 42, 36, 0.06);
  --shadow-lg: 0 16px 40px rgba(30, 42, 36, 0.08);
  --shadow-pill: 0 8px 30px rgba(79, 154, 116, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Amiri', serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================
   NAVIGATION BAR (Floating Pill inspired by SpeakX.ai)
   ========================================================== */
.navbar-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 226, 216, 0.9);
  box-shadow: 0 10px 30px rgba(30, 42, 36, 0.06);
  border-radius: var(--radius-pill);
  padding: 8px 12px 8px 20px;
  width: 100%;
  max-width: 1080px;
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sage-light);
  box-shadow: 0 2px 8px rgba(79, 154, 116, 0.2);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-deep);
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--sage-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--sage-light);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  letter-spacing: 0.02em;
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--sage-dark);
}

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

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-dark);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(46, 107, 79, 0.25);
}

.btn-nav-download:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 107, 79, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero-section {
  padding-top: 130px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(79, 154, 116, 0.08) 0%, rgba(250, 247, 242, 0) 65%);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.pill-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--sage-primary);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  color: var(--sage-primary);
  font-style: italic;
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--sage-primary), var(--sage-dark));
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(46, 107, 79, 0.28);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46, 107, 79, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  color: var(--forest-deep);
  border: 1px solid var(--border-subtle);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--sage-primary);
  transform: translateY(-2px);
}

/* ==========================================================
   PHONE SHOWCASE MOCKUP (Centerpiece)
   ========================================================== */
.hero-showcase {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.phone-frame {
  width: 320px;
  height: 640px;
  background: #111;
  border-radius: 46px;
  border: 12px solid #222;
  box-shadow: 0 30px 80px rgba(26, 70, 51, 0.2), 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-cream);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone-screen::-webkit-scrollbar { display: none; }

.phone-notch {
  width: 110px;
  height: 20px;
  background: #222;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Simulated App Header */
.app-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}
.app-mock-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--forest-deep);
  font-size: 1.1rem;
}
.app-mock-badge {
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

/* Simulated Salah Widget */
.app-mock-salah {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}
.app-mock-salah-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.salah-nodes {
  display: flex;
  justify-content: space-between;
}
.salah-node {
  text-align: center;
  font-size: 0.7rem;
}
.salah-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  margin: 0 auto 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}
.salah-circle.active {
  background: var(--sage-primary);
  border-color: var(--sage-primary);
  color: #fff;
}

/* Simulated Daily Card */
.app-mock-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.app-mock-card-tag {
  color: var(--gold-warm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.app-mock-arabic {
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  text-align: right;
  direction: rtl;
  margin-bottom: 8px;
}
.app-mock-quote {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 8px;
}
.app-mock-ref {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sage-dark);
}

/* Simulated Chat Floating Snippet */
.floating-card-left, .floating-card-right {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  max-width: 280px;
  transition: transform 0.3s ease;
}

.floating-card-left {
  left: 40px;
  top: 140px;
  animation: floatLeft 6s ease-in-out infinite;
}

.floating-card-right {
  right: 40px;
  bottom: 120px;
  animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatLeft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatRight {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.floating-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.floating-avatar {
  width: 32px;
  height: 32px;
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.floating-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--forest-deep);
}
.floating-text {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.45;
}

/* ==========================================================
   METRICS & STATS BAR (SpeakX.ai Trustmarks)
   ========================================================== */
.stats-section {
  padding: 40px 0;
  background: var(--bg-white);
  border-y: 1px solid var(--border-subtle);
}

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

.stat-item {
  padding: 16px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1;
  margin-bottom: 6px;
}

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

/* ==========================================================
   FEATURES SECTION
   ========================================================== */
.features-section {
  padding: 90px 0;
}

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

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--forest-deep);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--sage-light);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================
   HADITH BOOKS GRID (10 Books Showcase)
   ========================================================== */
.books-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.book-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.book-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.book-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 4px;
}

.book-arabic {
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  color: var(--gold-warm);
  margin-bottom: 6px;
}

.book-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================
   FAQ & COMPLIANCE SECTION
   ========================================================== */
.faq-section {
  padding: 90px 0;
}

.faq-container {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--sage-primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ==========================================================
   SUPPORT & CONTACT SECTION
   ========================================================== */
.support-section {
  padding: 90px 0;
  background: var(--bg-white);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.support-info h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--forest-deep);
  margin-bottom: 14px;
}

.support-info p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--sage-primary);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-card-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--forest-deep);
}

.contact-card-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.support-form-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--sage-primary);
  box-shadow: 0 0 0 3px rgba(79, 154, 116, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  width: 100%;
  background: var(--sage-dark);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

/* ==========================================================
   FOOTER (SpeakX.ai Inspired)
   ========================================================== */
.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #A0B2A6;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

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

.footer-links a {
  text-decoration: none;
  color: #A0B2A6;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7B8F83;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================== */
@media (max-width: 1024px) {
  .floating-card-left, .floating-card-right {
    display: none;
  }
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav-download {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .phone-frame {
    width: 290px;
    height: 580px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   SHARED SUBPAGE & LEGAL LAYOUT (SpeakX.ai Pattern)
   ========================================================== */
.subpage-container {
  max-width: 860px;
  margin: 120px auto 70px;
  background: var(--bg-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-light);
  color: var(--sage-dark);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--forest-deep);
  line-height: 1.15;
  margin-bottom: 12px;
}

.subpage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.subpage-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--forest-deep);
  margin: 32px 0 12px;
}

.subpage-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--sage-dark);
  margin: 22px 0 8px;
}

.subpage-body p, .subpage-body li {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 14px;
}

.subpage-body ul, .subpage-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.highlight-box {
  background: var(--bg-cream);
  border-left: 4px solid var(--sage-primary);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.highlight-box strong {
  color: var(--forest-deep);
}

.step-card {
  display: flex;
  gap: 16px;
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 4px;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .subpage-container {
    padding: 24px 20px;
    margin-top: 100px;
    border-radius: var(--radius-md);
  }
}

