/* ============================================
   LUMII.ME — Marketing Site
   Design system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  /* Brand colours — from Lumii brand guidelines v2 */
  --sky:      #74A9DA;
  --sky-dark: #5891C5;
  --sky-soft: #E8F1F9;
  --mint:     #ADD090;
  --mint-soft:#EBF3E2;
  --peach:    #F8C6B1;
  --peach-soft:#FCE8DE;
  --yellow:   #F4DF89;
  --coral:    #F67B50;
  --coral-dark:#E36537;
  --lavender: #9B89A8;
  --lavender-soft: #ECE5F0;
  --mint-dark: #5C8C3C;
  --offwhite: #FAF5EF;
  --offwhite-dark: #F2EBE0;
  --navy:     #1E2D3B;
  --navy-soft:#3A4B5C;
  --grey-100: #F5F2ED;
  --grey-200: #E8E4DD;
  --grey-300: #C9C3BA;
  --grey-400: #8A8478;

  /* Type — Poppins only, per brand guidelines */
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;   --s-10: 8rem;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 760px;
  --max-w-wide:   1320px;

  /* Radii */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px; --r-pill: 999px;

  /* Shadows — soft, warm, never harsh */
  --shadow-sm: 0 2px 6px rgba(30, 45, 59, 0.04), 0 1px 2px rgba(30, 45, 59, 0.06);
  --shadow-md: 0 6px 16px rgba(30, 45, 59, 0.06), 0 2px 4px rgba(30, 45, 59, 0.04);
  --shadow-lg: 0 16px 40px rgba(30, 45, 59, 0.08), 0 4px 12px rgba(30, 45, 59, 0.04);

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
  --t-fast: 160ms; --t: 280ms; --t-slow: 480ms;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ----- Typography ----- */
.display, h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--navy); letter-spacing: -0.005em;}
p  { font-size: 1.0625rem; color: var(--navy-soft); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--navy-soft); font-weight: 400; letter-spacing: -0.005em; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-dark);
}

/* ----- Layout ----- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 var(--s-5); }
section { padding: var(--s-9) 0; }
@media (max-width: 768px) {
  section { padding: var(--s-7) 0; }
  .container, .container-narrow, .container-wide { padding: 0 var(--s-4); }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--offwhite);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--offwhite); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 0.6rem 0;
  border-radius: 0;
  border-bottom: 1.5px solid var(--navy);
}
.btn-ghost:hover { color: var(--coral-dark); border-color: var(--coral-dark); }
.btn-arrow::after {
  content: '→';
  transition: transform var(--t) var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(30, 45, 59, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .brand-logo { height: 30px; }
}
.nav-links {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--coral-dark); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.nav-cta { padding: 0.6rem 1.2rem; font-size: 0.9rem; background: var(--coral); color: var(--offwhite); }
.nav-cta:hover { background: var(--coral-dark); }

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--offwhite);
    flex-direction: column; gap: 0;
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid rgba(30,45,59,0.08); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: var(--s-3) 0; border-bottom: 1px solid rgba(30,45,59,0.06); }
  .nav-links a.active::after { display: none; }
  .nav-cta { align-self: flex-start; margin-top: var(--s-3); }
  .mobile-toggle { display: flex; }
}

/* ----- Hero ----- */
.hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--coral-dark); font-weight: 600; font-size: 0.79em; }
.hero .eyebrow { display: block; font-size: 0.858rem; margin-bottom: var(--s-4); }
/* Hero H1 — larger, dominant, designed to land the spine */
.hero-h1 {
  font-size: clamp(2.94rem, 7.35vw, 5.6rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
}
.hero .lede { margin-bottom: var(--s-6); max-width: 540px; }
.hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* Hero illustration */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 901px) {
  .hero-art { margin-top: 100px; }
}

/* ----- Sections ----- */
.section-intro { max-width: 720px; margin-bottom: var(--s-7); }
.section-intro .eyebrow { margin-bottom: var(--s-3); display: block; }
.section-intro h2 { margin-bottom: var(--s-4); }
.section-intro p { font-size: 1.1rem; }

.bg-soft { background: linear-gradient(180deg, var(--offwhite) 0%, var(--sky-soft) 100%); }
.bg-sky { background: var(--sky-soft); }
.bg-mint { background: var(--mint-soft); }
.bg-peach { background: var(--peach-soft); }
.bg-navy { background: var(--navy); color: var(--offwhite); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--offwhite); }
.bg-navy p { color: rgba(250, 245, 239, 0.75); }
.bg-navy .eyebrow { color: var(--peach); }

/* ----- Three Commitments ----- */
.commitments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (max-width: 800px) { .commitments { grid-template-columns: 1fr; } }
.commitment {
  padding: var(--s-6);
  background: var(--offwhite);
  border-radius: var(--r-lg);
  border: 1px solid var(--grey-200);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.commitment:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.commitment-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.commitment-icon svg { width: 28px; height: 28px; }
.commitment h3 { margin-bottom: var(--s-3); font-size: 1.35rem; }
.commitment p { font-size: 0.98rem; }

/* ----- Evidence band ----- */
.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  text-align: left;
}
@media (max-width: 800px) { .evidence { grid-template-columns: 1fr; gap: var(--s-5); } }
.evidence-stat {
  padding: var(--s-5) 0;
  border-top: 1.5px solid rgba(250,245,239,0.18);
}
.evidence-num {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 5.2vw, 3.8rem);
  font-weight: 600;
  color: var(--peach);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--s-3);
}
.evidence-label { font-size: 0.95rem; color: rgba(250,245,239,0.85); max-width: 280px; }

/* ----- Audience cards ----- */
.audiences {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 720px) { .audiences { grid-template-columns: 1fr; } }
.audience-card {
  display: block;
  padding: var(--s-6);
  background: var(--offwhite);
  border-radius: var(--r-lg);
  border: 1px solid var(--grey-200);
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.audience-card::after {
  content: '→';
  position: absolute;
  top: var(--s-6); right: var(--s-6);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t) var(--ease);
  font-size: 1.05rem;
  color: var(--navy);
}
.audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.audience-card:hover::after { background: var(--coral); color: var(--offwhite); transform: rotate(-45deg); }
.audience-card .eyebrow { margin-bottom: var(--s-3); display: block; }
.audience-card h3 { margin-bottom: var(--s-3); padding-right: 60px; }
.audience-card p { font-size: 0.98rem; margin-bottom: var(--s-4); }
.audience-card ul { display: flex; flex-direction: column; gap: 0.4rem; margin-top: var(--s-4); }
.audience-card ul li { font-size: 0.9rem; color: var(--navy-soft); padding-left: 1.1rem; position: relative; }
.audience-card ul li::before { content: '·'; position: absolute; left: 0.3rem; color: var(--coral); font-weight: 700; }

/* ----- Quotes ----- */
.quote-block {
  padding: var(--s-7) var(--s-6);
  background: var(--peach-soft);
  border-radius: var(--r-xl);
  position: relative;
}
.quote-block blockquote {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.018em;
  margin-bottom: var(--s-5);
  position: relative;
}
.quote-block blockquote::before {
  content: '"';
  position: absolute;
  font-size: 4rem;
  font-weight: 600;
  color: var(--coral);
  line-height: 1;
  top: -1rem;
  left: -1.5rem;
  opacity: 0.4;
}
.quote-attribution {
  font-size: 0.95rem;
  color: var(--navy-soft);
  font-weight: 500;
}

/* ----- FAQ ----- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--grey-200);
}
.faq-item:last-child { border-bottom: 1px solid var(--grey-200); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--s-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-size: 1.1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--navy);
}
.faq-q-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--t) var(--ease);
}
.faq-item.open .faq-q-icon { background: var(--coral); color: var(--offwhite); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t) var(--ease);
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 0 var(--s-5); }
.faq-a-inner p { color: var(--navy-soft); }

/* ----- CTA band ----- */
.cta-band {
  background: var(--navy);
  color: var(--offwhite);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: var(--s-6); } }
.cta-band h2 { color: var(--offwhite); margin-bottom: var(--s-4); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(250,245,239,0.75); font-size: 1.05rem; }
.cta-band .btn-primary { background: var(--coral); color: var(--offwhite); }
.cta-band .btn-primary:hover { background: var(--peach); color: var(--navy); }
.cta-band .btn-secondary { color: var(--offwhite); border-color: var(--offwhite); }
.cta-band .btn-secondary:hover { background: var(--offwhite); color: var(--navy); }
.cta-band-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta-band-actions { justify-content: flex-start; } }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: rgba(250,245,239,0.7);
  padding: var(--s-9) 0 var(--s-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.footer-brand { display: inline-block; margin-bottom: var(--s-4); }
.footer-logo { height: 38px; width: auto; display: block; }
.footer-tag { color: rgba(250,245,239,0.6); font-size: 0.92rem; max-width: 280px; line-height: 1.55; }
.footer h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: var(--s-4);
}
.footer ul li { margin-bottom: var(--s-3); }
.footer ul li a {
  color: rgba(250,245,239,0.7);
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease);
}
.footer ul li a:hover { color: var(--peach); }
.footer-bottom {
  border-top: 1px solid rgba(250,245,239,0.08);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: rgba(250,245,239,0.5);
}
.footer-bottom a { color: rgba(250,245,239,0.6); margin-left: var(--s-4); }
.footer-bottom a:hover { color: var(--peach); }

/* ----- Page header ----- */
.page-header {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, var(--offwhite) 0%, var(--sky-soft) 100%);
}
.page-header .eyebrow { display: block; margin-bottom: var(--s-3); }
.page-header h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: var(--s-4); max-width: 800px; }
.page-header p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--navy-soft); max-width: 680px; }

/* ----- Two-column content ----- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: var(--s-6); } }
.two-col-flip { grid-template-columns: 1.2fr 1fr; }
.two-col h2 { margin-bottom: var(--s-4); }
.two-col p + p { margin-top: var(--s-3); }

/* ----- Inline content lists ----- */
.checklist { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.checklist li {
  padding-left: 2rem;
  position: relative;
  font-size: 1rem;
  color: var(--navy-soft);
  line-height: 1.5;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6L5 8.5L9.5 4' stroke='%231E2D3B' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ----- Alert level cards ----- */
.alerts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}
@media (max-width: 800px) { .alerts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .alerts { grid-template-columns: 1fr; } }
.alert-card {
  padding: var(--s-5);
  background: var(--offwhite);
  border-radius: var(--r-md);
  border: 1px solid var(--grey-200);
  border-top: 4px solid;
}
.alert-green { border-top-color: #6FB04F; }
.alert-amber { border-top-color: #E8A33C; }
.alert-red   { border-top-color: #D9544F; }
.alert-purple{ border-top-color: #7E5BAE; }
.alert-card h4 { margin-bottom: var(--s-2); font-size: 1.05rem; }
.alert-card .alert-meaning { font-size: 0.9rem; color: var(--navy-soft); margin-bottom: var(--s-3); }
.alert-card .alert-action {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--grey-100);
  color: var(--navy);
  display: inline-block;
  font-weight: 500;
}

/* ----- Pricing ----- */
.pricing-table {
  width: 100%;
  margin-top: var(--s-6);
  border-collapse: collapse;
  background: var(--offwhite);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pricing-table th, .pricing-table td {
  padding: var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.95rem;
}
.pricing-table th { background: var(--navy); color: var(--offwhite); font-weight: 500; font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--sky-soft); }

/* ----- Resource cards ----- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .resource-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--offwhite);
  border-radius: var(--r-lg);
  border: 1px solid var(--grey-200);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  /* Ensure anchor element renders as block card, not inline run-on */
  text-decoration: none;
  color: inherit;
  position: relative;
  isolation: isolate;
}
.resource-card * { text-decoration: none; }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.resource-thumb {
  aspect-ratio: 16/10;
  background: var(--sky-soft);
  display: flex; align-items: center; justify-content: center;
}
.resource-thumb svg { width: 60%; height: 60%; }
.resource-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.resource-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: var(--s-3); }
.resource-body h3 { font-size: 1.2rem; margin-bottom: var(--s-3); font-family: var(--font-sans); font-weight: 600; }
.resource-body p { font-size: 0.92rem; flex: 1; margin-bottom: var(--s-4); }
.resource-link { font-size: 0.92rem; font-weight: 500; color: var(--navy); display: inline-flex; gap: 0.4rem; }
.resource-link::after { content: '→'; transition: transform var(--t) var(--ease); }
.resource-card:hover .resource-link::after { transform: translateX(3px); color: var(--coral-dark); }

/* ----- Reveal animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }

/* Failsafe: if JS doesn't run for any reason, show everything immediately */
.no-js .reveal,
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ----- Forms ----- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--navy); }
.field input, .field textarea, .field select {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-md);
  background: var(--offwhite);
  font-size: 0.95rem;
  transition: border-color var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--sky);
  background: white;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-full { grid-column: 1 / -1; }

/* ----- Decorative blob (used in hero illustration containers) ----- */
.blob {
  position: absolute;
  filter: blur(0px);
  opacity: 0.85;
  z-index: 0;
}

/* ----- Image slots ----- */
.img-slot {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-placeholder-label {
  display: none;
  font-size: 0.78rem;
  color: var(--navy);
  opacity: 0.4;
  font-style: italic;
  text-align: center;
  padding: var(--s-3);
  letter-spacing: 0.02em;
}
.img-slot.img-placeholder {
  position: relative;
}
.img-slot.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(116, 169, 218, 0.35), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(248, 198, 177, 0.45), transparent 55%),
    radial-gradient(circle at 65% 25%, rgba(173, 208, 144, 0.3), transparent 60%);
  filter: blur(8px);
}
.img-slot.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(30, 45, 59, 0.15);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
}
.img-slot.img-placeholder .img-placeholder-label {
  display: block;
  position: relative;
  z-index: 1;
  background: rgba(250, 245, 239, 0.85);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  max-width: 80%;
}

/* ----- Hero characters ----- */
.hero-characters {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--peach-soft) 0%, var(--sky-soft) 60%, transparent 100%);
  filter: blur(2px);
  z-index: 0;
}
.hero-blob::after {
  content: '';
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, rgba(173, 208, 144, 0.4) 0%, transparent 50%);
}
.hero-char-img {
  position: relative;
  z-index: 1;
  width: 92%;
  height: auto;
  max-width: 520px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(30, 45, 59, 0.08));
}
@media (max-width: 900px) {
  .hero-characters { max-width: 460px; margin: 0 auto; }
}

/* ----- Character slots (Platform JNR/SNR sections) ----- */
.character-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.character-blob {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}
.character-img {
  position: relative;
  z-index: 1;
  height: 88%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(30, 45, 59, 0.1));
}
@media (max-width: 800px) {
  .character-slot { aspect-ratio: 4 / 3; max-width: 380px; margin: 0 auto; }
}

/* ----- BETA badge ----- */
.beta-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--coral);
  color: var(--offwhite);
  border-radius: var(--r-pill);
  vertical-align: middle;
  margin-left: var(--s-3);
  position: relative;
  top: -2px;
}
.beta-badge.subtle {
  background: var(--peach-soft);
  color: var(--coral-dark);
  border: 1px solid var(--peach);
}

/* ----- Q&A example pairs (for School Assistant) ----- */
.qa-pair {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--offwhite);
  border-radius: var(--r-md);
  border-left: 3px solid var(--coral);
  margin-bottom: var(--s-3);
  align-items: start;
}
@media (max-width: 700px) {
  .qa-pair { grid-template-columns: 1fr; gap: var(--s-2); }
}
.qa-q {
  font-weight: 500;
  color: var(--navy);
  font-size: 0.95rem;
}
.qa-q::before {
  content: '"';
  color: var(--coral);
  font-weight: 700;
}
.qa-q::after {
  content: '"';
  color: var(--coral);
  font-weight: 700;
}
.qa-a {
  font-size: 0.9rem;
  color: var(--navy-soft);
  line-height: 1.5;
}
.qa-a::before {
  content: '→ ';
  color: var(--coral);
  font-weight: 600;
}

/* ----- Form success / error states ----- */
.form-success, .form-error {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  text-align: left;
}
.form-success {
  background: var(--mint-soft);
  border: 1px solid var(--mint);
}
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}
.form-success-icon svg { width: 28px; height: 28px; }
.form-error {
  background: var(--peach-soft);
  border: 1px solid var(--peach);
  margin-top: var(--s-4);
}

/* ========================================================== */
/* ARABIC / RTL                                                */
/* ========================================================== */

html[dir="rtl"] body,
html[lang="ar"] body {
  font-family: 'Tajawal', 'Poppins', system-ui, -apple-system, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: 'Tajawal', 'Poppins', system-ui, sans-serif;
  letter-spacing: 0; /* Tajawal doesn't need negative letter-spacing */
}

/* Arabic typography sometimes needs slightly more line-height for readability */
html[dir="rtl"] {
  line-height: 1.7;
}

/* RTL: flip directional things */
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-grid {
  text-align: right;
}

html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

/* Fix arrow direction for RTL — keep arrows pointing the natural reading-flow direction */
html[dir="rtl"] .btn-arrow::after {
  transform: scaleX(-1);
  margin-left: 0;
  margin-right: 0.5rem;
}

/* Resource cards and Q&A blocks have left-borders → flip to right */
html[dir="rtl"] .qa-pair {
  border-left: 0;
  border-right: 3px solid var(--coral);
}

/* Form labels naturally right-align in RTL */
html[dir="rtl"] .form-success,
html[dir="rtl"] .form-error {
  text-align: right;
}

/* Brand mark wordmark stays LTR (it's a logo, not text) */
html[dir="rtl"] .brand-logo,
html[dir="rtl"] .footer-logo {
  direction: ltr;
}

/* ========================================================== */
/* LANGUAGE TOGGLE                                             */
/* ========================================================== */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 var(--s-3);
  border: 1px solid var(--navy);
  border-radius: var(--r-pill);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 200ms var(--ease), color 200ms var(--ease);
  font-family: 'Poppins', system-ui, sans-serif; /* Always Poppins so 'العربية' renders well */
}

.lang-toggle:hover {
  background: var(--navy);
  color: var(--offwhite);
}

/* Language toggle in Arabic header — slightly different presence */
html[dir="rtl"] .lang-toggle {
  font-family: 'Poppins', system-ui, sans-serif; /* "EN" looks best in Poppins */
}

@media (max-width: 900px) {
  .lang-toggle {
    /* On mobile, ensure toggle stays visible inside collapsed nav */
    margin-right: var(--s-2);
  }
}

/* ========================================================== */
/* PUPIL VOICE QUOTE CARDS (Evidence page)                     */
/* ========================================================== */

.pupil-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}

@media (max-width: 700px) {
  .pupil-quote-grid {
    grid-template-columns: 1fr;
  }
}

.pupil-quote-card {
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-lg);
  position: relative;
}

.pupil-quote-label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.pupil-quote-text {
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: var(--s-3);
  font-weight: 500;
}

.pupil-quote-text:last-child {
  margin-bottom: 0;
}

.pupil-quote-translation {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--navy-soft);
  font-weight: 400;
}

/* RTL fallback for AR-tagged quote text inside an English page */
.pupil-quote-card .pupil-quote-text[lang="ar"] {
  font-family: 'Tajawal', 'Poppins', sans-serif;
  text-align: right;
}

/* ========================================================== */
/* B9 — Force LTR rendering on Lumii.me+ inside RTL text       */
/* ========================================================== */
.brand-mark {
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
}
