/* Microsoft 365 landing page */

.m365-page {
    --m365-navy: #07111f;
    --m365-navy-2: #0b1c33;
    --m365-blue: #00aeef;
    --m365-blue-deep: #0a84ff;
    --m365-ink: #102033;
    --m365-muted: rgba(232, 242, 250, 0.82);
}

.m365-page .container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

/* -- Hero -- */
.m365-hero {
    position: relative;
    isolation: isolate;
    min-height: min(78vh, 42rem);
    display: grid;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: #06101c;
}

.m365-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.m365-hero__media img,
.m365-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    transform: scale(1.04);
}

.m365-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 12, 24, 0.92) 0%, rgba(4, 12, 24, 0.72) 42%, rgba(4, 12, 24, 0.28) 72%, rgba(4, 12, 24, 0.45) 100%),
        linear-gradient(180deg, rgba(4, 12, 24, 0.15) 0%, rgba(4, 12, 24, 0.55) 100%);
}

.m365-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 1.75rem;
    padding: clamp(5rem, 11vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .m365-hero__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
        gap: 2rem;
        align-items: center;
    }
}

.m365-hero__copy {
    max-width: 34rem;
}

.m365-hero__eyebrow {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--m365-blue);
}

.m365-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.m365-hero__lead {
    margin: 1rem 0 0;
    max-width: 32rem;
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
    line-height: 1.55;
    color: var(--m365-muted);
}

.m365-hero__visual {
    display: none;
    justify-self: end;
    width: min(100%, 26rem);
    padding: 1rem;
    border-radius: 20px;
    background: rgba(5, 12, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    animation: m365-float 5.5s ease-in-out infinite;
}

@media (min-width: 900px) {
    .m365-hero__visual {
        display: block;
    }
}

.m365-hero__visual img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes m365-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* -- Intro / free setup -- */
.m365-intro {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #fff;
}

.m365-intro__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 860px) {
    .m365-intro__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
        gap: 3rem;
    }
}

.m365-intro__eyebrow {
    margin: 0 0 0.55rem;
    color: var(--m365-blue-deep);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.m365-intro h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--m365-blue-deep);
    line-height: 1.15;
}

.m365-intro p {
    margin: 0.9rem 0 0;
    max-width: 34rem;
    color: #4b6075;
    font-size: 1.05rem;
    line-height: 1.55;
}

.m365-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.m365-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.85rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.m365-btn:hover {
    transform: translateY(-1px);
}

.m365-btn--primary {
    background: linear-gradient(180deg, #2aa8ff 0%, #0a84ff 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.28);
}

.m365-btn--ghost {
    border: 1.5px solid #c9d7e6;
    background: #fff;
    color: #31485f;
}

.m365-btn--ghost:hover {
    border-color: #0a84ff;
    color: #0a84ff;
}

.m365-btn--light {
    background: #fff;
    color: var(--m365-navy);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.m365-btn--light:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.m365-intro__logo {
    justify-self: center;
    width: min(100%, 22rem);
}

.m365-intro__logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* -- Benefits cards (mock layout) -- */
.m365-benefits {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(0, 174, 239, 0.08), transparent 70%),
        #f7fbff;
}

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

.m365-benefits__eyebrow {
    margin: 0 0 0.7rem;
    color: #0a84ff;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.m365-benefits__intro h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #0b1c2c;
}

.m365-benefits__intro h2 span {
    color: #0a84ff;
}

.m365-benefits__intro > p {
    margin: 0.85rem auto 0;
    max-width: 34rem;
    color: #5b6f86;
    font-size: 1.05rem;
    line-height: 1.55;
}

.m365-benefit-card {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.35rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(180, 210, 235, 0.55);
    box-shadow:
        0 18px 40px rgba(20, 60, 110, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

@media (min-width: 900px) {
    .m365-benefit-card {
        grid-template-columns: minmax(0, 1.05fr) minmax(14rem, 0.95fr);
        gap: 2rem;
        padding: 2.1rem 2.2rem;
    }

    .m365-benefit-card--flip .m365-benefit-card__copy {
        order: 2;
    }

    .m365-benefit-card--flip .m365-benefit-card__media {
        order: 1;
    }
}

.m365-benefit-card__step {
    margin: 0 0 0.85rem;
}

.m365-benefit-card__step span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #0a84ff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.m365-benefit-card__step span::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0a84ff, rgba(10, 132, 255, 0.15));
}

.m365-benefit-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.8vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0b1c2c;
    line-height: 1.15;
}

.m365-benefit-card__lead {
    margin: 0.7rem 0 0;
    max-width: 30rem;
    color: #5b6f86;
    font-size: 1.02rem;
    line-height: 1.55;
}

.m365-benefit-list {
    list-style: none;
    margin: 1.35rem 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.95rem;
}

.m365-benefit-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.m365-benefit-list__icon {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background: #e8f5ff;
    color: #0a84ff;
    flex-shrink: 0;
}

.m365-benefit-list strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #0b1c2c;
    font-size: 0.98rem;
}

.m365-benefit-list span span {
    display: block;
    color: #5b6f86;
    font-size: 0.92rem;
    line-height: 1.45;
}

.m365-benefit-card__media {
    display: grid;
    place-items: center;
    min-height: 12rem;
    padding: 1rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 25%, rgba(0, 174, 239, 0.12), transparent 55%),
        linear-gradient(160deg, #f3f9ff 0%, #eaf4ff 100%);
}

.m365-benefit-card__media img {
    width: min(100%, 28rem);
    height: auto;
    display: block;
}

.m365-benefit-card__media--photo {
    padding: 0;
    overflow: hidden;
    background: #0b1c2c;
}

.m365-benefit-card__media--photo img {
    width: 100%;
    height: 100%;
    min-height: 14rem;
    max-height: 22rem;
    object-fit: cover;
}

@media (min-width: 900px) {
    .m365-benefit-card__media--photo img {
        min-height: 18rem;
        max-height: none;
        aspect-ratio: 5 / 4;
    }
}

.m365-benefit-card__media--secure {
    position: relative;
}

.m365-benefit-card__media--secure::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(7, 20, 40, 0.15), rgba(7, 20, 40, 0.45)),
        radial-gradient(circle at 70% 40%, rgba(0, 174, 239, 0.28), transparent 55%);
    pointer-events: none;
}

/* -- Packages -- */
.m365-packages {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #f5f9fc;
}

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

.m365-packages__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--m365-ink);
}

.m365-packages__head p {
    margin: 0.75rem 0 0;
    color: #4b6075;
    font-size: 1.02rem;
    line-height: 1.5;
}

.m365-packages__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 800px) {
    .m365-packages__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.m365-plan {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1.35rem 1.25rem 1.4rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dce8f3;
    box-shadow: 0 10px 28px rgba(16, 40, 70, 0.05);
}

.m365-plan--featured {
    border-color: rgba(10, 132, 255, 0.45);
    box-shadow: 0 16px 36px rgba(10, 132, 255, 0.12);
}

.m365-plan__tag {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #e8f5ff;
    color: #0a84ff;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.m365-plan h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--m365-ink);
}

.m365-plan__price {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--m365-ink);
}

.m365-plan__price small {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667085;
}

.m365-plan ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.m365-plan li {
    position: relative;
    padding-left: 1.25rem;
    color: #4b6075;
    font-size: 0.95rem;
    line-height: 1.4;
}

.m365-plan li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #12b76a;
}

/* -- Support -- */
.m365-support {
    padding: clamp(3rem, 6vw, 4.75rem) 0;
    background: #081b30;
    color: #fff;
}

.m365-support__head {
    max-width: 40rem;
    margin: 0 0 1.85rem;
    text-align: left;
}

.m365-support__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.m365-support__head p {
    margin: 0.7rem 0 0;
    color: rgba(220, 232, 245, 0.82);
    font-size: 1.05rem;
}

.m365-support__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 800px) {
    .m365-support__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.m365-support-card {
    padding: 1.45rem 1.3rem 1.5rem;
    border-radius: 14px;
    background: #fff;
    border: 0;
    box-shadow: 0 10px 28px rgba(2, 12, 28, 0.18);
}

.m365-support-card__icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #e8f6fc;
    color: #00aeef;
}

.m365-support-card h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 800;
    color: #0b1c2c;
}

.m365-support-card p {
    margin: 0;
    color: #4a5d73;
    font-size: 0.95rem;
    line-height: 1.55;
}

.m365-support__more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem 1.5rem;
    margin-top: 1.35rem;
    padding: 1.35rem 1.45rem;
    border: 1px solid rgba(90, 140, 190, 0.35);
    border-radius: 14px;
    background: transparent;
}

.m365-support__more-copy {
    flex: 1 1 16rem;
    min-width: 0;
    max-width: 38rem;
}

.m365-support__more-copy h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.m365-support__more-copy p {
    margin: 0.45rem 0 0;
    color: rgba(220, 232, 245, 0.82);
    font-size: 0.98rem;
    line-height: 1.5;
}

.m365-support__more-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* -- More info (legacy class kept unused) -- */
.m365-more {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background: #06101c;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.m365-more__inner {
    max-width: 42rem;
}

.m365-more__eyebrow {
    margin: 0 0 0.55rem;
    color: var(--m365-blue);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.m365-more h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.m365-more p {
    margin: 0.85rem 0 0;
    color: var(--m365-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.m365-more__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.m365-more__note {
    margin-top: 1.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(196, 214, 232, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .m365-hero__visual,
    .m365-band--secure .m365-band__icon,
    .m365-btn {
        animation: none;
        transition: none;
    }
}
