/* ==========================================================================
   CasaToon — cartoon theme pulled straight from the logo:
   Casa-yellow, Toon-blue, tomato red, grass green, sky-blue clouds, and a
   film-strip motif. Chunky navy outlines + hard offset shadows everywhere.
   ========================================================================== */

:root {
  --yellow: #ffc21f;
  --yellow-deep: #ff9f00;
  --blue: #1f6ff0;
  --blue-deep: #0f4bb5;
  --sky: #8fd0ff;
  --sky-light: #e6f4ff;
  --red: #ff4d4d;
  --red-deep: #d92d2d;
  --green: #4fc25b;
  --pink: #ff8ad8;
  --cream: #fffaf0;
  --ink: #1b2f66;
  --muted: #58648a;
  --white: #ffffff;
  --stroke: 3px solid var(--ink);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --radius: 22px;
  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", "Fredoka", sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--cream); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Chunky white-outlined toon type, like the wordmark */
.toon-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.01em; }
.toon-title.small { font-size: clamp(32px, 4.4vw, 52px); }
.toon-title span { display: inline-block; -webkit-text-stroke: 0; text-shadow: 0 3px 0 rgba(27, 47, 102, .18); }
.toon-title .yellow { color: var(--yellow); text-shadow: 0 4px 0 var(--yellow-deep), 0 7px 0 rgba(27, 47, 102, .2); }
.toon-title .blue { color: var(--blue); text-shadow: 0 4px 0 var(--blue-deep), 0 7px 0 rgba(27, 47, 102, .2); }
.toon-title .red { color: var(--red); text-shadow: 0 4px 0 var(--red-deep), 0 7px 0 rgba(27, 47, 102, .2); }
.toon-title .word { transition: transform .35s var(--bounce); }
.toon-title .word:hover { transform: rotate(-4deg) scale(1.08); }
.bounce-in .word { animation: word-in .7s var(--bounce) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes word-in { 0% { opacity: 0; transform: translateY(40px) scale(.6) rotate(-8deg); } 60% { opacity: 1; transform: translateY(-8px) scale(1.08) rotate(3deg); } 100% { opacity: 1; transform: none; } }

/* Inline icons: stroked, rounded, currentColor */
.icon { width: 1.4em; height: 1.4em; flex: none; stroke-width: 2.25; vertical-align: -.3em; }
i.icon { display: inline-block; }
.icon-sm { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.icon-xs { width: .9em; height: .9em; vertical-align: -.1em; }
.icon.lucide-play, .icon.lucide-star, .icon.lucide-sparkles, .icon.lucide-heart, .icon.lucide-zap { fill: currentColor; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: var(--stroke); border-radius: 999px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.pill-yellow { background: var(--yellow); }
.pill-blue { background: var(--sky); }
.pill-red { background: var(--pink); }

/* Buttons: toy-block buttons that press down */
.button { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: var(--stroke); border-radius: 16px; background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-hard-sm); font-family: var(--font-display); font-weight: 700; font-size: 17px; cursor: pointer; position: relative; overflow: hidden; transform: translate(var(--mx), var(--my)); transition: transform .2s var(--bounce), box-shadow .2s, background .2s; }
.button:hover { background: #ffd14f; transform: translate(calc(var(--mx) - 2px), calc(var(--my) - 2px)); box-shadow: 6px 6px 0 var(--ink); }
.button:active { transform: translate(calc(var(--mx) + 3px), calc(var(--my) + 3px)); box-shadow: 1px 1px 0 var(--ink); }
.button-big { min-height: 60px; padding: 0 32px; font-size: 19px; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button-ghost { background: var(--white); }
.button-ghost:hover { background: var(--sky-light); }
.button-ghost i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-style: normal; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; background: rgba(255, 250, 240, .85); backdrop-filter: blur(10px); border-bottom: var(--stroke); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 58px; width: auto; transition: transform .3s var(--bounce); }
.brand:hover img { transform: rotate(-4deg) scale(1.06); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.button) { padding: 8px 14px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; transition: background .2s, transform .2s var(--bounce); }
.site-nav a:not(.button):hover { background: var(--sky-light); transform: translateY(-2px) rotate(-2deg); }
.nav-login { color: var(--blue); margin-left: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: var(--stroke); border-radius: 12px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 0; background: var(--sky-light) url("./public/images/herobackground.webp") center / cover no-repeat; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-bottom: 80px; }
.hero-copy > * + * { margin-top: 22px; }
.hero-text { max-width: 520px; font-size: 19px; font-weight: 500; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { display: grid; }
.hero-stats strong { font-family: var(--font-display); font-size: 30px; color: var(--blue); line-height: 1; }
.hero-stats small { font-weight: 700; font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; }

/* Film frame: image inside a strip of sprocket holes */
.film-frame { position: relative; margin: 0; padding: 18px 26px; border: var(--stroke); border-radius: 18px; background: var(--ink); box-shadow: var(--shadow-hard); }
.film-frame::before, .film-frame::after { content: ""; position: absolute; top: 12px; bottom: 12px; width: 12px; background: repeating-linear-gradient(to bottom, var(--white) 0 12px, transparent 12px 24px); border-radius: 3px; opacity: .85; }
.film-frame::before { left: 7px; }
.film-frame::after { right: 7px; }
.film-frame img, .film-frame video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 3px solid var(--white); }
.film-frame figcaption { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-display); font-size: 15px; }
.film-frame .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
.hero-visual .film-frame { transform: rotate(3deg); }

.sticker { position: absolute; padding: 8px 14px; border: var(--stroke); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 15px; transform: rotate(-8deg); animation: bob 3.2s ease-in-out infinite; }
.sticker-red { top: -14px; left: -10px; background: var(--red); color: #fff; }
.sticker-blue { bottom: 26px; right: -14px; background: var(--sky); animation-delay: -1.4s; transform: rotate(6deg); }
.sticker-yellow { bottom: -8px; left: 50%; translate: -50% 0; background: var(--yellow); white-space: nowrap; }

/* Clouds & floaties */
.cloud { position: absolute; z-index: 1; width: 180px; height: 62px; border-radius: 999px; background: #fff; border: var(--stroke); box-shadow: 4px 4px 0 rgba(27, 47, 102, .15); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 8px; border-radius: 50%; background: #fff; border: var(--stroke); border-bottom: 0; }
.cloud::before { left: 30px; width: 70px; height: 70px; }
.cloud::after { left: 84px; width: 54px; height: 54px; }
.cloud-a { top: 24px; left: 3%; scale: .8; }
.cloud-b { top: 130px; right: 6%; scale: .75; animation-delay: -5s; }
.cloud-c { bottom: 90px; left: 40%; scale: .55; animation-delay: -9s; }
.cloud-d { top: 30px; left: 8%; scale: .7; }
.cloud-e { bottom: 60px; right: 6%; scale: .9; animation-delay: -6s; }
.floaty { position: absolute; z-index: 3; width: 38px; height: 38px; color: var(--yellow); pointer-events: none; animation: twinkle 2.6s ease-in-out infinite; }
.floaty .icon { width: 100%; height: 100%; stroke: var(--ink); stroke-width: 1.8; filter: drop-shadow(2px 2px 0 rgba(27, 47, 102, .25)); }
.star-a { top: 10%; left: 50%; }
.star-b { top: 74%; left: 47%; width: 28px; height: 28px; animation-delay: -.8s; }
.star-c { top: 14%; right: 12%; width: 30px; height: 30px; color: var(--sky); animation-delay: -1.6s; }
.rocket { top: 12%; right: 3%; width: 56px; height: 56px; color: var(--red); animation: rocket 6s ease-in-out infinite; }
.rocket .icon { fill: #fff; stroke: var(--ink); }

/* Film strip divider */
.filmstrip { position: relative; z-index: 2; height: 34px; background: var(--ink); border-top: var(--stroke); border-bottom: var(--stroke); background-image: repeating-linear-gradient(to right, transparent 0 18px, var(--white) 18px 36px, transparent 36px 54px); background-size: 54px 12px; background-repeat: repeat-x; background-position: 0 center; animation: strip 1.4s linear infinite; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -34px; position: relative; z-index: 3; }
.feature-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border: var(--stroke); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-hard-sm); transition: transform .25s var(--bounce), box-shadow .25s; }
.feature-card:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 8px 8px 0 var(--ink); }
.feature-card span .icon, .step-icon .icon, .creator-grid span .icon, .outcome-list span .icon { width: 28px; height: 28px; }
.feature-card span { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--tint); border: var(--stroke); transition: transform .3s var(--bounce); }
.feature-card:hover span { transform: rotate(12deg) scale(1.12); }
.feature-card b { font-family: var(--font-display); font-size: 18px; }
.feature-card small { font-size: 14px; color: var(--muted); font-weight: 700; }

/* Trusted */
.trusted { padding: 60px 0 20px; text-align: center; }
.trusted p { font-family: var(--font-display); font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.logo-loop { overflow: hidden; padding: 8px 0 14px; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logo-loop-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.logo-loop:hover .logo-loop-track { animation-play-state: paused; }
.logo-loop-list { display: flex; flex: none; justify-content: space-around; gap: 16px; min-width: 100vw; padding: 0 24px; }
.logo-loop-list span { padding: 10px 22px; border: var(--stroke); border-radius: 999px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 17px; white-space: nowrap; transition: transform .25s var(--bounce), background .2s; }
.logo-loop-list span:hover { transform: translateY(-4px) rotate(-3deg); background: var(--yellow); }

/* Sections */
section { position: relative; }
.section-title { text-align: center; margin-bottom: 44px; display: grid; justify-items: center; gap: 16px; }
.section-title.align-left { text-align: left; justify-items: start; }

/* How it works */
.journey { padding: 80px 0; }
.journey-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; }
.step-card { position: relative; padding: 34px 26px 26px; border: var(--stroke); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-hard); transition: transform .3s var(--bounce); }
.step-card:hover { transform: translateY(-8px) rotate(1deg); }
.step-card:nth-child(3):hover { transform: translateY(-8px) rotate(-1deg); }
.step-num { position: absolute; top: -18px; left: 22px; display: grid; place-items: center; width: 40px; height: 40px; border: var(--stroke); border-radius: 50%; background: var(--tint); font-family: var(--font-display); font-weight: 700; font-size: 20px; box-shadow: 3px 3px 0 var(--ink); }
.step-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border: var(--stroke); border-radius: 18px; background: var(--sky-light); font-size: 30px; transition: transform .3s var(--bounce); }
.step-card:hover .step-icon { transform: rotate(-10deg) scale(1.1); background: var(--tint); }
.step-card h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-weight: 600; }
.step-arrow { width: 40px; height: 40px; color: var(--yellow-deep); animation: nudge 1.4s ease-in-out infinite; }
.step-arrow .icon { width: 100%; height: 100%; stroke-width: 2.6; }

.try-box { margin-top: 50px; padding: 26px; border: var(--stroke); border-radius: var(--radius); background: linear-gradient(135deg, #fff 0%, var(--sky-light) 100%); box-shadow: var(--shadow-hard); }
.try-box label { display: block; margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.try-row { display: flex; gap: 12px; flex-wrap: wrap; }
.try-row input { flex: 1 1 280px; min-height: 52px; padding: 0 18px; border: var(--stroke); border-radius: 16px; background: var(--white); font: inherit; font-weight: 600; color: var(--ink); box-shadow: inset 3px 3px 0 rgba(27, 47, 102, .08); }
.try-row input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.try-output { margin-top: 14px; min-height: 28px; font-family: var(--font-display); font-weight: 600; color: var(--blue-deep); }
.try-output.is-cooking { animation: wiggle .5s ease-in-out infinite; }

/* Styles section: one film frame that plays each style's clip */
.styles-section { padding: 80px 0; background: url("./public/images/background%202.webp") center / cover no-repeat; }
.style-stage { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.style-frame video { aspect-ratio: 16 / 10; }
.clapper { position: absolute; inset: 18px 26px auto; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; z-index: 2; }
.clapper-board { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--ink); color: #fff; font-family: var(--font-display); }
.clapper-board span { font-size: 14px; letter-spacing: .3em; color: var(--yellow); }
.clapper-board b { font-size: clamp(40px, 8vw, 96px); line-height: 1; }
.clapper-top { position: absolute; left: 0; right: 0; top: 0; height: 16%; transform-origin: 0 100%; background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--ink) 22px 44px); border-bottom: 4px solid #fff; transform: rotate(-22deg); }
.clapper.is-snapping { animation: clapper-show .75s var(--ease) both; }
.clapper.is-snapping .clapper-top { animation: clapper-snap .75s var(--ease) both; }
@keyframes clapper-show { 0% { opacity: 0; transform: scale(1.06); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.02); } }
@keyframes clapper-snap { 0%, 20% { transform: rotate(-22deg); } 38% { transform: rotate(0); } 46% { transform: rotate(-5deg); } 54% { transform: rotate(0); } 100% { transform: rotate(0); } }
.style-frame video.is-swapping { animation: frame-pop .5s var(--bounce) both; }
@keyframes frame-pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.style-play { position: absolute; left: 50%; top: 42%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; padding-left: 6px; border: var(--stroke); border-radius: 50%; background: var(--yellow); box-shadow: var(--shadow-hard-sm); font-size: 30px; cursor: pointer; transition: transform .3s var(--bounce), opacity .25s; }
.style-play .icon { width: 34px; height: 34px; margin-left: 2px; }
.style-play:hover { transform: scale(1.12) rotate(-6deg); }
.style-frame.is-playing .style-play { opacity: 0; pointer-events: none; }
.style-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.style-strip button { position: relative; padding: 0; border: var(--stroke); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-hard-sm); overflow: hidden; cursor: pointer; transition: transform .3s var(--bounce), box-shadow .3s; }
.style-strip button video { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; pointer-events: none; }
.style-strip button::after { content: attr(data-name); position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.style-strip button:hover { transform: translateY(-5px) rotate(-2deg); }
.style-strip button.is-active { transform: scale(1.04); box-shadow: 0 0 0 4px var(--yellow), 6px 6px 0 var(--ink); }
.style-strip button.is-active::after { background: var(--yellow); }
.style-strip button:nth-child(5) { grid-column: span 2; }
.style-strip button:nth-child(5) video { aspect-ratio: 21 / 9; }

/* Featured: the theatre */
.featured { padding: 90px 0; color: #fff; background: #1a1206 url("./public/images/feature.webp") center / cover no-repeat; }
.featured .section-title .pill { color: var(--ink); }
.story-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.story-filters button { padding: 9px 18px; border: 3px solid var(--yellow); border-radius: 999px; background: transparent; color: var(--yellow); font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .25s var(--bounce), background .2s, color .2s; }
.story-filters button:hover { transform: translateY(-3px) rotate(-2deg); }
.story-filters button.is-active { background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 rgba(255, 255, 255, .35); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-grid article { position: relative; border: 3px solid var(--yellow); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 6px 6px 0 rgba(255, 194, 31, .35); transition: transform .3s var(--bounce), box-shadow .3s; }
.video-grid article:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 10px 10px 0 rgba(255, 194, 31, .5); }
.video-grid video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.video-grid article > button { position: absolute; left: 50%; top: 40%; translate: -50% -50%; display: grid; place-items: center; width: 62px; height: 62px; padding-left: 5px; border: var(--stroke); border-radius: 50%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-size: 22px; cursor: pointer; transition: transform .3s var(--bounce), opacity .25s; }
.video-grid article > button .icon { width: 24px; height: 24px; }
.video-grid article > button:hover { transform: scale(1.15) rotate(-8deg); }
.video-grid article.is-playing > button { opacity: 0; }
.video-grid article.is-playing:hover > button { opacity: 1; }
.video-grid article > div { padding: 14px 16px; background: var(--ink); }
.video-grid b { display: block; font-family: var(--font-display); font-size: 18px; }
.video-grid small { color: var(--sky); font-weight: 700; }
.video-grid article[hidden] { display: none; }

/* Creators */
.creators { padding: 90px 0 70px; }
.creator-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.creator-grid article { padding: 26px 18px; border: var(--stroke); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-hard-sm); text-align: center; transition: transform .3s var(--bounce), background .3s; }
.creator-grid article:hover { transform: translateY(-8px) rotate(2deg); background: var(--tint); }
.creator-grid span { display: inline-grid; place-items: center; width: 66px; height: 66px; margin-bottom: 12px; border: var(--stroke); border-radius: 50%; background: var(--tint); font-size: 30px; transition: transform .4s var(--bounce); }
.creator-grid article:hover span { transform: rotate(-15deg) scale(1.15); background: var(--white); }
.creator-grid h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 6px; }
.creator-grid p { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Outcomes */
.outcomes { padding: 80px 0 100px; background: linear-gradient(180deg, var(--cream) 0%, #fff3c4 100%); }
.outcomes-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.outcomes-art { position: relative; }
.outcomes-art img { border: var(--stroke); border-radius: 28px; box-shadow: var(--shadow-hard); transform: rotate(-3deg); }
.outcome-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.outcome-list li { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border: var(--stroke); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-hard-sm); transition: transform .3s var(--bounce); }
.outcome-list li:hover { transform: translateX(10px) rotate(-1deg); }
.outcome-list span { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border: var(--stroke); border-radius: 14px; background: var(--yellow); font-size: 26px; }
.outcome-list b { font-family: var(--font-display); font-size: 19px; display: block; }
.outcome-list small { font-weight: 600; color: var(--muted); }

/* Pricing */
.pricing { padding: 90px 0; }
.billing-toggle { display: flex; justify-content: center; align-items: center; gap: 14px; margin: -20px 0 40px; font-family: var(--font-display); font-weight: 700; }
.switch { position: relative; width: 66px; height: 36px; padding: 0; border: var(--stroke); border-radius: 999px; background: var(--white); cursor: pointer; transition: background .25s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); transition: transform .3s var(--bounce); }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"] i { transform: translateX(30px); }
.save-tag { display: inline-block; margin-left: 4px; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--green); font-style: normal; font-size: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border: var(--stroke); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-hard); transition: transform .3s var(--bounce); }
.plan-card:hover { transform: translateY(-8px); }
.plan-featured { background: linear-gradient(180deg, #fff8dd, #fff); transform: scale(1.04); }
.plan-featured:hover { transform: scale(1.04) translateY(-8px); }
.popular { position: absolute; top: -18px; left: 50%; translate: -50% 0; padding: 6px 16px; border: var(--stroke); border-radius: 999px; background: var(--red); color: #fff; box-shadow: 3px 3px 0 var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; animation: bob 3s ease-in-out infinite; }
.plan-name { display: inline-block; align-self: flex-start; padding: 4px 12px; border: var(--stroke); border-radius: 999px; background: var(--tint); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.price { margin: 16px 0 8px; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--blue); transition: transform .3s var(--bounce); display: inline-block; }
.price strong.is-bumping { animation: bump .45s var(--bounce); }
.price span { font-weight: 700; color: var(--muted); }
.plan-copy { font-weight: 600; color: var(--muted); }
.plan-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; flex: 1; font-weight: 700; }
.plan-card li::before { content: ""; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12l4 4L19 7%27/%3E%3C/svg%3E") center / 12px no-repeat; vertical-align: -5px; }

/* Testimonials */
.testimonials { padding: 40px 0 90px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-grid article { padding: 26px; border: var(--stroke); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-hard-sm); transition: transform .3s var(--bounce); }
.testimonial-grid article:nth-child(odd) { transform: rotate(-1.5deg); }
.testimonial-grid article:nth-child(even) { transform: rotate(1.5deg); }
.testimonial-grid article:hover { transform: rotate(0) translateY(-6px); }
.quote-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar { display: grid; place-items: center; width: 50px; height: 50px; border: var(--stroke); border-radius: 50%; background: var(--tint); font-family: var(--font-display); font-weight: 700; }
.quote-top b { display: block; font-family: var(--font-display); font-size: 17px; }
.quote-top small { font-weight: 700; color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--yellow-deep); margin-bottom: 8px; }
.stars .icon { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.5; }
.testimonial-grid p { font-weight: 600; }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; padding: 90px 0 0; background: linear-gradient(180deg, var(--sky) 0%, var(--blue) 100%); text-align: center; }
.cta-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; padding-bottom: 80px; }
.cta-logo { width: min(420px, 80%); filter: drop-shadow(6px 8px 0 rgba(27, 47, 102, .35)); }
.cta-inner p { color: #fff; font-weight: 700; font-size: 19px; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand img { width: 180px; margin-bottom: 12px; }
.footer-brand p { color: var(--sky); font-weight: 600; }
.footer-grid div > b { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 18px; color: var(--yellow); }
.footer-grid a { display: block; padding: 4px 0; font-weight: 600; color: #d8e6ff; transition: transform .2s var(--bounce), color .2s; }
.footer-grid a:hover { color: var(--yellow); transform: translateX(6px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 2px dashed rgba(255, 255, 255, .25); font-weight: 600; }
.footer-bottom a { margin-left: 18px; color: var(--sky); }

/* Checkout modal */
.checkout-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.checkout-modal.is-open { opacity: 1; pointer-events: auto; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(27, 47, 102, .6); }
.checkout-dialog { position: relative; width: min(480px, 100%); padding: 34px 30px 26px; border: var(--stroke); border-radius: 26px; background: var(--white); box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--ink); transform: scale(.85) rotate(-3deg); transition: transform .35s var(--bounce); }
.checkout-modal.is-open .checkout-dialog { transform: none; }
.checkout-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; padding: 0; border: var(--stroke); border-radius: 50%; background: var(--red); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .3s var(--bounce); }
.checkout-close:hover { transform: rotate(90deg) scale(1.1); }
.checkout-dialog h2 { margin: 14px 0 18px; }
.checkout-summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; margin-bottom: 18px; border: var(--stroke); border-radius: 16px; background: var(--sky-light); }
.checkout-summary b { display: block; font-family: var(--font-display); font-size: 20px; }
.checkout-summary small { font-weight: 700; color: var(--muted); }
.checkout-summary em { padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-style: normal; font-weight: 700; font-size: 13px; }
.checkout-dialog form { display: grid; gap: 14px; }
.checkout-dialog label { display: grid; gap: 6px; font-family: var(--font-display); font-weight: 600; }
.checkout-dialog input { min-height: 48px; padding: 0 14px; border: var(--stroke); border-radius: 14px; font: inherit; font-weight: 600; color: var(--ink); }
.checkout-dialog input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.checkout-feedback { padding: 16px; border: var(--stroke); border-radius: 16px; background: #e6ffe9; font-family: var(--font-display); font-weight: 600; }
.checkout-dialog > small { display: block; margin-top: 14px; text-align: center; font-weight: 600; color: var(--muted); }

/* Reveal: quick, gentle fade-up on first sight (no scroll-jacking) */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(.88) rotate(-1.5deg); transition: opacity .45s var(--ease), transform .65s var(--bounce); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.testimonial-grid article[data-reveal].is-visible:nth-child(odd) { transform: rotate(-1.5deg); }
.testimonial-grid article[data-reveal].is-visible:nth-child(even) { transform: rotate(1.5deg); }
.testimonial-grid article[data-reveal].is-visible:hover { transform: rotate(0) translateY(-6px); }
.plan-featured[data-reveal].is-visible { transform: scale(1.04); }
.plan-featured[data-reveal].is-visible:hover { transform: scale(1.04) translateY(-8px); }

/* Confetti */
.confetti-piece { position: fixed; z-index: 300; width: 10px; height: 14px; border: 2px solid var(--ink); border-radius: 3px; pointer-events: none; animation: confetti 1s var(--ease) forwards; }

/* Cursor sparkle trail */
.cursor-spark { position: fixed; z-index: 999; width: 14px; height: 14px; pointer-events: none; color: var(--yellow); animation: spark-fall .6s var(--ease) forwards; }
.cursor-spark svg { width: 100%; height: 100%; fill: currentColor; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
@keyframes spark-fall { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4) rotate(0); } 30% { transform: translate(-50%, -50%) scale(1.1) rotate(60deg); } 100% { opacity: 0; transform: translate(calc(-50% + var(--sx, 0px)), calc(-50% + 34px)) scale(.3) rotate(180deg); } }

/* Scroll-to-top rocket */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: var(--stroke); border-radius: 50%; background: var(--red); color: #fff; box-shadow: var(--shadow-hard-sm); cursor: pointer; opacity: 0; translate: 0 90px; transition: opacity .3s, translate .45s var(--bounce), transform .2s var(--bounce); }
.to-top .icon { width: 28px; height: 28px; stroke-width: 2.4; transform: rotate(-45deg); transition: transform .3s var(--bounce); }
.to-top.is-shown { opacity: 1; translate: 0 0; }
.to-top:hover { transform: scale(1.1) rotate(-6deg); }
.to-top:hover .icon { transform: rotate(-45deg) translate(2px, -2px); }
.to-top.is-launching { animation: launch 1s cubic-bezier(.5, 0, .9, .4) forwards; }
.to-top-smoke { position: absolute; left: 50%; bottom: -6px; width: 26px; height: 26px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; opacity: 0; translate: -50% 0; }
.to-top.is-launching .to-top-smoke { animation: smoke 1s ease-out forwards; }
.to-top.is-launching .to-top-smoke::before { content: ""; position: absolute; left: -18px; top: 6px; width: 20px; height: 20px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; }
@keyframes launch { 0% { transform: translateY(0) rotate(0); } 15% { transform: translateY(6px) rotate(-3deg); } 100% { transform: translateY(-110vh) rotate(0); opacity: 0; } }
@keyframes smoke { 0% { opacity: 0; scale: .3; } 20% { opacity: 1; } 100% { opacity: 0; scale: 2.4; translate: -50% 40px; } }

/* Blue cartoon cursor */
.toon-cursor { position: fixed; left: 0; top: 0; width: 28px; height: 28px; pointer-events: none; z-index: 1000; opacity: 0; transform: translate(var(--cx, -100px), var(--cy, -100px)); transition: opacity .25s ease; }
.toon-cursor svg { display: block; filter: drop-shadow(0 3px 0 rgba(15, 75, 181, .4)); transform-origin: 4px 3px; transform: rotate(var(--tilt, 0deg)) scale(var(--zoom, 1)); transition: transform .22s var(--bounce); }
.toon-cursor.is-awake { opacity: 1; }
.toon-cursor.is-hover { --tilt: -14deg; --zoom: 1.25; }
.toon-cursor.is-down { --tilt: -14deg; --zoom: .82; }
.toon-cursor.is-text { opacity: 0; }
body.has-toon-cursor, body.has-toon-cursor * { cursor: none !important; }
body.has-toon-cursor :where(input, textarea, select) { cursor: text !important; }
@media (hover: none), (pointer: coarse) { .toon-cursor { display: none; } }

/* Motion */
.wobble { animation: wobble 5s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-10px); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes drift { from { translate: 0 0; } to { translate: 40px -10px; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.3) rotate(15deg); opacity: .7; } }
@keyframes rocket { 0%, 100% { transform: translate(0, 0) rotate(-20deg); } 50% { transform: translate(-30px, -40px) rotate(-10deg); } }
@keyframes strip { from { background-position-x: 0; } to { background-position-x: 54px; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-4deg); } 100% { transform: scale(1); } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-visual { max-width: 480px; margin: 20px auto 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .journey-steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; animation: none; }
  .style-stage, .outcomes-layout { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid, .pricing-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-featured, .plan-featured[data-reveal].is-visible { transform: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-toggle { display: flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 6px; padding: 16px 20px; background: var(--cream); border-bottom: var(--stroke); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { padding: 12px 14px; }
  .nav-login { margin-left: 0; }
  .brand img { height: 48px; }
  .hero { padding-top: 40px; }
  .rocket, .star-a, .cloud-b { display: none; }
  .features { grid-template-columns: 1fr; margin-top: 20px; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid, .pricing-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .style-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .cloud-c, .cloud-d { display: none; }
  .to-top { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}
@media (max-width: 470px) {
  .creator-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; justify-content: center; }
  .film-frame { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .bounce-in .word { animation: none; }
  .to-top { transition: none; }
  .logo-loop { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .logo-loop-list[aria-hidden="true"] { display: none; }
  .toon-cursor { display: none; }
  body.has-toon-cursor, body.has-toon-cursor * { cursor: auto !important; }
}
