/* ═══════════════════════════════════════════
   WHY MNM — Page Styles
   Inherits base from style.css
   ═══════════════════════════════════════════ */

/* ─── Container with border ─── */
.hero-card {
    border: 2px solid var(--card-border) !important;
    border-radius: 28px !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 100% !important;
    overflow: hidden !important;
}

/* ─── Container ─── */
.why-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 110px 40px 80px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ═══════════════════════════════════════════
   3-COLUMN LAYOUT — Left image | Center text | Right image
   ═══════════════════════════════════════════ */
.why-layout {
    display: grid;
    grid-template-columns: 1.35fr 1.3fr 1.35fr;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* ─── Side Images ─── */
.why-img {
    overflow: visible;
}

.why-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.why-img--left {
    height: auto;
    position: relative;
    top: -60px;
    margin-left: -20px;
    align-self: start;
}

.why-img--left img {
    width: 130%;
    transform: rotate(-2deg);
}

.why-img--left img:hover {
    transform: rotate(0deg) scale(1.04);
}

.why-img--right {
    margin-right: 0;
    display: flex;
    justify-content: flex-end;
}

.why-img--right img {
    transform: rotate(2deg);
}

.why-img--right img:hover {
    transform: rotate(0deg) scale(1.04);
}

.why-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px 0;
    align-self: center;
    /* Center vertically inside grid */
}

/* ─── "why we built MnM" Annotation ─── */
.why-annotation-tag {
    position: absolute;
    top: -34px;
    /* Perfectly floated above title */
    left: -42px;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.why-annotation-text {
    font-family: 'Caveat', cursive;
    font-size: 1.85rem;
    /* Elegant, visually balanced font size */
    font-weight: 500;
    color: var(--accent-blue);
    transform: rotate(-10deg);
    white-space: nowrap;
}

/* ─── Main Title ─── */
.why-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.why-title-line {
    display: inline-block;
    white-space: nowrap;
}

/* ─── Highlight Subtitle ─── */
.why-highlight {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.why-underline {
    text-decoration: underline;
    text-decoration-color: var(--accent-blue);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* ─── Body Description ─── */
.why-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #5d6676;
    /* Warmer, softer text color */
    font-weight: 450;
    max-width: 380px;
    /* Wraps beautifully into 2 lines exactly like the spec image */
}

/* ─── Tagline (Low opacity like landing page trust badge) ─── */
.why-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-light);
    /* Low opacity gray #9ca3af matching 'No sign up required' */
    font-weight: 300;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
}

.tagline-arrow {
    color: var(--text-light);
    font-weight: 300;
}

/* ─── Go Back Button (liquid fill like Get Started) ─── */
.why-footer {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    /* Perfect breathing room below description */
    width: 100%;
}

.btn-go-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: none;
    border: 2px solid var(--accent-blue);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(var(--accent-blue) 0 0) no-repeat calc(200% - var(--p, 0%)) 100% / 200% var(--p, 0.2em);
    transition: 0.3s var(--t, 0s),
        background-position 0.3s calc(0.3s - var(--t, 0s));
    box-shadow: 0 4px 20px rgba(74, 125, 255, 0.3),
        0 1px 4px rgba(74, 125, 255, 0.1);
}

.btn-go-back:hover {
    --p: 100%;
    --t: 0.25s;
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 36px rgba(74, 125, 255, 0.45),
        0 3px 10px rgba(74, 125, 255, 0.2),
        0 0 0 4px rgba(74, 125, 255, 0.1);
}

.btn-go-back:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 16px rgba(74, 125, 255, 0.3);
}

.go-back-arrow {
    font-size: 1.1rem;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
}

.btn-go-back:hover .go-back-arrow {
    transform: translateX(-4px);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ─── 1536px — 15 inch laptops ─── */
@media (max-width: 1536px) {
    .why-img--left {
        top: -30px;
    }

    .why-img--left img {
        width: 110%;
    }
}

/* ─── 1280px — 13/14 inch laptops ─── */
@media (max-width: 1280px) {
    .why-container {
        padding: 100px 32px 70px;
    }

    .why-img--left {
        margin-left: 0;
        position: relative;
        top: -20px;
    }

    .why-img--left img {
        width: 105%;
    }

    .why-img--right {
        margin-right: 0;
    }
}

/* ─── 1024px — Tablet landscape ─── */
@media (max-width: 1024px) {
    .why-container {
        padding: 90px 24px 60px;
    }

    .why-layout {
        grid-template-columns: 1.25fr 1.3fr 1.25fr;
        gap: 8px;
    }

    .why-img--left {
        margin-left: 0;
        position: relative;
        top: -10px;
    }

    .why-img--left img {
        width: 100%;
    }

    .why-img--right {
        margin-right: 0;
    }

    .why-title {
        font-size: clamp(2rem, 3.5vw, 3.4rem);
        letter-spacing: -1px;
    }

    .why-annotation-text {
        font-size: 1.5rem;
    }

    .why-desc {
        font-size: 0.95rem;
    }
}

/* ─── 768px — Tablet portrait: stack vertically ─── */
@media (max-width: 768px) {
    .why-container {
        padding: 80px 20px 40px;
    }

    .why-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Reorder: notes on top, text center, clipboard bottom */
    .why-img--left {
        order: -1;
        margin-left: 0;
        margin-top: 0;
        position: relative;
        top: 0;
        height: auto;
        display: flex;
        justify-content: center;
    }

    .why-img--left img {
        max-width: 85%;
        margin: 0 auto;
    }

    .why-text {
        order: 0;
    }

    .why-img--right {
        order: 1;
        margin-right: 0;
        justify-content: center;
    }

    .why-img--right img {
        max-width: 85%;
        margin: 0 auto;
    }

    .why-title {
        font-size: 2.2rem;
    }

    .why-annotation-tag {
        top: -30px;
        left: -30px;
    }

    .why-annotation-text {
        font-size: 1.3rem;
    }

    .why-highlight {
        font-size: 1rem;
    }

    .why-desc {
        font-size: 0.93rem;
    }

    /* Go back button touch target */
    .btn-go-back {
        min-height: 44px;
        padding: 14px 30px;
    }
}

/* ─── 480px — Phone ─── */
@media (max-width: 480px) {
    .why-container {
        padding: 70px 1.25rem 30px;
    }

    .why-layout {
        max-width: 100%;
        gap: 20px;
    }

    /* Hide the notes cluster on phone */
    .why-img--left {
        display: none;
    }

    .why-text {
        order: 0;
    }

    .why-img--right {
        order: 1;
    }

    .why-img--right img {
        max-width: 90%;
    }

    .why-title {
        font-size: 1.9rem;
    }

    .why-annotation-tag {
        top: -26px;
        left: -16px;
    }

    .why-annotation-text {
        font-size: 1.1rem;
    }

    .why-desc {
        font-size: 0.88rem;
        max-width: 100%;
    }

    .why-tagline {
        font-size: 0.78rem;
    }

    .btn-go-back {
        min-height: 44px;
        font-size: 0.88rem;
        padding: 12px 26px;
    }
}