@charset "utf-8";
/* ==========================================================================
   Promo.aspx (Campaign landing page) -- WinSphere theme.

   Replaces the old ~/AnimatedLP/css/5/styles.css reference, which pointed at
   a folder that no longer exists in this project (hence the unstyled page).

   This file styles Promo.aspx EXACTLY as it already renders -- no markup was
   changed. The selectors below target the ids/classes the page and its
   code-behind actually produce:

     body#Body          .wrapper
     #animated      ->  <div class="banner"><img class="responsive-image"></div>
     #dvsubmsg      ->  #pnlmsg > .text > #lblmessage
     #tbl.number    ->  <label id="ccode">965</label> + <input id="txtMsisdn">
     #dvbtn.but     ->  <a id="btnpin" class="button"> (LinkButton)
     #lbltxt            the price line
     .tc > .tc_head >   #linktc, followed by the bare <ul> of T&C points

   Palette is the same one css/styles.css uses for the portal, hardcoded here
   because this page is standalone and never loads that file.
   ========================================================================== */

:root {
    --lp-bg: #0a0413;
    --lp-bg-mid: #1c0b33;
    --lp-card: #1d1233;
    --lp-purple: #8b3ffb;
    --lp-pink: #ff4fd0;
    --lp-gold: #ffc94a;
    --lp-text: #ffffff;
    --lp-dim: #b6a6d6;
    --lp-faint: #8a7aad;
    /* System stand-in for the 'Sora' face Default.aspx loads from Google
       Fonts -- same weights and proportions, no extra network request on a
       page whose whole job is to convert quickly. */
    --lp-font-d: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html, body, div, span, p, img, li, ul, form, label, input {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    min-height: 100%;
    padding: 0 0 28px;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: var(--lp-text);
    background: var(--lp-bg);
    background: radial-gradient(120% 40% at 50% 0%, var(--lp-bg-mid) 0%, var(--lp-bg) 60%, var(--lp-bg) 100%);
    -webkit-text-size-adjust: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.wrapper {
    max-width: 480px;
    margin: 0 auto;
    /* Top padding rather than a margin on .banner: the banner is the first
       child, so a margin there would collapse out through the wrapper and the
       gap would depend on the body's own margins. */
    padding: 18px 16px 0;
    text-align: center;
    color: var(--lp-text);
}

.clear {
    clear: both;
}

/* ==========================================================================
   Hero banner with the video mascot (injected by SetImage()).

   Ported from css/spin-win.css -- the same banner English/Default.aspx uses
   at the top of the home page -- so the landing page opens on the identical
   mascot. Copied in here rather than linking spin-win.css so this page stays
   on one stylesheet and doesn't pull in the Google Fonts that file expects;
   --lp-font-d below is the system equivalent of its 'Sora'.

   The video itself is driven by js/spin-win.js (loaded at the end of
   Promo.aspx): it keys the clip's black background out onto #mascotCanvas
   frame by frame, holds the final pointing pose, and replays on a timer or
   on tap. It toggles .mascot-ready / .mascot-blend / .mascot-fade on
   .banner, which the rules below respond to. The static PNG shows until the
   canvas is ready, and again if the canvas can't be read at all.
   ========================================================================== */
.banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(112px, min(46%, 200px)) minmax(0, 1fr);
    gap: 6px;
    align-items: end;

    /* Height of .mascot-stage, derived the same way the stage itself sizes:
       its width is min(118% of this banner, 512px) and its aspect is 16/9,
       and this banner is min(448px, 100vw - 32px) wide inside .wrapper.
       1.18 x 0.5625 = 0.66375. */
    --lp-stage-h: min(calc((100vw - 32px) * 0.66375), 288px);

    /* Tall enough for the whole mascot to sit INSIDE the banner. The stage is
       anchored to the bottom and nudged down 8% of its own height, so it needs
       0.92 of that height; +20px leaves clear air above the mascot's head. */
    min-height: calc(var(--lp-stage-h) * 0.92 + 20px);

    margin: 0 0 18px;
    padding: 14px 14px 0;
    border-radius: 24px;

    /* inset(0 ...), NOT the home page's inset(-90px ...). There the banner
       sits below the header and search bar, so letting the mascot's head
       spill 90px above the panel reads as depth. Here the banner is the first
       thing on the page, so that overflow ran straight off the top edge --
       clipping to the panel on all four sides keeps it on the page. */
    clip-path: inset(0 round 24px);

    background: linear-gradient(118deg, #2b1055 0%, #41127a 46%, #8321b4 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px -18px rgba(124, 58, 237, 0.85);
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(60% 80% at 20% 95%, rgba(199, 125, 255, .42), transparent 62%),
                radial-gradient(70% 90% at 92% 40%, rgba(255, 255, 255, .16), transparent 60%);
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 62% 22%, rgba(240, 180, 41, .75) 0 2px, transparent 3px),
                radial-gradient(circle at 48% 62%, rgba(240, 180, 41, .55) 0 2px, transparent 3px),
                radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .5) 0 1.6px, transparent 3px);
}

/* mascot: static PNG, shown until the video canvas is ready.
   Stretched to the banner's full height and sized by HEIGHT (not width, as on
   the home page) so the PNG scales with the panel and stays inside it -- the
   width-based rule relied on the same top overflow the banner no longer
   allows, which would have cut the mascot's head off. */
.banner-mascot {
    position: relative;
    z-index: 1;
    cursor: pointer;
    align-self: stretch;
}

.banner-mascot img {
    pointer-events: none;
    position: absolute;
    left: -16%;
    bottom: 0;
    width: auto;
    height: 100%;
    max-width: none;
    filter: drop-shadow(0 14px 20px rgba(24, 6, 48, .7));
}

.banner.mascot-ready .banner-mascot img {
    visibility: hidden;
}

/* video mascot: black background keyed out on a canvas */
.mascot-stage {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    left: max(-5.5%, -24px);
    bottom: 0;
    width: min(118%, 512px);
    aspect-ratio: 16/9;
    transform: translateY(8%);
}

.mascot-stage video,
.mascot-stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* not 0: browsers pause fully invisible muted video */
.mascot-stage video {
    opacity: .01;
}

.mascot-stage canvas {
    opacity: 0;
    transition: opacity .3s ease;
    filter: drop-shadow(0 12px 16px rgba(24, 6, 48, .55));
}

.banner.mascot-ready .mascot-stage canvas {
    opacity: 1;
}

.banner.mascot-ready.mascot-fade .mascot-stage canvas {
    opacity: 0;
}

/* fallback when the canvas can't read the video -- blend it instead of keying */
.banner.mascot-blend .mascot-stage canvas {
    display: none;
}

.banner.mascot-blend .mascot-stage video {
    opacity: 1;
    mix-blend-mode: screen;
    transition: opacity .3s ease;
}

.banner.mascot-blend.mascot-fade .mascot-stage video {
    opacity: .01;
}

.mascot-glow {
    position: absolute;
    left: 4%;
    bottom: 8px;
    width: 92%;
    /* Capped: .banner-mascot is full-height here, so a flat 34% would stretch
       the floor glow up the mascot's body. */
    height: min(34%, 56px);
    border-radius: 50%;
    filter: blur(7px);
    transform-origin: 50% 50%;
    animation: mascot-glow-pulse 8s ease-in-out infinite;
    background: radial-gradient(ellipse at 50% 60%, rgba(199, 125, 255, .6), transparent 70%);
}

@keyframes mascot-glow-pulse {
    0%, 100% { transform: scaleX(1); opacity: .75; }
    25%, 75% { transform: scaleX(.9); opacity: 1; }
}

/* ---------- banner copy ---------- */
.banner-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    align-self: center;
    padding: 14px 4px 18px 0;
    text-align: left;
}

.banner .pill {
    display: inline-block;
    margin-bottom: 7px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .3);
    font: 700 9px var(--lp-font-d);
    letter-spacing: 1.3px;
    color: #f0c14e;
    white-space: nowrap;
}

.banner-title {
    margin: 0 0 4px;
    font: 800 clamp(26px, 8.6vw, 38px) / .95 var(--lp-font-d);
    letter-spacing: -1.2px;
    background: linear-gradient(180deg, #fff, #e6ccff 60%, #c79bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 18px rgba(124, 58, 237, .6);
}

.banner-title span {
    display: block;
    font-weight: 600;
    font-size: .44em;
    letter-spacing: 2.4px;
    margin: 0 0 4px;
    -webkit-text-fill-color: rgba(255, 255, 255, .7);
}

.banner-sub {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

.banner-shine {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    background-size: 200% 100%;
    animation: shimmer 3.4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -160% 0; }
    100% { background-position: 260% 0; }
}

/* Kept for any other image the campaign might inject into #animated. */
.responsive-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ---------- Status message (#pnlmsg > .text) ---------- */
.text {
    margin: 0 0 14px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: var(--lp-dim);
    background: var(--lp-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   #tbl -- the mobile-number field, reused by the code-behind as the 4-digit
   PIN field.

   ALIGNMENT IS LOAD-BEARING, DO NOT CHANGE: the flex row below is what keeps
   #ccode ("965") and #txtMsisdn locked on one line and centred, in BOTH
   states the code-behind produces -- the 8-digit MSISDN step, and the PIN
   step where it hides #ccode and adds an inline margin-left:12.5% to the
   input (a leftover centring hack from the old float layout, neutralised
   here so flexbox can centre it properly). The appearance below was
   restyled; display:flex / align-items / justify-content / the float and
   width resets / the margin-left override were deliberately left as they
   were, because that alignment is verified working.
   ========================================================================== */
.number,
#tbl {
    /* --- alignment: leave alone --- */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;

    /* --- appearance --- */
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 58px;
    padding: 0 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f3eeff 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.45),
        inset 0 2px 4px rgba(45, 12, 90, 0.12);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* Lights up while the user is typing -- the field is the one thing on this
   page they have to interact with, so it should look live. */
.number:focus-within,
#tbl:focus-within {
    transform: translateY(-1px);
    border-color: #ff4fd0;
    box-shadow:
        0 0 0 4px rgba(255, 79, 208, 0.25),
        0 12px 26px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(45, 12, 90, 0.12);
}

/* Float-clearing div from the old layout; a flex item here, so it would add
   a phantom gap. */
#tbl > .clear {
    display: none;
}

/* "965" as a chip, divided off from the number. */
.number label,
#tbl label {
    /* --- alignment: leave alone --- */
    flex: 0 0 auto;
    float: none;
    width: auto;
    margin: 0;

    /* --- appearance --- */
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding-right: 12px;
    font-family: var(--lp-font-d);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #5b21b6;
    border-right: 2px solid rgba(91, 33, 182, 0.18);
}

.number input[type="text"],
#tbl input[type="text"] {
    /* --- alignment: leave alone --- */
    flex: 1 1 auto;
    float: none;
    width: auto;
    min-width: 0;
    height: 100%;
    margin-left: 0 !important;

    /* --- appearance --- */
    padding: 0;
    font-family: var(--lp-font-d);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 4px;
    text-indent: 4px;         /* balances the trailing letter-spacing gap */
    text-align: center;
    color: #1d1233;
    caret-color: #8b3ffb;
    background: transparent;
    border: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;

    /* body sets user-select:none for the page chrome; without this the field
       inherits it and iOS/Safari makes it awkward to focus, select and edit. */
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

.number input[type="text"]:focus,
#tbl input[type="text"]:focus {
    outline: none;
}

.number input::-webkit-input-placeholder { color: #b3a9c9; font-weight: 700; letter-spacing: 4px; }
.number input::-moz-placeholder          { color: #b3a9c9; font-weight: 700; letter-spacing: 4px; }
.number input:-ms-input-placeholder      { color: #b3a9c9; font-weight: 700; letter-spacing: 4px; }
.number input::placeholder               { color: #b3a9c9; font-weight: 700; letter-spacing: 4px; }

/* Chrome's autofill repaints the field pale yellow and drops the styling. */
.number input:-webkit-autofill,
#tbl input:-webkit-autofill {
    -webkit-text-fill-color: #1d1233;
    -webkit-box-shadow: 0 0 0 40px #f7f3ff inset;
}

/* ---------- CTA (#dvbtn > a#btnpin.button) ---------- */
.but {
    width: 100%;
    margin: 14px auto 0;
}

.but a,
a.button {
    position: relative;
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 15px 18px;
    overflow: hidden;
    font-family: inherit;
    font-size: 17px !important;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(180deg, #b33bff 0%, #830bd8 55%, #58009f 100%);
    border: 1px solid #d982ff;
    border-radius: 14px;
    cursor: pointer;
    box-shadow:
        0 4px 0px #34005e,
        0 6px 16px rgba(131, 11, 216, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Top gloss, matching the portal's buttons. */
.but a::before,
a.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    pointer-events: none;
}

.but a:hover,
a.button:hover {
    color: #ffffff;
    box-shadow:
        0 4px 0px #34005e,
        0 8px 20px rgba(179, 59, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.but a:active,
a.button:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0px #34005e,
        0 2px 6px rgba(131, 11, 216, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.but span {
    font-size: 12px;
    font-weight: 400;
}

/* The old stylesheet animated this button forever; a single settle on load
   reads as polish instead of noise, and it stops moving under the thumb. */
.bounc {
    animation: lpPop 0.5s ease-out 1;
}

@keyframes lpPop {
    0%   { transform: scale(0.92); opacity: 0; }
    60%  { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ---------- Price line (#lbltxt's wrapper) ----------
   #lbltxt carries inline colour/size/weight from the .aspx, so this styles
   the chip around it rather than fighting those attributes. */
#lbltxt {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    line-height: 1.4;
    color: var(--lp-gold) !important;
    background: rgba(255, 201, 74, 0.1);
    border: 1px solid rgba(255, 201, 74, 0.35);
}

/* ---------- Terms & Conditions ---------- */
.tc {
    max-width: 100%;
    margin: 6px auto 0;
    padding: 0;
    font-size: 12px;
    text-align: center;
}

.tc_head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-text);
}

#linktc {
    font-size: 14px !important;
    font-weight: 700;
    color: var(--lp-text);
    text-decoration: none !important;
    cursor: pointer;
}

/* The bare <ul> after .tc is the T&C list. Styled as the portal's checklist:
   pink check bullet, hairline dividers, no default markers. */
.wrapper ul {
    margin: 10px 0 0;
    padding: 14px 16px;
    list-style: none;
    text-align: left;
    background: var(--lp-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wrapper ul li {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 24px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--lp-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wrapper ul li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.wrapper ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lp-pink);
}

/* The T&C links carry an inline blue from the .aspx; overridden here so the
   page keeps one link colour without editing that markup. */
.wrapper ul li a {
    color: var(--lp-pink) !important;
    text-decoration: underline;
    word-break: break-word;
}

a {
    color: var(--lp-pink);
}

/* ---------- Small screens ---------- */
@media (max-width: 360px) {
    .number,
    #tbl {
        max-width: 260px;
        height: 52px;
        padding: 0 12px;
    }

    /* 8 digits at 21px/4px tracking overflow a 260px field; this keeps the
       whole number on one line without shrinking the box further. */
    .number input[type="text"],
    #tbl input[type="text"] {
        font-size: 18px;
        letter-spacing: 3px;
        text-indent: 3px;
    }

    .number label,
    #tbl label {
        font-size: 15px;
        padding-right: 10px;
    }

    .but a,
    a.button {
        font-size: 16px !important;
        padding: 13px 14px;
    }
}
