/* ============================================================
   FX & polish — reveal, tilt, hero decor, testimonials, buy bar
   ============================================================ */
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:6px}
.sec-head h2{letter-spacing:-.4px}

/* scroll reveal (classes added by fx.js — no-JS visitors never see hidden content) */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none;transition:none}}

/* scroll-driven 3D headings — scroll3d.js owns transform+opacity per frame, so
   no initial hidden state here (no-JS visitors always see the text). No
   transition: the values are scrubbed every frame, so a transition would lag. */
.scroll3d{transform-origin:center;backface-visibility:hidden}
@media (prefers-reduced-motion: reduce){.scroll3d{transform:none !important;opacity:1 !important}}

/* hero decorations — floating brand shapes behind the content */
.hero{position:relative}
.hero-grid{position:relative;z-index:1}
.hero-deco{position:absolute;z-index:0;pointer-events:none;animation:floaty 7s ease-in-out infinite}
.hero-deco.d1{top:10%;left:2%;width:64px;--r:-12deg;animation-duration:8s}
.hero-deco.d2{top:80%;left:1%;width:72px;--r:8deg;animation-delay:-2s}
.hero-deco.d3{top:6%;right:4%;width:46px;--r:18deg;animation-delay:-4s;animation-duration:9s}
.hero-deco.d4{bottom:7%;right:9%;width:58px;--r:-6deg;animation-delay:-1s}
@keyframes floaty{0%,100%{transform:rotate(var(--r,0deg)) translateY(0)}50%{transform:rotate(var(--r,0deg)) translateY(-16px)}}
@media(max-width:860px){.hero-deco{display:none}}

/* hero logo card: slow bob (fallback when the 3D canvas can't run) */
.hero-art .logo-card{animation:heroBob 6s ease-in-out infinite}
@keyframes heroBob{0%,100%{transform:rotate(2deg) translateY(0)}50%{transform:rotate(3.2deg) translateY(-12px)}}
@media (prefers-reduced-motion: reduce){.hero-deco,.hero-art .logo-card{animation:none}}

/* 3D hero canvas (the brick "T" prints itself — hero3d.js) */
.hero3d{display:none;width:min(460px,88vw);height:min(460px,88vw);position:relative;
  filter:drop-shadow(0 22px 30px rgba(120,48,0,.18))}
.hero3d.on{display:block}
.hero3d canvas{width:100% !important;height:100% !important;display:block}
/* phone sizing — placed after the base rule so it wins (media queries add no specificity) */
@media(max-width:600px){.hero3d{width:min(230px,58vw);height:min(230px,58vw)}}

/* hero text entrance */
.hero .kicker,.hero h1,.hero .lede,.hero-ctas{animation:riseIn .8s cubic-bezier(.16,1,.3,1) both}
.hero h1{animation-delay:.08s}
.hero .lede{animation-delay:.18s}
.hero-ctas{animation-delay:.28s}
@keyframes riseIn{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.hero .kicker,.hero h1,.hero .lede,.hero-ctas{animation:none}}

/* playful micro-effects */
.cat .emoji{transition:transform .7s cubic-bezier(.34,1.56,.64,1)}
.cat:hover .emoji{transform:rotateY(360deg) scale(1.08)}
.prod .tile{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}
.prod:hover .tile{transform:scale(1.06)}
@media (prefers-reduced-motion: reduce){.cat:hover .emoji,.prod:hover .tile{transform:none}}

/* scalloped edge hanging under the teal trust strip */
.strip{position:relative}
.strip::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px;
  background-image:radial-gradient(circle at 12px 0,var(--teal) 11px,transparent 12px);
  background-size:24px 12px;background-repeat:repeat-x}

/* testimonials */
.quotes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}
.quote{background:var(--card);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow);position:relative;margin:0}
.quote::before{content:"\201C";position:absolute;top:4px;right:18px;font-family:'Fredoka',sans-serif;font-size:4.5rem;color:var(--yellow);line-height:1}
.quote .stars{color:var(--amber);letter-spacing:3px;margin-bottom:10px;font-size:.95rem}
.quote blockquote{font-size:.97rem;margin:0 0 14px}
.quote figcaption{font-family:'Fredoka',sans-serif;font-weight:600;font-size:.9rem;color:var(--orange-deep)}

/* banner decoration */
.banner{position:relative;overflow:hidden}
.banner-deco{position:absolute;right:-34px;bottom:-44px;width:220px;opacity:.16;transform:rotate(14deg);pointer-events:none}
.banner>h2,.banner>div,.banner>a{position:relative}

/* trust chips (product page) + payment chips (checkout) */
.assure{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 8px}
.assure span{font-size:.82rem;font-weight:600;background:var(--card);border:1.5px solid var(--line);border-radius:999px;padding:6px 14px;color:var(--muted)}
.paychips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;font-size:.8rem;color:var(--muted)}
.paychips b{background:var(--paper);border:1.5px solid var(--line);border-radius:8px;padding:3px 10px;font-weight:600}

/* sticky mobile buy bar (product page) */
.buybar{display:none}
@media(max-width:780px){
  .buybar{position:fixed;left:0;right:0;bottom:0;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:14px;
    background:rgba(255,255,255,.96);backdrop-filter:blur(10px);box-shadow:0 -8px 24px rgba(120,48,0,.14);
    padding:12px 5% calc(12px + env(safe-area-inset-bottom))}
  .buybar .t{font-family:'Fredoka',sans-serif;font-weight:600;font-size:.92rem;line-height:1.3;min-width:0}
  .buybar .t .price{display:block;font-size:1.05rem}
  .buybar .btn{flex-shrink:0;padding:11px 22px}
  body.has-buybar{padding-bottom:96px}
}

/* ---------- photo → 3D tool ---------- */
.dropzone{background:var(--card);border:3px dashed var(--teal);border-radius:var(--radius);padding:30px;
  text-align:center;cursor:pointer;transition:border-color .15s,transform .15s;margin-bottom:22px}
.dropzone:hover,.dropzone.drag{border-color:var(--orange);transform:translateY(-2px)}
.dropzone.has-img{border-style:solid;border-color:var(--green)}
.dz-inner{display:flex;flex-direction:column;gap:6px;align-items:center;color:var(--muted)}
.dz-inner strong{font-family:'Fredoka',sans-serif;color:var(--ink);font-size:1.05rem}
.dz-inner span{font-size:.85rem}
.tool-controls{background:var(--card);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.tool-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tool-check{display:flex;align-items:center;gap:8px;font-size:.9rem;font-weight:600;margin:4px 0 12px;cursor:pointer}
.tool-stats{font-family:'Fredoka',sans-serif;font-size:.9rem;color:var(--blue);background:var(--paper);
  border-radius:10px;padding:9px 14px;margin-bottom:16px}
.tool3d{width:100%;aspect-ratio:1;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  overflow:hidden;cursor:grab}
.tool3d:active{cursor:grabbing}
.tool3d canvas{width:100% !important;height:100% !important;display:block}

/* success pop + confetti */
.success-card .big{display:inline-block;animation:pop .6s cubic-bezier(.34,1.56,.64,1)}
@keyframes pop{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
.confetti{position:relative;height:0;max-width:560px;margin:0 auto}
.confetti i{position:absolute;top:-16px;width:10px;height:14px;border-radius:3px;opacity:0;animation:drop 1.7s ease-out forwards}
.confetti i:nth-child(1){left:10%;background:var(--orange);animation-delay:.1s}
.confetti i:nth-child(2){left:24%;background:var(--teal);animation-delay:.32s}
.confetti i:nth-child(3){left:38%;background:var(--yellow);animation-delay:.05s}
.confetti i:nth-child(4){left:52%;background:var(--amber);animation-delay:.26s}
.confetti i:nth-child(5){left:64%;background:var(--blue);animation-delay:.16s}
.confetti i:nth-child(6){left:78%;background:var(--orange);animation-delay:.38s}
.confetti i:nth-child(7){left:90%;background:var(--teal);animation-delay:.22s}
.confetti i:nth-child(8){left:46%;background:var(--green);animation-delay:.44s}
@keyframes drop{0%{transform:translateY(0) rotate(0);opacity:1}100%{transform:translateY(200px) rotate(340deg);opacity:0}}
@media (prefers-reduced-motion: reduce){.confetti{display:none}.success-card .big{animation:none}}

