@import url("brand.css");

.hero { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 30px; padding-block: clamp(20px, 3.7vw, 50px) 26px; }
.hero .chip { letter-spacing: .075em; margin-bottom: 14px; }
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: clamp(2.4rem, 14.8cqw, 5.6rem); }
.hero-tagline { font-size: clamp(1.12rem, 2.1vw, 1.65rem); margin-bottom: .35em; }
.hero-price { font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 950; margin-bottom: .65em; }
.hero-actions .button { font-size: clamp(1rem, 1.5vw, 1.18rem); }
.benefit-strip { margin: 0 0 25px; padding: 14px 10px; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sky); border-radius: var(--radius); }
.benefit-strip li { display: flex; align-items: center; justify-content: center; gap: .55em; text-align: center; font-size: clamp(.9rem, 2vw, 1.3rem); font-weight: 950; }
.benefit-strip li + li { border-left: 1px solid var(--rule); }
.benefit-strip .icon { width: 1.55em; height: 1.55em; }
.home-section { padding-block: 24px; border-top: 1px solid var(--rule); }
.bookshelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(9px, 1.4vw, 16px); }
.book-card { display: grid; align-content: start; padding: 9px 9px 12px; text-align: center; border: 1px solid var(--line); border-radius: 17px; text-decoration: none; background: var(--white); }
.book-card:hover { border-color: var(--plum); }
.book-card img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: contain; margin-bottom: 8px; border-radius: 9px; }
.book-card h3 { font-size: clamp(.98rem, 1.7vw, 1.35rem); margin-bottom: .14em; }
.book-card p { margin: 0; font-size: .94rem; }
.bundle-banner { margin-top: 16px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 18px 0 22px; }
.how-steps li { display: flex; align-items: center; gap: 12px; padding: 6px clamp(8px, 2vw, 22px); }
.how-steps li + li { border-left: 1px solid var(--rule); }
.how-steps span { display: grid; place-items: center; width: 2.1em; height: 2.1em; flex: none; font-size: 1.25rem; font-weight: 1000; border-radius: 50%; background: var(--butter); }
.how-steps li:nth-child(2) span { background: var(--mint); }
.how-steps li:nth-child(3) span { background: var(--sky); }
.how-steps .icon { width: clamp(25px, 4vw, 50px); height: auto; }
.play-print { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.how-card { display: flex; gap: 18px; align-items: center; border-radius: 17px; background: var(--mint); padding: clamp(14px, 2.8vw, 30px); text-decoration: none; }
.how-card:hover h3 { text-decoration: underline; }
.how-card:nth-child(2) { background: var(--sky); }
.how-card .icon { width: clamp(44px, 8vw, 90px); height: auto; }
.how-card h3 { font-size: clamp(1.4rem, 3.4vw, 2.25rem); }
.how-card p { margin: 0; }
.help-links { text-align: center; margin: 16px 0 0; }

@media (max-width: 790px) {
  .hero { gap: 12px; grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 650px) {
  .hero { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
  .hero h1 { font-size: clamp(2.35rem, 14.8cqw, 4.35rem); }
  .hero .chip { margin-bottom: 8px; }
  .hero-tagline { font-size: 1.1rem; }
  .benefit-strip li { flex-direction: column; gap: 4px; font-size: .8rem; }
  .bookshelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-section:has(.bookshelf) { display: flex; flex-direction: column; }
  .home-section .bundle-banner { order: -1; margin: 0 0 12px; }
  .home-section:has(.bookshelf) h2 { order: -2; }
  .how-steps, .play-print { grid-template-columns: 1fr; }
  .how-steps li { padding-block: 10px; }
  .how-steps li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .how-steps br { display: none; }
}

/* Upgraded homepage */
.hero { position: relative; }
.hero-tagline { max-width: 26em; }
.hero-price span { display: inline-block; margin-left: .4em; padding: .15em .6em; font-size: .5em; vertical-align: middle; background: var(--butter); border-radius: 999px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 14px 0 0; padding: 0; font-size: .95rem; font-weight: 900; color: var(--muted); }
.hero-trust .icon { width: 1.1em; height: 1.1em; color: #2f8f6f; }
.doodles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.doodles i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--butter); animation: drift 9s ease-in-out infinite; }
.doodles i:nth-child(1) { left: 44%; top: 8%; }
.doodles i:nth-child(2) { left: 1%; top: 90%; width: 22px; height: 22px; background: var(--blush); animation-delay: -2s; }
.doodles i:nth-child(3) { left: 38%; top: 84%; width: 10px; height: 10px; background: var(--mint); animation-delay: -4s; }
.doodles i:nth-child(4) { left: 96%; top: 2%; width: 26px; height: 26px; background: var(--sky); animation-delay: -1s; }
.doodles i:nth-child(5) { left: 31%; top: 1%; width: 30px; height: 8px; border-radius: 999px; background: #ed8aa9; rotate: -24deg; animation-delay: -5s; }
.doodles i:nth-child(6) { left: 46%; top: 56%; width: 26px; height: 7px; border-radius: 999px; background: #efad3d; rotate: 18deg; animation-delay: -3s; }
.doodles i:nth-child(7) { left: 98%; top: 74%; width: 12px; height: 12px; background: #ed8aa9; animation-delay: -6s; }
@keyframes drift { 50% { translate: 0 -16px; scale: 1.12; } }

.scratch-demo .scratch-line, .scratch-demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; display: none; }
.scratch-demo .scratch-line { background: white; object-fit: cover; }
.scratch-demo.is-live .scratch-line, .scratch-demo.is-live canvas { display: block; }
.scratch-demo.is-live .scratch-color { visibility: hidden; }
.scratch-demo canvas { cursor: grab; touch-action: pan-y; transition: opacity .6s; }
.scratch-demo.is-revealed canvas { opacity: 0; }
.scratch-hand { position: absolute; left: 50%; top: 14%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid white; background: #72204dcc; box-shadow: 0 4px 12px #51103555; opacity: 0; transition: opacity .3s; pointer-events: none; }
.is-demo .scratch-hand { opacity: 1; }
.showcase-play { transition: scale .25s cubic-bezier(.3, 1.8, .5, 1); animation: nudge 2.6s ease-in-out infinite; }
.is-revealed .showcase-play { background: var(--butter); scale: 1.12; animation: none; }
@keyframes nudge { 0%, 70%, 100% { rotate: 0deg; } 78% { rotate: -5deg; } 88% { rotate: 5deg; } }
.confetti { position: absolute; left: 50%; top: 45%; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; animation: burst .95s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes burst { to { translate: var(--x) var(--y); rotate: var(--r); opacity: 0; } }

.benefit-strip { grid-template-columns: repeat(4, 1fr); }
.benefit-strip li { font-size: clamp(.85rem, 1.5vw, 1.12rem); }
.motion .book-card[data-reveal] { transition: transform .25s ease-out, box-shadow .25s, border-color .25s, opacity .65s ease var(--d, 0s), translate .65s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.book-card { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .25s, border-color .25s; }
.book-card:hover { box-shadow: 0 18px 30px -18px #51103577; }
.book-card .cover { display: block; position: relative; overflow: hidden; border-radius: 9px; margin-bottom: 8px; }
.book-card .cover img { display: block; margin: 0; transition: scale .4s ease; }
.book-card:hover .cover img { scale: 1.04; }
.book-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff66 50%, transparent 65%); translate: -120% 0; transition: translate .7s ease; }
.book-card:hover .cover::after { translate: 120% 0; }
.book-card .hook { font-size: .86rem; line-height: 1.25; color: var(--muted); min-height: 2.5em; }
.book-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: .86rem; }
.book-card .meta b { font-size: 1.05rem; font-weight: 1000; }
.bundle-banner small { display: inline-block; margin-left: .5em; padding: .1em .6em; font-size: .55em; vertical-align: middle; background: var(--white); border-radius: 999px; }
.bundle-banner:hover { background: var(--butter); }
.section-lead { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 34em; margin-bottom: 18px; }
.learn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.learn-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.learn-card:hover .learn-badge { rotate: -10deg; scale: 1.1; }
.learn-card p { margin: 0; }
.learn-badge { display: grid; place-items: center; width: 2.3em; height: 2.3em; margin-bottom: 12px; font-size: 1.2rem; font-weight: 1000; border-radius: 14px; background: var(--c); transition: rotate .25s, scale .25s cubic-bezier(.3, 1.8, .5, 1); }
#next .chip { margin-bottom: 12px; background: var(--butter); letter-spacing: .07em; font-size: .82rem; }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next-card { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 20px; background: var(--sky); }
.next-card:nth-child(2) { background: var(--mint); }
.next-card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.next-card p { margin-bottom: .4em; }
.peek { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 8px 20px -10px #51103566; }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek-color { animation: wipe 7s ease-in-out infinite; }
.next-card:nth-child(2) .peek-color { animation-delay: -3.5s; }
@keyframes wipe { 0%, 30% { clip-path: inset(0 0 0 0); } 45%, 80% { clip-path: inset(0 0 0 100%); } 95%, 100% { clip-path: inset(0 0 0 0); } }
.promise-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 14px 0 0; }
.promise-list li { padding: 16px; border-radius: 17px; background: var(--blush); font-size: .97rem; }
.promise-list li:nth-child(2) { background: var(--mint); }
.promise-list li:nth-child(3) { background: var(--butter); }
.promise-list li:nth-child(4) { background: var(--sky); }
.promise-list strong { display: block; font-size: 1.15rem; font-weight: 1000; line-height: 1.2; margin-bottom: 5px; }
.faq { max-width: 860px; margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 4px; list-style: none; font-size: clamp(1.05rem, 2.1vw, 1.3rem); font-weight: 950; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--blush); transition: rotate .25s, background-color .25s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--butter); }
.faq details p { padding: 0 4px 14px; margin: 0; max-width: 44em; animation: answer .35s ease; }
@keyframes answer { from { opacity: 0; translate: 0 -6px; } }
.cta-band { margin-block: 10px 34px; padding: clamp(24px, 5vw, 54px) 20px; text-align: center; border-radius: clamp(24px, 5vw, 54px); background: var(--mint); }
.cta-band .actions { justify-content: center; }

@media (max-width: 900px) {
  .learn-grid, .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .benefit-strip { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .benefit-strip li:nth-child(3) { border-left: 0; }
  .hero-trust { font-size: .86rem; gap: 4px 12px; }
  .showcase { max-width: 430px; margin-inline: auto; }
  .learn-grid, .promise-list { grid-template-columns: 1fr; }
  .learn-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .learn-card .learn-badge { grid-row: span 2; margin: 0; }
  .book-card .hook { min-height: 0; }
  .doodles i:nth-child(n+4) { display: none; }
}
.home-section { scroll-margin-top: 96px; }
.next-card { text-decoration: none; transition: translate .22s ease, box-shadow .22s; }
.next-card:hover { translate: 0 -4px; box-shadow: 0 18px 30px -18px #51103577; }
