/* ============================================================
   Islamic Kids Coloring Book — shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,340;9..144,480;9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --cream:        #FBF4E8;
  --cream-2:      #F5ECDC;
  --paper:        #FFFDF8;
  --ink:          #2B2620;
  --ink-soft:     #6B6154;
  --teal:         #1E6F63;
  --teal-deep:    #124A42;
  --gold:         #D9A441;
  --gold-soft:    #F0D69B;
  --line:         rgba(43,38,32,0.10);
  --shadow:       0 24px 60px -24px rgba(30,60,55,0.28);
  --radius-lg:    32px;
  --radius-md:    22px;
  --radius-sm:    14px;
  --gradient-brand: linear-gradient(120deg, var(--teal) 0%, #2E8C7A 45%, var(--gold) 100%);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,h2,h3,h4{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--teal-deep);
}

.eyebrow{
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background: var(--gold);
  display:inline-block;
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* texture backdrop */
.bg-motif{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(217,164,65,0.10), transparent 40%),
    radial-gradient(circle at 92% 8%, rgba(30,111,99,0.10), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(30,111,99,0.08), transparent 45%);
}

/* ============= NAV ============= */
header.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:'Fraunces', serif;
  font-size: 20px;
  font-weight:600;
  color: var(--teal-deep);
}
.brand img{
  width: 38px; height:38px;
  border-radius: 11px;
  box-shadow: 0 6px 16px -6px rgba(30,60,55,0.35);
}
nav.links{
  display:flex;
  align-items:center;
  gap: 34px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}
nav.links a{ transition: color .2s ease; position:relative; }
nav.links a:hover{ color: var(--teal-deep); }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor:pointer;
  border:none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, opacity .2s ease;
}
.btn-brand{
  background: var(--gradient-brand);
  color: #fffdf8;
  box-shadow: 0 14px 30px -12px rgba(30,111,99,0.55);
}
.btn-brand:hover{ transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(30,111,99,0.6); }
.btn-ghost{
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover{ border-color: var(--teal); background: rgba(30,111,99,0.06); }

/* ============= HERO ============= */
.hero{
  position: relative;
  padding: 96px 0 60px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  margin-top: 18px;
}
.hero h1 em{
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.hero p.lede{
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-cta{
  margin-top: 34px;
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
}
.store-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  font-weight:600;
  box-shadow: 0 16px 32px -14px rgba(20,20,20,0.5);
  transition: transform .25s ease;
}
.store-badge:hover{ transform: translateY(-2px); }
.store-badge small{ display:block; font-weight:500; font-size:11px; opacity:0.7; letter-spacing: .04em; }
.store-badge span{ font-size:16px; font-family:'Fraunces',serif; }
.trust-line{
  margin-top: 26px;
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight:600;
}
.trust-line span{ display:flex; align-items:center; gap:7px; }
.trust-line svg{ width:16px; height:16px; color: var(--teal); flex:none; }

/* hero visual */
.hero-visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 520px;
}
.island-stage{
  position:relative;
  width: 320px;
}
.stage-card{
  position:absolute;
  border-radius: 26px;
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
  background: var(--paper);
}
.stage-card img{ width:100%; height:100%; object-fit:cover; }
.stage-card.c1{ width: 230px; height: 300px; top: -40px; left: -160px; transform: rotate(-9deg); z-index:2;}
.stage-card.c2{ width: 250px; height: 320px; top: 10px; left: 40px; transform: rotate(6deg); z-index:3;}
.stage-card.c3{ width: 190px; height: 250px; top: 250px; left: -120px; transform: rotate(4deg); z-index:1;}
.float-badge{
  position:absolute;
  background: var(--paper);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size: 13.5px;
  z-index:4;
  animation: bob 5s ease-in-out infinite;
}
.float-badge img{ width:30px; height:30px; }
.float-badge.b1{ top: -18px; right: -70px; animation-delay: .3s;}
.float-badge.b2{ bottom: 30px; right: -90px; animation-delay: 1.1s;}
@keyframes bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

/* ============= MARQUEE / STRIP ============= */
.strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow:hidden;
  background: var(--paper);
}
.strip-track{
  display:flex;
  gap: 56px;
  width: max-content;
  animation: scroll-x 32s linear infinite;
  font-family:'Fraunces', serif;
  font-size: 20px;
  color: var(--ink-soft);
  align-items:center;
}
.strip-track span{ display:flex; align-items:center; gap:56px; white-space:nowrap;}
.strip-track b{ color: var(--teal-deep); font-weight:600; }
.strip-track .dot{ width:6px; height:6px; border-radius:50%; background: var(--gold); }
@keyframes scroll-x{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ============= SECTION HEADERS ============= */
.section{ padding: 110px 0; position: relative; }
.section-head{
  max-width: 620px;
  margin: 0 0 56px;
}
.section-head h2{
  font-size: clamp(30px, 3.6vw, 44px);
  margin-top: 14px;
  line-height:1.1;
}
.section-head p{
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17px;
}
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ============= ISLANDS GRID ============= */
.islands-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.island-card{
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.island-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.island-card .thumb{
  border-radius: 16px;
  overflow:hidden;
  aspect-ratio: 4/5;
  background: var(--cream-2);
}
.island-card .thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.island-card:hover .thumb img{ transform: scale(1.06); }
.island-card h3{
  margin-top:16px;
  font-size: 19px;
}
.island-card p{
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============= FEATURES ============= */
.features-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid var(--line);
}
.feature-tile{
  background: var(--paper);
  padding: 40px 30px;
  min-height: 230px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.feature-tile .ico{
  width:46px; height:46px;
  border-radius: 13px;
  background: var(--cream-2);
  display:flex; align-items:center; justify-content:center;
  color: var(--teal);
}
.feature-tile h3{ font-size:18px; margin-top: 4px;}
.feature-tile p{ font-size:14.5px; color:var(--ink-soft); margin:0;}

/* ============= PRICING ============= */
.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  display:flex;
  flex-direction:column;
}
.price-card.featured{
  background: var(--teal-deep);
  color: #fdf7ea;
  transform: scale(1.03);
  box-shadow: var(--shadow);
  border: none;
}
.price-card.featured h3, .price-card.featured .amount{ color:#fdf7ea; }
.price-card.featured .sub{ color: rgba(253,247,234,0.7); }
.price-card .tag{
  align-self:flex-start;
  background: var(--gold);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.price-card h3{ font-size: 20px; }
.price-card .amount{
  font-family:'Fraunces', serif;
  font-size: 42px;
  margin-top: 14px;
  color: var(--teal-deep);
}
.price-card .amount sup{ font-size:16px; font-weight:600; }
.price-card .sub{ font-size: 13.5px; color: var(--ink-soft); margin-top:4px;}
.price-card ul{
  list-style:none; padding:0; margin: 26px 0 0;
  display:flex; flex-direction:column; gap: 12px;
  font-size: 14.5px;
  flex:1;
}
.price-card li{ display:flex; gap:10px; align-items:flex-start; }
.price-card li svg{ width:16px; height:16px; margin-top:3px; flex:none; color: var(--gold); }

/* ============= QUOTE ============= */
.quote-block{
  background: var(--teal-deep);
  border-radius: var(--radius-lg);
  padding: 70px;
  color: #fdf7ea;
  position: relative;
  overflow: hidden;
}
.quote-block::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 85% 20%, rgba(217,164,65,0.25), transparent 45%);
}
.quote-block p{
  font-family:'Fraunces', serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  max-width: 760px;
  position:relative;
  font-weight: 480;
}
.quote-block .who{
  margin-top: 26px;
  font-family:'Plus Jakarta Sans';
  font-weight:700;
  font-size: 14px;
  opacity:0.75;
  position:relative;
}

/* ============= CTA BAND ============= */
.cta-band{
  text-align:center;
  padding: 90px 0 40px;
}
.cta-band h2{ font-size: clamp(32px,4.5vw,52px); }
.cta-band p{ color:var(--ink-soft); margin-top:16px; font-size:17px;}
.cta-buttons{
  margin-top: 30px;
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ============= FOOTER ============= */
footer{
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  background: var(--paper);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap: 30px;
}
.footer-brand{
  display:flex; align-items:center; gap:12px;
  font-family:'Fraunces',serif; font-weight:600; font-size:18px; color:var(--teal-deep);
}
.footer-brand img{ width:32px;height:32px;border-radius:9px;}
.footer-links{
  display:flex; gap:42px; flex-wrap:wrap;
}
.footer-col h4{
  font-family:'Plus Jakarta Sans'; font-size:13px; text-transform:uppercase; letter-spacing:.08em;
  color: var(--ink-soft); font-weight:700; margin-bottom:14px;
}
.footer-col a{
  display:block; font-size:14.5px; color: var(--ink); margin-bottom:10px; font-weight:600;
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--teal); }
.footer-bottom{
  margin-top:46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 12px;
  font-size:13px;
  color: var(--ink-soft);
}

/* ============= REVEAL ANIM ============= */
.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{ opacity:1; transform:none; }

/* ============= LEGAL PAGES ============= */
.legal-hero{
  padding: 80px 0 40px;
}
.legal-hero h1{
  font-size: clamp(34px, 5vw, 52px);
  margin-top:16px;
}
.legal-hero p{ color:var(--ink-soft); margin-top:14px; font-size:16px;}
.legal-body{
  max-width: 760px;
  padding-bottom: 100px;
}
.legal-body h2{
  font-size: 24px;
  margin-top: 46px;
  margin-bottom: 14px;
  color: var(--teal-deep);
}
.legal-body h2:first-child{ margin-top:0; }
.legal-body p, .legal-body li{
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height:1.75;
}
.legal-body ul{ padding-left: 20px; }
.legal-body li{ margin-bottom: 8px; }
.legal-body strong{ color: var(--ink); }
.legal-nav{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 26px;
}
.legal-nav a{
  font-size:13px; font-weight:700; padding:8px 16px;
  border:1px solid var(--line); border-radius:100px;
  color: var(--ink-soft);
}
.legal-nav a.active{ background: var(--teal-deep); color:#fdf7ea; border-color: var(--teal-deep); }
.callout{
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--ink);
}

/* ============= FAQ (support page) ============= */
.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  cursor:pointer;
}
.faq-q{
  display:flex; justify-content:space-between; align-items:center;
  font-family:'Fraunces',serif; font-size:19px; color:var(--teal-deep); font-weight:600;
  gap: 20px;
}
.faq-q .plus{
  width:28px; height:28px; border-radius:50%;
  border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  flex:none;
  transition: transform .3s ease, background .3s ease;
  position:relative;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:""; position:absolute; background: var(--teal-deep);
}
.faq-q .plus::before{ width:11px; height:1.6px; }
.faq-q .plus::after{ width:1.6px; height:11px; }
.faq-item.open .faq-q .plus{ transform: rotate(135deg); background: var(--gold); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after{ background: var(--teal-deep); }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height .4s ease, margin-top .4s ease;
  font-size:15px;
  color: var(--ink-soft);
}
.faq-item.open .faq-a{ margin-top:14px; }

.contact-card{
  background: var(--teal-deep);
  border-radius: var(--radius-lg);
  padding: 54px;
  color: #fdf7ea;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items:center;
  position:relative;
  overflow:hidden;
}
.contact-card::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 90% 10%, rgba(217,164,65,0.3), transparent 40%);
}
.contact-card h2{ color:#fdf7ea; font-size: 30px; position:relative;}
.contact-card p{ color: rgba(253,247,234,0.78); margin-top:12px; font-size:15px; position:relative;}
.contact-card .btn-brand{ background:#fdf7ea; color:var(--teal-deep); box-shadow:none; position:relative;}
.contact-meta{
  display:flex; flex-direction:column; gap:18px; position:relative;
}
.contact-meta .row{ display:flex; gap:14px; align-items:flex-start; }
.contact-meta svg{ width:20px;height:20px; flex:none; margin-top:2px; color: var(--gold-soft);}
.contact-meta b{ display:block; font-size:14px; }
.contact-meta span{ font-size:13.5px; color: rgba(253,247,234,0.7); }

/* ============= RESPONSIVE ============= */
@media (max-width: 900px){
  nav.links{ display:none; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ min-height: 420px; order:-1; }
  .islands-grid{ grid-template-columns: repeat(2,1fr); }
  .features-grid{ grid-template-columns: repeat(2,1fr); }
  .pricing-grid{ grid-template-columns: 1fr; }
  .price-card.featured{ transform:none; order:-1; }
  .quote-block{ padding: 40px 28px; }
  .contact-card{ grid-template-columns: 1fr; padding: 36px 26px; }
  .footer-inner{ flex-direction:column; }
  .stage-card.c1{ left:-90px; }
  .stage-card.c3{ left:-60px; }
  .float-badge.b1, .float-badge.b2{ right: -10px; }
}
@media (max-width: 560px){
  .wrap{ padding: 0 20px; }
  .section{ padding: 76px 0; }
  .island-stage{ width: 260px; }
  .stage-card.c1{ width:180px;height:240px; left:-110px; top:-20px;}
  .stage-card.c2{ width:200px;height:260px; left:20px;}
  .stage-card.c3{ display:none; }
}
