/* Managed Flows: components of the inner pages (product, process, features, about, contact). */

.mf-page-hero {
    padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
    background:
        radial-gradient(40% 60% at 90% 10%, rgba(224, 80, 88, 0.1), transparent 70%),
        var(--mf-paper);
}

.mf-page-hero .mf-head { margin-bottom: 0; }
.mf-page-hero h1 { margin-bottom: 0.4em; }

.mf-btn-next::after { content: "\2192"; }
.mf-btn-next:hover::after { transform: translateX(3px); }

/* ---- Layered screenshots ---- */

.mf-shots {
    position: relative;
    padding: 0 0 12% 10%;
}

.mf-shot-front {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52%;
}

.mf-shot-wide { margin-bottom: 40px; }
.mf-shot-bar { max-width: 742px; margin: 0 0 40px; }
.mf-shot-narrow { max-width: 760px; }
.mf-media-row { margin-top: 72px; }

/* ---- Questions and answers ---- */

.mf-qa { margin: 0; }

.mf-qa > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 12px 48px;
    padding: 26px 0;
    border-top: 1px solid var(--mf-line-strong);
}

.mf-qa > div:last-child { border-bottom: 1px solid var(--mf-line-strong); }

.mf-qa dt {
    color: var(--mf-heading);
    font-family: var(--mf-display);
    font-size: 1.35rem;
    font-stretch: 92%;
    font-weight: 680;
    line-height: 1.25;
}

.mf-qa dd { margin: 0; color: var(--mf-text); }

/* ---- Figures row ---- */

.mf-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin: 48px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--mf-line);
    list-style: none;
    color: var(--mf-muted);
}

.mf-figures strong {
    margin-right: 6px;
    color: var(--mf-coral-deep);
    font-family: var(--mf-display);
    font-size: 1.8rem;
    font-stretch: 88%;
    font-weight: 720;
}

/* ---- Facts on dark bands ---- */

.mf-fact h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.mf-zgw { align-self: start; }

/* ---- Check lists ---- */

.mf-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-list li {
    position: relative;
    padding: 0 0 14px 32px;
}

.mf-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mf-green-tint) no-repeat center / 11px 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2 4 7.5 8.5 2.5' fill='none' stroke='%230d7453' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mf-columns { gap: 0 48px; }

/* ---- Workflow steps (a real sequence) ---- */

.mf-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow;
}

.mf-flow li {
    position: relative;
    padding: 56px 22px 22px;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-lg);
    background: var(--mf-paper);
    counter-increment: flow;
}

.mf-flow li::before {
    content: counter(flow);
    position: absolute;
    top: 18px;
    left: 22px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mf-ink);
    color: #fff;
    font-family: var(--mf-display);
    font-size: 0.9rem;
    font-weight: 720;
}

.mf-flow li::after {
    content: "";
    position: absolute;
    top: 31px;
    left: 58px;
    right: 22px;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--mf-line-strong) 0 6px, transparent 6px 12px);
}

.mf-flow h3 { font-size: 1.08rem; margin-bottom: 6px; }
.mf-flow p { margin: 0; color: var(--mf-muted); font-size: var(--mf-fs-sm); }

.mf-flow-compact { grid-template-columns: 1fr; }

@media (max-width: 1020px) {
    .mf-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .mf-flow { grid-template-columns: 1fr; }
}

/* ---- Light phase rail and table of contents ---- */

.mf-rail-light {
    --mf-rail-on: var(--mf-heading);
    --mf-rail-off: var(--mf-muted);
    margin: 48px 0 32px;
}
.mf-rail-light li { color: var(--mf-muted); }
.mf-rail-light li::before { background: var(--mf-mist-deep); }
.mf-rail-light li + li::after { background: var(--mf-paper); }

.mf-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.mf-toc a {
    padding: 8px 16px;
    border: 1px solid var(--mf-line-strong);
    border-radius: 999px;
    color: var(--mf-ink);
    font-size: var(--mf-fs-sm);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.mf-toc a:hover { background: var(--mf-ink); border-color: var(--mf-ink); color: #fff; }

/* ---- Table ---- */

.mf-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-lg);
}

.mf-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: var(--mf-fs-sm);
}

.mf-table th,
.mf-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--mf-line);
    text-align: left;
}

.mf-table th {
    background: var(--mf-mist);
    color: var(--mf-heading);
    font-family: var(--mf-mono);
    font-size: var(--mf-fs-mono);
    font-stretch: 87.5%;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mf-table tbody tr:last-child td { border-bottom: 0; }
.mf-table td:first-child { color: var(--mf-heading); font-weight: 700; }

.mf-note { margin: 20px 0 0; color: var(--mf-muted); font-size: var(--mf-fs-sm); max-width: 48em; }

/* ---- Feature groups ---- */

.mf-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px 64px;
    padding: 48px 0;
    border-top: 1px solid var(--mf-line-strong);
    scroll-margin-top: 96px;
}

.mf-feature:first-child { padding-top: 0; border-top: 0; }
.mf-feature:last-child { padding-bottom: 0; }
.mf-feature h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.mf-feature p { color: var(--mf-muted); }

@media (max-width: 860px) {
    .mf-feature,
    .mf-qa > div { grid-template-columns: 1fr; }
}

/* ---- You and us ---- */

.mf-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mf-duo-col {
    padding: 32px;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-lg);
}

.mf-duo-col h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.mf-duo-us { background: var(--mf-ink); border-color: var(--mf-ink); color: var(--mf-ink-text); }
.mf-duo-us h3 { color: #fff; }
.mf-duo-us .mf-list li::before { background-color: rgba(255, 255, 255, 0.12); }

@media (max-width: 720px) {
    .mf-duo { grid-template-columns: 1fr; }
}

/* ---- Contact and form ---- */

.mf-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.mf-contact-sub {
    margin: 32px 0 12px;
    font-size: 1.15rem;
}

@media (max-width: 900px) {
    .mf-contact-grid { grid-template-columns: 1fr; }
}

.mf-form {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-xl);
    background: var(--mf-paper);
    box-shadow: var(--mf-shadow-lift);
}

.mf-form h2 { font-size: 1.5rem; margin: 0; }

.mf-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.mf-field { display: grid; gap: 6px; }

.mf-label { color: var(--mf-heading); font-weight: 700; font-size: var(--mf-fs-sm); }
.mf-hint { color: var(--mf-muted); font-size: 0.82rem; }

.mf-input,
.mf-select,
.mf-textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1.5px solid var(--mf-line-strong);
    border-radius: var(--mf-radius);
    background: #fff;
    color: var(--mf-heading);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mf-textarea { min-height: 140px; resize: vertical; }

.mf-input:focus,
.mf-select:focus,
.mf-textarea:focus {
    outline: none;
    border-color: var(--mf-ink);
    box-shadow: 0 0 0 4px rgba(22, 24, 63, 0.12);
}

.mf-form .mf-btn { justify-self: start; }
.mf-form-note { margin: 0; color: var(--mf-muted); font-size: 0.85rem; }

.mf-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--mf-text);
    font-size: var(--mf-fs-sm);
    cursor: pointer;
}

.mf-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--mf-coral-deep);
}

.mf-form:has(.mf-check input:checked) .mf-phone-hint { color: var(--mf-coral-deep); font-weight: 700; }

@media (max-width: 560px) {
    .mf-form-row { grid-template-columns: 1fr; }
}

/* ---- Customer quote, logo and story ---- */

.mf-quote {
    margin: 32px 0;
    padding: clamp(28px, 4vw, 48px);
    border-left: 4px solid var(--mf-coral);
    border-radius: 0 var(--mf-radius-lg) var(--mf-radius-lg) 0;
    background: var(--mf-mist);
}

.mf-quote p {
    margin: 0 0 20px;
    color: var(--mf-heading);
    font-family: var(--mf-display);
    font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
    font-stretch: 92%;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.mf-quote footer {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--mf-muted);
    font-size: var(--mf-fs-sm);
}

.mf-quote footer img { width: auto; height: 40px; }
.mf-quote cite { font-style: normal; font-weight: 700; color: var(--mf-heading); }
.mf-band-ink .mf-quote { background: var(--mf-ink-raised); }
.mf-band-ink .mf-quote p { color: #fff; }

.mf-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.mf-story-facts {
    position: sticky;
    top: 100px;
    padding: 28px;
    border-radius: var(--mf-radius-lg);
    background: var(--mf-ink);
    color: var(--mf-ink-text);
}

.mf-story-facts img { width: auto; height: 44px; margin-bottom: 20px; }
.mf-story-facts dl { margin: 0; }
.mf-story-facts dt { color: var(--mf-ink-muted); font-size: 0.82rem; }
.mf-story-facts dd { margin: 2px 0 16px; color: #fff; font-weight: 700; }
.mf-story-facts dd:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
    .mf-story { grid-template-columns: 1fr; }
    .mf-story-facts { position: static; }
}

/* ---- Product screenshots within pages ---- */

.mf-shot a { display: block; cursor: zoom-in; }

.mf-shots-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 313px);
    gap: 20px;
    align-items: start;
    margin-top: 40px;
}

.mf-feature-media {
    grid-column: 1 / -1;
    display: grid;
    gap: 20px;
    align-items: start;
}

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

@media (max-width: 860px) {
    .mf-shots-pair,
    .mf-feature-media-2 { grid-template-columns: 1fr; }
    .mf-shots-pair .mf-shot:last-child { max-width: 340px; }
}

/* ---- Founder ---- */

.mf-founder {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
}

.mf-founder-text { max-width: 40em; }

.mf-profile {
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-xl);
    background: var(--mf-paper);
    box-shadow: var(--mf-shadow-lift);
    overflow: hidden;
}

.mf-profile-banner {
    position: relative;
    aspect-ratio: 737 / 198;
}

.mf-profile-banner > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The banner (as on LinkedIn) already shows the portrait at its lower left; the round
   photo sits exactly on top of it, sized and placed as fractions of the 737x198 banner. */
.mf-profile-photo {
    position: absolute;
    left: 2.51%;
    top: 48.99%;
    width: 23.34%;
    aspect-ratio: 1;
    padding: 0.81%;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

.mf-profile-body { padding: calc(9.63% + 16px) 28px 28px; }
.mf-profile-body h2 { margin-bottom: 4px; font-size: 1.8rem; }
.mf-profile-body p { margin-bottom: 12px; color: var(--mf-muted); }

.mf-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.mf-person img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.mf-person p { margin: 0; color: var(--mf-muted); font-size: var(--mf-fs-sm); line-height: 1.4; }

@media (max-width: 960px) {
    .mf-founder { grid-template-columns: 1fr; }
    .mf-profile { max-width: 600px; }
}
