/* ============================================================
   TraceZoo 2.0 — "50 Free Kids Coloring Pages" lead page
   ============================================================ */

:root{
  --navy:#153a6e;
  --navy-d:#12305c;
  --navy-box:#1b3f74;
  --yellow:#ffc836;
  --yellow-d:#f0a800;
  --red:#ef4136;
  --orange:#f2762a;
  --green:#3cb54a;
  --blue:#2f80ed;
  --purple:#8b5cf6;
  --pink:#ec4899;
  --ink:#1f2b45;
  --muted:#5b6b85;
  --sky:#f2f8fe;
  --line:#e2ecf7;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:#fbfdff;color:var(--ink);
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
svg{display:block}
ul{margin:0;padding:0;list-style:none}
a{text-decoration:none;color:inherit}
.wrap{width:min(1440px,94vw);margin-inline:auto}
.red{color:var(--red)}

.h2{
  font-family:"Baloo 2",cursive;font-weight:700;
  font-size:clamp(26px,3.4vw,44px);color:var(--navy);
  text-align:center;margin:0 0 8px;line-height:1.2;
}
.sub{text-align:center;color:var(--muted);font-size:16px;margin:0 0 32px}

/* ===================== TOP BAR ===================== */
.topbar{position:relative;background:var(--navy-d);padding:24px 0 48px}
.topbar__inner{display:flex;justify-content:center}
.logo{display:flex;flex-direction:column;align-items:center;gap:4px}
.logo img{height:58px;width:auto}
.logo span{
  font-family:"Baloo 2",cursive;font-size:14.5px;color:#fff;letter-spacing:.4px;
}
.topbar__wave{position:absolute;left:0;bottom:-1px;width:100%;height:52px}

/* ===================== HERO ===================== */
.hero{
  position:relative;overflow:hidden;padding:26px 0 30px;
  background:linear-gradient(180deg,#fbfdff 0%,#f4faff 60%,#eef6fe 100%);
}
.cloud{position:absolute;border-radius:50%;background:#ffffffbf;filter:blur(2px);will-change:transform}
.cloud--1{width:260px;height:120px;left:-60px;top:60px;animation:drift 26s ease-in-out infinite}
.cloud--2{width:200px;height:90px;right:4%;top:24px;animation:drift 34s ease-in-out infinite reverse}
.cloud--3{width:320px;height:130px;left:30%;bottom:-60px;animation:drift 44s ease-in-out infinite}
@keyframes drift{
  0%,100%{transform:translateX(0) translateY(0)}
  50%    {transform:translateX(60px) translateY(-14px)}
}

/* text aur photo ke beech ka khaali space kam — dono ek dusre ke paas */
.hero__grid{
  position:relative;z-index:2;display:grid;
  grid-template-columns:minmax(0,690px) minmax(0,740px);
  gap:16px;justify-content:center;align-items:center;
}
.hero__left{min-width:0}
.hero__right{display:flex;justify-content:center;min-width:0}

.hero__h1{margin:0;font-family:"Baloo 2",cursive;font-weight:800;line-height:1.02}
.fifty{
  font-size:clamp(58px,9vw,124px);
  background:linear-gradient(180deg,#ff6a3d,var(--red));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.kids{font-size:clamp(44px,6.8vw,94px);color:var(--navy)}
.rainbow{font-size:clamp(40px,6.4vw,88px)}
.rainbow b{font-weight:800}
.pages{font-size:clamp(40px,6.4vw,88px);color:var(--purple)}

.hero__sub{
  display:inline-block;margin:16px 0 0;padding-bottom:6px;
  font-weight:700;font-size:clamp(19px,2.7vw,33px);color:var(--navy);
  border-bottom:4px solid var(--yellow);border-radius:2px;
}
.ticks{margin-top:28px;display:grid;gap:17px}
.ticks li{display:flex;align-items:center;gap:16px;font-size:20.5px;color:#33415c}
.ticks li::before{
  content:"";flex:none;width:32px;height:32px;border-radius:50%;
  background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.hero__right img{width:100%;max-width:100%;margin-inline:auto}

/* ===================== LEAD FORM ===================== */
.lead{position:relative;z-index:3;padding:0 0 46px}
.lead__box{
  position:relative;background:var(--navy-box);border-radius:28px;
  padding:46px 38px 40px;box-shadow:0 18px 44px rgba(20,50,100,.24);
  display:grid;grid-template-columns:290px 1fr 290px;gap:18px;align-items:end;
}
.lead__main{text-align:center;max-width:720px;margin-inline:auto;width:100%;padding-bottom:14px}
.lead__h{
  font-family:"Baloo 2",cursive;font-weight:700;color:#fff;
  font-size:clamp(24px,3vw,40px);margin:0 0 12px;line-height:1.25;
}
.hl{color:var(--yellow)}
.lead__p{color:#dbe8f8;font-size:17px;margin:0 0 26px}

.lead__form{display:grid;gap:14px}
.field{position:relative;display:block}
/* z-index zaroori hai: icon DOM me <input> se PEHLE aata hai, aur focus par
   input par transform:scale() lagta hai (neeche wali rule). Transform wala
   element apni alag layer bana leta hai jo icon ke UPAR paint hoti hai -
   isliye click karte hi icon input ke safed background ke peeche chhup jata
   tha. z-index se icon hamesha upar rehta hai. */
.field__ico{
  position:absolute;left:17px;top:50%;transform:translateY(-50%);z-index:2;
  width:25px;height:25px;color:#8fa4c0;pointer-events:none;
}
.field__ico svg{width:100%;height:100%}
.field input{
  width:100%;border:2px solid #e3edfa;border-radius:11px;background:#fff;
  padding:19px 20px 19px 54px;font:inherit;font-size:17px;color:var(--ink);
  outline:2px solid transparent;transition:outline-color .15s;
}
.field input::placeholder{color:#93a3b8}
.field input:focus{outline-color:var(--yellow)}
.field.err input{outline-color:#ff7b72}

.submit{
  display:flex;align-items:center;justify-content:center;gap:10px;
  border:0;cursor:pointer;border-radius:11px;padding:21px 24px;
  font-family:"Poppins";font-weight:800;font-size:clamp(15px,2vw,22px);
  letter-spacing:.3px;color:#26313f;
  background:linear-gradient(180deg,#ffd75c,var(--yellow) 55%,var(--yellow-d));
  box-shadow:0 5px 0 #cf8f00;
  transition:transform .12s,box-shadow .12s;
}
.submit svg{width:27px;height:27px;flex:none}
.submit:hover{transform:translateY(2px);box-shadow:0 3px 0 #cf8f00}
.submit:active{transform:translateY(5px);box-shadow:0 0 0 #cf8f00}

.lead__note{margin:12px 0 0;font-size:13.5px;color:#b8cce4}
.lead__note.ok{color:#8ef0a0;font-weight:600}
.lead__note.bad{color:#ffb3ad;font-weight:600}

/* ---- image slot: real PNG if present, SVG drawing otherwise ---- */
.slot{display:block;width:100%}
.slot img{width:100%;height:auto;display:block}
.slot__fb{display:block}
.slot img + .slot__fb{display:none}          /* image loaded -> hide drawing  */
.slot__fb svg{width:100%;height:auto;display:block}

.lead__pet{position:relative;display:flex;justify-content:center;align-items:flex-end}
.pet{width:262px;display:block}
.lead__arrow{position:absolute;top:-14px;left:-6px;width:104px;height:68px;opacity:.95}

/* ===================== SNEAK PEEK ===================== */
.peek{padding:34px 0 52px}
.peek__grid{display:grid;grid-template-columns:repeat(5,1fr);gap:24px}
.peek__card{
  background:#fff;border-radius:13px;padding:11px;
  box-shadow:0 6px 18px rgba(30,70,130,.10);
  transition:transform .18s ease, box-shadow .18s ease;
}
.peek__card:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(30,70,130,.18)}
.peek__inner{
  border-radius:6px;aspect-ratio:707/1000;
  display:grid;place-items:center;overflow:hidden;background:#fff;
}
/* SVG fallback ko apna patla border chahiye, asli image ko nahi */
.peek__inner:not(:has(img)){border:1.5px solid #d9e4f0}
.peek__inner svg{width:100%;height:100%}
.peek__inner .slot,
.peek__inner .slot__fb{width:100%;height:100%}
.peek__inner .slot img{width:100%;height:100%;object-fit:cover;display:block}
.peek__inner .slot__fb{display:grid;place-items:center;padding:8px}

.peek__foot{
  display:flex;align-items:center;justify-content:center;gap:9px;
  margin:30px 0 0;font-size:15.5px;color:#4a5a75;
}
.medal{width:28px;height:28px;flex:none}
.medal svg{width:100%;height:100%}

/* ===================== WHY ===================== */
.why{padding:40px 0 52px;background:linear-gradient(180deg,#fbfdff,#f7fbff)}
.brandword b{font-weight:800}
.brandword .c1{color:#4aa3f0}
.brandword .c2{color:var(--yellow-d)}
.brandword .c3{color:var(--navy)}

.why__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;margin-top:34px}
.why__grid li{text-align:center}
.why__ico{width:112px;margin:0 auto 20px;display:block}
.why__ring{
  display:grid;place-items:center;width:100%;aspect-ratio:1;
  border-radius:50%;border:2px solid;padding:16px;
}
.why__ring svg{width:100%;height:100%}
.why__grid h3{font-size:17px;font-weight:700;color:var(--navy);margin:0 0 9px}
.why__grid p{font-size:14.5px;color:var(--muted);margin:0;line-height:1.6}

/* ===================== CLASSROOM BANNER ===================== */
.shot{
  padding:6px 0 40px;
  background:linear-gradient(180deg,#f7fbff 0%,#f7fbff 45%,#eef6fe 45%,#eef6fe 100%);
}
.shot__frame{
  position:relative;margin:0 auto;max-width:1000px;border-radius:20px;overflow:hidden;
  box-shadow:0 18px 40px rgba(20,55,110,.20);
  border:5px solid #fff;
}
.shot__frame img{width:100%;height:auto;display:block}
.shot__cap{
  position:absolute;left:0;right:0;bottom:0;
  padding:34px 20px 16px;text-align:center;
  font-size:clamp(13px,1.6vw,17px);font-weight:600;color:#fff;
  font-family:"Baloo 2",cursive;letter-spacing:.2px;
  background:linear-gradient(180deg,transparent,rgba(10,35,75,.78));
  text-shadow:0 2px 6px rgba(0,0,0,.45);
}
.shot__cap b{color:var(--yellow);font-weight:700}
@media (max-width:620px){
  .shot__frame{border-width:3px;border-radius:14px}
  .shot__cap{padding:24px 12px 10px}
}

/* ===================== HOW IT WORKS ===================== */
.how{padding:46px 0 52px;background:linear-gradient(180deg,#eef6fe,#e8f2fd)}
.how__row{
  display:grid;grid-template-columns:1fr 80px 1fr 80px 1fr;
  align-items:start;gap:10px;margin-top:34px;
}
.how__step{text-align:center}
.how__ico{width:106px;margin:0 auto 20px;display:block}
.how__ring{
  display:grid;place-items:center;width:100%;aspect-ratio:1;background:#fff;
  border-radius:50%;border:2px solid;padding:15px;
}
.how__ring svg{width:100%;height:100%}
.how__step h3{font-size:16.5px;font-weight:700;color:var(--navy);margin:0 0 9px}
.how__step p{font-size:14.5px;color:var(--muted);margin:0;line-height:1.6}
.how__arrow{display:grid;place-items:center;padding-top:20px;color:var(--blue)}
.how__arrow svg{width:48px;height:24px}

/* ===================== TRUST BAND ===================== */
.band{background:linear-gradient(180deg,#ffd35c,var(--yellow));padding:32px 0}
.band__inner{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.band__item{display:flex;gap:16px;align-items:flex-start}
.band__ico{width:76px;height:76px;flex:none}
.band__ico svg{width:100%;height:100%}
.band__item h3{margin:0 0 7px;font-size:17.5px;font-weight:700;color:#3a2a00}
.band__item p{margin:0;font-size:14.5px;color:#4d3c07;line-height:1.6}

/* ===================== FOOTER ===================== */
.footer{background:var(--navy-d);color:#c5d8ef;padding:28px 0}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.footer__brand{display:flex;flex-direction:column;gap:2px}
.footer__brand img{height:30px;width:auto}
.footer__brand span{font-family:"Baloo 2",cursive;font-size:9px;color:#fff}
.footer__brand small{font-size:10px;color:#93aac7;margin-top:5px}
.footer__nav{display:flex;align-items:center;gap:16px;font-size:13.5px}
.footer__nav a:hover{color:#fff}
.footer__nav i{color:#476b96;font-style:normal}

/* ===================== RESPONSIVE ===================== */
@media (max-width:980px){
  .lead__box{grid-template-columns:170px 1fr 170px;padding:34px 20px 28px}
  .pet{width:158px}
  .lead__arrow{display:none}
  .peek__grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:820px){
  .hero__grid{grid-template-columns:1fr;text-align:center}
  .ticks li{justify-content:flex-start;text-align:left}
  .ticks{max-width:330px;margin-inline:auto}
  .hero__right img{margin-inline:auto}
  .lead__box{grid-template-columns:1fr;padding:26px 18px}
  .lead__pet{display:none}
  .why__grid{grid-template-columns:repeat(2,1fr)}
  .how__row{grid-template-columns:1fr;gap:26px}
  .how__arrow{display:none}
  .band__inner{grid-template-columns:1fr;gap:22px}
  .footer__inner{justify-content:center;text-align:center}
  .footer__brand{align-items:center}
}
@media (max-width:520px){
  .peek__grid{grid-template-columns:repeat(2,1fr)}
  .why__grid{grid-template-columns:1fr}
  .band__item{flex-direction:column;align-items:center;text-align:center}
}

/* =========================================================
   ANIMATION + INTERACTIVITY  (kids-friendly, halka rakha)
   ========================================================= */

/* --- udte hue crayon / star / balloon --- */
.sky{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.sky svg{width:100%;height:auto}


/* chamakti sparkles */
.spark{position:absolute;display:block;animation:twinkle ease-in-out infinite}
@keyframes twinkle{
  0%,100%{transform:scale(.6) rotate(0deg);opacity:.25}
  50%    {transform:scale(1)  rotate(45deg);opacity:.95}
}

/* --- hero photo halke se upar-neeche --- */
.hero__right img{animation:bob 5.5s ease-in-out infinite}
@keyframes bob{
  0%,100%{transform:translateY(0)}
  50%    {transform:translateY(-14px)}
}
/* mouse ke hisaab se halka tilt (JS --tx/--ty set karta hai) */
.hero__right{perspective:900px}
.hero__right img{
  transform-origin:60% 60%;
  transition:transform .25s ease-out;
}
.hero__right.tilt img{
  animation:none;
  transform:rotateY(var(--tx,0deg)) rotateX(var(--ty,0deg)) translateY(-6px);
}

/* --- rainbow letters halka nachte hain --- */
.rainbow b{display:inline-block;animation:wave 2.6s ease-in-out infinite}
@keyframes wave{
  0%,100%{transform:translateY(0)}
  50%    {transform:translateY(-7px)}
}

/* --- 100% FREE badge dhadkan --- */
.hero__right{position:relative}

/* --- tick list ek-ek karke andar aati hai --- */
.ticks li{opacity:0;transform:translateX(-16px);animation:slide-in .5s ease forwards}
.ticks li:nth-child(1){animation-delay:.15s}
.ticks li:nth-child(2){animation-delay:.30s}
.ticks li:nth-child(3){animation-delay:.45s}
.ticks li:nth-child(4){animation-delay:.60s}
.ticks li:nth-child(5){animation-delay:.75s}
@keyframes slide-in{to{opacity:1;transform:translateX(0)}}

/* --- scroll par section fade-up (JS .in lagata hai) --- */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
.reveal-d1{transition-delay:.08s}
.reveal-d2{transition-delay:.16s}
.reveal-d3{transition-delay:.24s}
.reveal-d4{transition-delay:.32s}

/* --- sneak peek card hover par thoda jhoolta hai --- */
.peek__card{cursor:pointer}
.peek__card:hover{transform:translateY(-10px) rotate(-1.5deg) scale(1.03)}
.peek__card:nth-child(even):hover{transform:translateY(-10px) rotate(1.5deg) scale(1.03)}

/* --- why / how icons hover par uchalte hain --- */
.why__grid li:hover .why__ico,
.how__step:hover .how__ico{animation:jump .55s ease}
@keyframes jump{
  0%,100%{transform:translateY(0) scale(1)}
  40%    {transform:translateY(-14px) scale(1.09)}
}
.why__ico,.how__ico{transition:transform .2s ease}

/* --- form ka button halka dhadakta hai, hover par chamak --- */
.submit{position:relative;overflow:hidden;animation:pulse 2.6s ease-in-out infinite}
@keyframes pulse{
  0%,100%{box-shadow:0 5px 0 #cf8f00, 0 0 0 0 rgba(255,200,54,.55)}
  50%    {box-shadow:0 5px 0 #cf8f00, 0 0 0 12px rgba(255,200,54,0)}
}
.submit::after{
  content:"";position:absolute;top:0;left:-120%;width:60%;height:100%;
  background:linear-gradient(100deg,transparent,#ffffff90,transparent);
  transform:skewX(-18deg);
}
.submit:hover::after{animation:shine .75s ease}
@keyframes shine{to{left:130%}}

/* --- input focus par halka bada --- */
.field input{transition:outline-color .15s,transform .15s}
.field input:focus{transform:scale(1.015)}

/* --- yellow band ke icons dhadakte hain --- */
.band__ico{transition:transform .25s ease}
.band__item:hover .band__ico{transform:scale(1.12) rotate(-6deg)}

/* --- form ke haathi/giraffe halka hilte hain --- */
.lead__pet--left .pet {animation:sway 4.5s ease-in-out infinite}
.lead__pet--right .pet{animation:sway 4.5s ease-in-out infinite reverse}
@keyframes sway{
  0%,100%{transform:translateY(0) rotate(-2deg)}
  50%    {transform:translateY(-9px) rotate(2deg)}
}

/* --- jinko animation nahi chahiye unke liye sab band --- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
  .ticks li{opacity:1;transform:none}
}

/* --- card click par bada preview --- */
.zoom{
  position:fixed;inset:0;z-index:99;display:none;
  place-items:center;padding:26px;
  background:rgba(12,32,64,.82);backdrop-filter:blur(3px);
}
.zoom.on{display:grid;animation:fade .2s ease}
@keyframes fade{from{opacity:0}to{opacity:1}}
.zoom img{
  max-width:min(560px,92vw);max-height:90vh;width:auto;
  border-radius:14px;border:6px solid #fff;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  animation:zoom-in .25s cubic-bezier(.2,1.2,.4,1);
}
@keyframes zoom-in{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
.zoom__x{
  position:absolute;top:18px;right:22px;width:46px;height:46px;
  border:0;border-radius:50%;cursor:pointer;
  background:#fff;color:#153a6e;font-size:30px;line-height:1;
  box-shadow:0 6px 16px rgba(0,0,0,.3);transition:transform .15s;
}
.zoom__x:hover{transform:rotate(90deg) scale(1.08)}
