/* About eMASIR — isolated page styles (ab-*) */

.ab-wrap {
    width: min(1240px, calc(100% - 2rem));
    margin-inline: auto;
}

.ab-section {
    padding: 3.5rem 0;
}

.ab-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.ab-head h2 {
    margin: 0;
    color: var(--emasir-navy, #0e2740);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.5;
}

.ab-head p {
    margin: 0.75rem 0 0;
    color: var(--emasir-muted, #5d6b78);
    line-height: 1.85;
    font-size: 1rem;
}

.ab-head--on-dark h2 {
    color: #fff;
}

.ab-head--on-dark p {
    color: #c5d4e4;
}

.ab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: #e8f0fe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.ab-eyebrow i {
    font-size: 0.78rem;
}

.ab-eyebrow--on-dark {
    background: rgba(34, 164, 90, 0.18);
    color: #8ef0b0;
    border-color: rgba(142, 240, 176, 0.35);
}

/* Hero — same photo treatment as Index */
.ab-hero {
    position: relative;
    padding: 3.25rem 0 3rem;
    overflow: hidden;
}

.ab-hero--photo {
    min-height: min(72vh, 640px);
    display: flex;
    align-items: center;
    color: #f4f8fc;
}

.ab-hero__bg {
    position: absolute;
    inset: 0;
    background:
        url("../../img/landing/hero-bg.jpg") 18% center / cover no-repeat;
    transform: scaleX(-1) scale(1.04);
}

.ab-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(6, 18, 32, 0.08) 0%,
            rgba(6, 18, 32, 0.18) 34%,
            rgba(6, 18, 32, 0.52) 68%,
            rgba(6, 18, 32, 0.72) 100%
        ),
        linear-gradient(180deg, rgba(6, 18, 32, 0.12) 0%, transparent 42%, rgba(6, 18, 32, 0.28) 100%);
    pointer-events: none;
}

.ab-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
}

@media (min-width: 981px) {
    .ab-hero--photo .ab-hero__grid {
        transform: translateX(clamp(2.25rem, 6.5vw, 5.75rem));
    }

    .ab-hero--photo .ab-hero__bg {
        background-position: 12% center;
    }
}

.ab-hero__copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3.2vw, 2.55rem);
    font-weight: 800;
    line-height: 1.45;
    max-width: 22ch;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.ab-hero__lead {
    margin: 1rem 0 0;
    color: #d7e3ef;
    font-size: 1.08rem;
    line-height: 1.85;
    max-width: 36rem;
}

.ab-hero__strong {
    margin: 0.85rem 0 0;
    color: #6ee7a0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.7;
}

.ab-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.ab-hero__visual {
    position: relative;
    min-height: 16rem;
}

.ab-mock {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.ab-mock img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ab-mock--desktop {
    width: 100%;
}

.ab-mock--phone {
    position: absolute;
    width: 34%;
    max-width: 10.5rem;
    inset-inline-start: -0.35rem;
    bottom: -0.85rem;
}

.ab-mock--phone-solo {
    width: min(14rem, 70%);
    margin-inline: auto;
}

/* Why */
.ab-why {
    background: #fff;
}

.ab-why__inner {
    max-width: 46rem;
}

.ab-quote {
    margin: 0 auto;
    max-width: 38rem;
    padding: 1.35rem 1.4rem;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
    background:
        linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.06);
}

.ab-quote p {
    margin: 0;
    color: #1e3a8a;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
}

/* Capabilities */
.ab-caps {
    background: #f0f4f8;
}

.ab-cap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ab-cap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--emasir-line, #e3e8ee);
    border-radius: 14px;
    padding: 1.2rem 1.1rem 1.25rem;
    box-shadow: 0 8px 22px rgba(14, 39, 64, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ab-cap:hover {
    transform: translateY(-0.2rem);
    border-color: #bfdbfe;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08);
}

.ab-cap__ico {
    grid-column: 1;
    grid-row: 1;
    width: 2.45rem;
    height: 2.45rem;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #e8f0fe;
    color: #1d4ed8;
    font-size: 1rem;
}

.ab-cap h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: var(--emasir-navy, #0e2740);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
}

.ab-cap p {
    grid-column: 1 / -1;
    margin: 0.65rem 0 0;
    color: var(--emasir-muted, #5d6b78);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Timeline */
.ab-flow {
    background: #fff;
}

.ab-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    position: relative;
}

.ab-timeline::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    inset-inline: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #bfdbfe, #93c5fd 50%, #bfdbfe);
    z-index: 0;
}

.ab-timeline__item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    padding: 0 0.25rem;
}

.ab-timeline__num {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #3b82f6;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.ab-timeline__item strong {
    color: var(--emasir-navy, #0e2740);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
}

/* Driver */
.ab-driver {
    background: #f4f7fb;
}

.ab-driver__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
    align-items: center;
}

.ab-driver__copy h2 {
    margin: 0;
    color: var(--emasir-navy, #0e2740);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.5;
}

.ab-driver__copy > p {
    margin: 0.85rem 0 0;
    color: var(--emasir-muted, #5d6b78);
    line-height: 1.85;
}

.ab-check {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.ab-check li {
    position: relative;
    padding-inline-start: 1.6rem;
    color: var(--emasir-ink, #1c2834);
    font-weight: 600;
    font-size: 0.95rem;
}

.ab-check li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset-inline-start: 0;
    color: #16a34a;
}

/* Benefits */
.ab-benefit {
    background: #fff;
}

.ab-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ab-benefit-card {
    background: #f8fafc;
    border: 1px solid var(--emasir-line, #e3e8ee);
    border-radius: 16px;
    padding: 1.45rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ab-benefit-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(14, 39, 64, 0.06);
}

.ab-benefit-card > i {
    color: #2563eb;
    font-size: 1.25rem;
}

.ab-benefit-card h3 {
    margin: 0.75rem 0 0;
    color: var(--emasir-navy, #0e2740);
    font-size: 1.08rem;
    font-weight: 800;
}

.ab-benefit-card p {
    margin: 0.5rem 0 0;
    color: var(--emasir-muted, #5d6b78);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* Security */
.ab-secure {
    padding: 3.5rem 0;
    background:
        radial-gradient(700px 240px at 80% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
        linear-gradient(165deg, #0e2740 0%, #163554 100%);
    color: #e8eef5;
}

.ab-secure-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.ab-secure-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.2rem 1.05rem;
}

.ab-secure-item > i {
    color: #67e8f9;
    font-size: 1.15rem;
}

.ab-secure-item h3 {
    margin: 0.7rem 0 0;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
}

.ab-secure-item p {
    margin: 0.45rem 0 0;
    color: #b7c6d6;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Final CTA */
.ab-final {
    padding: 3.25rem 0;
    background:
        radial-gradient(640px 220px at 50% 0%, rgba(34, 164, 90, 0.16), transparent 60%),
        linear-gradient(160deg, #0e2740 0%, #163554 100%);
    text-align: center;
}

.ab-final__inner {
    max-width: 40rem;
}

.ab-final__inner h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.5;
}

.ab-final__inner > p {
    margin: 0.85rem 0 0;
    color: #d5e0eb;
    line-height: 1.85;
}

.ab-final__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.45rem;
}

.ab-final__tag {
    margin: 1.1rem 0 0;
    color: #8aa0b6;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Reveal */
.ab-reveal {
    opacity: 0;
    transform: translateY(0.85rem);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    transition-delay: calc(var(--ab-delay, 0) * 60ms);
}

.ab-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ab-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 980px) {
    .ab-hero--photo {
        min-height: 0;
        padding: 2.25rem 0 2rem;
    }

    .ab-hero__shade {
        background:
            linear-gradient(
                180deg,
                rgba(6, 18, 32, 0.22) 0%,
                rgba(6, 18, 32, 0.28) 48%,
                rgba(6, 18, 32, 0.58) 100%
            );
    }

    .ab-hero__bg {
        background-position: 38% center;
    }

    .ab-hero__grid,
    .ab-driver__grid {
        grid-template-columns: 1fr;
    }

    .ab-cap-grid,
    .ab-benefit-grid,
    .ab-secure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem 0.65rem;
    }

    .ab-timeline::before {
        display: none;
    }

    .ab-mock--phone {
        position: relative;
        inset: auto;
        width: min(10rem, 40%);
        margin: -2rem auto 0;
    }

    .ab-hero__copy h1 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .ab-section,
    .ab-secure,
    .ab-final {
        padding: 2.5rem 0;
    }

    .ab-hero {
        padding: 2rem 0 2.25rem;
        text-align: center;
    }

    .ab-hero__cta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 28rem;
        margin-inline: auto;
    }

    .ab-hero__cta .ld-btn {
        width: 100%;
        min-height: 2.85rem;
        padding-inline: 0.65rem;
    }

    .ab-hero__lead,
    .ab-hero__strong {
        margin-inline: auto;
    }

    .ab-cap-grid,
    .ab-benefit-grid {
        grid-template-columns: 1fr;
    }

    .ab-secure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-timeline {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 22rem;
        margin-inline: auto;
    }

    .ab-timeline__item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: start;
        gap: 0.85rem;
        padding: 0.7rem 0;
        border-inline-start: 2px solid #bfdbfe;
        padding-inline-start: 1rem;
        margin-inline-start: 1.05rem;
    }

    .ab-timeline__num {
        margin-inline-start: -2.2rem;
        flex: 0 0 auto;
    }

    .ab-driver__copy {
        text-align: start;
    }

    .ab-final__cta {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 22rem;
        margin-inline: auto;
    }

    .ab-final__cta .ld-btn {
        width: 100%;
        min-height: 2.85rem;
    }

}

@media (max-width: 420px) {
    .ab-hero__cta {
        grid-template-columns: 1fr;
    }

    .ab-secure-grid {
        grid-template-columns: 1fr;
    }
}
