/* MailPac landing page only (app/Views/front_end/landing_view.php). Loaded after site.css,
   which holds the shared tokens, header, footer, buttons and bands. */

.mp-section--banner { padding: 88px 0 0; }

/* ------------------------------------------------------------------ hero */
.mp-hero {
    position: relative;
    padding: 72px 0 150px;
    text-align: center;
}
.mp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 500;
}
.mp-hero__eyebrow i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mp-pink);
    box-shadow: 0 0 0 4px rgba(246, 8, 173, 0.25);
}
.mp-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(34px, 5.4vw, 60px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.mp-hero h1 span {
    /* a real underline, so it follows the phrase when it wraps onto two lines */
    text-decoration: underline;
    text-decoration-color: var(--mp-pink);
    text-decoration-thickness: 6px;
    text-underline-offset: 12px;
    text-decoration-skip-ink: none;
}
.mp-hero__sub {
    max-width: 680px;
    margin: 26px auto 0;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}
.mp-hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

/* -------------------------------------------- quick actions (overlap) */
.mp-quick {
    position: relative;
    z-index: 3;
    margin-top: -92px;
}
.mp-quick__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
}
.mp-quick__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px 22px;
    border-radius: var(--mp-radius);
    background: var(--mp-white);
    border: 2px solid transparent;
    box-shadow: var(--mp-shadow-lg);
    text-align: center;
    text-decoration: none;
    color: var(--mp-blue);
    font-weight: 600;
    font-size: 15px;
    transition: transform .2s ease, border-color .2s ease;
}
.mp-quick__card:hover { transform: translateY(-4px); border-color: var(--mp-blue); }
.mp-quick__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--mp-sky);
    color: var(--mp-blue);
    transition: background-color .2s ease, color .2s ease;
}
.mp-quick__card:hover .mp-quick__icon { background: var(--mp-pink); color: var(--mp-white); }
.mp-quick__icon svg { width: 32px; height: 32px; }
.mp-quick__card small {
    display: block;
    margin-top: -6px;
    font-size: 13px;
    font-weight: 400;
    color: var(--mp-muted);
}
/* ------------------------------------------------------------- benefits */
.mp-benefits {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
}
.mp-benefit { text-align: center; padding: 8px 6px; }
.mp-benefit__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--mp-sky);
    color: var(--mp-blue);
    position: relative;
}
.mp-benefit__icon::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mp-pink);
    border: 3px solid var(--mp-white);
}
.mp-benefit__icon svg { width: 32px; height: 32px; }
.mp-benefit h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--mp-blue); }
.mp-benefit p { margin-top: 8px; font-size: 15px; color: var(--mp-muted); }

/* ------------------------------------------------------------- steps */
.mp-steps { display: grid; gap: 88px; }
.mp-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}
.mp-step:nth-child(even) .mp-step__art { order: 2; }
.mp-step__art {
    position: relative;
    border-radius: var(--mp-radius-lg);
    background: var(--mp-sky);
    aspect-ratio: 5 / 4;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.mp-step__art::before {
    content: "";
    position: absolute;
    width: 46%;
    aspect-ratio: 1;
    right: -12%;
    bottom: -14%;
    border-radius: 50%;
    background: rgba(246, 8, 173, 0.12);
}
.mp-step__art svg { position: relative; width: 78%; height: auto; }
.mp-step__num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--mp-pink);
    color: var(--mp-white);
    font-weight: 700;
    font-size: 18px;
}
.mp-step h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--mp-blue);
}
.mp-step p { margin-top: 16px; font-size: 17px; color: var(--mp-muted); max-width: 470px; }
.mp-step ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.mp-step li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    color: var(--mp-ink);
}
.mp-step li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mp-pink-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F608AD' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.mp-step__cta { margin-top: 28px; }

/* ------------------------------------------------------------- calculator banner */
.mp-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 52px 56px;
    border-radius: var(--mp-radius-lg);
    background: linear-gradient(120deg, var(--mp-blue) 0%, #2A2FB0 55%, var(--mp-pink) 130%);
    color: var(--mp-white);
    box-shadow: var(--mp-shadow-lg);
}
.mp-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.3px, transparent 1.5px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.mp-banner > * { position: relative; }
.mp-banner h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.2; }
.mp-banner p { margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, 0.88); }
.mp-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ------------------------------------------------------------- stores */
.mp-stores {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.mp-store {
    display: grid;
    place-items: center;
    min-height: 76px;
    padding: 12px;
    border-radius: 14px;
    background: var(--mp-white);
    border: 1px solid var(--mp-line);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--mp-blue);
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.mp-store:hover { border-color: var(--mp-pink); box-shadow: 0 8px 20px rgba(246, 8, 173, 0.12); }
.mp-stores__note { margin-top: 22px; text-align: center; font-size: 15px; color: var(--mp-muted); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .mp-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
    .mp-stores { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
    .mp-hero { padding: 48px 0 130px; }
    .mp-quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .mp-section--banner { padding-top: 64px; }
    .mp-step { grid-template-columns: 1fr; gap: 32px; }
    .mp-step:nth-child(even) .mp-step__art { order: 0; }
    .mp-steps { gap: 64px; }
    .mp-banner { grid-template-columns: 1fr; padding: 40px 28px; }
    .mp-banner__actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .mp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
    .mp-benefit h3 { font-size: 17px; }
    .mp-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp-quick__card { padding: 20px 10px; font-size: 14px; }
    .mp-quick__icon { width: 54px; height: 54px; }
    .mp-hero h1 span { text-decoration-thickness: 4px; text-underline-offset: 9px; }
    .mp-benefit:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
