:root {
    --brand-900: #0f1e3a;
    --brand-800: #1f2d4d;
    --brand-700: #1d685d;
    --brand-600: #2ea892;
    --brand-500: #59c2b1;
    --soft-bg: #f3f5f9;
    --muted: #5d6d86;
    --card: #ffffff;
    --line: #e5ebf6;
    --shadow: 0 20px 55px rgba(15, 30, 58, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    font-family: 'Cairo', sans-serif;
    background:
        radial-gradient(circle at 8% 12%, rgba(89, 194, 177, .18), transparent 28rem),
        radial-gradient(circle at 92% 32%, rgba(210, 167, 93, .14), transparent 24rem),
        linear-gradient(135deg, #f8fbfc 0%, #eef4f8 48%, #f5f1e9 100%) !important;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: .6;
    background:
        linear-gradient(125deg, transparent 0 42%, rgba(255, 255, 255, .5) 42.2% 42.4%, transparent 42.6%),
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, .85), transparent 30rem);
}

main {
    text-align: center;
}

main ul {
    text-align: right;
}

main form {
    text-align: right;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-link {
    position: relative;
    color: #475569;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1f2d4d;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: -12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d685d, #59c2b1);
}

.hero-bg {
    background: linear-gradient(180deg, #f0f1f5 0%, #eef2f7 100%);
}

.phone-stack {
    position: relative;
    height: 540px;
}

.phone {
    position: absolute;
    width: 210px;
    height: 460px;
    border-radius: 36px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 3px solid rgba(29, 78, 216, 0.25);
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, z-index 0s;
}

.phone.one { left: 10px; top: 30px; transform: rotate(-8deg); }
.phone.two { left: 190px; top: 0; transform: rotate(0deg); }
.phone.three { left: 360px; top: 40px; transform: rotate(8deg); }

.phone:hover,
.phone:focus-within {
    z-index: 20;
    box-shadow: 0 28px 60px rgba(15, 30, 58, .24);
}

.phone.one:hover,
.phone.one:focus-within { transform: translateY(-18px) rotate(-8deg) scale(1.08); }
.phone.two:hover,
.phone.two:focus-within { transform: translateY(-24px) scale(1.08); }
.phone.three:hover,
.phone.three:focus-within { transform: translateY(-18px) rotate(8deg) scale(1.08); }

@media (max-width: 767px) {
    .phone-stack {
        width: 390px;
        height: 370px;
        margin: 0 auto;
        transform: scale(.68);
        transform-origin: top center;
    }
}

.phone-header {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    color: #475569;
}

.phone-body {
    padding: 16px 14px;
    background: linear-gradient(180deg, #ffffff, #f5f8ff);
    height: calc(100% - 46px);
}

.card-mini {
    background: #ffffff;
    border: 1px solid #edf2ff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 30, 58, 0.06);
}

.stat-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(45, 168, 146, 0.12), rgba(89, 194, 177, 0.06));
    color: #0f1e3a;
    font-size: 12px;
    font-weight: 700;
}

.progressbar {
    position: relative;
    height: 10px;
    width: 100%;
    border-radius: 999px;
    background: #edf1f8;
    overflow: hidden;
}

.progressbar > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 85%;
    background: linear-gradient(90deg, #1d685d, #59c2b1);
    border-radius: inherit;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 1.25rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(29, 104, 93, 0.12), rgba(89, 194, 177, 0.08));
    box-shadow: inset 0 0 0 1px rgba(29, 104, 93, 0.08);
}

.feature-card {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 30, 58, 0.08);
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 20px rgba(15, 30, 58, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 30, 58, 0.08);
    border-color: rgba(45, 168, 146, 0.3);
}

.whatsapp-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 3.25rem;
    padding: .65rem 1rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: .875rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .32);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.whatsapp-float:hover {
    background: #1fba59;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(37, 211, 102, .4);
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    width: 1.65rem;
    height: 1.65rem;
}

@media (max-width: 640px) {
    .whatsapp-float {
        right: max(.75rem, env(safe-area-inset-right));
        bottom: max(.75rem, env(safe-area-inset-bottom));
        min-height: 3rem;
        padding: .6rem .75rem;
    }

    .whatsapp-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
}

.logo-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-card img {
    max-height: 52px;
    max-width: 170px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.82;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.logo-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

.partners-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.partners-scroll::-webkit-scrollbar {
    display: none;
}

.partners-scroll.is-dragging {
    cursor: grabbing;
}

.partners-scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.partners-scroll-wrap .partners-scroll {
    flex: 1;
    min-width: 0;
}

.partners-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ffffff;
    color: #1d685d;
    font-size: 1.5rem;
    line-height: 1;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 20px rgba(15, 30, 58, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.partners-nav:hover {
    background: #edf9f7;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 30, 58, 0.12);
}

.partners-scroll-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding-bottom: .5rem;
}

.partner-logo-card {
    flex: 0 0 auto;
    width: 160px;
    min-height: 63px;
    padding: 0.7rem;
}

.partner-logo-card img {
    max-height: 36px;
    max-width: 119px;
}


.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 170px;
    padding: 0.9rem 1.5rem;
    border-radius: 18px;
    font-weight: 800;
    background: #0b1220;
    color: white;
    box-shadow: 0 14px 30px rgba(15, 30, 58, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 30, 58, 0.2);
}

.app-btn.primary {
    background: linear-gradient(135deg, #1d685d, #2ea892);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.9);
    color: #0f1e3a;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 30, 58, 0.08);
}

.page-hero {
    background: linear-gradient(180deg, #f6f7fb, #eef2f9);
}

.section-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    color: #0f1e3a;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d685d;
    background: rgba(29, 104, 93, 0.12);
}

.form-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 55px rgba(15, 30, 58, 0.08);
}

@media (max-width: 1024px) {
    .phone-stack {
        transform: scale(0.9);
        transform-origin: top center;
    }
}

@media (max-width: 768px) {
    .phone-stack {
        margin-top: 2rem;
        height: 420px;
        transform: scale(0.78);
    }
}

.policy-modal[hidden] {
    display: none !important;
}

.policy-modal#policy-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.policy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 38, 0.72);
    backdrop-filter: blur(8px);
    animation: policyFadeIn .25s ease both;
}

.policy-modal-dialog {
    position: relative;
    width: min(820px, 100%);
    max-height: min(88vh, 820px);
    overflow-y: auto;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid rgba(142, 216, 202, .35);
    border-radius: 30px;
    background: linear-gradient(145deg, #ffffff 0%, #f5fbfa 100%);
    box-shadow: 0 30px 90px rgba(2, 12, 29, .35), 0 0 0 8px rgba(255,255,255,.06);
    animation: policySlideIn .3s cubic-bezier(.2, .8, .2, 1) both;
}

.policy-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #dbe5e5;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    color: #1f2d4d;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.policy-modal-close:hover,
.policy-modal-close:focus-visible {
    background: #1d685d;
    color: white;
    transform: rotate(90deg);
    outline: none;
}

.policy-modal-kicker {
    color: #1d7f72;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.policy-modal-kicker span {
    color: #d2a75d;
}

.policy-modal-dialog h2 {
    margin-top: .65rem;
    color: #0f1e3a;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
}

.policy-modal-content {
    margin-top: 1.5rem;
    color: #52627a;
    font-size: .98rem;
    line-height: 2;
}

.policy-modal-content h3 {
    margin-top: 1.25rem;
    color: #1d685d;
    font-size: 1.15rem;
    font-weight: 900;
}

.policy-modal-content ul {
    margin-top: .5rem;
    padding-right: 1.25rem;
    list-style: disc;
}

.policy-modal-content li::marker {
    color: #2ea892;
}

.policy-modal-full-link {
    display: inline-flex;
    margin-top: 1.5rem;
    color: #1d685d;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.policy-modal-open {
    overflow: hidden;
}

@keyframes policyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes policySlideIn {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
    .policy-modal {
        padding: .75rem;
        align-items: flex-end;
    }

    .policy-modal-dialog {
        max-height: 90vh;
        border-radius: 26px 26px 18px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .policy-modal-backdrop,
    .policy-modal-dialog { animation: none; }
}
