:root {
  --blue: #078cf2;
  --blue-deep: #0478d9;
  --ink: #132648;
  --pale: #f3f7ff;
  --green: #2fd237;
  --yellow: #ffdc00;
  --line: #d7e5f2;
  --muted: #5c718b;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.5 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--max), calc(100% - 48px)); margin: auto; }
.narrow { width: min(1020px, calc(100% - 48px)); margin: auto; }

/* Header */
.site-header { height: 110px; display: flex; align-items: center; background: var(--pale); }
.header-content, .footer-top { display: flex; justify-content: space-between; align-items: center; }
.header-content { justify-content: center; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; width: 300px; height: auto; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 15px 23px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform .2s; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 20px; }
.button-blue { background: var(--blue); color: #fff; }
.button-small { padding: 12px 19px; }
.button-outline { background: #fff; border: 1px solid #a7cdf1; color: var(--blue-deep); }
.button-yellow { background: var(--yellow); color: #16417c; }

/* Shared typography */
.overline { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.overline.white { color: var(--yellow); }
h1, h2, h3 { font-family: Arial Rounded MT Bold, Arial, sans-serif; letter-spacing: -1.6px; }
h1 { margin: 0 0 25px; font-size: clamp(38px, 4.3vw, 63px); line-height: 1.02; }
h1 em, .center-content h2 span { color: var(--blue); font-style: normal; }
h2 { margin: 0; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.06; }

/* Hero */
.hero { padding: 72px 0 68px; overflow: hidden; background: var(--pale); }
.hero-layout { display: grid; grid-template-columns: .96fr 1.04fr; gap: 76px; align-items: center; }
.hero-art { height: 525px; display: grid; place-items: center; }
.hero-art img { display: block; width: min(100%, 490px); height: auto; }
.hero-copy > p:not(.overline), .section-intro { max-width: 720px; color: var(--muted); font-size: 17px; }
.hero-copy > p:not(.overline) { margin: 0 0 31px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Presentation video */
.video-section { padding: 72px 0; background: #fff; }
.video-container { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; box-shadow: 0 16px 36px #1b668226; }
.video-container iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Screen time */
.screen-time { padding: 100px 0 83px; background: var(--blue); color: #fff; }
.screen-time h2 { max-width: 885px; color: #fff; }
.screen-time h2 span { color: var(--yellow); }
.screen-time .section-intro { margin: 22px 0 39px; color: #dcefff; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { padding: 28px 30px; background: #fff; border-radius: 22px; color: var(--ink); }
.stat-card strong { color: var(--blue); font: 66px/1 Arial Rounded MT Bold, Arial, sans-serif; letter-spacing: -4px; }
.stat-card p { margin: 13px 0 0; font-size: 17px; }
.source { margin: 21px 0 0; color: #cae5ff; font-size: 12px; }

/* Festival comKids */
.comkids { overflow: hidden; background: #7bdc49; }
.comkids-top { position: relative; min-height: 590px; padding: 65px 0; background: linear-gradient(135deg, #88e452 0%, #7bdc49 100%); color: #fff; }
.comkids-top::after { content: ''; position: absolute; right: 0; bottom: 0; width: 235px; height: 155px; background: #68c83c; clip-path: polygon(0 0, 100% 0, 100% 100%, 62% 100%); }
.comkids-layout { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 76px; min-height: 460px; text-align: left; }
.comkids-ray { position: absolute; top: 0; left: 0; width: 235px; height: 155px; background: #68c83c; clip-path: polygon(0 0, 38% 0, 100% 100%, 0 100%); }
.comkids-logo-card { display: grid; place-items: center; width: 255px; height: 340px; padding: 28px; background: #fff; border-radius: 28px; box-shadow: 0 20px 35px #277d2e38; }
.comkids-logo { display: block; width: 184px; height: 276px; object-fit: contain; }
.comkids-layout > p { margin: 0; font: bold 45px/1.05 Arial Rounded MT Bold, Arial, sans-serif; letter-spacing: -1px; }
.comkids-layout > p strong { display: block; margin-top: 6px; font-size: 70px; }
.comkids-layout sup { font-size: 23px; }
.comkids-layout > p small { display: block; margin-top: 28px; font: 700 15px/1.25 Arial, Helvetica, sans-serif; letter-spacing: 0; }

/* Library */
.library { position: relative; padding: 112px 0 103px; overflow: hidden; background: #eef6ff url('img/biblioteca-infantil-curadoria-editorial.png') center / cover no-repeat; }
.library::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f4f8ffc2 0%, #ffffff66 24%, #ffffff66 76%, #f4f8ffc2 100%); }
.library .container { position: relative; }
.center-content { text-align: center; }
.center-content h2 { max-width: 865px; margin: auto; }
.center-content .section-intro { margin: 22px auto 47px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.benefit { min-height: 168px; padding: 20px 18px; background: #fff; border: 1px solid #e0eaf3; border-radius: 21px; box-shadow: 0 9px 26px #1b668218; text-align: left; }
.benefit i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; background: var(--blue); border-radius: 50%; color: var(--yellow); font-style: normal; }
.benefit h3, .step h3, .sva-card h3, .person h3 { margin: 0 0 8px; font-size: 20px; }
.benefit p, .person p { margin: 0; color: var(--muted); font-size: 14px; }
.benefit h3 { font-size: 18px; }
.benefit p { font-size: 13px; }

/* Steps and SVA */
.how-it-works, .sva { padding: 100px 0; background: var(--pale); }
.section-heading { max-width: 740px; }
.section-heading h2 { margin-bottom: 16px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step { min-height: 268px; padding: 30px 27px; border-radius: 22px; color: #fff; }
.step b { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 46px; border: 1px solid #ffffff90; border-radius: 50%; font-size: 20px; }
.step p, .sva-card p { margin: 0; color: #effcff; font-size: 14px; }
.blue-step, .blue-card { background: var(--blue); }
.green-step, .green-card { background: var(--green); }
.sva-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 100%; margin-top: 45px; }
.sva-card { min-height: 200px; padding: 24px 22px; border-radius: 21px; color: #fff; }
.sva-card i { display: block; margin-bottom: 26px; font-size: 30px; font-style: normal; }
.sva-card h3 { font-size: 18px; }
.sva-card p { font-size: 13px; }

/* Curation */
.curation { padding: 110px 0; background: var(--green); color: #fff; }
.curation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.curation-kicker { color: #fff; }
.curation h2 { margin-bottom: 24px; }
.curation > div > p:not(.overline) { max-width: 570px; color: #e9fff5; font-size: 17px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
.person { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: #fff; border-radius: 30px; color: #14842b; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1.26 / 1; object-fit: cover; object-position: center 29%; background: #fff; }
.person div:last-child { min-height: 143px; padding: 23px 43px 21px; }
.person h3 { margin-bottom: 2px; font-size: 19px; letter-spacing: -1px; }
.person p { color: #14842b; font-size: 17px; line-height: 1.35; }

/* CTA and footer */
.final-section { padding: 122px 0 34px; }
.final-cta { max-width: 1010px; margin: auto; padding: 68px 30px; background: var(--blue); border-radius: 37px; color: #fff; text-align: center; }
.final-cta > i { color: var(--yellow); font-size: 35px; }
.final-cta h2 { margin: 7px 0 17px; }
.final-cta p { max-width: 580px; margin: 0 auto 29px; color: #e6f5ff; font-size: 17px; }
.mail { display: block; margin-top: 22px; color: #d8f0ff; font-size: 13px; }
footer { padding: 30px 0 20px; border-top: 1px solid var(--line); }
footer .container { width: min(1500px, calc(100% - 96px)); }
.footer-top { display: grid; grid-template-columns: 300px minmax(220px, 1fr) minmax(220px, 1fr) 272px; align-items: center; column-gap: 32px; }
.footer-brand, .distribution { display: contents; }
.footer-brand .logo { flex: none; margin-left: -20px; }
.footer-top p { max-width: 280px; margin: 0; color: var(--muted); font-size: 13px; }
.footer-brand p { justify-self: center; }
.distribution-details { justify-self: center; color: var(--muted); font-size: 14px; text-align: center; }
.distribution b { color: var(--ink); }
.store-badges { display: flex; justify-content: flex-end; gap: 9px; margin-top: 2px; margin-right: -16px; }
.store-badges img { display: block; width: 128px; height: auto; }
.footer-bottom { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: #8495a7; font-size: 12px; text-align: center; }

/* Floating email */
.whatsapp-float { position: fixed; right: 25px; bottom: 25px; z-index: 20; display: grid; place-items: center; width: 58px; height: 58px; background: #25D366; border: 3px solid #fff; border-radius: 50%; color: #fff; box-shadow: 0 8px 22px #168a4170; transition: transform .2s, box-shadow .2s; }
.whatsapp-float:hover { box-shadow: 0 12px 28px #168a4180; transform: translateY(-3px) scale(1.04); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 850px) {
  .hero-layout, .curation-layout { grid-template-columns: 1fr; gap: 35px; }
  .hero-copy { order: -1; text-align: center; }
  .hero-copy > p:not(.overline) { margin-right: auto; margin-left: auto; }
  .button-row { justify-content: center; }
  .hero-art { height: 430px; }
  .hero-art img { width: 390px; }
  .curation { padding: 78px 0; }
  .curation-layout { gap: 40px; }
  .stat-grid, .benefit-grid, .step-grid, .sva-grid { grid-template-columns: 1fr; }
  .benefit-grid, .step-grid { max-width: 500px; margin-right: auto; margin-left: auto; }
  .footer-top { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-brand, .distribution { display: flex; align-items: center; justify-content: flex-start; }
  .distribution { gap: 22px; text-align: left; }
  .store-badges { justify-content: flex-start; }
}

@media (max-width: 510px) {
  .container, .narrow { width: calc(100% - 32px); }
  footer .container { width: calc(100% - 32px); }
  .site-header { height: 82px; }
  .button-small { padding: 12px; font-size: 0; }
  .button-small span { font-size: 18px; }
  .logo img { width: 200px; }
  .hero { padding: 58px 0; }
  .video-section { padding: 52px 0; }
  .hero-art { height: 390px; }
  .hero-art img { width: 320px; }
  .screen-time, .how-it-works, .sva { padding: 70px 0; }
  .comkids-top { min-height: 630px; padding: 58px 0; }
  .comkids-layout { flex-direction: column; gap: 28px; min-height: 0; text-align: center; }
  .comkids-logo-card { width: 188px; height: 250px; padding: 20px; border-radius: 22px; }
  .comkids-logo { width: 138px; height: 207px; }
  .comkids-layout > p { font-size: 29px; }
  .comkids-layout > p strong { font-size: 48px; }
  .comkids-layout > p small { margin-top: 21px; font-size: 12px; }
  .library { padding: 75px 0; }
  .stat-card strong { font-size: 55px; }
  .final-section { padding-top: 74px; }
  .final-cta { padding: 52px 18px; border-radius: 26px; }
  .people { grid-template-columns: 1fr; }
  .person { display: block; }
  .portrait { height: auto; }
  .person div:last-child { min-height: 0; padding: 21px 25px; }
  .footer-brand, .distribution { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-brand .logo { margin-left: 0; }
  .store-badges { margin-right: 0; }
  .footer-top { gap: 20px; }
}
