/* Tupimoo – PROBKA 11.11: warm motion layer on top of style.css (GSAP + ScrollTrigger + Lenis). */
:root {
  --peach: #FFE8D6;
  --butter: #FFF3C4;
  --mint: #E4F7CF;
  --sky-soft: #E3F3FD;
  --lilac: #EFE7FB;
  --shadow-warm: 0 18px 40px -18px rgba(194, 65, 12, .28);
  --shadow-sky: 0 18px 40px -20px rgba(2, 114, 184, .35);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
html, body { max-width: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
h1, h2, h3, .tagline { text-wrap: balance; }
p { text-wrap: pretty; }

.nav a { transition: background-color .2s, transform .2s var(--ease-spring); }
.nav a:active { transform: scale(.96); }

/* ---------- hero: sunny blobs + grain ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 22%, rgba(254, 202, 3, .30), transparent 70%),
    radial-gradient(36% 34% at 88% 18%, rgba(2, 135, 219, .16), transparent 70%),
    radial-gradient(40% 36% at 72% 70%, rgba(255, 86, 1, .13), transparent 70%),
    radial-gradient(30% 28% at 18% 68%, rgba(129, 215, 17, .16), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tagline { font-size: clamp(1.6rem, 6.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.tagline .w { display: inline-block; will-change: transform; }
.tagline .nowrap { position: relative; display: inline-block; z-index: 0; color: var(--orange-ink); }
.tagline .nowrap::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .36em; z-index: -1;
  background: var(--yellow); opacity: .55; border-radius: .3em; transform-origin: left center; transform: rotate(-1.2deg);
}
.anim .tagline .nowrap::after { transform: rotate(-1.2deg) scaleX(0); animation: tp-mark .6s .45s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes tp-mark { to { transform: rotate(-1.2deg) scaleX(1); } }
/* tagline waits for GSAP; failsafe shows it after 1.5 s if the CDN is slow */
.anim .tagline { opacity: 0; animation: tp-show 0s 1.5s forwards; }
@keyframes tp-show { to { opacity: 1; } }

.hero-art img { box-shadow: var(--shadow-warm); }
.doodle { animation: tp-sun 24s linear infinite; transform-origin: 50% 50%; }
@keyframes tp-sun { to { transform: rotate(360deg); } }

/* ---------- buttons: springy, main CTA with a shine ---------- */
.btn { transition: background-color .2s, color .2s, transform .25s var(--ease-spring), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .08s; }
.btn-main { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 10px 22px -10px rgba(194, 65, 12, .7); }
.btn-main:hover { box-shadow: 0 14px 28px -10px rgba(194, 65, 12, .8); }
.btn-main::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg) translateX(0);
  animation: tp-shine 6.5s 1s ease-in-out infinite;
}
@keyframes tp-shine { 0% { transform: skewX(-18deg) translateX(0); } 14%, 100% { transform: skewX(-18deg) translateX(420%); } }
.btn-main svg { transition: transform .3s var(--ease-spring); }
.btn-main:hover svg { transform: scale(1.18); }

/* ---------- section heads ---------- */
.section-head h2, #guides h2, .parents-text h2, .app-card h2 { letter-spacing: -.01em; }
.squiggle { width: 110px; height: 14px; }

/* ---------- series: pastel cards ---------- */
.series { gap: 22px; }
.serie {
  background: var(--paper); border-radius: 28px; padding: 12px 12px 20px;
  box-shadow: 0 1px 0 rgba(234, 223, 204, .9), 0 14px 30px -22px rgba(90, 60, 20, .45);
  transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.serie:nth-child(5n+1) { background: var(--peach); }
.serie:nth-child(5n+2) { background: var(--lilac); }
.serie:nth-child(5n+3) { background: var(--sky-soft); }
.serie:nth-child(5n+4) { background: var(--mint); }
.serie:nth-child(5n+5) { background: var(--butter); }
.serie .ph { border-radius: 20px; overflow: hidden; margin-bottom: 16px; transform: translateZ(0); }
.serie .ph img { margin: 0; border-radius: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.serie h3, .serie p, .serie .badge { padding: 0 8px; }
.serie h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.serie h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.serie { position: relative; }
.serie:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 1px 0 rgba(234, 223, 204, .9), 0 22px 40px -22px rgba(90, 60, 20, .55); }
.serie:nth-child(even):hover { transform: translateY(-4px) rotate(.4deg); }
.serie:hover .ph img { transform: scale(1.06); }
.serie:hover h3 a { background-size: 100% 2px; color: var(--ink); }
.serie p { color: #4E4C5C; }
#guides h2 { margin-bottom: 10px; }
@media (min-width: 620px) and (max-width: 979px) {
  .serie:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 620px) {
  .serie:last-child:nth-child(odd) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: center; padding: 12px; }
  .serie:last-child:nth-child(odd) .ph { grid-row: 1 / 4; margin: 0; }
}
@media (min-width: 980px) {
  .series { gap: 28px; }
  .serie:last-child:nth-child(3n+1) { grid-column: 1 / -1; grid-template-columns: 2fr 3fr; }
}

/* ---------- videos ---------- */
.band { background: linear-gradient(180deg, var(--sky) 0%, #E8F6FE 100%); }
.band .wave-bottom { color: #E8F6FE; }
.videos { gap: 26px 22px; }
.video { background: #fff; border-radius: 24px; padding: 10px 10px 16px; box-shadow: var(--shadow-sky); transition: transform .35s var(--ease-spring), box-shadow .35s; }
.video:hover { transform: translateY(-4px); }
.video .yt { border-radius: 16px; }
.yt img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.yt:hover img { transform: scale(1.05); }
.video-title, .video-sub { padding: 0 6px; }
.video-title a { text-decoration: none; }
.video-title a:hover { text-decoration: underline; text-decoration-color: var(--sky-ink); }
.yt-play { box-shadow: 0 6px 16px -6px rgba(2, 60, 100, .5); }
.yt-play::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(255, 253, 248, .8); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.yt:hover .yt-play::before { opacity: 1; transform: scale(1); }

/* ---------- guides ---------- */
#guides ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
#guides li a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-height: 52px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; text-decoration: none; font-weight: 700; transition: border-color .2s, transform .25s var(--ease-spring), background-color .2s; }
#guides li a::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
#guides li:nth-child(2) a::before { background: var(--sky-ink); }
#guides li:nth-child(3) a::before { background: var(--green); }
#guides li:nth-child(4) a::before { background: var(--yellow); }
#guides li a:hover { border-color: var(--orange); background: #fff; transform: translateX(4px); color: var(--ink); }

/* ---------- parents ---------- */
.values div { border-left: 0; padding: 16px 18px; background: var(--paper); border-radius: 18px; box-shadow: 0 10px 24px -20px rgba(90, 60, 20, .5); }
.values dt { display: flex; align-items: center; gap: 10px; }
.values dt::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.values div:nth-child(2) dt::before { background: var(--sky-ink); }
.values div:nth-child(3) dt::before { background: var(--green); }
.values div:nth-child(4) dt::before { background: var(--yellow); }
.parents-art { border-radius: 120px 40px 40px 40px; overflow: hidden; box-shadow: var(--shadow-warm); }
.parents-art img { border-radius: 0; }

/* ---------- app card ---------- */
.app-card {
  position: relative; overflow: hidden; margin: 0 auto; max-width: 860px; border: 0; border-radius: 32px; padding: clamp(28px, 5vw, 48px);
  background: radial-gradient(60% 80% at 100% 0%, rgba(254, 202, 3, .45), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(129, 215, 17, .30), transparent 70%), var(--butter);
  box-shadow: 0 24px 50px -30px rgba(160, 110, 0, .6);
}
.app-card h2 { margin-bottom: 8px; }
.app-card p { max-width: 36em; }
.app-card .btn { margin: 6px 12px 6px 0; }

/* ---------- socials ---------- */
.socials a { transition: border-color .2s, transform .25s var(--ease-spring), background-color .2s; }
.socials a:hover { transform: translateY(-3px); background: #fff; }
.socials li:nth-child(1) a:hover { border-color: #E62117; }
.socials li:nth-child(2) a:hover { border-color: #111; }
.socials li:nth-child(3) a:hover { border-color: #C13584; }
.socials li:nth-child(4) a:hover { border-color: #1877F2; }
.socials li:nth-child(5) a:hover { border-color: #E60023; }

/* ---------- phone first ---------- */
@media (max-width: 599px) {
  .hero { padding-bottom: 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .serie { padding: 10px 10px 18px; }
}

/* ---------- reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  .doodle, .btn-main::after { animation: none; }
  .anim .tagline { opacity: 1; animation: none; }
  .tagline .nowrap::after { transform: rotate(-1.2deg); animation: none; }
  .serie:hover, .video:hover, .btn:hover, .socials a:hover, #guides li a:hover { transform: none; }
  .serie:hover .ph img, .yt:hover img { transform: none; }
}
@media (min-width: 620px) {
  .serie:last-child:nth-child(odd) h3 { align-self: end; }
  .serie:last-child:nth-child(odd) p { margin: 6px 0 8px; }
  .serie:last-child:nth-child(odd) .badge { align-self: start; }
}
