.monflow-home {
    --mf-blue: #2563eb;
    --mf-blue-dark: #1d4ed8;
    --mf-blue-soft: #eff6ff;
    --mf-green: #16a34a;
    --mf-red: #dc2626;
    --mf-ink: #0f172a;
    --mf-muted: #64748b;
    --mf-line: #e2e8f0;
    --mf-bg: #f8fafc;
    --mf-surface: #ffffff;
    --mf-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
    --mf-shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.06);
    --mf-radius: 24px;
    --mf-radius-sm: 20px;
    --mf-max: var(--app-content-width, 1320px);
    color: var(--mf-ink);
    font-family: inherit;
    overflow: hidden;
}

.monflow-home,
.monflow-home * {
    box-sizing: border-box;
}

.monflow-home a {
    text-decoration: none;
}

.mf-shell {
    width: min(100% - 40px, var(--mf-max));
    margin: 0 auto;
}

.mf-section {
    padding: 58px 0;
}

.mf-hero-section {
    padding-top: 72px;
}

.mf-hero,
.mf-split {
    display: grid;
    gap: 34px;
    align-items: center;
}

.mf-hero-copy {
    max-width: 680px;
}

.mf-eyebrow,
.mf-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: var(--mf-blue-soft);
    color: var(--mf-blue-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 9px 12px;
    text-transform: uppercase;
}

.mf-hero h1,
.mf-section-head h2,
.mf-final-cta h2 {
    color: var(--mf-ink);
    font-weight: 850;
    letter-spacing: 0;
}

.mf-hero h1 {
    max-width: 11ch;
    margin: 18px 0 18px;
    font-size: clamp(2.55rem, 8vw, 5.15rem);
    line-height: 0.98;
}

.mf-lead {
    max-width: 560px;
    margin: 0;
    color: #334155;
    font-size: clamp(1.12rem, 2.6vw, 1.35rem);
    line-height: 1.6;
}

.mf-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.mf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    border-radius: 999px;
    padding: 14px 20px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1.15;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.mf-btn-primary {
    background: var(--mf-blue);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.mf-btn-primary:hover {
    background: var(--mf-blue-dark);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.26);
}

.mf-btn-secondary {
    background: #ffffff;
    border-color: var(--mf-line);
    color: var(--mf-ink);
    box-shadow: var(--mf-shadow-soft);
}

.mf-benefit-list,
.mf-check-list {
    display: grid;
    gap: 13px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    color: #334155;
}

.mf-benefit-list li,
.mf-check-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    line-height: 1.55;
}

.mf-benefit-list i,
.mf-check-list i {
    color: var(--mf-green);
    font-size: 1.1rem;
    margin-top: 2px;
}

.app-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1.22 / 1;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: var(--mf-radius);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(59, 130, 246, 0.045)),
        #ffffff;
    box-shadow: var(--mf-shadow);
    overflow: hidden;
}

.app-preview-open {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #ffffff;
    color: inherit;
    cursor: zoom-in;
}

.app-preview-open:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.app-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.app-preview-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #ffffff;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.app-preview-open:hover .app-preview-zoom,
.app-preview-open:focus-visible .app-preview-zoom {
    opacity: 1;
    transform: translateY(0);
}

.app-preview-open:hover .app-preview-zoom {
    background: rgba(37, 99, 235, 0.86);
}

.app-preview-compact {
    aspect-ratio: 1.42 / 1;
}

.mf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mf-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mf-lightbox-figure {
    position: relative;
    width: min(96vw, 1320px);
    max-height: calc(100vh - 44px);
    margin: 0;
}

.mf-lightbox-image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 88px);
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.mf-lightbox-caption {
    margin-top: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}

.mf-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--mf-ink);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.mf-lightbox-close:hover,
.mf-lightbox-close:focus-visible {
    color: var(--mf-blue);
}

.mf-lightbox-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.42), 0 18px 40px rgba(15, 23, 42, 0.24);
}

body.mf-lightbox-open {
    overflow: hidden;
}

.mf-section-head {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.mf-section-head-left {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.mf-section-head h2,
.mf-final-cta h2 {
    margin: 14px 0 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
}

.mf-section-head p,
.mf-card p,
.mf-faq-item p,
.mf-final-cta p {
    color: var(--mf-muted);
    line-height: 1.7;
}

.mf-section-head p {
    margin: 16px 0 0;
    font-size: 1.05rem;
}

.mf-grid {
    display: grid;
    gap: 16px;
}

.mf-card,
.mf-faq-item,
.mf-simple-panel,
.mf-final-cta {
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--mf-shadow-soft);
}

.mf-card {
    padding: 24px;
}

.mf-card h3,
.mf-faq-item h3,
.mf-mini-card strong {
    color: var(--mf-ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.mf-card h3 {
    margin: 16px 0 0;
}

.mf-card p {
    margin: 10px 0 0;
}

.mf-excel-panel {
    padding: 26px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--mf-radius);
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.96) 42%, rgba(219, 234, 254, 0.62)),
        #ffffff;
    box-shadow: var(--mf-shadow-soft);
}

.mf-excel-intro {
    max-width: 820px;
    margin-bottom: 22px;
}

.mf-excel-intro .mf-section-head {
    margin-bottom: 0;
}

.mf-excel-card {
    background: rgba(255, 255, 255, 0.94);
}

.mf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--mf-blue-soft);
    color: var(--mf-blue);
    font-size: 1.22rem;
}

.mf-step-card {
    position: relative;
    min-height: 236px;
}

.mf-step-number {
    position: absolute;
    top: 22px;
    right: 22px;
    color: #cbd5e1;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
}

.mf-compare-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius);
    background: #ffffff;
    box-shadow: var(--mf-shadow);
}

.mf-compare-note {
    max-width: 780px;
    margin: -18px auto 28px;
    color: var(--mf-ink);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.mf-compare-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.mf-compare-area-col {
    width: 34%;
}

.mf-compare-monflow-col {
    width: 22%;
}

.mf-compare-table th,
.mf-compare-table td {
    padding: 20px;
    border-bottom: 1px solid var(--mf-line);
    border-right: 1px solid rgba(226, 232, 240, 0.72);
    color: #475569;
    line-height: 1.45;
    vertical-align: middle;
}

.mf-compare-table th:last-child,
.mf-compare-table td:last-child {
    border-right: 0;
}

.mf-compare-table thead th {
    background: rgba(248, 250, 252, 0.88);
    color: var(--mf-ink);
    font-weight: 850;
}

.mf-compare-table thead th:last-child,
.mf-compare-table tbody td:last-child {
    background: #f6fbff;
    border-left: 1px solid rgba(37, 99, 235, 0.2);
}

.mf-compare-table tbody th {
    color: var(--mf-ink);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.76);
}

.mf-compare-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mf-compare-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(37, 99, 235, 0.08);
    color: var(--mf-blue);
    cursor: help;
}

.mf-compare-tooltip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.mf-compare-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 5;
    width: min(260px, 70vw);
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mf-compare-tooltip:hover::after,
.mf-compare-tooltip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.mf-compare-table tbody tr:first-child th,
.mf-compare-table tbody tr:first-child td {
    border-top: 2px solid #cbd5e1;
}

.mf-compare-table tr:last-child th,
.mf-compare-table tr:last-child td {
    border-bottom: 0;
}

.mf-compare-heading,
.mf-compare-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mf-compare-heading {
    color: var(--mf-ink);
    font-size: 0.98rem;
    line-height: 1.25;
}

.mf-compare-heading i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--mf-blue);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.mf-compare-heading-featured {
    color: var(--mf-blue-dark);
}

.mf-compare-cell {
    justify-content: center;
    font-size: 1.12rem;
}

.mf-compare-cell i {
    flex: 0 0 auto;
    color: #94a3b8;
}

.mf-positive {
    color: var(--mf-green);
    font-weight: 800;
}

.mf-positive i {
    color: var(--mf-green);
}

.mf-negative {
    color: #f43f5e;
    font-weight: 800;
}

.mf-negative i {
    color: #f43f5e;
}

.mf-audience-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 188px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
        #ffffff;
}

.mf-audience-grid {
    display: grid;
    gap: 16px;
}

.mf-audience-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    color: var(--mf-blue-dark);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.mf-audience-card h3 {
    margin-top: 0;
}

.mf-audience-card p {
    max-width: 35rem;
}

.mf-simple-panel {
    padding: 28px;
}

.mf-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 18px;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-sm);
    background: #ffffff;
}

.mf-mini-card i {
    color: var(--mf-blue);
    font-size: 1.35rem;
}

.mf-faq-list {
    display: grid;
    gap: 14px;
}

.mf-faq-item {
    overflow: hidden;
    padding: 0;
}

.mf-faq-item:not(:first-of-type) {
    border-top: 1px solid var(--mf-line);
}

.mf-faq-button {
    width: 100%;
    padding: 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--mf-ink);
    box-shadow: none;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.mf-faq-button:not(.collapsed) {
    background: var(--mf-blue-soft);
    color: var(--mf-blue-dark);
    box-shadow: none;
}

.mf-faq-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.mf-faq-button:focus-visible {
    outline: none;
    box-shadow: none;
}

.mf-faq-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
}

.mf-faq-body {
    padding: 18px 22px 22px;
}

.mf-faq-body p {
    margin: 0;
}

.mf-final-section {
    padding-bottom: 72px;
}

.mf-final-cta {
    display: grid;
    justify-items: start;
    gap: 18px;
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.92)),
        #ffffff;
}

.mf-final-cta h2,
.mf-final-cta p {
    max-width: 780px;
    margin: 0;
}

.mf-final-cta .mf-btn:hover {
    transform: none;
}

@media (min-width: 576px) {
    .mf-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .mf-btn {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 768px) {
    .mf-grid-3,
    .mf-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .mf-excel-panel {
        padding: 34px;
    }

    .mf-simple-panel,
    .mf-final-cta {
        padding: 42px;
    }
}

@media (min-width: 992px) {
    .mf-section {
        padding: 76px 0;
    }

    .mf-final-section {
        padding-bottom: 94px;
    }

    .mf-hero-section {
        padding-top: 94px;
    }

    .mf-hero,
    .mf-split {
        grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr);
        gap: 56px;
    }

    .mf-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mf-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mf-final-cta {
        justify-items: center;
        text-align: center;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .mf-shell {
        max-width: 1140px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .mf-shell {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .mf-shell {
        max-width: 720px;
    }
}

@media (max-width: 575.98px) {
    .mf-shell {
        width: min(100% - 24px, var(--mf-max));
    }

    .mf-section {
        padding: 40px 0;
    }

    .mf-final-section {
        padding-bottom: 42px;
    }

    .mf-hero-section {
        padding-top: 42px;
    }

    .mf-btn {
        width: 100%;
    }

    .mf-card {
        padding: 20px;
    }

    .mf-audience-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mf-excel-panel {
        padding: 20px;
    }

    .mf-compare-table {
        min-width: 0;
    }

    .mf-compare-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .mf-compare-table,
    .mf-compare-table tbody,
    .mf-compare-table tr,
    .mf-compare-table th,
    .mf-compare-table td {
        display: block;
        width: 100%;
    }

    .mf-compare-table colgroup,
    .mf-compare-table thead {
        display: none;
    }

    .mf-compare-table tbody {
        display: grid;
        gap: 14px;
    }

    .mf-compare-table tbody tr {
        position: relative;
        overflow: visible;
        border: 1px solid var(--mf-line);
        border-radius: var(--mf-radius-sm);
        background: #ffffff;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    }

    .mf-compare-table tbody tr:focus-within,
    .mf-compare-table tbody tr:hover {
        z-index: 20;
    }

    .mf-compare-table th,
    .mf-compare-table td,
    .mf-compare-table tbody tr:first-child th,
    .mf-compare-table tbody tr:first-child td {
        border: 0;
        border-top: 0;
    }

    .mf-compare-table tbody th {
        padding: 18px 18px 14px;
        background: rgba(248, 250, 252, 0.92);
        font-size: 1rem;
    }

    .mf-compare-table tbody td {
        display: grid;
        grid-template-columns: minmax(86px, 0.34fr) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 14px 18px;
        border-top: 1px solid var(--mf-line);
    }

    .mf-compare-table tbody td:last-child {
        background: #f6fbff;
        border-left: 0;
    }

    .mf-compare-table tbody td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 0.78rem;
        font-weight: 850;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .mf-compare-heading i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .mf-compare-cell {
        gap: 8px;
        min-width: 0;
    }

    .mf-compare-label {
        width: 100%;
    }

    .mf-compare-tooltip {
        position: static;
    }

    .mf-compare-tooltip::after {
        top: calc(100% + 10px);
        bottom: auto;
        left: 0;
        right: 0;
        z-index: 30;
        width: auto;
        transform: translateY(-4px);
    }

    .mf-compare-tooltip:hover::after,
    .mf-compare-tooltip:focus-visible::after {
        transform: translateY(0);
    }

    .mf-faq-button {
        padding: 20px;
    }

    .mf-faq-body {
        padding: 16px 20px 20px;
    }

    .mf-simple-panel,
    .mf-final-cta {
        padding: 24px;
    }

    .app-preview-zoom {
        width: 34px;
        height: 34px;
        opacity: 1;
        transform: none;
    }

    .mf-lightbox {
        padding: 12px;
    }

    .mf-lightbox-figure {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .mf-lightbox-image {
        max-height: calc(100vh - 74px);
        border-radius: 10px;
    }

    .mf-lightbox-close {
        top: 8px;
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-preview-zoom,
    .mf-lightbox {
        transition: none;
    }
}
