/*
  Grand-opening intro (resources/views/home/_launch-intro.blade.php, public/js/launch-intro.js).

  A night-time Tuqqa shop with its shutter down and an "Opening soon" sign. The visitor presses LAUNCH:
  a 3-2-1 runs, the neon lights, the sign flips to "Now open", the shutter rolls up on a window of deals,
  price tags rain down and the view zooms into the homepage. Colours come from three custom properties
  set on the element: --ti-ribbon (awning and the LAUNCH button), --ti-accent (highlights), --ti-bg (the night).
  Hidden unless the inline script in the page head added `tq-intro-on` to <html> (it checks the frequency).
  Reduced motion gets the calm version (class `rm`): nothing slides, nothing falls, no zoom.
*/
.tq-intro {
  --ti-top: #164675; --ti-deep: #061a30;
  --ti-fa: #0d2f52; --ti-fb: #0a2744; --ti-fe: #18456f;
  --ti-sa: #0f2f52; --ti-sb: #0a2240; --ti-se: #24527f; --ti-pole: #3c6894;
  --ti-ca: #1b4a76; --ti-cb: #0f355c; --ti-ce: #2a6194;
  --ti-ba: #33618f; --ti-bb: #0c2846; --ti-bc: #2a5888; --ti-bi: #071a2e;
  --ti-lb1: #ffd1a1; --ti-lb2: #ffa452; --ti-lb3: #c4520f; --ti-lb4: #8f3c0b;
  --ti-ease: cubic-bezier(.45, 0, .2, 1);
  --ti-pop: cubic-bezier(.2, 1.4, .4, 1);
  position: fixed; inset: 0; z-index: 2000; display: none; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 50% 115%, var(--ti-top) 0, var(--ti-bg) 40%, var(--ti-deep) 100%);
  transition: opacity .8s var(--ti-ease) .15s;
  font-family: 'Segoe UI', -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.5;
}
html.tq-intro-on { overflow: hidden; }
.tq-intro.gone { display: none !important; }
html.tq-intro-on .tq-intro { display: block; }
.tq-intro *, .tq-intro *::before, .tq-intro *::after { box-sizing: border-box; }
.tq-intro.exit { opacity: 0; pointer-events: none; }
.tq-intro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(1px 1px at 12% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 82% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 30% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 91% 32%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 6%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 6% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 22%, #fff 50%, transparent 51%);
  animation: tiTwinkle 5s ease-in-out infinite alternate;
}
@keyframes tiTwinkle { from { opacity: .3; } to { opacity: .65; } }
.ti-street { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.25)); border-top: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.ti-logo { position: absolute; top: 8px; inset-inline-start: 20px; z-index: 20; height: 84px; width: auto; }
.ti-skip {
  position: absolute; top: 18px; inset-inline-end: 20px; z-index: 20; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 20px; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s;
}
.ti-skip:hover, .ti-skip:focus-visible { background: rgba(255,255,255,.2); outline: none; }
.ti-badge { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--ti-accent); color: #1f2933; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 12px; border-radius: 20px; }

.ti-scene { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 18px 24px; transform-origin: 50% 62%; transition: transform 1s cubic-bezier(.6, 0, .3, 1); }
.tq-intro.exit .ti-scene { transform: scale(2.6); }

/* ---- headline: welcome, then the celebration ---- */
.ti-copy { display: grid; text-align: center; place-items: center; }
.ti-copy > div { grid-area: 1/1; display: flex; flex-direction: column; align-items: center; transition: opacity .5s var(--ti-ease), transform .5s var(--ti-ease); }
.ti-cele { opacity: 0; transform: translateY(12px); pointer-events: none; }
.tq-intro.open .ti-wel { opacity: 0; transform: translateY(-12px); transition-duration: .3s; }
.tq-intro.open .ti-cele { opacity: 1; transform: none; transition-delay: .35s; }
.ti-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(246,162,74,.14); border: 1px solid rgba(246,162,74,.45); color: #ffd2a8; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; padding: 5px 14px; border-radius: 20px; }
.ti-h { font-size: clamp(28px, 4.8vw, 50px); font-weight: 800; letter-spacing: -1.3px; line-height: 1.1; margin: 15px 0 11px; color: #fff; }
.ti-hl { background: linear-gradient(90deg, #ffd29a, var(--ti-accent) 40%, var(--ti-ribbon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ti-sub { max-width: 560px; margin: 0 0 3px; line-height: 1.5; font-size: clamp(14px, 1.8vw, 16px); color: #cfe0f1; }
.ti-tag { margin: 7px 0 0; font-size: 14px; font-style: italic; color: #9fc0e0; }
.ti-chips { display: flex; gap: 9px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.ti-chips span { font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); }
.ti-chips span i { font-style: normal; color: var(--ti-accent); margin-inline-end: 5px; }
.ti-rise { opacity: 0; animation: tiRise .8s var(--ti-ease) forwards; }
@keyframes tiRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-height: 740px) { .ti-sub { display: none; } }

/* ---- the storefront ---- */
.ti-shop { position: relative; width: min(700px, 92vw); margin-top: 24px; }
.ti-sign { position: relative; z-index: 3; margin: 0 auto -4px; width: min(300px, 62%); height: 48px; border-radius: 10px; background: linear-gradient(180deg, var(--ti-sa), var(--ti-sb)); border: 2px solid var(--ti-se); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.ti-sign::before, .ti-sign::after { content: ""; position: absolute; top: -16px; width: 2px; height: 16px; background: var(--ti-pole); }
.ti-sign::before { left: 24%; } .ti-sign::after { right: 24%; }
.ti-neon { direction: ltr; unicode-bidi: isolate; font-size: 26px; font-style: italic; font-weight: 900; letter-spacing: -1px; color: #3c5a7a; transition: color .15s, text-shadow .15s; }
.ti-neon span { color: #5d4a38; transition: inherit; }
.tq-intro.lit .ti-neon { animation: tiFlicker 1s linear both; color: #fff; text-shadow: 0 0 4px #fff, 0 0 12px #7fb3ff, 0 0 26px #1c7ac4; }
.tq-intro.lit .ti-neon span { color: #ffc58e; text-shadow: 0 0 4px #ffd29a, 0 0 14px var(--ti-ribbon), 0 0 28px var(--ti-ribbon); }
@keyframes tiFlicker { 0%, 8%, 14%, 30% { opacity: .25; } 5%, 11%, 20%, 36%, 100% { opacity: 1; } }
.ti-awning { position: relative; z-index: 2; height: 44px; border-radius: 9px 9px 0 0; background: repeating-linear-gradient(90deg, var(--ti-ribbon) 0 36px, #fff3e6 36px 72px); box-shadow: 0 10px 16px rgba(0,0,0,.28); }
.ti-awning::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; background: radial-gradient(circle at 18px 0, var(--ti-ribbon) 13px, transparent 13.5px) 0 0/72px 14px repeat-x, radial-gradient(circle at 54px 0, #fff3e6 13px, transparent 13.5px) 0 0/72px 14px repeat-x; }
.ti-front { position: relative; background: linear-gradient(180deg, var(--ti-fa), var(--ti-fb)); border: 3px solid var(--ti-fe); border-top: 0; border-radius: 0 0 12px 12px; padding: 22px 18px 0; }
.ti-window { position: relative; height: clamp(168px, 24vw, 214px); border-radius: 8px 8px 0 0; overflow: hidden; background: radial-gradient(130% 100% at 50% 0, #fff6e6 0, #ffe3bf 45%, #f1bf86 100%); }
.ti-window::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(115deg, rgba(255,255,255,.35) 0, transparent 28%, transparent 70%, rgba(255,255,255,.12) 80%, transparent 90%); }
.ti-shelf { position: absolute; inset: 16px 16px 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; z-index: 1; }
.ti-shelf::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: -10px; height: 10px; background: #c98a4d; box-shadow: 0 -2px 0 #e7ae72 inset; }
.ti-item { position: relative; border-radius: 10px; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: clamp(22px, 3.6vw, 34px); box-shadow: 0 8px 16px rgba(120,60,10,.28); opacity: 0; transform: translateY(18px) scale(.5); }
.tq-intro.open .ti-item { animation: tiPopIn .6s var(--ti-pop) forwards; }
@keyframes tiPopIn { to { opacity: 1; transform: none; } }
.ti-pt { position: absolute; top: -9px; inset-inline-end: -8px; background: #c2440f; color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 7px 2px 9px; border-radius: 3px 9px 9px 3px; box-shadow: 0 3px 6px rgba(0,0,0,.2); transform-origin: 8% 50%; opacity: 0; }
.ti-pt::before { content: ""; position: absolute; left: 3px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: #fff; }
.tq-intro.open .ti-pt { animation: tiTagIn .4s var(--ti-pop) forwards, tiSwing 2.4s ease-in-out .6s infinite; }
@keyframes tiTagIn { from { opacity: 0; transform: rotate(-30deg) scale(.6); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes tiSwing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } }
.ti-shutter { position: absolute; inset: 0; z-index: 5; transition: transform 1.05s cubic-bezier(.65, .02, .25, 1); background: repeating-linear-gradient(180deg, #a9bdd1 0 13px, #8aa1b9 13px 15px, #c4d2e0 15px 17px); box-shadow: inset 0 -12px 0 #6d849d, inset 0 2px 6px rgba(0,0,0,.25); }
.ti-shutter::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 3px; background: #4e647b; }
.tq-intro.open .ti-shutter { transform: translateY(-101%); }
.ti-hang { position: absolute; left: 50%; top: 26%; z-index: 6; width: max-content; min-width: 156px; max-width: 92%; transform: translateX(-50%); perspective: 500px; }
.ti-hang::before, .ti-hang::after { content: ""; position: absolute; top: -22px; width: 1.5px; height: 24px; background: #3e536a; }
.ti-hang::before { left: 30%; transform: rotate(14deg); } .ti-hang::after { right: 30%; transform: rotate(-14deg); }
.ti-face-wrap { position: relative; display: grid; min-height: 44px; transform-style: preserve-3d; transition: transform .7s var(--ti-pop); }
.tq-intro.flip .ti-face-wrap { transform: rotateY(180deg); }
.ti-face { grid-area: 1/1; padding: 0 22px; white-space: nowrap; display: flex; align-items: center; justify-content: center; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: 13px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.ti-soon { background: #13304f; color: #cfe0f1; border: 2px solid #2d5a86; }
.ti-now { background: linear-gradient(180deg, #46b357, #2e8a3d); color: #fff; border: 2px solid #7fd28c; transform: rotateY(180deg); }
.ti-counter { height: 14px; margin: 0 -18px; background: linear-gradient(180deg, var(--ti-ca), var(--ti-cb)); border-top: 2px solid var(--ti-ce); }

/* ---- the LAUNCH button ---- */
.ti-console { margin-top: 22px; }
.ti-console-in { display: flex; flex-direction: column; align-items: center; transition: opacity .5s var(--ti-ease), transform .5s var(--ti-ease); }
.tq-intro.open .ti-console-in { opacity: 0; transform: translateY(10px) scale(.92); pointer-events: none; }
.ti-lb-wrap { position: relative; width: 132px; height: 132px; }
.ti-lb-wrap::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(246,162,74,.5); animation: tiPulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes tiPulse { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
.tq-intro.arming .ti-lb-wrap::before { animation: none; opacity: 0; }
.ti-bezel { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, var(--ti-ba), var(--ti-bb), var(--ti-bc), var(--ti-bb), var(--ti-ba)); box-shadow: 0 14px 30px rgba(0,0,0,.45), inset 0 2px 3px rgba(255,255,255,.25), inset 0 -4px 8px rgba(0,0,0,.4); }
.ti-bezel::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ti-bi); box-shadow: inset 0 3px 8px rgba(0,0,0,.7); }
.ti-ring { position: absolute; overflow: visible; inset: auto; left: -5px; top: -5px; width: 142px; height: 142px; min-width: 142px; min-height: 142px; max-width: none; max-height: none; display: block; margin: 0; transform: rotate(-90deg); z-index: 1; pointer-events: none; }
.ti-ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ti-track { stroke: rgba(255,255,255,.08); }
.ti-prog { stroke: url(#tiGrad); stroke-dasharray: 427; stroke-dashoffset: 427; filter: drop-shadow(0 0 6px rgba(246,162,74,.8)); opacity: 0; }
.tq-intro.arming .ti-prog { opacity: 1; transition: stroke-dashoffset 1.25s linear; stroke-dashoffset: 0; }
.ti-lb {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -52px 0 0 -48px; border-radius: 50%; border: 0; cursor: pointer; z-index: 2; color: #fff; font-family: inherit;
  background: radial-gradient(circle at 38% 30%, var(--ti-lb1) 0, var(--ti-lb2) 26%, var(--ti-ribbon) 55%, var(--ti-lb3) 100%);
  box-shadow: 0 8px 0 var(--ti-lb4), 0 12px 18px rgba(0,0,0,.45), inset 0 3px 4px rgba(255,255,255,.55), inset 0 -6px 10px rgba(120,40,0,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .12s ease, box-shadow .12s ease, filter .2s;
}
.ti-lb:hover { filter: brightness(1.07); }
.ti-lb:active, .tq-intro.arming .ti-lb { transform: translateY(7px); box-shadow: 0 1px 0 var(--ti-lb4), 0 3px 8px rgba(0,0,0,.45), inset 0 3px 4px rgba(255,255,255,.4), inset 0 -4px 8px rgba(120,40,0,.4); }
.ti-lb:focus-visible { outline: none; box-shadow: 0 8px 0 var(--ti-lb4), 0 0 0 4px var(--ti-bi), 0 0 0 7px #fff, inset 0 3px 4px rgba(255,255,255,.55); }
.ti-lb svg { width: 20px; height: 20px; }
.ti-lbl { font-size: 13px; font-weight: 900; letter-spacing: 2.2px; text-shadow: 0 1px 2px rgba(120,40,0,.5); }
.ti-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 900; opacity: 0; text-shadow: 0 2px 4px rgba(120,40,0,.5); }
.tq-intro.arming .ti-lb svg, .tq-intro.arming .ti-lbl { opacity: 0; }
.tq-intro.arming .ti-num { opacity: 1; }
.ti-num.tick { animation: tiTick .4s var(--ti-pop); }
@keyframes tiTick { from { transform: scale(1.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ti-note { margin: 14px 0 0; font-size: 12.5px; color: #8fb0d0; letter-spacing: .2px; }
.tq-intro.arming .ti-note { opacity: .6; }
.ti-enter { margin-top: 12px; border: 0; border-radius: 999px; padding: 11px 24px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; background: var(--ti-ribbon); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.ti-enter[hidden] { display: none; }
.ti-enter:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---- deal shower: price tags and parcels drifting down ---- */
.ti-shower { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.ti-drop { position: absolute; top: -60px; will-change: transform; animation: tiFall linear forwards; }
.ti-drop.tg { background: var(--c); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 9px 3px 12px; border-radius: 3px 11px 11px 3px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.ti-drop.tg::before { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: rgba(255,255,255,.9); }
.ti-drop.em { font-size: 22px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
@keyframes tiFall { to { transform: translate(var(--dx), 115vh) rotate(var(--rot)); } }

/* ---- reduced motion: the calm version ---- */
.tq-intro.rm::before, .tq-intro.rm .ti-lb-wrap::before, .tq-intro.rm .ti-pt { animation: none; }
.tq-intro.rm .ti-shutter, .tq-intro.rm .ti-scene { transition: none; }
.tq-intro.rm.exit .ti-scene { transform: none; }
.tq-intro.rm .ti-neon { animation: none; }
.tq-intro.rm .ti-item, .tq-intro.rm .ti-pt { animation: none; opacity: 1; transform: none; }

/* The same calm version for anyone whose system asks for it, even before the script adds `rm`. */
@media (prefers-reduced-motion: reduce) {
  .tq-intro::before, .ti-lb-wrap::before, .ti-pt, .ti-neon, .ti-item { animation: none; }
  .ti-shutter, .ti-scene { transition: none; }
  .tq-intro.exit .ti-scene { transform: none; }
  .ti-item, .ti-pt { opacity: 1; transform: none; }
  .ti-shower { display: none; }
}

/* The site's Urdu rules make every span/heading `unicode-bidi: plaintext`, which swaps the two halves of a heading. */
.tq-intro[dir="rtl"] * { unicode-bidi: normal; }
.tq-intro[dir="rtl"] .ti-neon { unicode-bidi: isolate; }

/* Urdu (right to left): joined letters need no letter-spacing and more line height than the Latin design allows. */
.tq-intro[dir="rtl"] .ti-h { font-size: clamp(22px, 3vw, 34px); line-height: 1.75; letter-spacing: 0; margin: 8px 0 6px; }
.tq-intro[dir="rtl"] .ti-hl { background: none; color: var(--ti-accent); -webkit-text-fill-color: currentColor; }
.tq-intro[dir="rtl"] .ti-pill, .tq-intro[dir="rtl"] .ti-sub, .tq-intro[dir="rtl"] .ti-tag, .tq-intro[dir="rtl"] .ti-note { line-height: 1.8; letter-spacing: 0; }
.tq-intro[dir="rtl"] .ti-face, .tq-intro[dir="rtl"] .ti-lbl, .tq-intro[dir="rtl"] .ti-chips span, .tq-intro[dir="rtl"] .ti-enter, .tq-intro[dir="rtl"] .ti-skip { letter-spacing: 0; line-height: 1.7; }
.tq-intro[dir="rtl"] .ti-chips span { padding-block: 3px; }

/* Language choice for guests: the intro covers the site's own switcher. */
.ti-langs { position: absolute; z-index: 20; bottom: 16px; inset-inline-start: 16px; display: flex; gap: 6px; }
.ti-langs form { margin: 0; }
.ti-langs a, .ti-langs button { display: inline-block; white-space: nowrap; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.ti-langs a:hover, .ti-langs button:hover, .ti-langs a:focus-visible, .ti-langs button:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.ti-langs .on { background: #fff; color: #1f2933; border-color: #fff; }
.tq-intro.arming .ti-langs, .tq-intro.open .ti-langs { opacity: 0; pointer-events: none; }

@media (max-width: 560px) {
  .ti-langs { bottom: 10px; inset-inline: 0; justify-content: center; }
  .ti-scene { padding: 76px 18px 56px; }
  .ti-h { margin: 12px 0 8px; }
  .ti-tag { margin-top: 5px; }
  .ti-shop { margin-top: 20px; }
  .ti-console { margin-top: 12px; }
  .ti-note { margin-top: 8px; }
  .tq-intro[dir="rtl"] .ti-sub, .tq-intro[dir="rtl"] .ti-tag { line-height: 1.6; }
  .tq-intro[dir="rtl"] .ti-h { margin: 8px 0 6px; }
  .tq-intro[dir="rtl"] .ti-note { margin-top: 2px; line-height: 1.5; }
  .ti-shelf { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ti-item:nth-child(n+4) { display: none; }
  .ti-logo { height: 60px; inset-inline-start: 12px; }
}

