/* ============================================================
   BOAT FLOWS — single flow page + archive extras
   ============================================================ */

/* ── Single flow layout ──────────────────────────────────── */
.boat-flow-layout {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    align-items: flex-start;
}

.boat-flow-main {
    flex: 1;
    min-width: 0;
}

.boat-flow-sidebar {
    width: 320px;
    position: sticky;
    top: 120px;
}

/* Header */
.flow-header {
    margin-bottom: 34px;
}

.flow-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0996f0;
    background: rgba(9, 150, 240, 0.09);
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 14px;
}

.flow-header h1 {
    margin: 0 0 10px;
    line-height: 1.15;
}

.flow-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #777;
    font-weight: 600;
}

.flow-header-app {
    color: #0996f0 !important;
    text-decoration: none !important;
}

.flow-description {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    max-width: 640px;
}

/* ── Steps timeline ──────────────────────────────────────── */
.flow-steps {
    position: relative;
    padding-left: 46px;
}

.flow-steps-line {
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, #0996f0, #e2e8f0);
    opacity: 0.35;
}

.flow-step {
    position: relative;
    margin-bottom: 42px;
}

.flow-step-marker {
    position: absolute;
    left: -46px;
    top: 0;
}

.flow-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0996f0;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px #fff;
}

.flow-step.is-locked .flow-step-number {
    background: #b6b2ac;
}

.flow-step-caption {
    font-size: 15px;
    font-weight: 700;
    color: #161514;
    margin-bottom: 10px;
}

.flow-step-media {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* UX note — the research insight for this step */
.flow-step-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    background: #fffaf0;
    border: 1px solid #f0e3c8;
    border-left: 3px solid #e0a63c;
    border-radius: 10px;
    padding: 11px 14px;
    margin: 0 0 12px;
}

.flow-note-icon {
    color: #c98a1e;
    flex-shrink: 0;
    margin-top: 1px;
}

.flow-note-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b5526;
    font-weight: 500;
}

.flow-branch .flow-step-note {
    padding: 9px 11px;
    margin-bottom: 10px;
}

.flow-branch .flow-note-text {
    font-size: 12.5px;
}

.flow-step-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Locked steps: low-res source, blurred, non-interactive */
.flow-step-locked {
    position: relative;
}

.flow-step-locked img {
    filter: blur(14px);
    transform: scale(1.06);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.flow-step-lock-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(22, 21, 20, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    padding: 6px 13px;
    z-index: 2;
}

.flow-steps-empty {
    color: #888;
    font-style: italic;
}

/* ── Decision forks ──────────────────────────────────────── */
.flow-fork {
    position: relative;
    margin: 0 0 42px;
}

.flow-decision {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px dashed rgba(9, 150, 240, 0.45);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 0 0 22px -46px;
}

.flow-decision-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(9, 150, 240, 0.1);
    color: #0996f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-decision-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flow-decision-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0996f0;
}

.flow-decision-question {
    font-size: 16px;
    font-weight: 700;
    color: #161514;
}

.flow-decision-sub {
    font-size: 12px;
    color: #8a857f;
    margin-top: 2px;
}

/* Stem from the decision card down to the branch rail */
.flow-decision {
    position: relative;
}

.flow-decision::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -22px;
    width: 2px;
    height: 22px;
    background: rgba(9, 150, 240, 0.35);
}

.flow-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 20px;
    margin-left: -46px;
    position: relative;
    padding-top: 26px;
}

/* Horizontal rail connecting the stem to each path — spans exactly from the
   first column's center to the last column's center (insets = 1/(2N)). */
.flow-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: rgba(9, 150, 240, 0.25);
}

.flow-branches.paths-3::before { left: 16.66%; right: 16.66%; }
.flow-branches.paths-4::before { left: 12.5%;  right: 12.5%;  }

/* Vertical drop into each path column */
.flow-branch {
    position: relative;
}

.flow-branch::before {
    content: '';
    position: absolute;
    top: -26px;
    left: 50%;
    width: 2px;
    height: 26px;
    background: rgba(9, 150, 240, 0.25);
}

.flow-branch {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 16px;
    min-width: 0;
}

.flow-branch-head {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: #161514;
    background: #fff;
    border: 1.5px solid var(--branch-color, #0996f0);
    border-radius: 100px;
    padding: 6px 14px;
    margin-bottom: 14px;
}

.flow-branch-path {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--branch-color, #0996f0);
    padding-right: 7px;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.flow-branch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--branch-color, #0996f0);
}

.flow-branch-step {
    margin-bottom: 18px;
}

.flow-branch-step:last-child {
    margin-bottom: 0;
}

.flow-branch-step-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border-radius: 100px;
    background: var(--branch-color, #0996f0);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.flow-branch .flow-step-caption {
    font-size: 13px;
    margin-bottom: 8px;
}

.flow-branch .flow-step-media {
    border-radius: 10px;
}

.flow-merge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 20px 0 0 -46px;
}

.flow-merge span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a9a49d;
}

.flow-merge::after {
    content: '';
    width: 2px;
    height: 22px;
    background: linear-gradient(to bottom, rgba(9, 150, 240, 0.35), rgba(226, 232, 240, 0.9));
}

/* ── "Walk this flow" launch button ──────────────────────── */
.flow-play-wrap {
    margin: 0 0 30px;
}

.flow-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: #161514;
    color: #fff !important;
    border: none;
    border-radius: 100px;
    padding: 14px 26px 14px 18px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 26px rgba(22, 21, 20, 0.22);
}

.flow-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(22, 21, 20, 0.28);
}

.flow-play-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0996f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-play-sub {
    font-weight: 500;
    opacity: 0.6;
    font-size: 13px;
}

/* ── Interactive player ──────────────────────────────────── */
html.flow-player-open,
html.flow-player-open body {
    overflow: hidden;
}

.flow-player {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: #0d0c0b;
    display: none;
    flex-direction: column;
}

.flow-player.open {
    display: flex;
}

/* Top bar */
.fp-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.fp-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}

.fp-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    overflow: hidden;
}

.fp-progress-fill {
    height: 100%;
    width: 0;
    background: #0996f0;
    border-radius: 100px;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-counter {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.fp-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
}

.fp-close:hover { color: #fff; }

/* Stage */
.fp-stage {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px;
    min-height: 0;
}

.fp-frame {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.fp-shot {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* Height is driven by the flex stage so the frame adapts when the caption /
   note strips appear, instead of guessing with a fixed calc(). */
.fp-shot img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fp-locked-veil {
    display: none;
}

.fp-shot.is-locked img {
    filter: blur(18px);
    transform: scale(1.06);
    pointer-events: none;
    user-select: none;
}

.fp-nav {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.fp-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); }

.fp-nav:disabled {
    opacity: 0.22;
    cursor: default;
}

/* Caption strip */
.fp-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 22px 14px;
    flex-shrink: 0;
    min-height: 30px;
}

.fp-step-badge {
    display: inline-flex;
    align-items: center;
    background: #0996f0;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 100px;
    padding: 5px 12px;
    flex-shrink: 0;
}

.fp-caption-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

/* UX note strip in the player */
.fp-note {
    display: none;
    align-items: flex-start;
    gap: 9px;
    max-width: 720px;
    margin: 0 auto 22px;
    padding: 11px 16px;
    background: rgba(224, 166, 60, 0.12);
    border: 1px solid rgba(224, 166, 60, 0.3);
    border-left: 3px solid #e0a63c;
    border-radius: 10px;
    flex-shrink: 0;
}

.fp-note.open { display: flex; }

.fp-note-icon {
    color: #e0a63c;
    flex-shrink: 0;
    margin-top: 1px;
}

.fp-note-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    white-space: pre-line;
}

/* Decision overlay */
.fp-choice,
.fp-gate {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(13, 12, 11, 0.82);
    backdrop-filter: blur(3px);
    border-radius: 12px;
}

.fp-choice.open,
.fp-gate.open {
    display: flex;
}

.fp-choice-inner,
.fp-gate-inner {
    text-align: center;
    max-width: 560px;
    padding: 30px;
}

.fp-choice-eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0996f0;
    margin-bottom: 10px;
}

.fp-choice-q {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 8px;
}

.fp-choice-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.fp-choice-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.fp-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 168px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--bc, #0996f0);
    border-radius: 14px;
    padding: 16px 20px;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.fp-choice-btn:hover {
    background: var(--bc, #0996f0);
    transform: translateY(-2px);
}

.fp-choice-btn.picked {
    background: var(--bc, #0996f0);
}

.fp-choice-key {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bc, #0996f0);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-choice-btn:hover .fp-choice-key,
.fp-choice-btn.picked .fp-choice-key {
    background: rgba(0, 0, 0, 0.28);
}

.fp-choice-name {
    font-size: 15px;
    font-weight: 700;
}

.fp-choice-count {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 600;
}

/* Paywall gate inside the player */
.fp-gate-lock {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(9, 150, 240, 0.16);
    color: #0996f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.fp-gate-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.fp-gate-msg {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 22px;
}

.fp-gate-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.fp-gate-primary,
.fp-gate-secondary {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 100px;
    text-decoration: none !important;
}

.fp-gate-primary {
    background: #0996f0;
    color: #fff !important;
}

.fp-gate-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

@media (max-width: 760px) {
    .fp-title { max-width: 30%; }
    .fp-stage { padding: 12px 6px; gap: 4px; }
    .fp-nav { width: 38px; height: 38px; font-size: 22px; }
    .fp-note { margin: 0 12px 16px; font-size: 12.5px; }
    .fp-choice-q { font-size: 20px; }
    .fp-choice-btn { min-width: 140px; }
    .fp-choice-btns { flex-direction: column; }
}

/* ── Lightbox / zoom ─────────────────────────────────────── */
a.flow-step-media {
    display: block;
    position: relative;
    cursor: zoom-in;
    text-decoration: none !important;
}

.flow-zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(22, 21, 20, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

a.flow-step-media:hover .flow-zoom-hint {
    opacity: 1;
}

.flow-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(12, 11, 10, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 70px;
}

.flow-lightbox.open {
    display: flex;
}

html.flow-lightbox-open,
html.flow-lightbox-open body {
    overflow: hidden;
}

.flow-lightbox figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.flow-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.flow-lightbox figcaption {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.flow-lightbox .flb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
}

.flow-lightbox .flb-close:hover {
    color: #fff;
}

.flow-lightbox .flb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.flow-lightbox .flb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.flow-lightbox .flb-prev { left: 16px; }
.flow-lightbox .flb-next { right: 16px; }

@media (max-width: 760px) {
    .flow-branches {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .flow-branches::before,
    .flow-branch::before,
    .flow-decision::after {
        display: none;
    }

    .flow-branch + .flow-branch {
        margin-top: 26px;
        position: relative;
    }

    .flow-branch + .flow-branch::after {
        content: 'or';
        position: absolute;
        top: -22px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 11px;
        font-weight: 800;
        font-style: italic;
        color: #a9a49d;
    }

    .flow-lightbox {
        padding: 20px;
    }

    .flow-lightbox .flb-nav {
        width: 40px;
        height: 40px;
    }

    .flow-lightbox .flb-prev { left: 8px; }
    .flow-lightbox .flb-next { right: 8px; }
}

/* ── Inline upgrade CTA ──────────────────────────────────── */
.flow-upgrade-cta {
    background: #161514;
    border-radius: 16px;
    padding: 34px 32px;
    text-align: center;
    margin: 0 0 42px;
    color: #fff;
}

.flow-upgrade-lock {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(9, 150, 240, 0.16);
    color: #0996f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.flow-upgrade-cta h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 8px;
}

.flow-upgrade-cta p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto 20px;
}

.flow-upgrade-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.flow-btn-primary {
    display: inline-block;
    background: #0996f0;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 100px;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.flow-btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.flow-btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 100px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.flow-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── Sidebar app card ────────────────────────────────────────
   These classes are shared with single-boat_screenshot.php, but there they're
   styled by that template's inline <style> block — flow pages need them here. */
.boat-flow-sidebar .boat-app-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.boat-flow-sidebar .app-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.boat-flow-sidebar .app-logo img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
}

.boat-flow-sidebar .app-title-wrap h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.boat-flow-sidebar .app-title-wrap h3 a {
    text-decoration: none;
    color: inherit;
}

.boat-flow-sidebar .app-industry {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0996f0;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

.boat-flow-sidebar .app-section {
    margin-bottom: 20px;
}

.boat-flow-sidebar .app-section label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: #999;
    margin-bottom: 8px;
}

.boat-flow-sidebar .app-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.boat-flow-sidebar .color-swatches {
    display: flex;
    gap: 8px;
}

.boat-flow-sidebar .swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.boat-flow-sidebar .app-card-footer {
    margin-top: 30px;
}

.boat-flow-sidebar .app-card-footer .nectar-button {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.boat-flow-sidebar .app-card-empty p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* ── Related flows section (classes styled inline on screenshot pages) ── */
.related-flows-wrap .related-section {
    margin-bottom: 0;
}

.related-flows-wrap .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.related-flows-wrap .section-header h2 {
    margin: 0;
}

.related-flows-wrap .view-all {
    font-weight: 700;
    color: #0996f0 !important;
    text-decoration: none !important;
}

.related-flows-wrap .interface-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1000px) {
    .related-flows-wrap .interface-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .related-flows-wrap .interface-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Flow cards (archive / related / app page) ───────────── */
.flow-steps-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(22, 21, 20, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    padding: 5px 11px;
    z-index: 3;
}

/* Related flows section */
.related-flows-wrap {
    padding: 70px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── Archive header ──────────────────────────────────────── */
.flow-archive-header {
    text-align: center;
    padding: 60px 0 30px;
}

.flow-archive-header h1 {
    margin: 0 0 10px;
}

.flow-archive-header p {
    color: #777;
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

.flow-type-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 26px 0 10px;
}

.flow-type-filters a {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #444 !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 100px;
    padding: 8px 18px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.flow-type-filters a:hover {
    border-color: #0996f0;
    color: #0996f0 !important;
}

.flow-type-filters a.active {
    background: #0996f0;
    border-color: #0996f0;
    color: #fff !important;
}

.flows-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 30px 0 40px;
}

.flows-load-more-wrap {
    text-align: center;
    padding-bottom: 70px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
    .boat-flow-layout {
        flex-direction: column;
    }

    .boat-flow-sidebar {
        width: 100%;
        position: static;
    }

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

@media (max-width: 640px) {
    .flow-steps {
        padding-left: 38px;
    }

    .flow-step-marker {
        left: -38px;
    }

    .flow-step-number {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .flows-grid {
        grid-template-columns: 1fr;
    }
}
