*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; }
html, body { overflow-x: clip; max-width: 100%; }

:root {
    --primary:        var(--color-primary);
    --primary-dark:   var(--color-primary-dark);
    --primary-shadow: var(--color-primary-glow);
    --text:           var(--color-text-navy);
    --text-muted:     var(--color-text-muted);
    --white:          var(--color-surface);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Page layout ── */
body {
    font-family: 'Poppins', Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    background: url(../images/bg-access.svg) center / cover no-repeat;
    display: flex;
    flex-direction: column;
}

/* ─────────────────────────────────────────
   BRAND PANEL (left / top)
───────────────────────────────────────── */
.brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2.4rem 2.4rem;
    animation: fadeUp 0.6s ease both;
    text-align: center;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.logo_image {
    width: 9rem;
    height: 9rem;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
}

.logo_text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sawa {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text);
    line-height: 1;
}

.sawa_arab {
    font-family: 'Cairo', 'Poppins', Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    direction: rtl;
}

.sawa_text {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Value proposition */
.value-prop {
    font-size: 1.5rem;
    color: var(--text);
    line-height: 1.65;
    margin-top: 1.6rem;
    max-width: 34rem;
}

.value-prop strong {
    color: var(--primary);
}

/* Feature list */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 36rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    text-align: left;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 1.2rem;
    padding: 1.2rem 1.4rem;
}

.feature-icon {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 1.8rem;
    height: 1.8rem;
    stroke: var(--primary);
}

.feature-item h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.feature-item p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ─────────────────────────────────────────
   TESTIMONIAL ROTATOR (social proof)
───────────────────────────────────────── */
.testimonial-rotator {
    width: 100%;
    max-width: 36rem;
    margin-top: 1.8rem;
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 1.4rem;
    padding: 1.6rem 1.6rem 1.2rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.testimonial-slides {
    position: relative;
    min-height: 11rem;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.testimonial-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.testimonial-quote-mark {
    width: 1.8rem;
    height: 1.8rem;
    color: var(--primary);
    opacity: 0.55;
}

.testimonial-slide blockquote {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text);
    font-style: italic;
    margin: 0;
}

.testimonial-slide figcaption {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-slide figcaption span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.testimonial-slide figcaption strong {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 700;
}

.testimonial-slide figcaption small {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.testimonial-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.18);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.testimonial-dot:hover {
    background: rgba(15, 23, 42, 0.32);
}

.testimonial-dot.is-active {
    background: var(--primary);
    transform: scale(1.25);
}

/* ─────────────────────────────────────────
   ACTION CARD (right / bottom)
───────────────────────────────────────── */
.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 2.4rem 2.4rem 0;
    animation: fadeUp 0.6s 0.15s ease both;
}

.card-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.card-sub {
    font-size: 1.4rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 28rem;
    line-height: 1.5;
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 32rem;
}

.button_signup,
.button_login {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    min-height: 5.2rem;
    border-radius: 9999px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

/* Sign Up = primary (filled) */
.button_signup {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 16px var(--primary-shadow);
}
.button_signup:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-shadow);
}

/* Log In = outlined */
.button_login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.button_login:hover {
    background: rgba(37, 99, 235, 0.07);
    transform: translateY(-1px);
}

/* Trust line */
.trust-line {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.85;
    letter-spacing: 0.01em;
}

/* Guest link */
.link_visitors {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.link_visitors:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ── Footer (inside action-card) ── */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.6rem 0 1.6rem;
    margin-top: auto;
    width: 100%;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.social-links a {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.social-links a:hover {
    transform: scale(1.12);
    background: rgba(255,255,255,0.75);
}
.social-links img { display: block; }

.footer p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ── About info button (fixed top-right) ── */
.info-btn {
    position: fixed;
    top: 1.6rem;
    right: 1.6rem;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 100;
}
.info-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.18);
}

/* Popover */
#info_popover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(30rem, calc(100vw - 3.2rem));
    background: #fff;
    border-radius: 1.4rem;
    padding: 2.4rem 2rem 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text);
}

.popover-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.15s;
}
.popover-close:hover { background: #e2e8f0; }

.popover-head {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

/* ─────────────────────────────────────────
   TABLET (≥768px) — side by side
───────────────────────────────────────── */
@media (min-width: 768px) {
    body {
        flex-direction: row;
        min-height: 100vh;
        overflow-y: auto;
    }

    .brand-panel {
        flex: 1;
        justify-content: center;
        padding: 4rem 3.2rem;
        min-height: 100vh;
    }

    .action-card {
        width: 40rem;
        flex-shrink: 0;
        min-height: 100vh;
        justify-content: center;
        padding: 4rem 3.6rem;
        background: rgba(255,255,255,0.28);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-left: 1px solid rgba(255,255,255,0.5);
        box-shadow: -12px 0 40px rgba(0,0,0,0.08);
    }

    .footer {
        margin-top: auto;
        padding-bottom: 2rem;
    }
}

/* ─────────────────────────────────────────
   DESKTOP (≥1024px) — wider brand panel
───────────────────────────────────────── */
@media (min-width: 1024px) {
    .logo_image { width: 12rem; height: 12rem; }
    .sawa { font-size: 5rem; }
    .sawa_arab { font-size: 3.2rem; }
    .value-prop { font-size: 1.7rem; max-width: 40rem; }

    .action-card {
        width: 44rem;
        padding: 4rem 4.8rem;
    }
}
