/* ═══════════════════════════════════════════════════════════════
   Tiny Ummah · style.css
   Single stylesheet for all pages.

   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────
   01  CSS Variables (design tokens — edit here to retheme)
   02  Reset & Base
   03  Typography
   04  Rules & Decorators
   05  Buttons
   06  Tags & Badges
   07  Watercolour / Illustration placeholders
   08  Animations & scroll-reveal
   09  Navigation
   10  Breadcrumb
   11  Page system  (show/hide SPA routing)
   12  Home page
   13  Library page
   14  Modules page
   15  Lesson reader (dynamically populated)
   16  Pathways page
   17  This Month page
   18  About page
   19  Join page
   20  Login modal
   21  Footer
   22  99 Names grid & modal
   23  Character portraits
   24  Responsive / mobile
   ─────────────────────────────────────────────────────────
   Never add inline styles for anything covered here.
   To add a new component: append a labelled section below.
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM — TINY UMMAH CONTENT PLATFORM
   Visual identity preserved exactly from v1
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --linen:    #F7F3EE;
  --linen-d:  #EDE6DC;
  --sand:     #D9CFBF;
  --sand-l:   #EAE4DA;
  --sage:     #8B9E88;
  --sage-l:   #C4D1C1;
  --olive:    #4C5E3F;
  --olive-d:  #323D28;
  --charcoal: #2A2826;
  --charcoal-l:#5C5854;
  --gold:     #B8975A;
  --gold-l:   #D4B882;
  --gold-w:   #EDD9A3;
  --clay:     #A07860;
  --clay-l:   #C49A82;
  --dusty:    #6E8FA0;
  --dusty-l:  #A8C0CC;
  --cream:    #FDFAF7;
  --white:    #FFFFFF;
  --ff-display:'Cormorant Garamond', Georgia, serif;
  --ff-body:   'Jost', system-ui, sans-serif;
  --r: 6px; --r-lg: 12px;
  --shadow: 0 2px 20px rgba(42,40,38,.08);
  --shadow-lg: 0 8px 48px rgba(42,40,38,.12);
}
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-body); background: var(--cream); color: var(--charcoal); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: var(--ff-body); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── TYPOGRAPHY ── */
.t-display { font-family: var(--ff-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.t-serif { font-family: var(--ff-display); }
.t-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--charcoal-l); }
.t-gold { color: var(--gold); }
.t-olive { color: var(--olive); }
.t-muted { color: var(--charcoal-l); }

/* ── RULE ── */
.rule { height: 1px; background: var(--sand); border: none; }
.rule--gold { background: linear-gradient(90deg, transparent, var(--gold-l), transparent); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; font-family: var(--ff-body); font-size: 14px; font-weight: 500; letter-spacing: .04em; border: none; border-radius: var(--r); cursor: pointer; transition: all .22s ease; white-space: nowrap; }
.btn--primary { background: var(--olive); color: var(--cream); }
.btn--primary:hover { background: var(--olive-d); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--sand); }
.btn--outline:hover { border-color: var(--olive); color: var(--olive); }
.btn--ghost { background: transparent; color: var(--charcoal-l); padding: 10px 0; }
.btn--ghost:hover { color: var(--charcoal); }
.btn--gold { background: var(--gold); color: var(--cream); }
.btn--gold:hover { background: var(--clay); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--sm { padding: 10px 22px; font-size: 13px; }
.btn--lg { padding: 18px 42px; font-size: 15px; }

/* ── TAGS ── */
.tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 500; letter-spacing: .05em; background: var(--sand-l); color: var(--charcoal-l); border: 1px solid var(--sand); transition: all .18s; }
.tag:hover, .tag.active { background: var(--olive); color: var(--cream); border-color: var(--olive); cursor: pointer; }
.tag--sage { background: rgba(139,158,136,.15); color: var(--olive); border-color: var(--sage-l); }
.tag--gold { background: rgba(184,151,90,.12); color: var(--clay); border-color: var(--gold-l); }
.tag--dusty { background: rgba(110,143,160,.12); color: var(--dusty); border-color: var(--dusty-l); }

/* ── WATERCOLOUR PLACEHOLDER ── */
.wc-wash { position: relative; overflow: hidden; background: var(--sand-l); border-radius: var(--r-lg); }
.wc-wash::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(139,158,136,.28) 0%, transparent 70%), radial-gradient(ellipse 60% 80% at 70% 60%, rgba(184,151,90,.18) 0%, transparent 65%), radial-gradient(ellipse 50% 50% at 50% 20%, rgba(110,143,160,.15) 0%, transparent 60%); }
.wc-wash--wide { aspect-ratio: 16/9; }
.wc-wash--sq   { aspect-ratio: 1; }
.wc-crescent { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 48px; opacity: .12; user-select: none; }

/* ── SECTION ── */
.section { padding: 100px 0; }
.section--sm { padding: 60px 0; }
.section--lg { padding: 130px 0; }
.section--linen { background: var(--linen); }
.section--sand { background: var(--sand-l); }
.section--olive { background: var(--olive-d); color: var(--cream); }

/* ── ANIMATE ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-in { opacity: 0; animation: fadeUp .65s cubic-bezier(.22,1,.36,1) forwards; }
.animate-in.delay-1 { animation-delay: .1s; }
.animate-in.delay-2 { animation-delay: .2s; }
.animate-in.delay-3 { animation-delay: .3s; }
.animate-in.delay-4 { animation-delay: .45s; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(247,243,238,.95); backdrop-filter: blur(16px) saturate(120%); border-bottom: 1px solid var(--sand); transition: box-shadow .3s; }
.site-nav.scrolled { box-shadow: 0 2px 24px rgba(42,40,38,.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.nav-logo { font-family: var(--ff-display); font-size: 22px; font-weight: 600; color: var(--charcoal); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo-mark { width: 28px; height: 28px; background: var(--olive); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--charcoal-l); padding: 8px 14px; border-radius: var(--r); transition: all .18s; cursor: pointer; }
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.nav-links a.active { font-weight: 500; }
.nav-join { background: var(--olive) !important; color: var(--cream) !important; padding: 9px 20px !important; border-radius: var(--r) !important; font-weight: 500 !important; transition: background .2s !important; }
.nav-join:hover { background: var(--olive-d) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--charcoal); transition: all .25s; }
.mobile-menu { display: none; position: fixed; inset: 64px 0 0 0; background: var(--cream); z-index: 999; padding: 32px 24px; flex-direction: column; gap: 8px; overflow-y:auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 20px; font-family: var(--ff-display); font-weight: 500; color: var(--charcoal); padding: 12px 0; border-bottom: 1px solid var(--sand-l); cursor: pointer; display: block; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--charcoal-l); font-weight: 300; flex-wrap: wrap; }
.breadcrumb span { color: var(--sand); }
.breadcrumb a { cursor: pointer; transition: color .15s; }
.breadcrumb a:hover { color: var(--olive); }
.breadcrumb-bar { background: var(--linen); border-bottom: 1px solid var(--sand); padding: 12px 0; }

/* ── PAGE SYSTEM ── */
.page { display: none; padding-top: 64px; min-height: 100vh; }
.page.active { display: block; }

/* ═══════════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px; background: var(--linen); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 100% 80% at 85% 50%, rgba(139,158,136,.18) 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 10% 80%, rgba(184,151,90,.12) 0%, transparent 55%), radial-gradient(ellipse 40% 40% at 60% 10%, rgba(110,143,160,.1) 0%, transparent 50%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-eyebrow-line { flex: none; width: 32px; height: 1px; background: var(--gold); }
.hero-headline { font-size: clamp(42px, 5.5vw, 72px); margin-bottom: 24px; color: var(--charcoal); }
.hero-headline em { font-style: italic; color: var(--olive); }
.hero-body { font-size: 17px; color: var(--charcoal-l); line-height: 1.8; max-width: 480px; font-weight: 300; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-founding { font-size: 12px; color: var(--charcoal-l); font-weight: 400; display: flex; align-items: center; gap: 8px; }
.hero-founding::before { content:''; width: 24px; height: 1px; background: var(--sand); flex-shrink: 0; }
.hero-visual { position: relative; }
.hero-illustration { position: relative; border-radius: 20px; overflow: hidden; background: var(--linen-d); aspect-ratio: 4/5; }
.hero-illustration::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 35% 40%, rgba(139,158,136,.35) 0%, transparent 65%), radial-gradient(ellipse 60% 80% at 70% 65%, rgba(184,151,90,.22) 0%, transparent 60%); }
.hero-illustration-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-crescent-symbol { font-size: 80px; opacity: .18; line-height: 1; }
.hero-story-chip { position: absolute; bottom: 24px; left: 24px; right: 24px; background: rgba(253,250,247,.92); backdrop-filter: blur(12px); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 16px 20px; }
.hsc-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--charcoal-l); margin-bottom: 6px; font-weight: 500; }
.hsc-title { font-family: var(--ff-display); font-size: 17px; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.hsc-meta { font-size: 12px; color: var(--charcoal-l); font-weight: 300; }
.hero-tag-badge { position: absolute; top: 24px; right: 24px; background: var(--olive); color: var(--cream); border-radius: 99px; padding: 6px 14px; font-size: 11px; font-weight: 500; letter-spacing: .05em; }
.founding-bar { background: var(--olive-d); color: var(--cream); padding: 14px 24px; text-align: center; font-size: 14px; font-weight: 400; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.founding-bar strong { font-weight: 600; font-family: var(--ff-display); font-size: 18px; }
.founding-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; margin-right: 6px; }

/* ── Pillars on home ── */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { border-top: 2px solid var(--sand); padding-top: 28px; }
.pillar-num { font-family: var(--ff-display); font-size: 13px; color: var(--gold); margin-bottom: 14px; letter-spacing: .06em; }
.pillar-heading { font-family: var(--ff-display); font-size: 22px; font-weight: 600; margin-bottom: 12px; color: var(--charcoal); }
.pillar-body { font-size: 15px; color: var(--charcoal-l); line-height: 1.8; font-weight: 300; }

/* ── Story preview ── */
.story-card { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r-lg); overflow: hidden; transition: all .25s ease; cursor: pointer; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sand-l); }
.story-card-img { aspect-ratio: 4/3; position: relative; }
.story-card-body { padding: 22px; }
.story-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.story-card-title { font-family: var(--ff-display); font-size: 20px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; line-height: 1.3; }
.story-card-meta { font-size: 12px; color: var(--charcoal-l); font-weight: 300; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.story-card-excerpt { font-size: 14px; color: var(--charcoal-l); line-height: 1.7; margin-top: 10px; font-weight: 300; }
.story-card-locked { position: relative; }
.story-card-locked::after { content: ''; position: absolute; inset: 0; background: rgba(247,243,238,.7); border-radius: var(--r-lg); backdrop-filter: blur(2px); }
.lock-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--charcoal); color: var(--cream); border-radius: 99px; padding: 4px 12px; font-size: 11px; font-weight: 500; }
.story-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 64px; }

/* ── How it works ── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.how-steps { display: flex; flex-direction: column; gap: 36px; }
.how-step { display: flex; gap: 24px; align-items: flex-start; }
.how-step-num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 16px; font-weight: 600; color: var(--gold); margin-top: 2px; }
.how-step-title { font-family: var(--ff-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.how-step-body { font-size: 14px; color: var(--charcoal-l); line-height: 1.8; font-weight: 300; }

/* ── CTA band ── */
.cta-band { background: var(--olive-d); padding: 100px 0; text-align: center; }
.cta-band-headline { font-size: clamp(34px, 4vw, 54px); color: var(--cream); margin-bottom: 20px; }
.cta-band-sub { font-size: 17px; color: rgba(253,250,247,.65); font-weight: 300; max-width: 480px; margin: 0 auto 40px; line-height: 1.8; }

/* ── Testimonials ── */
.testimonials { background: var(--sand-l); padding: 80px 0; }
.testimonial-track { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 28px 32px; }
.testimonial-stars { color: var(--gold); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-family: var(--ff-display); font-size: 17px; font-style: italic; color: var(--charcoal); line-height: 1.65; margin-bottom: 16px; font-weight: 400; }
.testimonial-name { font-size: 13px; color: var(--charcoal-l); font-weight: 400; }

/* ── Quote block ── */
.quote-block { text-align: center; max-width: 720px; margin: 0 auto; padding: 80px 24px; }
.quote-text { font-family: var(--ff-display); font-size: clamp(24px, 3.5vw, 38px); font-style: italic; font-weight: 400; color: var(--charcoal); line-height: 1.5; margin-bottom: 24px; }
.quote-rule { width: 40px; height: 1px; background: var(--gold); margin: 0 auto 28px; }

/* ═══════════════════════════════════════════════════════
   LIBRARY PAGE
═══════════════════════════════════════════════════════ */
.library-hero { background: var(--linen); padding: 60px 0 48px; border-bottom: 1px solid var(--sand); }
.library-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid var(--sand-l); margin-bottom: 48px; }
.library-section-title { font-family: var(--ff-display); font-size: 26px; font-weight: 600; margin-bottom: 28px; color: var(--charcoal); }

/* ── Age filter tabs ── */
.age-filter-row { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; align-items: center; }
.age-tab { padding: 8px 20px; border: 1.5px solid var(--sand); border-radius: var(--r); font-size: 13px; font-weight: 500; background: var(--white); color: var(--charcoal-l); cursor: pointer; transition: all .18s; font-family: var(--ff-body); }
.age-tab.active, .age-tab:hover { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.age-filter-label { font-size: 13px; color: var(--charcoal-l); font-weight: 400; margin-right: 4px; }

/* ═══════════════════════════════════════════════════════
   LEARNING MODULES PAGE
═══════════════════════════════════════════════════════ */
.modules-hero { background: var(--linen); padding: 60px 0 48px; border-bottom: 1px solid var(--sand); }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.module-card { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all .25s; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.module-card-header { padding: 28px 28px 0; }
.module-week-label { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--charcoal-l); font-weight: 500; margin-bottom: 8px; opacity: .7; }
.module-card-title { font-family: var(--ff-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); line-height: 1.25; }
.module-card-subtitle { font-size: 14px; color: var(--charcoal-l); font-weight: 300; line-height: 1.6; margin-bottom: 20px; }
.module-card-lessons { padding: 0 28px 24px; }
.module-lesson-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.module-lesson-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--charcoal-l); font-weight: 300; padding: 8px 12px; border-radius: var(--r); cursor: pointer; transition: background .15s; }
.module-lesson-item:hover { background: var(--linen); color: var(--charcoal); }
.module-lesson-num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--sand); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--charcoal-l); flex-shrink: 0; }
.module-lesson-emoji { font-size: 14px; flex-shrink: 0; }
.module-card-footer { border-top: 1px solid var(--sand); padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; }
.module-lesson-count { font-size: 12px; color: var(--charcoal-l); font-weight: 300; }

/* ═══════════════════════════════════════════════════════
   LESSON / STORY READING PAGE
═══════════════════════════════════════════════════════ */
.lesson-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; padding: 48px 0 80px; }
.lesson-content { min-width: 0; }
.lesson-sidebar { position: sticky; top: 88px; }

/* ── Story pages ── */
.lesson-hero-card { background: var(--olive-d); border-radius: var(--r-lg); padding: 40px; margin-bottom: 28px; text-align: center; color: var(--cream); position: relative; overflow: hidden; }
.lesson-hero-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(139,158,136,.2) 0%, transparent 70%); }
.lesson-hero-icon { font-size: 56px; margin-bottom: 20px; position: relative; }
.lesson-hero-title { font-family: var(--ff-display); font-size: clamp(28px,4vw,40px); font-weight: 600; margin-bottom: 14px; position: relative; }
.lesson-hero-text { font-size: 16px; color: rgba(253,250,247,.8); line-height: 1.7; font-weight: 300; max-width: 500px; margin: 0 auto; position: relative; }

.lesson-card { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; }
.lesson-card h3 { font-family: var(--ff-display); font-size: 20px; font-weight: 700; color: var(--olive); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.lesson-card p { font-size: 15px; color: var(--charcoal); line-height: 1.85; font-weight: 300; }
.lesson-card p + p { margin-top: 14px; }

.arabic-block { background: var(--white); border: 1.5px solid var(--gold-l); border-radius: var(--r-lg); padding: 32px 24px; text-align: center; margin-bottom: 20px; box-shadow: var(--shadow); }
.arabic-text-display { font-size: clamp(28px,5vw,44px); color: var(--charcoal); direction: rtl; line-height: 1.7; font-weight: 700; margin-bottom: 12px; }
.arabic-transliteration { font-size: 15px; color: var(--charcoal-l); font-style: italic; font-weight: 300; margin-bottom: 8px; }
.arabic-meaning { font-size: 14px; color: var(--olive); font-weight: 500; }

.tip-block { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--gold-l); border-left: 4px solid var(--gold); border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 20px 24px; margin-bottom: 20px; }
.tip-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.tip-text strong { font-family: var(--ff-display); font-size: 16px; font-weight: 700; color: var(--charcoal); display: block; margin-bottom: 6px; }
.tip-text p { font-size: 14px; color: var(--charcoal-l); line-height: 1.7; font-weight: 300; }

/* ── Mini info cards row ── */
.mini-cards-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.mini-card { border-radius: var(--r-lg); padding: 16px 14px; text-align: center; border: 1px solid rgba(0,0,0,.06); }
.mini-card .mc-emoji { font-size: 22px; margin-bottom: 8px; display: block; }
.mini-card .mc-label { font-family: var(--ff-display); font-size: 13px; font-weight: 600; color: var(--charcoal); display: block; margin-bottom: 3px; }
.mini-card .mc-sub { font-size: 11px; color: var(--charcoal-l); font-weight: 300; }

/* ── Pillars display ── */
.pillars-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pillar-row { display: flex; align-items: center; gap: 16px; background: var(--cream); border: 1.5px solid var(--sand); border-radius: var(--r); padding: 14px 18px; }
.pillar-row-num { font-family: var(--ff-display); font-size: 28px; font-weight: 700; color: var(--gold); min-width: 36px; }
.pillar-row-name { font-family: var(--ff-display); font-size: 17px; font-weight: 600; color: var(--charcoal); }
.pillar-row-desc { font-size: 13px; color: var(--charcoal-l); font-weight: 300; margin-top: 2px; }

/* ── Quiz ── */
.quiz-block { background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; }
.quiz-block h3 { font-family: var(--ff-display); font-size: 18px; font-weight: 700; color: var(--olive); margin-bottom: 16px; }
.quiz-question { font-size: 15px; color: var(--charcoal); font-weight: 400; line-height: 1.6; margin-bottom: 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { background: var(--linen); border: 1.5px solid var(--sand); border-radius: var(--r); padding: 12px 16px; font-size: 14px; color: var(--charcoal); font-weight: 400; cursor: pointer; transition: all .18s; text-align: left; font-family: var(--ff-body); }
.quiz-opt:hover { background: var(--sand-l); border-color: var(--dusty); transform: translateX(4px); }
.quiz-opt.correct { background: rgba(139,158,136,.2); border-color: var(--sage); }
.quiz-opt.wrong { background: rgba(160,120,96,.15); border-color: var(--clay-l); }
.quiz-feedback { margin-top: 14px; padding: 12px 16px; border-radius: var(--r); font-size: 14px; font-weight: 400; display: none; }
.quiz-feedback.show { display: block; }
.quiz-feedback.correct { background: rgba(139,158,136,.15); color: var(--olive); border: 1px solid var(--sage-l); }
.quiz-feedback.wrong { background: rgba(184,151,90,.12); color: var(--clay); border: 1px solid var(--gold-l); }

/* ── Reflection box ── */
.reflection-box { background: var(--white); border: 1px solid var(--sand); border-left: 4px solid var(--dusty); border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 24px 28px; margin-bottom: 20px; }
.reflection-box h3 { font-family: var(--ff-display); font-size: 19px; font-weight: 700; font-style: italic; color: var(--charcoal); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.reflection-prompts { display: flex; flex-direction: column; gap: 10px; }
.reflection-prompt { background: var(--linen); border: 1px solid var(--sand); border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: var(--charcoal); font-weight: 300; line-height: 1.7; display: flex; align-items: flex-start; gap: 12px; }
.reflection-prompt-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Story navigation ── */
.lesson-nav-strip { background: var(--linen); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 20px; }
.lesson-nav-strip-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--charcoal-l); margin-bottom: 12px; font-weight: 500; }
.lesson-nav-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lesson-nav-btn { flex: 1; min-width: 120px; background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--r); padding: 12px 14px; cursor: pointer; transition: all .2s; font-family: var(--ff-body); text-align: left; }
.lesson-nav-btn:hover { border-color: var(--olive); }
.lesson-nav-btn-dir { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--charcoal-l); font-weight: 500; margin-bottom: 4px; }
.lesson-nav-btn-title { font-family: var(--ff-display); font-size: 14px; font-weight: 600; color: var(--charcoal); }
.lesson-nav-btn.primary { background: var(--olive); border-color: var(--olive); }
.lesson-nav-btn.primary .lesson-nav-btn-dir { color: rgba(253,250,247,.6); }
.lesson-nav-btn.primary .lesson-nav-btn-title { color: var(--cream); }

/* ── Pathway flow strip ── */
.pathway-strip { background: var(--linen-d); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 24px; }
.pathway-strip-title { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--charcoal-l); font-weight: 500; margin-bottom: 12px; }
.pathway-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pathway-step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--sand); background: var(--cream); color: var(--charcoal-l); cursor: pointer; transition: all .18s; }
.pathway-step.current { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.pathway-step.done { background: rgba(139,158,136,.15); border-color: var(--sage-l); color: var(--olive); }
.pathway-step:hover:not(.current) { border-color: var(--olive); color: var(--olive); }
.pathway-arrow { color: var(--sand); font-size: 10px; }

/* ── Sidebar ── */
.sidebar-card { background: var(--linen); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.sidebar-card h3 { font-family: var(--ff-display); font-size: 18px; font-weight: 600; margin-bottom: 14px; color: var(--charcoal); }
.series-list { display: flex; flex-direction: column; gap: 8px; }
.series-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); cursor: pointer; transition: background .15s; font-size: 13px; font-weight: 400; color: var(--charcoal-l); }
.series-item:hover { background: var(--sand-l); color: var(--charcoal); }
.series-item.current { background: var(--sand-l); color: var(--charcoal); font-weight: 500; }
.series-num { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--sand); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }

/* ── Parent guide block ── */
.parent-guide { background: var(--olive); border-radius: var(--r-lg); padding: 28px; color: var(--cream); margin-bottom: 20px; }
.parent-guide h3 { font-family: var(--ff-display); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.parent-guide p { font-size: 14px; color: rgba(253,250,247,.75); line-height: 1.7; font-weight: 300; margin-bottom: 16px; }
.parent-guide ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.parent-guide ul li { font-size: 13px; color: rgba(253,250,247,.85); font-weight: 300; padding-left: 16px; position: relative; line-height: 1.6; }
.parent-guide ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold-l); }
.btn--parent { background: rgba(253,250,247,.15); color: var(--cream); border: 1.5px solid rgba(253,250,247,.3); border-radius: var(--r); padding: 10px 20px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: all .2s; font-family: var(--ff-body); }
.btn--parent:hover { background: rgba(253,250,247,.25); }

/* ─────────────────────────────────────
   EMOTIONAL PATHWAYS PAGE
───────────────────────────────────── */
.pathways-hero { background: var(--linen); padding: 60px 0 48px; border-bottom: 1px solid var(--sand); }
.pathway-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.pathway-card { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all .25s; }
.pathway-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pathway-card-header { padding: 28px 28px 20px; border-bottom: 1px solid var(--sand); }
.pathway-card-icon { font-size: 32px; margin-bottom: 14px; }
.pathway-card-title { font-family: var(--ff-display); font-size: 24px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.pathway-card-sub { font-size: 14px; color: var(--charcoal-l); font-weight: 300; line-height: 1.6; }
.pathway-card-steps { padding: 20px 28px; display: flex; flex-direction: column; gap: 12px; }
.pathway-flow-step { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--charcoal-l); font-weight: 300; }
.pathway-flow-step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-l); flex-shrink: 0; }
.pathway-flow-step-dot.gold { background: var(--gold-l); }
.pathway-flow-step-dot.olive { background: var(--sage); }
.pathway-card-footer { border-top: 1px solid var(--sand); padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; }
.pathway-lesson-count { font-size: 12px; color: var(--charcoal-l); font-weight: 300; }

/* ── Emotional content detail ── */
.emotional-detail-header { background: var(--linen); padding: 48px 0 36px; border-bottom: 1px solid var(--sand); }
.emotional-title { font-size: clamp(36px,5vw,56px); margin-bottom: 12px; }
.emotional-subtitle { font-size: 17px; color: var(--charcoal-l); font-weight: 300; max-width: 580px; line-height: 1.8; }

.pathway-flow-indicator { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.pfi-step { display: flex; align-items: center; gap: 8px; }
.pfi-step-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.pfi-step-num.done { background: var(--sage-l); color: var(--olive); }
.pfi-step-num.current { background: var(--olive); color: var(--cream); }
.pfi-step-num.upcoming { background: var(--sand); color: var(--charcoal-l); }
.pfi-step-label { font-size: 12px; font-weight: 400; color: var(--charcoal-l); }
.pfi-step-label.current { color: var(--charcoal); font-weight: 500; }
.pfi-connector { width: 24px; height: 1px; background: var(--sand); }

/* ═══════════════════════════════════════════════════════
   THIS MONTH PAGE
═══════════════════════════════════════════════════════ */
.month-hero { background: var(--olive-d); padding: 80px 0; overflow: hidden; position: relative; }
.month-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(139,158,136,.2) 0%, transparent 65%); }
.month-hero-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(253,250,247,.4); font-weight: 500; margin-bottom: 16px; }
.month-hero-theme { font-size: clamp(52px, 8vw, 96px); color: var(--cream); line-height: 1; margin-bottom: 20px; font-style: italic; font-weight: 600; }
.month-hero-sub { font-size: 17px; color: rgba(253,250,247,.7); max-width: 480px; line-height: 1.8; font-weight: 300; }
.month-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; }
.month-chip { background: rgba(253,250,247,.08); border: 1px solid rgba(253,250,247,.2); border-radius: var(--r-lg); padding: 24px 28px; text-align: center; flex-shrink: 0; width: 180px; }
.month-chip-date { font-size: 11px; color: rgba(253,250,247,.5); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; font-weight: 400; }
.month-chip-num { font-family: var(--ff-display); font-size: 48px; font-weight: 600; color: var(--cream); line-height: 1; }
.month-chip-label { font-size: 12px; color: rgba(253,250,247,.5); margin-top: 6px; font-weight: 300; }
.month-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; padding: 60px 0 80px; }
.featured-story-card { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 40px; }
.featured-story-img { aspect-ratio: 2/1; position: relative; }
.featured-story-body { padding: 32px; }
.featured-story-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.featured-story-title { font-family: var(--ff-display); font-size: clamp(26px, 3.5vw, 36px); font-weight: 600; margin-bottom: 14px; line-height: 1.25; }
.featured-story-excerpt { font-size: 15px; color: var(--charcoal-l); line-height: 1.8; font-weight: 300; margin-bottom: 24px; }
.featured-story-meta { font-size: 12px; color: var(--charcoal-l); display: flex; gap: 16px; align-items: center; margin-bottom: 24px; font-weight: 300; flex-wrap: wrap; }
.sidebar-card { background: var(--linen); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; }
.sidebar-card h3 { font-family: var(--ff-display); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.reflection-list { display: flex; flex-direction: column; gap: 12px; }
.reflection-item { padding: 14px 16px; background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r); font-size: 14px; line-height: 1.7; color: var(--charcoal); font-weight: 300; border-left: 3px solid var(--sage); }
.download-card { background: var(--olive); border-radius: var(--r-lg); padding: 24px 28px; color: var(--cream); text-align: center; margin-bottom: 20px; }
.download-card h3 { font-family: var(--ff-display); font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.download-card p { font-size: 13px; color: rgba(253,250,247,.7); line-height: 1.7; margin-bottom: 20px; font-weight: 300; }

/* ── Month story mini list ── */
.month-story-mini { display: flex; align-items: center; gap: 0; background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: all .2s; margin-bottom: 10px; }
.month-story-mini:hover { box-shadow: var(--shadow); border-color: var(--sand-l); transform: translateX(3px); }
.month-story-mini-thumb { width: 72px; flex-shrink: 0; align-self: stretch; position: relative; }
.month-story-mini-body { padding: 14px 18px; }
.month-story-mini-age { font-size: 10px; color: var(--charcoal-l); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; font-weight: 400; }
.month-story-mini-title { font-family: var(--ff-display); font-size: 16px; font-weight: 600; color: var(--charcoal); margin-bottom: 2px; }
.month-story-mini-meta { font-size: 11px; color: var(--charcoal-l); font-weight: 300; }

/* ── Theme pathway block ── */
.theme-pathway-block { background: var(--linen); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 28px; margin-top: 48px; }
.theme-pathway-block h3 { font-family: var(--ff-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.theme-pathway-block p { font-size: 14px; color: var(--charcoal-l); font-weight: 300; margin-bottom: 20px; line-height: 1.7; }
.theme-pathway-steps { display: flex; flex-direction: column; gap: 10px; }
.tps-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r); cursor: pointer; transition: all .18s; }
.tps-item:hover { border-color: var(--olive); transform: translateX(4px); }
.tps-num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 14px; font-weight: 600; color: var(--gold); flex-shrink: 0; }
.tps-label { font-size: 13px; font-weight: 400; color: var(--charcoal); }
.tps-sub { font-size: 12px; color: var(--charcoal-l); font-weight: 300; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════ */
.about-hero { background: var(--linen); padding: 80px 0 60px; border-bottom: 1px solid var(--sand); }
.about-headline { font-size: clamp(38px, 5vw, 64px); max-width: 640px; }
.manifesto { max-width: 680px; margin: 0 auto; padding: 80px 24px; }
.manifesto p { font-size: 18px; color: var(--charcoal); line-height: 1.9; font-weight: 300; margin-bottom: 28px; }
.manifesto p strong { font-weight: 500; color: var(--olive); }
.manifesto p:first-child { font-family: var(--ff-display); font-size: 22px; font-style: italic; color: var(--charcoal); font-weight: 400; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--sand); }
.value-block { background: var(--cream); padding: 40px; }
.value-num { font-family: var(--ff-display); font-size: 48px; color: var(--sand); font-weight: 600; line-height: 1; margin-bottom: 20px; }
.value-title { font-family: var(--ff-display); font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 12px; }
.value-body { font-size: 14px; color: var(--charcoal-l); line-height: 1.8; font-weight: 300; }
.founder-section { padding: 100px 0; background: var(--linen); }
.founder-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.founder-photo { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--sand-l); }
.founder-name { font-family: var(--ff-display); font-size: 32px; font-weight: 600; margin-bottom: 6px; }
.founder-title { font-size: 14px; color: var(--charcoal-l); font-weight: 300; margin-bottom: 28px; }
.founder-bio { font-size: 16px; color: var(--charcoal-l); line-height: 1.85; font-weight: 300; }
.founder-bio p { margin-bottom: 18px; }

/* ═══════════════════════════════════════════════════════
   JOIN PAGE
═══════════════════════════════════════════════════════ */
.join-hero { background: var(--linen); padding: 80px 0 60px; text-align: center; }
.join-hero-headline { font-size: clamp(38px, 5vw, 64px); max-width: 620px; margin: 0 auto 20px; }
.join-hero-sub { font-size: 17px; color: var(--charcoal-l); font-weight: 300; max-width: 480px; margin: 0 auto; line-height: 1.8; }
.join-content { padding: 80px 0 120px; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pricing-card { background: var(--cream); border: 1.5px solid var(--sand); border-radius: var(--r-lg); padding: 40px; position: relative; box-shadow: var(--shadow); }
.pricing-card--featured { border-color: var(--olive); background: var(--olive-d); color: var(--cream); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--cream); border-radius: 99px; padding: 4px 16px; font-size: 11px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.pricing-name { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; margin-bottom: 20px; opacity: .6; }
.pricing-amount { margin-bottom: 6px; display: flex; align-items: baseline; gap: 4px; }
.pricing-currency { font-size: 22px; font-family: var(--ff-display); font-weight: 600; }
.pricing-number { font-family: var(--ff-display); font-size: 64px; font-weight: 600; line-height: 1; }
.pricing-per { font-size: 14px; opacity: .6; font-weight: 300; }
.pricing-desc { font-size: 14px; line-height: 1.7; opacity: .65; margin-bottom: 32px; font-weight: 300; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 300; }
.pricing-features li::before { content: '✓'; flex-shrink: 0; width: 18px; height: 18px; background: rgba(139,158,136,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--sage); font-weight: 700; margin-top: 2px; }
.pricing-card--featured .pricing-features li::before { background: rgba(253,250,247,.12); color: var(--gold-w); }
.pricing-divider { height: 1px; background: var(--sand); margin: 24px 0; opacity: .3; }
.stripe-placeholder { background: var(--linen); border: 1px dashed var(--sand); border-radius: var(--r); padding: 20px; text-align: center; margin-top: 20px; }
.stripe-placeholder p { font-size: 13px; color: var(--charcoal-l); font-weight: 300; }
.stripe-placeholder .stripe-logo { font-size: 18px; font-weight: 700; color: var(--dusty); margin-bottom: 8px; letter-spacing: -.02em; }
.join-info { display: flex; flex-direction: column; gap: 32px; }
.join-info-block { border-top: 1px solid var(--sand); padding-top: 28px; }
.join-info-title { font-family: var(--ff-display); font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.join-info-body { font-size: 14px; color: var(--charcoal-l); line-height: 1.8; font-weight: 300; }
.join-faq { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--sand-l); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; gap: 16px; font-size: 15px; font-weight: 400; color: var(--charcoal); background: none; border: none; text-align: left; width: 100%; }
.faq-q:hover { color: var(--olive); }
.faq-chevron { flex-shrink: 0; transition: transform .2s; color: var(--charcoal-l); font-size: 12px; }
.faq-a { font-size: 14px; color: var(--charcoal-l); line-height: 1.8; font-weight: 300; padding-bottom: 18px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ═══════════════════════════════════════════════════════
   LOGIN MODAL
═══════════════════════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(42,40,38,.5); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 48px 40px; width: 100%; max-width: 400px; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; font-size: 20px; color: var(--charcoal-l); padding: 4px; line-height: 1; }
.modal-title { font-family: var(--ff-display); font-size: 30px; font-weight: 600; margin-bottom: 8px; }
.modal-sub { font-size: 14px; color: var(--charcoal-l); font-weight: 300; margin-bottom: 32px; line-height: 1.6; }
.form-field { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--charcoal-l); letter-spacing: .05em; margin-bottom: 8px; text-transform: uppercase; }
.form-input { width: 100%; padding: 12px 16px; background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--r); font-size: 15px; font-family: var(--ff-body); font-weight: 400; color: var(--charcoal); outline: none; transition: border-color .2s; }
.form-input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(76,94,63,.08); }
.form-input::placeholder { color: var(--sand); }
.form-forgot { font-size: 12px; color: var(--charcoal-l); float: right; margin-top: -14px; margin-bottom: 24px; cursor: pointer; font-weight: 300; }
.modal-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--sand); }
.modal-divider span { font-size: 12px; color: var(--charcoal-l); font-weight: 300; }
.modal-register-link { text-align: center; font-size: 13px; color: var(--charcoal-l); font-weight: 300; margin-top: 20px; }
.modal-register-link a { color: var(--olive); font-weight: 500; cursor: pointer; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand-name { font-family: var(--ff-display); font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.footer-brand-tagline { font-size: 14px; color: rgba(253,250,247,.45); line-height: 1.7; font-weight: 300; max-width: 220px; }
.footer-col-title { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: rgba(253,250,247,.4); font-weight: 500; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(253,250,247,.65); font-weight: 300; transition: color .18s; cursor: pointer; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(253,250,247,.1); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: rgba(253,250,247,.3); font-weight: 300; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(253,250,247,.3); font-weight: 300; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .pillars-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .month-hero-grid { grid-template-columns: 1fr; }
  .month-chip { display: none; }
  .month-content-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-photo { max-width: 200px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
  .testimonial-track { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .story-preview-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .pathway-cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 32px 24px; }
  .section { padding: 64px 0; }
  .mini-cards-row { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   99 NAMES GRID & MODAL
═══════════════════════════════════════════════════════ */
.names-lesson-section { margin-bottom: 28px; }
.names-grid-99 { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; margin-bottom: 8px; }
.name-tile { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--r); padding: 16px 14px 14px; cursor: pointer; transition: all .22s ease; text-align: center; position: relative; overflow: hidden; }
.name-tile::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .22s; }
.name-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.name-tile:hover::before { opacity: 1; }
.name-tile-num { font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--charcoal-l); margin-bottom: 8px; opacity: .6; }
.name-tile-emoji { font-size: 18px; display: block; margin-bottom: 8px; line-height: 1; }
.name-tile-arabic { font-size: 18px; color: var(--charcoal); line-height: 1.4; margin-bottom: 6px; direction: rtl; font-weight: 600; }
.name-tile-latin { font-size: 11px; color: var(--olive); font-weight: 500; margin-bottom: 3px; letter-spacing: .02em; }
.name-tile-eng { font-size: 11px; color: var(--charcoal-l); font-weight: 300; line-height: 1.4; }

/* Name detail modal */
.name-modal-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(42,40,38,.55); display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(4px); }
.name-modal-overlay.open { display: flex; }
.name-modal-box { background: var(--cream); border: 1px solid var(--sand); border-radius: 20px; padding: 0; width: 100%; max-width: 540px; position: relative; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 90vh; display: flex; flex-direction: column; }
.name-modal-header { padding: 36px 40px 28px; flex-shrink: 0; }
.name-modal-close { position: absolute; top: 16px; right: 16px; background: var(--linen); border: 1px solid var(--sand); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; color: var(--charcoal-l); line-height: 1; transition: all .18s; }
.name-modal-close:hover { background: var(--sand); }
.name-modal-num { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--charcoal-l); font-weight: 500; margin-bottom: 12px; opacity: .6; }
.name-modal-arabic { font-size: clamp(36px, 6vw, 52px); color: var(--charcoal); direction: rtl; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.name-modal-latin { font-size: 18px; color: var(--olive); font-weight: 500; margin-bottom: 4px; letter-spacing: .02em; }
.name-modal-eng { font-size: 15px; color: var(--charcoal-l); font-weight: 300; margin-bottom: 0; }
.name-modal-body { padding: 0 40px 36px; overflow-y: auto; flex: 1; }
.name-modal-divider { height: 1px; background: var(--sand); margin-bottom: 24px; }
.name-modal-story { font-size: 15px; color: var(--charcoal); line-height: 1.9; font-weight: 300; font-family: var(--ff-body); }
.name-modal-story em { font-style: italic; color: var(--olive); }
.name-modal-nav { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sand-l); }
.name-modal-nav-btn { flex: 1; background: var(--linen); border: 1px solid var(--sand); border-radius: var(--r); padding: 10px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .18s; font-family: var(--ff-body); color: var(--charcoal-l); }
.name-modal-nav-btn:hover { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.name-modal-nav-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════
   CHARACTER SYSTEM
═══════════════════════════════════════════════════════ */
/* Character color accents */
:root {
  --mikaeel: #6E8FA0;    /* dusty blue — analytical, reflective */
  --mikaeel-l: rgba(110,143,160,.12);
  --layla: #A07860;      /* warm clay — empathetic, expressive */
  --layla-l: rgba(160,120,96,.12);
  --yusuf: #4C5E3F;      /* sage olive — quietly courageous */
  --yusuf-l: rgba(76,94,63,.12);
}

/* Characters section on home */
.characters-section { padding: 100px 0; background: var(--linen); }
.characters-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 60px; max-width: 900px; margin: 0 auto; }
.character-portrait { text-align: center; }
.character-illustration { width: 200px; height: 240px; margin: 0 auto 28px; position: relative; border-radius: 16px; overflow: hidden; }
/* Watercolour portrait simulation using layered gradients */
.char-mikaeel { background:
  radial-gradient(ellipse 60% 70% at 50% 35%, rgba(110,143,160,.55) 0%, transparent 60%),
  radial-gradient(ellipse 80% 60% at 30% 70%, rgba(184,151,90,.2) 0%, transparent 55%),
  radial-gradient(ellipse 50% 80% at 70% 60%, rgba(139,158,136,.25) 0%, transparent 50%),
  radial-gradient(ellipse 100% 100% at 50% 100%, rgba(217,207,191,.6) 0%, transparent 60%),
  #EDE6DC; }
.char-layla { background:
  radial-gradient(ellipse 60% 70% at 50% 35%, rgba(160,120,96,.5) 0%, transparent 60%),
  radial-gradient(ellipse 70% 50% at 25% 65%, rgba(184,151,90,.25) 0%, transparent 55%),
  radial-gradient(ellipse 50% 70% at 75% 55%, rgba(139,158,136,.2) 0%, transparent 50%),
  radial-gradient(ellipse 100% 80% at 50% 100%, rgba(196,154,130,.3) 0%, transparent 60%),
  #EDE6DC; }
.char-yusuf { background:
  radial-gradient(ellipse 60% 70% at 50% 35%, rgba(76,94,63,.45) 0%, transparent 60%),
  radial-gradient(ellipse 80% 50% at 35% 70%, rgba(139,158,136,.3) 0%, transparent 55%),
  radial-gradient(ellipse 50% 70% at 70% 55%, rgba(184,151,90,.2) 0%, transparent 50%),
  radial-gradient(ellipse 100% 80% at 50% 100%, rgba(76,94,63,.2) 0%, transparent 60%),
  #E8E2D8; }

/* Watercolour face elements — pure CSS portrait */
.char-face { position: absolute; inset: 0; }
/* Head shape */
.char-face::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  width: 72px;
  height: 85px;
  background: rgba(253,245,235,.82);
  border-radius: 50% 50% 46% 46%;
  box-shadow: 0 2px 16px rgba(42,40,38,.08);
}
/* Body/clothing wash */
.char-face::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 110px;
  height: 115px;
  border-radius: 50% 50% 0 0;
}
.char-mikaeel .char-face::after { background: radial-gradient(ellipse at 50% 30%, rgba(110,143,160,.65) 0%, rgba(110,143,160,.35) 60%, transparent 100%); }
.char-layla .char-face::after   { background: radial-gradient(ellipse at 50% 30%, rgba(160,120,96,.55) 0%, rgba(184,151,90,.3) 60%, transparent 100%); }
.char-yusuf .char-face::after   { background: radial-gradient(ellipse at 50% 30%, rgba(76,94,63,.6) 0%, rgba(76,94,63,.3) 60%, transparent 100%); }
/* Hair */
.char-hair {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: 80px;
  height: 52px;
  border-radius: 50% 50% 20% 20%;
}
.char-mikaeel .char-hair { background: radial-gradient(ellipse at 50% 60%, rgba(60,42,28,.55) 0%, rgba(60,42,28,.2) 80%, transparent 100%); }
.char-layla .char-hair   { background: radial-gradient(ellipse at 50% 60%, rgba(42,28,18,.6) 0%, rgba(42,28,18,.2) 80%, transparent 100%); top: 8%; width: 76px; height: 48px; }
.char-yusuf .char-hair   { background: radial-gradient(ellipse at 50% 60%, rgba(50,36,24,.5) 0%, rgba(50,36,24,.2) 80%, transparent 100%); }
/* Eyes — two tiny ovals */
.char-eyes {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  justify-content: space-between;
}
.char-eye {
  width: 7px;
  height: 4px;
  background: rgba(42,28,18,.7);
  border-radius: 50%;
  margin-top: 2px;
}
/* Expression line — subtle smile */
.char-smile {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  width: 18px;
  height: 6px;
  border-bottom: 1.5px solid rgba(140,80,60,.35);
  border-radius: 0 0 50% 50%;
}
/* Layla hijab suggestion */
.char-layla .char-hair {
  width: 88px;
  height: 90px;
  top: 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(160,120,96,.45) 0%, rgba(140,100,76,.25) 70%, transparent 100%);
}

.character-name { font-family: var(--ff-display); font-size: 24px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.character-descriptor { font-size: 14px; color: var(--charcoal-l); font-weight: 300; font-style: italic; }
.character-accent-bar { width: 28px; height: 2px; margin: 12px auto 0; border-radius: 2px; }

/* Character tag on story cards */
.char-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.char-tag--mikaeel { background: var(--mikaeel-l); color: var(--mikaeel); }
.char-tag--layla   { background: var(--layla-l);   color: var(--clay); }
.char-tag--yusuf   { background: var(--yusuf-l);   color: var(--olive); }
.char-tag-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.char-tag--mikaeel .char-tag-dot { background: var(--mikaeel); }
.char-tag--layla   .char-tag-dot { background: var(--clay); }
.char-tag--yusuf   .char-tag-dot { background: var(--yusuf); }

/* Character accent on lesson sidebar */
.char-sidebar-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); border-left: 3px solid; margin-bottom: 8px; }
.char-sidebar-chip--mikaeel { background: var(--mikaeel-l); border-color: var(--mikaeel); }
.char-sidebar-chip--layla   { background: var(--layla-l);   border-color: var(--clay); }
.char-sidebar-chip--yusuf   { background: var(--yusuf-l);   border-color: var(--yusuf); }
.char-sidebar-chip-portrait { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; overflow: hidden; position: relative; }
.char-sidebar-chip-text { font-size: 12px; color: var(--charcoal); line-height: 1.5; font-weight: 300; }
.char-sidebar-chip-name { font-weight: 500; display: block; }

@media (max-width: 640px) {
  .characters-grid { grid-template-columns: 1fr; gap: 40px; }
  .character-illustration { width: 160px; height: 196px; }
  .names-grid-99 { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .name-modal-header { padding: 28px 24px 20px; }
  .name-modal-body { padding: 0 24px 28px; }
}


/* Illustration overrides */
.story-card-img { overflow: hidden; position: relative; padding: 0; }
.story-card-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-illustration-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-illustration-inner svg { width: 100%; height: 100%; }
.featured-story-img { overflow: hidden; position: relative; }
.founder-photo { overflow: hidden; position: relative; }
.pathway-card-icon { overflow: visible !important; background: none !important; box-shadow: none !important; }
.pathway-card-icon svg { display: block; }
.nav-logo-mark { background: none !important; box-shadow: none !important; display: flex; align-items: center; justify-content: center; overflow: visible; }
.ill-replaced { background: none !important; }