/* Homepage v6 (owner, 16 Nov 2026): the hero like rollouts.in (one clear line in the middle, real photos floating around it as
   polaroids with handwritten captions), then the pricing section's frame. Light only. Behaviour: assets/js/home6.js. */

/* ---------- 1. HERO ---------- */
.hx{position:relative;isolation:isolate;overflow:hidden;min-height:max(780px,100svh);display:grid;align-items:center;padding:140px 0 90px;background:#F4F1FD;color:var(--ink)}
.hx-bg{position:absolute;inset:0;z-index:-2;background:
  radial-gradient(40% 40% at 50% 46%,#fff 0%,rgba(255,255,255,0) 70%),
  radial-gradient(34% 40% at 12% 18%,rgba(196,181,253,.45),transparent 70%),
  radial-gradient(30% 36% at 90% 82%,rgba(249,168,212,.4),transparent 70%),
  linear-gradient(180deg,#F6F2FF,#FBF6FF 60%,#FFF5FA)}
.hx-in{position:relative;z-index:2;text-align:center;max-width:860px}
.hx-h{font:800 clamp(40px,5vw,74px)/1 var(--head);letter-spacing:-.055em;color:#120B24}
.hx-h span{display:block}
.hx-h em{font-style:normal}
.hx-pink{background:linear-gradient(100deg,#DB2777,#E0499A);-webkit-background-clip:text;background-clip:text;color:transparent}
.hx-lav{background:linear-gradient(100deg,#8B5CF6,#A78BFA 55%,#C084FC);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.06em}
.hx-sub{max-width:600px;margin:26px auto 0;font-size:clamp(17px,1.6vw,20px);line-height:1.6;color:#5B5275;font-weight:500}
.hx-cta{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:34px}
.hx-go{min-width:300px;font-size:18px;box-shadow:0 18px 40px -16px rgba(124,58,237,.75)}
.hx-how{min-width:240px;background:transparent;color:var(--violet-d);box-shadow:inset 0 0 0 2px var(--violet);font-weight:700}
.hx-how:hover{background:rgba(124,58,237,.06)}

/* the occasion word that turns (owner, 16 Nov 2026: "more premium, eye-catchy and visible"): a big violet-to-pink pill with
   white letters, a soft glow, a light that sweeps across it and a flip from below for each new word; still for reduced motion */
.hx-for{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px;margin:0 0 22px;font:700 clamp(22px,2.3vw,32px)/1.2 var(--head);letter-spacing:-.02em;color:#3B2A63}
.hx-for>span[aria-hidden]{display:inline-flex;align-items:center;gap:14px}
.hx-rot{position:relative;display:inline-grid;perspective:600px;padding:8px 26px 10px;border-radius:999px;overflow:hidden;isolation:isolate;
  background:linear-gradient(100deg,#6D28D9,#9333EA 45%,#DB2777);box-shadow:0 18px 40px -14px rgba(147,51,234,.75),0 0 0 4px rgba(255,255,255,.7),0 0 0 5px rgba(124,58,237,.25),inset 0 1px 0 rgba(255,255,255,.35)}
.hx-rot::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.45) 50%,transparent 65%);transform:translateX(-120%);animation:hx-sweep 2s ease-in-out infinite}
.hx-rot::after{content:"✦";position:absolute;right:9px;top:3px;font-size:13px;color:#FDE68A;text-shadow:0 0 8px rgba(253,230,138,.9);animation:hx-twinkle 2s ease-in-out infinite}
.hx-rot b{grid-area:1/1;text-align:center;white-space:nowrap;font-weight:800;color:#fff;text-shadow:0 2px 12px rgba(46,16,101,.35);opacity:0;transform:rotateX(-90deg) translateY(30%);transform-origin:50% 100%;transition:transform .6s cubic-bezier(.3,1.4,.4,1),opacity .3s}
.hx-rot b.on{opacity:1;transform:none;transition-delay:.14s}
.hx-rot b.out{opacity:0;transform:rotateX(90deg) translateY(-30%);transform-origin:50% 0;transition:transform .32s ease-in,opacity .16s ease-in}
@keyframes hx-sweep{0%,30%{transform:translateX(-120%)}70%,100%{transform:translateX(120%)}}
@keyframes hx-twinkle{0%,100%{opacity:.4;transform:scale(.8)}50%{opacity:1;transform:scale(1.25)}}
@media (prefers-reduced-motion:reduce){.hx-rot b{transition:none}.hx-rot::before,.hx-rot::after{animation:none}}

/* the polaroids */
.hx-pics{position:absolute;inset:0;z-index:1;pointer-events:none}
.hx-p{position:absolute;margin:0;width:clamp(150px,14vw,210px);padding:10px 10px 0;background:#fff;border-radius:4px;box-shadow:0 22px 40px -22px rgba(46,16,101,.55),0 2px 6px rgba(46,16,101,.08);
  transform:translate(var(--mx,0px),var(--my,0px)) rotate(var(--r));animation:hx-in .9s cubic-bezier(.2,1.4,.4,1) var(--d) both,hx-float 7s ease-in-out calc(var(--d) + 1s) infinite alternate}
.hx-p>img{display:block;width:100%;aspect-ratio:1/.92;object-fit:cover;border-radius:2px;background:#EEE8FA;image-rendering:auto}
.hx-p figcaption{padding:8px 2px 10px;font:600 clamp(19px,1.6vw,24px)/1.1 var(--hand);color:#2A2140;text-align:center;white-space:nowrap}
@keyframes hx-in{from{opacity:0;transform:translate(0,40px) rotate(calc(var(--r) * 2)) scale(.9)}}
@keyframes hx-float{to{translate:0 -12px}}
.p1{left:3%;top:13%}
.p2{left:7.5%;top:44%;width:clamp(140px,12.5vw,190px)}
.p3{left:max(25%,350px);top:77%;width:clamp(130px,11vw,170px)}
.p4{right:4%;top:12%}
.p5{right:8.5%;top:44%;width:clamp(140px,12.5vw,190px)}
.p6{right:3%;top:72%;width:clamp(140px,12vw,180px)}
.p7{left:19.5%;top:10%;width:clamp(120px,9.5vw,150px);display:none}
.p9{right:19.5%;top:9%;width:clamp(120px,9.5vw,150px);display:none}
.p8{right:19%;top:79%;width:clamp(130px,11vw,170px)}
@media (min-width:1560px){.p7,.p9{display:block}}
/* "that's you!": Find me picks out the photos you're in */
.hx-face{position:absolute;right:-18px;bottom:40px;width:56px;height:56px;border-radius:50%;padding:3px;background:#fff;box-shadow:0 0 0 3px var(--violet),0 10px 20px -8px rgba(124,58,237,.7);animation:hx-ping 2.6s ease-out infinite}
.hx-face img{width:100%;height:100%;border-radius:50%;object-fit:cover}
@keyframes hx-ping{0%{box-shadow:0 0 0 3px var(--violet),0 0 0 3px rgba(124,58,237,.45)}70%{box-shadow:0 0 0 3px var(--violet),0 0 0 18px rgba(124,58,237,0)}100%{box-shadow:0 0 0 3px var(--violet),0 0 0 18px rgba(124,58,237,0)}}
/* "that's you!" hangs under the College fest photo, its arrow up to the face, so it moves with the photo and never reaches the
   headline or the line under it (owner, 16 Nov 2026: it overlapped the text on a 1,190 px window) */
.hx-note{position:absolute;right:-6px;top:calc(100% + 6px);display:flex;align-items:flex-end;gap:2px;white-space:nowrap;font:600 clamp(22px,1.8vw,28px)/1 var(--hand);color:var(--violet-d);transform:rotate(-4deg);animation:hx-in .8s ease 2.4s both}
.hx-note svg{width:44px;height:34px;margin-bottom:10px;fill:none;stroke:var(--violet-d);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.hx-added{position:absolute;left:-34px;top:-20px;display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;background:#120B24;color:#fff;font:700 13px/1 var(--body);white-space:nowrap;transform:rotate(-7deg);box-shadow:0 12px 24px -10px rgba(18,11,36,.6);animation:hx-pop 5s ease-in-out 2s infinite}
.hx-added b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--grad);font-size:12px}
@keyframes hx-pop{0%,100%{transform:rotate(-7deg) scale(1)}8%{transform:rotate(-7deg) scale(1.12)}16%{transform:rotate(-7deg) scale(1)}}

/* tablets: fewer, smaller photos */
/* 16 Nov 2026 (owner: "set it for all mobile phones, tabs, folds, flip phones, laptops"): below 1,181 px the photos stop
   floating at the sides (they ran into the text on tablets) and become a fanned strip above the line: five on tablets and
   open folds, four on phones, three on the narrowest (a folded Fold is 280 px). */
@media (max-width:1180px){
  .hx{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding:118px 0 72px}
  .hx-pics{position:relative;inset:auto;display:flex;justify-content:center;align-items:flex-start;height:auto;margin:0 auto 26px;padding:0 12px;order:-1}
  .hx-p{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:clamp(118px,16vw,170px);padding:7px 7px 0;margin:0 -14px;flex:none}
  .hx-p figcaption{font-size:clamp(16px,2.1vw,21px);padding:6px 0 8px}
  .p6,.p7,.p8,.p9,.hx-face,.hx-added,.hx-note{display:none}
  .p3{order:1;z-index:1}.p1{order:2;z-index:3;translate:0 -10px}.p4{order:3;z-index:2}.p2{order:4;z-index:3;translate:0 -6px}.p5{order:5;z-index:1}
  .hx-h{font-size:clamp(40px,6.6vw,64px)}
}
@media (max-width:760px){
  .hx{padding:96px 0 56px}
  .hx-pics{margin-bottom:18px}
  .hx-p{width:104px;padding:6px 6px 0;margin:0 -10px}
  .hx-p figcaption{font-size:15px;padding:5px 0 7px}
  .p5{display:none}
  .hx-h{font-size:clamp(34px,9.6vw,44px);line-height:1.04}
  .hx-h span{display:inline}
  .hx-go,.hx-how{min-width:0;width:100%}
}
@media (max-width:340px){.p2{display:none}.hx-p{width:96px}.hx-for{font-size:19px}.hx-rot{padding:6px 16px 8px}}
/* short laptop screens (720-820 px tall): the floating photos stay clear of the header and the demo QR card */
@media (min-width:1181px) and (max-height:820px){.p4{top:15%}.p1{top:15%}.tryqr{transform:scale(.82)}.hx-note{right:-42px}}
@media (prefers-reduced-motion:reduce){.hx-p,.hx-note,.hx-added,.hx-face{animation:none}}

/* ---------- 3. PRICING frame ---------- */
.px{background:linear-gradient(180deg,#FFFFFF 0%,#F7F3FF 100%)}
.ink-grad{background:linear-gradient(100deg,#6D28D9,#A21CAF 55%,#DB2777);-webkit-background-clip:text;background-clip:text;color:transparent}
.px-more{margin-top:28px;text-align:center}

/* the closing block's second button on the light look */
.closing .hx-how{background:#fff}
