/* ============================================================
   HOW / WHY PAGE
   Namespace: frag-hom / hom-*
   File: mani-how-ltr.css
   ============================================================ */

.frag-hom {
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --tr: .22s ease;

    font-family: var(--sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.frag-hom a {
    text-decoration: none;
    color: inherit;
}

.hom-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
    padding: 6px 16px;
    background: var(--blue-l);
    border: 1px solid var(--blue-xl);
    border-radius: 100px;
}

.hom-title {
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.5px;
    line-height: 1.2;
    margin: 0 0 16px;
}

.hom-sub {
    font-weight: 600;
    color: var(--slate);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}

/* ── HERO ── */
.hom-hero {
    padding: 96px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.hom-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hom-hero::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(var(--blue-rgb), .2) 0%, transparent 65%);
    pointer-events: none;
}

.hom-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.hom-hero h1 {
    font-weight: 800;
    color: var(--white);
    letter-spacing: -2.5px;
    line-height: 1.06;
    margin: 0 0 22px;
}

.hom-hero h1 em {
    font-style: normal;
}

.hom-hero-sub {
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 40px;
}

.hom-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, .4);
}

.hom-trust-ck {
    color: var(--green);
    margin-inline-end: 5px;
}

/* ── STATS ── */
.hom-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--mist);
    border-bottom: 1px solid var(--mist);
}

.hom-stat {
    padding: 32px 16px;
    text-align: center;
    background: var(--white);
    transition: var(--tr);
}

.hom-stat:hover {
    background: var(--blue-l);
}

.hom-stat-val {
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -1.5px;
    line-height: 1;
}

.hom-stat-lbl {
    font-weight: 600;
    color: var(--silver);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ── VIDEO (inline) ── */
.hom-video-wrap {
    padding: var(--sec-y) 24px;
    text-align: center;
    background: var(--snow);
}

.hom-video-inner {
    max-width: 840px;
    margin: 0 auto;
}

.hom-video-frame {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--mist);
    box-shadow: var(--sh-modal);
    position: relative;
    aspect-ratio: 16/9;
    background: var(--ink);
}

.hom-video-poster {
    position: absolute;
    inset: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hom-video-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hom-play-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hom-video-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, .55);
    z-index: 1;
    transition: .3s;
}

.hom-video-poster:hover::after {
    background: rgba(11, 17, 32, .4);
}

.hom-play-circle {
    width: 72px;
    height: 72px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--tr);
    animation: hom-pulse-ring 2.5s ease-in-out infinite;
}

@keyframes hom-pulse-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(var(--blue-rgb), .4);
    }

    50% {
        box-shadow: 0 0 0 18px rgba(var(--blue-rgb), 0);
    }
}

.hom-video-poster:hover .hom-play-circle {
    transform: scale(1.12);
}

.hom-play-label {
    font-weight: 800;
    color: var(--white);
    opacity: .7;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hom-video-frame iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border: none;
}

/* ── PAIN ── */
.hom-pain-wrap {
    padding: var(--sec-y) 24px;
}

.hom-pain-head {
    text-align: center;
    margin-bottom: 56px;
}

.hom-pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

.hom-pain-card {
    border-radius: var(--r-xl);
    padding: 32px;
    border: 2px solid var(--mist);
    background: var(--snow);
    transition: .28s cubic-bezier(.22, 1, .36, 1);
    position: relative;
    overflow: hidden;
}

.hom-pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.hom-pain-card--old::before {
    background: var(--red);
    transform-origin: left;
}

.hom-pain-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hom-pain-card--old .hom-pain-tag {
    background: var(--red-l);
    color: var(--red);
}

.hom-pain-card--new .hom-pain-tag {
    background: var(--green-xl);
    color: var(--green);
}

.hom-pain-card h3 {
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
    letter-spacing: -.3px;
}

.hom-pain-card p {
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.75;
    margin: 0;
}

.hom-mobile-wrap {
    padding: var(--sec-y) 24px;
    border-bottom: 1px solid var(--mist);
}

.hom-mobile-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hom-mobile-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hom-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
}

.hom-mobile-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--blue-l);
    border: 1px solid var(--blue-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.hom-mobile-img {
    display: flex;
    justify-content: center;
}

.hom-mobile-img img {
    width: 60%;
    border-radius: 24px;
    border: 2px solid var(--mist);
}

.hom-mobile-em {
    font-style: normal;
    color: var(--blue);
}

.hom-mobile-p {
    max-width: 100%;
    margin: 0 0 28px;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.75;
}

@media (max-width: 600px) {
    .hom-mobile-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hom-mobile-wrap {
        padding: 64px 20px;
    }

    .hom-mobile-txt {
        text-align: center;
    }

    .hom-mobile-badges {
        align-items: center;
    }

    .hom-mobile-img img {
        width: 80%;
    }
}

/* ── MODULES ── */
.hom-modules-wrap {
    padding: var(--sec-y) 24px;
    border-bottom: 1px solid var(--mist);
    background: var(--snow);
}

.hom-mods-head {
    text-align: center;
    margin-bottom: 56px;
}

.hom-mod-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

.hom-mod-item {
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 28px 16px;
    text-align: center;
    transition: .25s cubic-bezier(.22, 1, .36, 1);
    cursor: default;
}

.hom-mod-item:hover {
    border-color: var(--blue-xl);
    box-shadow: var(--sh-m);
    transform: translateY(-4px);
}

.hom-mod-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
    transition: .25s;
}

.hom-mod-item:hover img {
    transform: scale(1.08);
}

.hom-mod-item h3 {
    color: var(--ink2);
    margin: 0;
    line-height: 1.4;
}

.hom-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1100px;
    margin: 28px auto 0;
    justify-content: center;
}

.hom-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--white);
    border: 2px solid var(--mist);
    font-weight: 700;
    color: var(--ink2);
    transition: var(--tr);
}

.hom-chip:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-l);
}

.hom-chip i {
    color: var(--green);
}

/* ── CLIENTS ── */
.hom-clients-wrap {
    padding: 80px 0 72px;
    overflow: hidden;
}

.hom-clients-head {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 48px;
}

.hom-clients-cta {
    text-align: center;
    margin-top: 44px;
    padding: 0 24px;
}

/* ── COMPARE ── */
.hom-cmp-wrap {
    padding: var(--sec-y) 24px;
}

.hom-cmp-head {
    text-align: center;
    margin-bottom: 56px;
}

.hom-cmp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
}

.hom-cmp-card {
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: .28s cubic-bezier(.22, 1, .36, 1);
}

.hom-cmp-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hom-cmp-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hom-cmp-icon--blue {
    background: var(--blue-l);
    color: var(--blue-d);
}

.hom-cmp-icon--green {
    background: var(--green-l);
    color: var(--green);
}

.hom-cmp-icon--amber {
    background: var(--amber-l);
    color: var(--amber-d);
}

.hom-cmp-icon--purple {
    background: var(--purple-l);
    color: var(--purple);
}

.hom-cmp-icon--red {
    background: var(--red-l);
    color: var(--red);
}

.hom-cmp-card-name {
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.2px;
}

.hom-cmp-versus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hom-cmp-side {
    border-radius: 12px;
    padding: 12px 14px;
}

.hom-cmp-side--other {
    background: var(--snow);
}

.hom-cmp-side--us {
    background: var(--green-l);
}

.hom-cmp-side-label {
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.hom-cmp-side--other .hom-cmp-side-label {
    color: var(--silver);
}

.hom-cmp-side--us .hom-cmp-side-label {
    color: var(--green);
}

.hom-cmp-side-text {
    font-weight: 700;
    line-height: 1.4;
}

.hom-cmp-side--other .hom-cmp-side-text {
    color: var(--red-d);
}

.hom-cmp-side--us .hom-cmp-side-text {
    color: var(--green-d);
}

/* Compare CTA */
.hom-cmp-cta {
    max-width: 960px;
    margin: 40px auto 0;
    padding: 28px 32px;
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hom-cmp-cta-text {
    font-weight: 600;
    color: var(--ink2);
    margin: 0;
    line-height: 1.6;
    text-align: start;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hom-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hom-mod-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .hom-hero {
        padding: 72px 20px 60px;
    }

    .hom-hero h1 {
        letter-spacing: -1.5px;
    }

    .hom-pain-grid {
        grid-template-columns: 1fr;
    }

    .hom-cmp-grid {
        grid-template-columns: 1fr;
    }

    .hom-mod-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hom-pain-wrap,
    .hom-cmp-wrap,
    .hom-video-wrap,
    .hom-modules-wrap {
        padding: 64px 20px;
    }

    .hom-clients-wrap {
        padding: 64px 0 56px;
    }

    .hom-cmp-versus {
        grid-template-columns: 1fr;
    }

    .hom-cmp-cta {
        flex-direction: column;
        text-align: center;
    }

    .hom-video-frame {
        border-radius: 14px;
    }
}