@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* ==========================================================
   RESET / BASE
   ========================================================== */

html,
body,
div,
span,
p,
img,
button {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html,
body {
    width: 300px;
    height: 600px;
    overflow: hidden;
    background: #fff;
}

body {
    position: relative;
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1;
}

img {
    display: block;
    border: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

/* ==========================================================
   MAIN CONTAINER
   ========================================================== */

#mainContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 600px;
    overflow: hidden;
    background: #fff;
}

.start-invisible {
    visibility: hidden;
}

/* CSS replacement for the old SVG outer border */
#mainContainer::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #000;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1000;
}

/* ==========================================================
   300x300 ANIMATED STAGE
   ========================================================== */

#stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    overflow: hidden;
    background: #fff;
}

#artwork {
    position: absolute;
    inset: 0;
    width: 300px;
    height: 300px;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
}

.stage-layer,
.panel-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    pointer-events: none;
}

/*
   The Illustrator JSX exporter preserves the COMPLETE 300x600 artboard.
   Every exported SVG therefore stays at 0/0 at 300x600; Illustrator's
   internal coordinates preserve the artwork's original position.
*/
.svg-art,
.full-artboard-raster {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 600px;
    max-width: none;
    pointer-events: none;
}

/* ==========================================================
   COMPOSITE SVG + EXTERNAL RASTER LAYERS

   GAM-safe structure: linked PNG/JPG artwork is loaded directly
   by HTML and stacked with its companion SVG. The wrapper keeps
   the original GSAP ID so the existing animation remains unchanged.
   ========================================================== */

.asset-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 600px;
    max-width: none;
    pointer-events: none;
}

.asset-vector {
    z-index: 2;
}

.linked-raster {
    position: absolute;
    display: block;
    max-width: none;
    pointer-events: none;
    z-index: 1;
}

/* Original Illustrator placement from logo2.svg. */
.logo2-shadow {
    left: 51.5px;
    top: 168.3271px;
    width: 197px;
    height: 143px;
}

/* Original Illustrator placement from product.svg: 600x260 at 50%. */
.product-raster {
    left: 0;
    top: 0;
    width: 300px;
    height: 130px;
    z-index: 3;
}

.p5-t-shadow {
    left: 0;
    top: 0;
    width: 300px;
    height: 600px;
}

/* Original Illustrator placement from p5_quote.svg: 180x140 at 50%. */
.p5-quote-raster {
    left: 0;
    top: 0;
    width: 90px;
    height: 70px;
}

.p5-name-shadow {
    left: 0;
    top: 0;
    width: 300px;
    height: 600px;
}

.p6-t-shadow {
    left: 0;
    top: 0;
    width: 300px;
    height: 600px;
}

.p6-logo-glow {
    left: 0;
    top: 0;
    width: 300px;
    height: 218px;
}

/* ==========================================================
   CLOUDS / SKY
   Original SVG used a 620x600 JPG at 50% scale = 310x300.
   ========================================================== */

#clouds1,
#clouds2 {
    overflow: hidden;
}

.cloud-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 310px;
    height: 300px;
    max-width: none;
    pointer-events: none;
}

/* sky_overlay.png is a full 300x600 raster and stage clips its lower half. */
#sky_overlay {
    width: 300px;
    height: 600px;
}

/* ==========================================================
   PANEL 2 CLOCK
   ========================================================== */

#p2_icon {
    overflow: visible;
}

/*
   NOTE: clock rotation origin is set in JS to 150px 80.5px.
   Do not use transform-origin:center on these full-artboard SVG images.
*/
#p2_icon_arrows,
#p2_icon_minute,
#p2_icon_hour {
    transform-origin: 150px 80.5px;
}

/* ==========================================================
   PANEL 3 PATCH MASK
   CSS replacement for the old inline-SVG p3_patch_r_mask clipPath.
   ========================================================== */

#p3_patch_r_mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    overflow: hidden;
    pointer-events: none;

    -webkit-clip-path: path("M80 36 V41 H144.46 C151.92 41 157.98 47.15 157.98 54.72 V100.99 C157.98 108.56 151.92 114.71 144.46 114.71 H80 V138 H269 V36 H80 Z");
    clip-path: path("M80 36 V41 H144.46 C151.92 41 157.98 47.15 157.98 54.72 V100.99 C157.98 108.56 151.92 114.71 144.46 114.71 H80 V138 H269 V36 H80 Z");
}

/* ==========================================================
   PANEL 4 CHECKMARK
   CSS clipping window replaces the old SVG stroke-draw plugin.
   The source check lives approximately x128–170 / y65–93.
   ========================================================== */

#p4_icon {
    overflow: visible;
}

#check_reveal {
    position: absolute;
    left: 126px;
    top: 62px;
    width: 47px;
    height: 34px;
    overflow: hidden;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
}

#check {
    position: absolute;
    left: -126px;
    top: -62px;
    width: 300px;
    height: 600px;
    max-width: none;
    pointer-events: none;
}

/* ==========================================================
   PANEL 5 IMAGE / OVERLAY
   ========================================================== */

#p5_img_holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
}

#p5_img {
    position: absolute;

    /*
     * Slightly oversized so the 35px horizontal
     * pan never exposes the background on the right.
     */
    width: auto;
    height: 320px;

    /*
     * Keep Henry positioned to the right.
     */
    left: -50px;

    /*
     * The image is now 20px taller than the
     * 300px holder, so center it vertically.
     */
    top: -10px;

    max-width: none;
    display: block;
    pointer-events: none;
    will-change: transform;

    z-index: 0;
}

#p5_overlay {
    position: absolute;
    inset: 0;
    width: 300px;
    height: 300px;

    background: linear-gradient(
        90deg,
        #478fba 0%,
        rgba(71, 143, 186, 0) 50%
    );

    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}
/* ==========================================================
   PANEL 6 CTA
   ========================================================== */

#btn_holder {
	z-index: 1;
    overflow: visible;
}

#btn_back {
    position: absolute;
    left: 42px;
    top: 168px;
    width: 216px;
    height: 29px;
    border-radius: 6px;
    background: #b31983;
    pointer-events: none;
}

/* Transparent click target across the entire upper creative. */
#btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    z-index: 100;
}

#btn:focus,
#btn:focus-visible,
#btn:active {
    outline: none;
    box-shadow: none;
}

/* ==========================================================
   LIVE ISI / LEGAL AREA
   Preserved from the original banner.
   ========================================================== */

#links {
    position: absolute;
    top: 304px;
    left: 0;
    width: 300px;
    overflow: hidden;
    font-family: "Montserrat", Arial, sans-serif;
}

#legal {
    position: absolute;
    top: 338px;
    left: 0;
    width: 298px;
    height: 261px;
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10.25px;
}

#legal_content {
    padding-right: 1px;
    letter-spacing: .1px;
}

#links p {
    text-align: left;
    padding: 0 0 3px 8px;
    font-size: 10px;
    line-height: 12px;
}

#legal p {
    padding: 3px 0 2px 8px;
    line-height: 12px;
}

#legal::-webkit-scrollbar {
    width: 6px;
}

#legal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0);
}

#legal::-webkit-scrollbar-thumb {
    background: #000;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: 9999px;
}

#legal::-webkit-scrollbar-thumb:hover {
    background: #000;
}

.clickable {
    cursor: pointer;
    text-decoration: underline;
}

.clickable:hover,
.clickable:focus {
    text-decoration: none;
}

.clickable:focus-visible {
    outline: 1px dotted currentColor;
    outline-offset: 1px;
}

.black {
    color: #000;
}

.blue {
    color: #405364;
}

.white {
    color: #fff;
}

.pink {
    color: #b31983;
}

.bg-lt-blue {
    background-color: #e5f3f9;
}

.extra-bold {
    font-weight: 800;
}

.bold {
    font-weight: 600;
    font-style: normal;
}

.bolder {
    font-weight: 700;
    font-style: normal;
}

.regular,
.body,
.body-normal {
    font-weight: 400;
    font-style: normal;
}

.heading {
    background-color: #e5f3f9;
    text-align: left;
    text-transform: uppercase;
    font-weight: 700;
    font-style: normal;
    font-size: 11.5px;
    line-height: 15px;
    letter-spacing: 0;
}

.spec-header {
    font-size: 13.5px;
    letter-spacing: -.1px;
}

.header {
    font-size: 14px;
}

.body-bold {
    text-align: left;
    font-weight: 700;
    font-style: normal;
    font-size: 10px;
    line-height: 12.25px;
}

.body {
    font-size: 10px;
    line-height: 11.75px;
}

.body-normal {
    text-align: left;
    font-size: 10.5px;
    line-height: 12.25px;
}

.sup {
    font-size: .75em;
    vertical-align: super;
}

.sub {
    font-size: .65em;
}

.spacer {
    padding-top: 10px;
}

@-moz-document url-prefix() {
    #legal {
        scrollbar-width: thin;
        width: 299px;
    }

    #legal_content {
        padding-right: 0;
    }
}
