* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    color: #243244;
    background: radial-gradient(circle at 50% 50%, #e0f2f1, #00796b) fixed;
}

a {
    color: inherit;
    text-decoration: underline;
}

/* text sections */
h1 {
    font-size: 20px;
    margin: 0 0 8px;
    color: #1a1a1a;
}

h2 {
    margin: 2 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

p {
    margin: 0;
    line-height: 1.6
}

/* What's New Section */
.h2-title {
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

ul {
    margin: 6px 0 0 0;
    padding-inline-start: 20px;
}

ol {
    margin: 6px 0 0 0;
    padding-inline-start: 20px;
}

li {
    margin: 4px 0;
    font-weight: bold;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 16px;
}

.wrap>section:not(:first-of-type) {
    margin-top: 32px;
}

/* Give the footer some breathing room too */
.wrap>footer.site-footer {
    margin-top: 32px;
}

.stack {
    display: grid;
    gap: 16px
}

/* Mobile hero (appears only on small screens) */
.m-hero {
    position: relative;
    min-height: 80vh;
    width: 100%;
    /* background moved to ::after for masking */
    overflow: hidden;
    display: grid;
    place-items: start center;
    padding: 24px 16px 72px;
    /* bottom room for arrow */
}

/* Background image with bottom fade-to-transparent */
.m-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url(/assets/mobile-hero.jpg) center top / cover no-repeat;
    /* fade out bottom: adjust 75% for longer/shorter fade */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 90%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    /* keep text/arrow clickable */
}

/* keep text above the masked bg */
.m-hero__inner {
    position: relative;
    z-index: 1;
}

.m-hero__title {
    padding-top: 30px;
    margin: 0 0 10px;
    font: 800 clamp(24px, 7.5vw, 26px)/1.2 'Poppins', system-ui, sans-serif;
    color: #f6c445;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    text-align: center;

}

.m-hero__desc {
    margin: 0;
    color: #fff;
    font-weight: 500;
    font-size: clamp(14px, 4.2vw, 14px);
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
    opacity: .95;
    text-align: center;
}

/* full arrow (down) – bigger */
.m-hero__chev {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 38px;
    height: 40px;
    transform: translate(-50%, 0);
    animation: mHeroBounce 1.6s ease-in-out infinite;
    border: 0;
    z-index: 1;
    /* ensure above bg */
}

.m-hero__chev::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 32px;
    background: #000;
    transform: translateX(-50%);
    border-radius: 3px;
}

.m-hero__chev::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid #000;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .15));
}

@keyframes mHeroBounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}



/* Show only on mobile */
@media (min-width: 641px) {
    .m-hero {
        display: none;
    }
}


/* generic card */
.card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    padding: 16px
}

.section-image {
    display: block;
    margin: 12px auto;
    /* centers the image horizontally + spacing top/bottom */
    max-width: 60%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .section-image {
        max-width: 100%;
    }
}

.download-btn {
    display: block;
    /* full block element */
    margin: 20px auto 0;
    /* top margin + auto left/right centers it */
    padding: 12px 40px;
    background-color: #2196f3;
    /* blue */
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    /* pill shape */
    transition: background-color 0.25s ease, transform 0.2s ease;
    width: fit-content;
    /* shrink to content width */
}


.download-btn:hover {
    background-color: #1976d2;
    /* darker blue on hover */
    transform: translateY(-2px);
}

.download-btn:active {
    background-color: #1565c0;
    /* pressed look */
    transform: translateY(0);
}

/* top brand box */
.brand {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 18px;
}

.card.brand {
    position: relative;
    padding-top: 28px;
    /* prevents overlap with the logo */
}

.list {
    position: absolute;
    top: 10px;
    left: 12px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .4px;
    cursor: pointer;

    padding: 14px 22px;
    background: #fff;
    color: #e83e8c;
    /* animated via @keyframes below */
    border: 2px solid currentColor;
    /* <-- border color now changes with text */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .14);

    animation: colorchange .8s ease-in-out infinite alternate;
}

.list:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    transform: translateY(-1px);
}

/* smoother loop for the color animation */
@keyframes colorchange {
    0% {
        color: #e83e8c;
    }

    100% {
        color: #003369;
    }
}

@media (max-width: 768px) {
    .card.brand {
        padding-top: 12px;
    }

    .list {
        position: fixed;
        top: auto;
        /* ✅ unset the desktop top */
        right: auto;
        /* safety */
        left: 50%;
        bottom: calc(16px + env(safe-area-inset-bottom));
        /* sit at bottom */
        transform: translate(-50%, 0);
        /* center horizontally */
        z-index: 999;

        font-size: 16px;
        padding: 12px 18px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .18);

        width: max-content;
        /* prevent accidental full-width */
        max-width: calc(100vw - 32px);
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .list:hover {
        transform: translate(-50%, -2px);
        /* lift without breaking centering */
    }
}


/* Backdrop */
.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
    z-index: 10000;
}

.side-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .25s ease;
}

/* Sidebar panel */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(86vw, 320px);
    background: #fff;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .15);
    transform: translateX(-110%);
    /* hidden off-canvas */
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f0f2f4;
}

.sidebar.open {
    transform: translateX(0);
}

/* Sidebar panel */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    background: #ffffff;
    border-right: 1px solid #f0f2f4;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .12);
    transform: translateX(-110%);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    z-index: 10001;
    display: grid;
    grid-template-rows: auto 1fr auto;
    /* head / body / foot */
}

.sidebar.open {
    transform: translateX(0);
}

/* Header */
.sb-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    background: linear-gradient(180deg, #fff, #fafbfc);
    border-bottom: 1px solid #f0f2f4;
}

.sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-logo {
    width: 48px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.sb-head strong {
    font: 700 16px/1.2 'Poppins', system-ui, sans-serif;
    color: #243244;
}

.sb-close {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}

.sb-close:hover {
    background: #f5f7fb;
    color: #111;
}

/* Body (scrollable) */
.sb-body {
    overflow: auto;
    padding: 8px 8px 12px;
}

/* Navigation */
.sb-nav {
    display: grid;
    gap: 6px;
}

.sb-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    color: #243244;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    position: relative;
    transition: background .2s ease, transform .15s ease;
}

/* small icon via data-attribute */
.sb-nav a::before {
    content: attr(data-icon);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f5f7fb;
    font-size: 14px;
}

.sb-nav a:hover {
    background: #f7f9fc;
    transform: translateX(2px);
}


/* Lock page scroll when menu is open */
body.nav-open {
    overflow: hidden;
}


.brand img.logo {
    width: 230px;
    height: auto
}

.brand p.big {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 20px;

}

.brand .divider {
    border: none;
    border-top: 1px solid #ccc;
    /* thin line */
    margin: 6px auto 12px;
    /* spacing */
    width: 100%;
    /* full width in card */
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center
}

.cta-row .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* space between icon and text */
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.btn.telegram {
    background-color: #24a1de;
    animation: pulseTelegram 2s infinite;
}

.btn.whatsapp {
    background-color: #25d366;
    animation: pulseWhatsapp 2s infinite;
}

/* Telegram pulse */
@keyframes pulseTelegram {
    0% {
        box-shadow: 0 0 0 0 rgba(36, 161, 222, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(36, 161, 222, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(36, 161, 222, 0);
    }
}

/* WhatsApp pulse */
@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.cta-row .btn img {
    display: inline-block;
    width: 18px;
    height: 18px;
}

/* === Bonus Banner === */
.bonus-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
}

/* The banner itself */
.bonus-hero {
    position: relative;
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: url('/assets/banner.jpeg') center / cover no-repeat;
}

@media (max-width: 768px) {
    .bonus-hero {
        background-image: url('/assets/banner.gif');
    }

    .bonus-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .65);
        /* <- adjust darkness here */
        pointer-events: none;
    }
}

/* Right-side content */
.bonus-right {
    position: relative;
    z-index: 1;
    margin-left: auto;
    width: 300px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    /* stack title + button */
    align-items: center;
    /* center horizontally */
    justify-content: center;
    /* center vertically */
    text-align: center;
    /* center text */
    gap: 12px;
    /* space between title and button */
    padding: 28px 28px 28px 24px;
}


/* Title */
.bonus-title {
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

/* CTA button — yellow pill, animated */
.bonus-cta {
    display: inline-block;
    background: #ffe436;
    /* yellow */
    color: #111;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(255, 228, 54, .35), inset 0 -2px 0 rgba(0, 0, 0, .12);
    transform: translateZ(0);
    /* smoother animation */
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    animation: bonusPulse 1.6s ease-in-out infinite;

}

@keyframes bonusPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 18px rgba(255, 228, 54, .35);
    }

    40% {
        transform: scale(1.06);
        box-shadow: 0 12px 26px rgba(255, 228, 54, .55);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 10px 22px rgba(255, 228, 54, .45);
    }
}

/* subtle highlight sweep */
.bonus-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .35) 40%, transparent 60%);
    transform: translateX(-120%);
    animation: sheen 2.6s ease-in-out infinite .3s;
    pointer-events: none;
}

.bonus-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(255, 228, 54, .45), inset 0 -2px 0 rgba(0, 0, 0, .18);
    filter: saturate(1.05);
}

@keyframes sheen {
    0% {
        transform: translateX(-120%);
        opacity: .0;
    }

    35% {
        opacity: .75;
    }

    60% {
        transform: translateX(120%);
        opacity: .0;
    }

    100% {
        transform: translateX(120%);
        opacity: .0;
    }
}

/* Layout: push content to the right with a flexible grid */
.bonus-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    /* left image space, right content */
}

/* Responsive tweaks */
@media (max-width: 720px) {
    .bonus-wrap {
        padding: 12px;
        border-radius: 14px;
    }

    .bonus-card {
        padding: 8px;
    }

    .bonus-hero {
        min-height: 200px;
    }

    .bonus-right {
        width: 100%;
        padding: 22px;
        text-align: center;
        justify-content: center;
    }

    .bonus-title {
        text-align: center;
    }
}


/* ===== Download / Test ID tiles ===== */
.tiles {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch; /* make all tiles equal height */
}

@media (max-width: 768px) {
    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tiles .tile:nth-child(3) {
        grid-column: 1 / -1;
    }

    /* Test ID spans both */
}

.tile {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 22px 22px 26px;
    text-align: center;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  justify-content: space-between; /* space between top and button */
}

.tile h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1b2a2a;
    position: relative;
    padding-bottom: 12px;
}

/* thin divider line under the title */
.tile h3::after {
    content: "";
    display: block;
    height: 1px;
    background: #e5e7eb;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
}

.meta {
    color: #445;
    margin: 14px 0 20px;
    line-height: 1.5;
}

.meta span {
    font-weight: 500;
}

.meta small {
    color: #6b7280;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* space between icon and text */
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    line-height: 1;
    transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
    color: #fff;
    width: 100%;            /* fill the card's content width */
  max-width: 100%;        /* never overflow */
  justify-content: center;
  box-sizing: border-box; /* include padding in the width calc */
}

.btn-icon {
    width: 20px;
    /* size similar to SVG */
    height: 20px;
    display: block;
}


.btn.android {
    background: #2e7d32;
    /* green */
    box-shadow: 0 4px 10px rgba(46, 125, 50, .25);
}

.tile .btn {
  margin-top: auto; /* push button to the bottom */
}

/* 1) Make both Download buttons line up at the same height */
.tile {
  display: flex;                 /* stack content vertically */
  flex-direction: column;
}
.tile .btn {
  margin-top: auto;              /* push the button to the bottom of each tile */
}

/* 2) Make single-line titles (e.g., "iOS") sit on the same baseline
      as the 2nd line of "APK Download" */

/* 3) Mobile-only: shrink button text (APK + iOS) */
@media (max-width: 480px) {
  .tile .btn.android,
  .tile .btn.ios {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* slightly tighter title box on smaller screens */
  .tile h3 { min-height: 52px; }
}


@media (max-width: 420px){
    .tile { padding: 16px; }
    .tile .btn { padding: 12px 14px; }

    .tile .btn.android {
    font-size: 13px;   /* smaller text */
    }

    .tile .btn.ios {
    font-size: 13px;   /* smaller text */
    }
}

.btn.android:hover {
    transform: translateY(-1px);
}

.btn.ios {
    background: #1976d2;
    /* blue */
    box-shadow: 0 4px 10px rgba(25, 118, 210, .25);
}

.btn.ios:hover {
    transform: translateY(-1px);
}

/* Test credentials block */
.creds {
    display: grid;
    gap: 14px;
    margin-top: 8px;
    color: #111827;
}

.creds span {
    color: #4b5563;
    font-weight: 600;
    margin-right: 6px;
}

.creds b {
    font-weight: 600;
}

/* ===== System Requirements Table ===== */
.requirements {
    max-width: 900px;
    margin: 30px auto;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 15px;
    color: #111;
}

.requirements table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.requirements th,
.requirements td {
    border: 1px solid #000;
    /* solid black borders */
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.requirements th {
    background: #f8f9fa;
    font-weight: 600;
}

.requirements td strong {
    display: block;
    margin-bottom: 4px;
}

/* Mobile version */
@media (max-width: 768px) {
    .requirements {
        max-width: 100%;
        margin: 20px auto;
        font-size: 13px;
        /* was 15px */
        line-height: 1.45;
    }

    .requirements th,
    .requirements td {
        padding: 8px 10px;
        /* was 10px 14px */
    }

    .requirements th {
        font-weight: 600;
        /* keep look, just smaller via font-size */
    }
}

@media (min-width: 360px) {
    .requirements {
        font-size: 11px;
    }
}

/* Optional: make the table even friendlier on small screens */
@media (max-width: 480px) {
  .card .requirements th,
  .card .requirements td {
    padding: 8px 10px;          /* a bit tighter */
  }
}


/* product card header row */
.top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    margin-top: 20px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
}

.rating-file {
    display: flex;
    flex-direction: column;
    /* stack items vertically */
    align-items: flex-start;
    /* left-align */
    gap: 4px;
    /* space between lines */
}

.product-title {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
}

.stars {
    color: #fbbf24;
    font-size: 14px;
}

.rating-value {
    color: #444;
    font-size: 13px;
}

.file-size {
    color: #999;
    font-size: 13px;
}

.info-text {
    font-size: 14px;
    color: #222;
}

.info-text p {
    margin: 0 0 4px;
}

.site-footer {
    text-align: center;
    padding: 8px 0;
}

#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #00ab52;
    /* green button */
    color: white;
    border: none;
    width: 50px;
    /* same width */
    height: 50px;
    /* same height */
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(0, 171, 82, 0.7);
    display: none;
    /* hidden by default */
    z-index: 999;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulseGlow 2s infinite;
    /* glowing animation */
}

/* Hover lift effect */
#backToTop:hover {
    transform: translateY(-2px);
}

/* Glow animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 171, 82, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 171, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 171, 82, 0);
    }
}

/* --- MOBILE ONLY TWEAKS --- */
@media (max-width: 768px) {

  /* Align buttons across tiles by pushing them to the bottom */
  .tile { 
    display: flex;
    flex-direction: column;
  }
  .tile .btn {
    margin-top: auto;
  }

  /* Make the single-line "iOS" title align with the second line of "APK Download" */
  .tile h3{
    display: flex;
    align-items: flex-end;   /* bottom-align the text inside the fixed title box */
    justify-content: center;
    line-height: 1.2;
    min-height: 52px;        /* room for two lines at current size */
  }

  /* Smaller button text on phones for APK + iOS */
  .tile .btn.android,
  .tile .btn.ios {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Keep the requirements table inside the card on mobile only */
  .card .requirements { 
    overflow-x: auto;
  }
  .card .requirements table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;     /* wraps columns neatly on small screens */
    border-collapse: collapse;
  }
  .card .requirements th,
  .card .requirements td {
    white-space: normal;
    word-break: break-word;
  }
}
