/* =========================================================
   Cinematic landing page - POS thermal paper roll
   Kish Parsian E-Commerce Co. (TOPKISH)
   ========================================================= */

@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb.woff2') format('woff2'),
    url('../fonts/IRANSansWeb.woff') format('woff'),
    url('../fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --pp-blue: #284B8C;
    --pp-blue-soft: #3A67B8;
    --pp-blue-deep: #16294F;
    --pp-navy: #0B1428;
    --pp-navy-2: #060C1A;
    --pp-orange: #F37835;
    --pp-orange-soft: #FF9C5B;
    --pp-orange-deep: #C55A1E;
    --pp-green: #2ECC71;
    --pp-paper: #F7F4ED;
    --pp-paper-2: #E8E2D6;
    --pp-ink: #23262E;
    --pp-white: #FFFFFF;
    --pp-muted: rgba(255, 255, 255, .62);
    --pp-line: rgba(255, 255, 255, .12);
    --pp-radius: 18px;
    --pp-device: 300px; /* device base width */
}

* { box-sizing: border-box; }

html {
    scroll-behavior: auto;
}

body.pp-body {
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    background: var(--pp-navy-2);
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.pp-body img { max-width: 100%; display: block; }
body.pp-body a { text-decoration: none; color: inherit; }

.pp-ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------------- Preloader ---------------- */
.pp-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--pp-navy-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 26px;
    transition: opacity .6s ease, visibility .6s ease;
}
.pp-loader.is-done { opacity: 0; visibility: hidden; }
.pp-loader__logo { width: 92px; animation: pp-pulse 1.6s ease-in-out infinite; }
.pp-loader__bar {
    width: 190px; height: 3px; border-radius: 4px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}
.pp-loader__bar i {
    display: block; height: 100%; width: 40%;
    background: linear-gradient(90deg, var(--pp-blue), var(--pp-orange));
    animation: pp-load 1.1s ease-in-out infinite;
}
@keyframes pp-load { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes pp-pulse { 0%, 100% { transform: scale(1); opacity: .85 } 50% { transform: scale(1.07); opacity: 1 } }

/* ---------------- Nav ---------------- */
.pp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(16px, 4vw, 48px);
    background: linear-gradient(180deg, rgba(6, 12, 26, .85), rgba(6, 12, 26, 0));
    backdrop-filter: blur(6px);
}
.pp-nav__brand { display: flex; align-items: center; gap: 12px; }
.pp-nav__brand img { width: 46px; }
.pp-nav__brand span { font-size: 14px; line-height: 1.7; color: #fff; }
.pp-nav__brand small { display: block; font-size: 11px; color: var(--pp-muted); }
.pp-nav__links { display: flex; align-items: center; gap: 10px; }
.pp-nav__links a {
    font-size: 12.5px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--pp-line);
    color: rgba(255, 255, 255, .8);
    transition: .25s ease;
}
.pp-nav__links a:hover { color: #fff; border-color: var(--pp-orange); background: rgba(243, 120, 53, .12); }
.pp-nav__links a.is-cta { background: var(--pp-orange); border-color: var(--pp-orange); color: #fff; }
.pp-nav__links a.is-cta:hover { background: var(--pp-orange-deep); }

/* ---------------- Scroll progress ---------------- */
.pp-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 70;
    background: rgba(255, 255, 255, .07);
}
.pp-progress i {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--pp-blue), var(--pp-orange));
    box-shadow: 0 0 14px rgba(243, 120, 53, .8);
}

/* step rail */
.pp-rail {
    position: fixed;
    right: clamp(10px, 2.2vw, 30px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
.pp-rail.is-visible { opacity: 1; }
.pp-rail__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    position: relative;
    transition: .3s ease;
}
.pp-rail__dot::after {
    content: attr(data-label);
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%) translateX(8px);
    white-space: nowrap;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
    opacity: 0;
    transition: .3s ease;
}
.pp-rail__dot.is-active { background: var(--pp-orange); box-shadow: 0 0 0 5px rgba(243, 120, 53, .18); }
.pp-rail__dot.is-active::after { opacity: 1; transform: translateY(-50%) translateX(0); color: #fff; }

/* ---------------- Shared bits ---------------- */
.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(243, 120, 53, .45);
    background: rgba(243, 120, 53, .10);
    color: var(--pp-orange-soft);
}
.pp-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--pp-orange); }

.pp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 14px;
    background: var(--pp-orange);
    color: #fff;
    transition: .3s ease;
    border: 1px solid transparent;
}
.pp-btn:hover { background: var(--pp-orange-deep); transform: translateY(-2px); }
.pp-btn--ghost { background: transparent; border-color: var(--pp-line); color: #fff; }
.pp-btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--pp-blue-soft); }

.pp-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 45%, #000 5%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 5%, transparent 72%);
    pointer-events: none;
}
.pp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: .55;
}
.pp-orb--blue { width: 620px; height: 620px; background: var(--pp-blue); top: -180px; right: -160px; }
.pp-orb--orange { width: 520px; height: 520px; background: var(--pp-orange); bottom: -200px; left: -150px; opacity: .38; }

/* ---------------- Hero ---------------- */
.pp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 90px;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #16294F 0%, var(--pp-navy) 45%, var(--pp-navy-2) 100%);
}
.pp-hero__inner { position: relative; z-index: 3; max-width: 940px; }
.pp-hero__title {
    font-size: clamp(30px, 6.2vw, 68px);
    line-height: 1.35;
    margin: 22px 0 0;
    font-weight: 700;
    letter-spacing: -.5px;
}
.pp-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--pp-orange), var(--pp-orange-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pp-hero__sub {
    margin: 22px auto 0;
    max-width: 660px;
    font-size: clamp(13.5px, 1.7vw, 17px);
    line-height: 2.2;
    color: var(--pp-muted);
}
.pp-hero__actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pp-hero__marks {
    margin-top: 54px;
    display: flex;
    gap: clamp(16px, 4vw, 54px);
    justify-content: center;
    flex-wrap: wrap;
    color: var(--pp-muted);
    font-size: 12.5px;
}
.pp-hero__marks b { display: block; color: #fff; font-size: clamp(20px, 3vw, 30px); margin-bottom: 6px; }

.pp-scrollcue {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--pp-muted);
}
.pp-scrollcue span {
    width: 24px; height: 40px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: 14px;
    position: relative;
}
.pp-scrollcue span::after {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    width: 4px; height: 8px;
    border-radius: 3px;
    background: var(--pp-orange);
    transform: translateX(-50%);
    animation: pp-wheel 1.7s ease-in-out infinite;
}
@keyframes pp-wheel { 0% { opacity: 0; top: 7px } 40% { opacity: 1 } 100% { opacity: 0; top: 22px } }

/* ---------------- Cinematic scene ---------------- */
.pp-scene { position: relative; }

.pp-stage {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: radial-gradient(110% 85% at 50% 42%, #1B3266 0%, #101C39 42%, var(--pp-navy-2) 100%);
}
.pp-stage__spot {
    position: absolute;
    left: 50%; top: 46%;
    width: min(150vh, 130vw);
    height: min(150vh, 130vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(243, 120, 53, .18) 0%, rgba(243, 120, 53, 0) 60%);
    pointer-events: none;
}

/* camera wrapper (scaled/moved by GSAP) */
.pp-camera {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

/* responsive fit wrapper (base scale, set once by JS) */
.pp-fit {
    position: relative;
    transform-origin: 50% 50%;
    will-change: transform;
}

.pp-device {
    position: relative;
    width: var(--pp-device);
    height: 540px;
    transform-origin: 50% 78%;
    will-change: transform;
}

/* floor shadow */
.pp-device__shadow {
    position: absolute;
    left: 50%; bottom: -34px;
    width: 320px; height: 46px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(4px);
}

/* ---- POS ---- */
.pp-pos {
    position: absolute;
    inset: 0;
    perspective: 1500px;
    perspective-origin: 50% 30%;
}

/* printer housing (top) */
.pp-pos__printer {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 168px;
    transform-style: preserve-3d;
    z-index: 4;
}

/* the open cavity revealed under the lid */
.pp-pos__well {
    position: absolute;
    top: 8px; left: 16px; right: 16px;
    height: 132px;
    border-radius: 14px 14px 8px 8px;
    background: linear-gradient(180deg, #101317 0%, #1B2026 55%, #0A0C0F 100%);
    box-shadow: inset 0 12px 22px rgba(0, 0, 0, .75), inset 0 -4px 10px rgba(255, 255, 255, .05);
    overflow: hidden;
}
.pp-pos__well::before {
    content: '';
    position: absolute;
    left: 8px; right: 8px; bottom: 10px;
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, #3A4048, #22262C);
    box-shadow: 0 -3px 8px rgba(0, 0, 0, .5);
}
.pp-pos__well-rim {
    position: absolute;
    top: 8px; left: 16px; right: 16px;
    height: 132px;
    border-radius: 14px 14px 8px 8px;
    border: 2px solid rgba(243, 120, 53, .55);
    box-shadow: inset 0 0 18px rgba(243, 120, 53, .18), 0 0 22px rgba(243, 120, 53, .25);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

/* seated roll inside the well */
.pp-roll {
    position: relative;
    width: 108px;
    height: 92px;
}
.pp-roll__cyl {
    position: absolute;
    inset: 0;
    border-radius: 54px / 22px;
    background: linear-gradient(180deg, #FBF8F1 0%, #EDE7DA 42%, #D3CBB9 78%, #BDB5A3 100%);
    box-shadow: inset -14px 0 22px rgba(0, 0, 0, .18), inset 14px 0 18px rgba(255, 255, 255, .55),
    0 10px 20px rgba(0, 0, 0, .35);
}
.pp-roll__cap {
    position: absolute;
    top: -2px; left: 0; right: 0;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 45% 40%, #FFFDF8 0%, #EFEADF 45%, #DCD5C6 100%);
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .12);
}
.pp-roll__core {
    position: absolute;
    top: 7px; left: 50%;
    width: 34px; height: 17px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 35%, #1A1D22 0%, #05070A 100%);
    box-shadow: 0 0 0 2px rgba(196, 118, 61, .35), inset 0 3px 6px rgba(0, 0, 0, .9);
}
.pp-roll__tail {
    position: absolute;
    top: 12px; left: 50%;
    width: 86px; height: 74px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #FBF8F1, #E7E1D4);
    border-radius: 3px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
    opacity: 0;
}

.pp-roll--seated {
    position: absolute;
    top: 26px; left: 50%;
    transform: translateX(-50%) scale(.94);
    opacity: 0;
    z-index: 2;
}

/* flying roll (comes from off-screen) */
.pp-roll--fly {
    position: absolute;
    top: 20px; left: 50%;
    margin-left: -54px;
    z-index: 8;
    opacity: 0;
}

/* the lid / clamshell cover */
.pp-pos__lid {
    position: absolute;
    top: -4px; left: 6px; right: 6px;
    height: 150px;
    transform-origin: 50% 0%;
    transform-style: preserve-3d;
    z-index: 4;
    will-change: transform;
}
.pp-pos__lid-face {
    position: absolute;
    inset: 0;
    border-radius: 16px 16px 10px 10px;
    background: linear-gradient(160deg, #2A2E35 0%, #16191E 40%, #0B0D11 100%);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}
.pp-pos__lid-face::after {
    content: '';
    position: absolute;
    left: 12%; right: 12%; top: 8px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
    filter: blur(2px);
}
.pp-nfc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .8);
    z-index: 2;
}
.pp-nfc svg { width: 46px; height: 30px; }
.pp-pos__lid-back {
    position: absolute;
    inset: 0;
    border-radius: 16px 16px 10px 10px;
    background: linear-gradient(180deg, #22262C, #101317);
    transform: rotateX(180deg);
    backface-visibility: hidden;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, .8);
}

/* paper exit slot / tear bar */
.pp-pos__slot {
    position: absolute;
    left: 10px; right: 10px;
    top: 150px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(180deg, #05070A 0%, #14171C 60%, #24282F 100%);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9);
    z-index: 5;
    overflow: hidden;
}
.pp-pos__teeth {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, #6B7078 0 3px, transparent 3px 7px);
    opacity: .85;
}

/* body */
.pp-pos__body {
    position: absolute;
    top: 156px; left: 0; right: 0; bottom: 0;
    border-radius: 16px 16px 26px 26px;
    background: linear-gradient(165deg, var(--pp-orange-soft) 0%, var(--pp-orange) 32%, #DE6526 72%, #B9501B 100%);
    box-shadow: 0 26px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -8px 18px rgba(0, 0, 0, .22);
    padding: 14px 14px 16px;
    z-index: 3;
}
.pp-pos__brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9.5px;
    letter-spacing: .6px;
    color: rgba(255, 255, 255, .92);
    padding: 0 4px 7px;
    direction: ltr;
}
.pp-pos__brand b { font-weight: 700; font-size: 10.5px; }

/* screen */
.pp-screen {
    position: relative;
    height: 172px;
    border-radius: 8px;
    background: radial-gradient(120% 120% at 50% 0%, #0E1524 0%, #05080F 100%);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .5), inset 0 6px 16px rgba(0, 0, 0, .8);
    overflow: hidden;
}
.pp-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 42%);
    pointer-events: none;
}
.pp-screen__state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px;
    opacity: 0;
}
.pp-screen__logo { width: 44px; opacity: .95; }
.pp-screen__hint { font-size: 10px; color: rgba(255, 255, 255, .6); }
.pp-screen__label { font-size: 10.5px; color: rgba(255, 255, 255, .55); }
.pp-screen__amount { font-size: 19px; color: #fff; font-weight: 700; letter-spacing: .5px; }
.pp-screen__unit { font-size: 10px; color: var(--pp-orange-soft); }
.pp-screen__wait { font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.pp-spinner {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: var(--pp-orange);
    animation: pp-spin .9s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg) } }

.pp-check {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(46, 204, 113, .14);
    border: 2px solid var(--pp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, .5);
}
.pp-check svg { width: 24px; height: 24px; }
.pp-check svg path {
    fill: none;
    stroke: var(--pp-green);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
}
.pp-screen__ok { font-size: 14px; color: var(--pp-green); font-weight: 700; }
.pp-screen__ref { font-size: 9.5px; color: rgba(255, 255, 255, .45); }

.pp-print-bars { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.pp-print-bars i {
    display: block; width: 5px; border-radius: 2px;
    background: var(--pp-orange);
    animation: pp-bars .9s ease-in-out infinite;
}
.pp-print-bars i:nth-child(2) { animation-delay: .15s }
.pp-print-bars i:nth-child(3) { animation-delay: .3s }
.pp-print-bars i:nth-child(4) { animation-delay: .45s }
@keyframes pp-bars { 0%, 100% { height: 8px; opacity: .5 } 50% { height: 24px; opacity: 1 } }

/* keypad */
.pp-keys {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.pp-keys__fn {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 3px;
}
.pp-key {
    height: 21px;
    border-radius: 5px;
    background: linear-gradient(180deg, #2B2F36 0%, #14171B 100%);
    box-shadow: 0 2px 3px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
    color: rgba(255, 255, 255, .72);
}
.pp-key--fn { background: linear-gradient(180deg, #E6E8EB, #A9AEB6); color: #22252A; font-size: 8px; }
.pp-key--red { background: linear-gradient(180deg, #E5484D, #A3282C); color: #fff; }
.pp-key--yellow { background: linear-gradient(180deg, #E8D024, #B0990C); color: #2A2404; }
.pp-key--green { background: linear-gradient(180deg, #3BC463, #1E8B41); color: #fff; }
.pp-key.is-hit { filter: brightness(1.9); }

/* the payment card */
.pp-card {
    position: absolute;
    z-index: 9;
    top: 210px; left: 50%;
    width: 150px; height: 94px;
    margin-left: -75px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2E5AA8 0%, var(--pp-blue) 45%, #16294F 100%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
    padding: 10px 12px;
    opacity: 0;
    direction: ltr;
    will-change: transform;
}
.pp-card__chip {
    width: 26px; height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, #F7D786, #C79A32);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
}
.pp-card__no {
    position: absolute;
    left: 12px; bottom: 26px;
    font-size: 10.5px;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, .9);
}
.pp-card__brand {
    position: absolute;
    left: 12px; bottom: 9px;
    font-size: 8.5px;
    color: rgba(255, 255, 255, .6);
}
.pp-card__logo { position: absolute; right: 10px; top: 10px; width: 30px; opacity: .95; }

/* NFC waves */
.pp-waves {
    position: absolute;
    top: 46px; left: 50%;
    width: 10px; height: 10px;
    transform: translateX(-50%);
    z-index: 7;
    opacity: 0;
}
.pp-waves i {
    position: absolute;
    left: 50%; top: 50%;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    border: 2px solid rgba(243, 120, 53, .8);
    animation: pp-wave 1.6s ease-out infinite;
}
.pp-waves i:nth-child(2) { animation-delay: .5s }
.pp-waves i:nth-child(3) { animation-delay: 1s }
@keyframes pp-wave {
    0% { transform: scale(.3); opacity: .9 }
    100% { transform: scale(2.6); opacity: 0 }
}

/* ---------------- Receipt ---------------- */
.pp-receipt {
    position: absolute;
    left: 50%;
    bottom: 384px;          /* sits on the tear bar */
    width: 168px;
    margin-left: -84px;
    height: 0;
    overflow: hidden;
    z-index: 6;
    perspective: 1600px;
    will-change: height;
}
.pp-receipt__strip {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    transform-style: preserve-3d;
}
.pp-paper {
    position: relative;
    background: linear-gradient(180deg, var(--pp-paper) 0%, #FFFDF8 40%, var(--pp-paper) 100%);
    color: var(--pp-ink);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
    padding: 12px 12px;
    font-size: 8px;
    line-height: 1.9;
}
.pp-paper::before,
.pp-paper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 7px;
}
.pp-paper::before { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .16), transparent); }
.pp-paper::after { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .16), transparent); }

.pp-fold {
    position: relative;
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    will-change: transform;
}
.pp-fold__face { position: relative; backface-visibility: hidden; }
.pp-fold__face--back {
    position: absolute;
    inset: 0;
    transform: rotateX(180deg);
    background: #EFE9DC;
    overflow: hidden;
    box-shadow: 0 -14px 26px rgba(0, 0, 0, .45);
}
.pp-fold__face--back img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pp-fold__face--back::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 30%);
}

.pp-rc-head { text-align: center; border-bottom: 1px dashed rgba(0, 0, 0, .3); padding-bottom: 6px; margin-bottom: 6px; }
.pp-rc-head img { width: 34px; margin: 0 auto 4px; }
.pp-rc-head b { display: block; font-size: 8.5px; }
.pp-rc-head span { font-size: 7px; color: #6B6F78; }
.pp-rc-row { display: flex; justify-content: space-between; gap: 6px; }
.pp-rc-row span { color: #575B63; }
.pp-rc-row b { font-weight: 700; }
.pp-rc-total {
    margin-top: 6px;
    border-top: 1px dashed rgba(0, 0, 0, .3);
    border-bottom: 1px dashed rgba(0, 0, 0, .3);
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
}
.pp-rc-total b { color: #12161D; }
.pp-rc-ok { text-align: center; color: #1C8B4B; font-size: 9px; margin-top: 6px; }
.pp-rc-barcode {
    margin-top: 8px;
    height: 26px;
    background: repeating-linear-gradient(90deg, #23262E 0 1px, transparent 1px 2px, #23262E 2px 4px, transparent 4px 6px, #23262E 6px 7px, transparent 7px 10px);
}
.pp-rc-foot { text-align: center; font-size: 7px; color: #6B6F78; margin-top: 5px; direction: ltr; }

.pp-fold__face--front { min-height: 196px; }
.pp-rc-bottom { min-height: 186px; }

/* torn bottom edge */
.pp-tear {
    height: 8px;
    background:
            radial-gradient(circle at 4px -2px, transparent 5px, var(--pp-paper) 5px) 0 0/8px 8px repeat-x;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .3));
}

/* ---------------- Captions ---------------- */
.pp-caption {
    position: absolute;
    z-index: 12;
    max-width: min(360px, 40vw);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
.pp-caption h3 {
    margin: 0 0 10px;
    font-size: clamp(19px, 2.6vw, 30px);
    line-height: 1.6;
    font-weight: 700;
}
.pp-caption p {
    margin: 0;
    font-size: clamp(12px, 1.4vw, 14.5px);
    line-height: 2.15;
    color: var(--pp-muted);
}
.pp-caption .pp-chip { margin-bottom: 14px; }
/* Positioned without transforms: GSAP owns the transform property here.
   Right-hand captions also keep clear of the step rail. */
.pp-caption--tr { top: 15%; right: 11%; text-align: right; }
.pp-caption--tl { top: 17%; left: 6%; text-align: right; }
.pp-caption--br { bottom: 12%; right: 11%; text-align: right; }
.pp-caption--bl { bottom: 14%; left: 7%; text-align: right; }
.pp-caption--ml { top: 34%; left: 6%; text-align: right; }
.pp-caption--mr { top: 32%; right: 11%; text-align: right; }
.pp-caption--top,
.pp-caption--bottom {
    left: 0; right: 0;
    margin-inline: auto;
    width: fit-content;
    max-width: min(640px, 84vw);
    text-align: center;
}
.pp-caption--top { top: 12%; }
.pp-caption--bottom { bottom: 5%; }

.pp-caption__num {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--pp-orange);
    margin-bottom: 8px;
    direction: ltr;
}

/* big cinematic word */
.pp-bigword {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    font-size: clamp(52px, 13vw, 170px);
    font-weight: 700;
    color: rgba(255, 255, 255, .05);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    letter-spacing: -2px;
}

/* success flash */
.pp-flash {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: radial-gradient(circle at 50% 40%, rgba(46, 204, 113, .35) 0%, rgba(46, 204, 113, 0) 55%);
    opacity: 0;
    pointer-events: none;
}

/* ---------------- Outro sections ---------------- */
.pp-section { position: relative; padding: clamp(70px, 11vw, 150px) clamp(18px, 5vw, 70px); overflow: hidden; }
.pp-section--dark { background: linear-gradient(180deg, var(--pp-navy-2) 0%, #0D1830 100%); }
.pp-section--blue { background: linear-gradient(180deg, #0D1830 0%, var(--pp-blue-deep) 55%, #0D1830 100%); }
.pp-wrap { position: relative; z-index: 3; max-width: 1180px; margin: 0 auto; }

.pp-head { text-align: center; margin-bottom: clamp(38px, 6vw, 70px); }
.pp-head h2 {
    margin: 16px 0 0;
    font-size: clamp(24px, 4.2vw, 44px);
    line-height: 1.6;
    font-weight: 700;
}
.pp-head h2 em { font-style: normal; color: var(--pp-orange); }
.pp-head p { margin: 16px auto 0; max-width: 660px; color: var(--pp-muted); line-height: 2.2; font-size: 14px; }

/* showcase */
.pp-showcase { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.pp-showcase__media { position: relative; }
.pp-showcase__media img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); }
.pp-showcase__glow {
    position: absolute;
    left: 50%; top: 55%;
    width: 78%; height: 66%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(243, 120, 53, .38) 0%, rgba(40, 75, 140, .22) 45%, transparent 70%);
    filter: blur(38px);
    z-index: -1;
}
.pp-showcase__badge {
    position: absolute;
    padding: 11px 18px;
    border-radius: 14px;
    background: rgba(11, 20, 40, .82);
    border: 1px solid var(--pp-line);
    backdrop-filter: blur(8px);
    font-size: 12px;
    line-height: 1.9;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .4);
}
.pp-showcase__badge b { display: block; color: var(--pp-orange); font-size: 15px; }
.pp-showcase__badge--1 { top: 8%; right: -6%; }
.pp-showcase__badge--2 { bottom: 16%; left: -4%; }

.pp-slogans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pp-slogan {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: var(--pp-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    border: 1px solid var(--pp-line);
    transition: .35s ease;
}
.pp-slogan:hover { border-color: rgba(243, 120, 53, .5); transform: translateX(-6px); background: linear-gradient(135deg, rgba(243, 120, 53, .12), rgba(255, 255, 255, .02)); }
.pp-slogan__ico {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--pp-orange), var(--pp-orange-deep));
    box-shadow: 0 10px 20px rgba(243, 120, 53, .28);
    font-size: 17px;
}
.pp-slogan h4 { margin: 0 0 5px; font-size: 15.5px; }
.pp-slogan p { margin: 0; font-size: 12.5px; line-height: 2; color: var(--pp-muted); }

/* feature cards */
.pp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pp-card-item {
    position: relative;
    padding: 30px 24px;
    border-radius: var(--pp-radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015));
    border: 1px solid var(--pp-line);
    overflow: hidden;
    transition: .35s ease;
}
.pp-card-item::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pp-blue), var(--pp-orange));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s ease;
}
.pp-card-item:hover { transform: translateY(-8px); border-color: rgba(243, 120, 53, .4); }
.pp-card-item:hover::before { transform: scaleX(1); }
.pp-card-item i {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    border-radius: 14px;
    margin-bottom: 18px;
    background: rgba(243, 120, 53, .13);
    border: 1px solid rgba(243, 120, 53, .3);
    font-style: normal;
    font-size: 20px;
}
.pp-card-item h4 { margin: 0 0 10px; font-size: 16px; }
.pp-card-item p { margin: 0; font-size: 12.5px; line-height: 2.1; color: var(--pp-muted); }

/* specs table */
.pp-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.pp-spec {
    padding: 24px;
    border-radius: var(--pp-radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--pp-line);
}
.pp-spec h5 { margin: 0 0 14px; font-size: 14.5px; color: var(--pp-orange-soft); }
.pp-spec ul { margin: 0; padding: 0; list-style: none; }
.pp-spec li {
    font-size: 12.5px;
    line-height: 2.3;
    color: var(--pp-muted);
    padding-right: 18px;
    position: relative;
}
.pp-spec li::before {
    content: '';
    position: absolute;
    right: 0; top: 13px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pp-blue-soft);
}

/* stats */
.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pp-stat {
    text-align: center;
    padding: 30px 16px;
    border-radius: var(--pp-radius);
    background: linear-gradient(160deg, rgba(40, 75, 140, .35), rgba(255, 255, 255, .02));
    border: 1px solid var(--pp-line);
}
.pp-stat b { display: block; font-size: clamp(26px, 4vw, 40px); color: #fff; }
.pp-stat span { font-size: 12.5px; color: var(--pp-muted); }

/* CTA */
.pp-cta {
    position: relative;
    text-align: center;
    padding: clamp(46px, 7vw, 80px) clamp(22px, 5vw, 60px);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(40, 75, 140, .55), rgba(243, 120, 53, .22));
    border: 1px solid rgba(255, 255, 255, .14);
    overflow: hidden;
}
.pp-cta h2 { margin: 0 0 16px; font-size: clamp(22px, 3.6vw, 38px); line-height: 1.6; }
.pp-cta p { margin: 0 auto 30px; max-width: 620px; color: rgba(255, 255, 255, .78); line-height: 2.2; font-size: 14px; }
.pp-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* footer */
.pp-foot {
    padding: 30px clamp(18px, 5vw, 70px);
    background: var(--pp-navy-2);
    border-top: 1px solid var(--pp-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--pp-muted);
}
.pp-foot__links { display: flex; gap: 18px; flex-wrap: wrap; }
.pp-foot__links a:hover { color: var(--pp-orange); }

/* reveal helper */
.pp-reveal { opacity: 0; transform: translateY(38px); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .pp-cards { grid-template-columns: repeat(2, 1fr); }
    .pp-specs { grid-template-columns: 1fr; }
    .pp-showcase { grid-template-columns: 1fr; }
    .pp-showcase__badge--1 { right: 2%; }
    .pp-showcase__badge--2 { left: 2%; }
}
@media (max-width: 900px) {
    /* on small screens every caption docks to the bottom on a readable panel,
       so it never collides with the device or the printed receipt */
    .pp-caption,
    .pp-caption--tr, .pp-caption--tl, .pp-caption--mr,
    .pp-caption--ml, .pp-caption--br, .pp-caption--bl,
    .pp-caption--top, .pp-caption--bottom {
        top: auto;
        bottom: 3%;
        left: 0;
        right: 0;
        margin-inline: auto;
        width: 92vw;
        max-width: 92vw;
        text-align: center;
        padding: 16px 18px;
        border-radius: 16px;
        background: rgba(7, 14, 30, .78);
        border: 1px solid var(--pp-line);
        backdrop-filter: blur(10px);
    }
    .pp-caption h3 { font-size: 19px; margin-bottom: 8px; }
    .pp-caption p { font-size: 12.5px; line-height: 2 }
    .pp-caption__num { margin-bottom: 4px; }
    .pp-bigword { font-size: 46px; top: 22%; }
    .pp-rail { display: none; }
    .pp-nav__links a:not(.is-cta) { display: none; }
}
@media (max-width: 640px) {
    .pp-stats { grid-template-columns: repeat(2, 1fr); }
    .pp-cards { grid-template-columns: 1fr; }
    .pp-hero__marks { gap: 22px; }
}

/* ---------------- Fallback when GSAP is unavailable ---------------- */
.pp-no-gsap .pp-stage { height: auto; padding: 110px 20px; }
.pp-no-gsap .pp-camera { position: relative; inset: auto; }
.pp-no-gsap .pp-caption {
    position: relative;
    inset: auto;
    transform: none;
    opacity: 1;
    max-width: 720px;
    margin: 26px auto 0;
    text-align: center;
    pointer-events: auto;
}
.pp-no-gsap .pp-bigword { display: none; }
.pp-no-gsap .pp-reveal { opacity: 1; transform: none; }
.pp-no-gsap .pp-receipt { height: auto; position: relative; bottom: auto; margin: 30px auto 0; left: auto; }
.pp-no-gsap .pp-loader { display: none; }

@media (prefers-reduced-motion: reduce) {
    .pp-loader, .pp-scrollcue span::after, .pp-spinner, .pp-waves i, .pp-print-bars i {
        animation: none !important;
    }
}
