/* =====================================================================
   Froogle v7: a cleaner, friendlier front page and a new intro.
   Loaded after f2, f4 and f5.
   ===================================================================== */

/* ---------- The intro: the eyes wake up, FROOGLE forms around them, the curtain lifts ---------- */
#intro2 { display: none; }
html.intro2 { overflow: hidden; }
html.intro2 #intro2 { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: #3459ff; color: #292929; cursor: pointer; border-radius: 0 0 0 0; will-change: transform; }
#intro2 .i2-mark { width: min(76vw, 960px); transform-origin: 43.6% 50%; transform: scale(2.4); }
#intro2 svg { display: block; width: 100%; height: auto; overflow: visible; }
#intro2 .ipop { transform-box: fill-box; transform-origin: center; transform: scale(0); }
#intro2 .ilid { transform-box: fill-box; transform-origin: center; }
#intro2 .ipup { transform-box: fill-box; }
#intro2 .il { opacity: 0; transform-box: fill-box; }
#intro2 .il.l { transform: translateX(-120px); }
#intro2 .il.r { transform: translateX(120px); }
#intro2 .i2-skip { position: absolute; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid #292929; background: transparent; color: #292929; font: 700 14px "Albert Sans", sans-serif; cursor: pointer; }
#intro2 .i2-hi { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); margin: 0; font-family: "Caveat", cursive; font-size: clamp(26px, 3vw, 40px); font-weight: 700; color: #fff; opacity: 0; white-space: nowrap; }

#intro2.play .i2-mark { animation: i2-zoom 2900ms cubic-bezier(.77, 0, .175, 1) forwards; }
#intro2.play .ipop { animation: i2-pop 620ms cubic-bezier(.34, 1.56, .64, 1) forwards; }
#intro2.play .ipop.b { animation-delay: 90ms; }
#intro2.play .ipup { animation: i2-look 1100ms 520ms cubic-bezier(.65, 0, .35, 1) forwards; }
#intro2.play .ilid { animation: i2-blink 230ms 1200ms ease-in-out; }
#intro2.play .il { animation: i2-in 520ms cubic-bezier(.23, 1, .32, 1) forwards; }
#intro2.play .il.f { animation-delay: 1520ms; } #intro2.play .il.rr { animation-delay: 1580ms; }
#intro2.play .il.g { animation-delay: 1560ms; } #intro2.play .il.ll { animation-delay: 1620ms; } #intro2.play .il.e { animation-delay: 1680ms; }
#intro2 .i2-hi { display: none; }
#intro2.play { animation: i2-lift 700ms 2650ms cubic-bezier(.77, 0, .175, 1) forwards; }
#intro2.out { animation: i2-lift 520ms cubic-bezier(.77, 0, .175, 1) forwards !important; }
@keyframes i2-pop { to { transform: scale(1); } }
@keyframes i2-look { 0% { transform: translateX(0); } 28% { transform: translateX(-60px); } 58% { transform: translateX(-60px); } 100% { transform: translateX(0); } }
@keyframes i2-blink { 50% { transform: scaleY(.06); } }
@keyframes i2-zoom { 0%, 50% { transform: scale(2.4); } 72%, 100% { transform: scale(1); } }
@keyframes i2-in { to { opacity: 1; transform: none; } }
@keyframes i2-hi { from { opacity: 0; transform: translate(-50%, 10px) rotate(-3deg); } to { opacity: 1; transform: translate(-50%, 0) rotate(-3deg); } }
@keyframes i2-lift { to { transform: translateY(-104%); border-radius: 0 0 50% 50% / 0 0 18% 18%; } }
@media (prefers-reduced-motion: reduce) { html.intro2 #intro2 { display: none; } html.intro2 { overflow: auto; } }

/* ---------- Hero, rebuilt: one strong idea ---------- */
.h7 .v4-hero-in, .h7-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; padding-block: clamp(28px, 4vw, 64px) clamp(80px, 9vw, 140px); position: relative; z-index: 1; }
.h7-hi { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px; padding: 6px 18px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600; font-size: 16px; box-shadow: 0 8px 0 -3px rgba(19, 27, 94, .25); }
.h7-hi img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.h7-hi b { font-weight: 700; }
.h7 h1 { font-size: clamp(80px, 10.6vw, 184px) !important; }
.h7 .lede { font-size: clamp(19px, 1.45vw, 23px) !important; max-width: 36ch !important; }
.h7-svc { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.h7-svc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease); }
.h7-svc a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.h7-pic { position: relative; justify-self: center; width: min(100%, 470px); padding: 30px 30px 40px; }
.h7-pic::before { content: ""; position: absolute; inset: 8% -4% 2% 6%; border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%; background: #c9d3ff; opacity: .45; }
.h7-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; border: 10px solid #fff; box-shadow: 0 40px 70px -30px rgba(10, 16, 70, .6); transform: rotate(2.5deg); transition: transform 600ms var(--ease); }
.h7-photo img { display: block; width: 100%; height: auto; aspect-ratio: 738 / 960; object-fit: cover; }
.h7-pic:hover .h7-photo { transform: rotate(0deg) scale(1.015); }
.h7-yes { position: absolute; z-index: 3; left: -14%; top: 4%; transform: rotate(-8deg); color: #fff; font-size: clamp(30px, 2.6vw, 42px); }
.h7-yes svg { width: 72px; height: 54px; }
.h7-pic .stickers { inset: 0; }
.h7-pic .sticker-hint { position: absolute; right: 8px; bottom: -6px; left: auto; }
@media (max-width: 900px) {
  .h7 .v4-hero-in, .h7-in { grid-template-columns: 1fr; padding-bottom: 96px; }
  .h7-pic { width: min(100%, 380px); padding: 20px 26px 30px; }
  .h7-yes { left: -4%; top: -2%; }
  .h7 h1 { font-size: clamp(68px, 20vw, 110px) !important; }
}
/* Hero stickers: smaller, fewer */
.h7-pic .st-round { width: 112px; height: 112px; font-size: 12px; }
@media (max-width: 900px) { .h7-pic .stickers .sticker:nth-child(n+3) { display: inline-grid; } .h7-pic .st-round { width: 92px; height: 92px; font-size: 10px; } .h7-pic .st-pill { font-size: 11px; padding: 10px 14px; } }
@media (max-width: 600px) { #intro2 .i2-mark { width: 62vw; } }
