/* Managed Flows: components used in page content. */

/* ---- Buttons and links ---- */

.mf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.mf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1.5px solid var(--mf-coral-deep);
    border-radius: 999px;
    background: var(--mf-coral-deep);
    color: #fff;
    font-family: var(--mf-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--mf-ease), box-shadow 0.25s;
}

.mf-btn::after {
    content: "\2192";
    transition: transform 0.3s var(--mf-ease);
}

.mf-btn:hover {
    background: var(--mf-ink);
    border-color: var(--mf-ink);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(22, 24, 63, 0.6);
}

.mf-btn:hover::after { transform: translateX(3px); }

.mf-btn-small {
    min-height: 40px;
    padding: 8px 18px;
    font-size: var(--mf-fs-sm);
}

.mf-btn-ghost {
    background: transparent;
    border-color: var(--mf-line-strong);
    color: var(--mf-ink);
}

.mf-btn-ghost::after { content: "\2193"; }
.mf-btn-ghost:hover::after { transform: translateY(2px); }

.mf-btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--mf-ink);
}

.mf-btn-light:hover { background: var(--mf-mist); border-color: var(--mf-mist); color: var(--mf-ink); }

.mf-btn-ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.mf-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.mf-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
}

.mf-link-arrow::after {
    content: "\2192";
    transition: transform 0.3s var(--mf-ease);
}

.mf-link-arrow:hover::after { transform: translateX(4px); }

.mf-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    color: var(--mf-muted);
    font-size: var(--mf-fs-sm);
    font-weight: 600;
}

.mf-checks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mf-checks li::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--mf-green-tint) no-repeat center / 10px 10px 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");
}

/* ---- Cards ---- */

.mf-card {
    padding: 28px;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-lg);
    background: var(--mf-paper);
    transition: transform 0.35s var(--mf-ease), box-shadow 0.35s var(--mf-ease), border-color 0.35s;
}

.mf-card:hover {
    transform: translateY(-4px);
    border-color: var(--mf-line-strong);
    box-shadow: var(--mf-shadow-lift);
}

.mf-card p:last-child { margin-bottom: 0; }
.mf-card p:not([class]) { color: var(--mf-muted); font-size: var(--mf-fs-sm); }

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

.mf-steps {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.mf-steps li {
    position: relative;
    padding: 0 0 28px 64px;
    counter-increment: step;
}

.mf-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -4px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mf-ink);
    color: #fff;
    font-family: var(--mf-display);
    font-weight: 720;
    font-size: 1.1rem;
}

.mf-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: 4px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--mf-line-strong) 0 6px, transparent 6px 12px);
}

.mf-steps h3 { margin-bottom: 6px; }
.mf-steps p { margin: 0; color: var(--mf-muted); }

/* ---- Screenshots and video ---- */

.mf-shot {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-lg);
    background: var(--mf-paper);
    box-shadow: var(--mf-shadow-lift);
}

.mf-shot img,
.mf-shot video {
    width: 100%;
    border-radius: 10px;
}

.mf-shot figcaption {
    margin: 12px 6px 4px;
    color: var(--mf-muted);
    font-size: var(--mf-fs-sm);
}

/* ---- Applications ---- */

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

.mf-use {
    padding: 26px 28px;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-lg);
    background: var(--mf-paper);
}

.mf-use-sector {
    margin: 0 0 12px;
    color: var(--mf-coral-deep);
    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-use ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-use li {
    position: relative;
    padding: 7px 0 7px 22px;
    border-top: 1px solid var(--mf-line);
    color: var(--mf-heading);
    font-weight: 600;
}

.mf-use li:first-child { border-top: 0; }

.mf-use li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 9px;
    height: 9px;
    border: 1.5px solid var(--mf-coral);
    border-radius: 2px;
    transform: translateY(-50%) rotate(45deg);
}

.mf-use-flagship {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    border: 0;
    background: var(--mf-coral-deep);
    color: #fff;
}

.mf-use-flagship .mf-use-sector { color: #fff; }
.mf-use-flagship h3 { color: #fff; font-size: 1.7rem; }
.mf-use-flagship p { color: #fff; }
.mf-use-flagship .mf-link-arrow { margin-top: auto; color: #fff; }

@media (max-width: 1080px) {
    .mf-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mf-use-flagship { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .mf-uses { grid-template-columns: 1fr; }
    .mf-use-flagship { grid-row: auto; }
}

/* ---- Subsidy band: phase rail and facts ---- */

.mf-rail {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 48px;
    padding: 0;
    list-style: none;
}

.mf-rail li {
    position: relative;
    padding-top: 22px;
    color: var(--mf-ink-muted);
    font-size: var(--mf-fs-sm);
    font-weight: 600;
}

.mf-rail li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 4px;
    background: var(--mf-ink-raised);
}

.mf-fact {
    padding: 24px 24px 26px;
    border: 1px solid var(--mf-ink-line);
    border-radius: var(--mf-radius-lg);
    background: var(--mf-ink-raised);
}

.mf-fact strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-family: var(--mf-display);
    font-size: 3rem;
    font-stretch: 85%;
    font-weight: 740;
    line-height: 1;
    letter-spacing: -0.03em;
}

.mf-fact span { color: var(--mf-ink-text); font-size: var(--mf-fs-sm); }

@media (max-width: 760px) {
    .mf-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
}

/* ---- Trust items ---- */

.mf-trust { gap: 44px 40px; }

.mf-trust-item svg {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 12px;
    background: var(--mf-coral-tint);
    fill: none;
    stroke: var(--mf-coral-deep);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mf-trust-item p { margin: 0; color: var(--mf-muted); }

/* ---- About and call to action ---- */

.mf-about { align-items: start; }

.mf-cta { padding-top: calc(var(--mf-band) * 0.5); }

.mf-cta-panel {
    position: relative;
    padding: clamp(40px, 6vw, 80px);
    border-radius: var(--mf-radius-xl);
    background: var(--mf-ink);
    color: var(--mf-ink-text);
    overflow: hidden;
}

.mf-cta-panel::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 340px;
    height: 340px;
    background: url("../img/logo.svg") no-repeat center / contain;
    opacity: 0.18;
    pointer-events: none;
}

.mf-cta-panel h2 { max-width: 16em; color: #fff; }
.mf-cta-panel .mf-lead { color: var(--mf-ink-text); max-width: 34em; }
.mf-cta-panel a:not(.mf-btn) { color: #ffb3b7; }
.mf-cta-panel a:not(.mf-btn):hover { color: #fff; }
