/* Flows, second pass: one fitted view per flow (no sideways scroll), compact vertical cards, a slim act rail,
   a top-to-bottom reading on phones, and phone mocks without a notch. */
.w-sb { display: none !important; }
.wf { padding-top: 10% !important; }

.fl__fit { position: relative; overflow: hidden; }
.fl__fit .canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.motion .fl__fit.is-pre .n, .motion .fl__fit.is-pre .lb { opacity: 0; transform: translateY(10px); }
.motion .fl__fit.is-pre svg.e path { stroke-dashoffset: 1; }
.motion .canvas.is-pre .n { opacity: 1; }

/* the act rail: a slim label down the left edge of each act */
.fl__fit .band { left: 10px; right: 10px; }
.fl__fit .band span { left: 6px; top: 0; bottom: 0; width: 28px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 14px; white-space: nowrap; }

/* compact vertical cards: the mock on top, the words beneath */
.fl__fit .n { width: 132px; }
.fl__fit .n--screen { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 10px 8px 10px; }
.fl__fit .n--screen .wf { width: 64px; height: 138px; }
.fl__fit .n .t { font-size: 12.5px; }
.fl__fit .n .s { font-size: 11px; line-height: 1.3; }
.fl__fit .n .src { font-size: 10.5px; }
.fl__fit .n--dec { width: 104px; height: 104px; padding: 0 14px; }
.fl__fit .n--dec::before { inset: 15px; }
.fl__fit .n--dec .t { font-size: 11.5px; }
.fl__fit .n.pill { padding: 10px 12px; }

/* phones: the flow reads top to bottom */
.ls { display: flex; flex-direction: column; gap: 0; padding: 8px 0 0; border-radius: 24px; }
.ls-act { margin: 26px 0 10px; font: 400 italic 20px/1.2 var(--font-serif); color: var(--ink-2); }
.ls-act:first-child { margin-top: 0; }
.ls-n { position: relative; width: 100% !important; margin-left: 0; font-size: 13px; line-height: 1.4; }
.ls-n + .ls-n { margin-top: 26px; }
.ls-n + .ls-n::before { content: ""; position: absolute; left: 28px; top: -24px; height: 22px; border-left: 1.6px solid #26262B; }
.ls-n.box { border-radius: 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--pencil-2); }
.ls-n.n--screen { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; }
.ls-n.n--screen .wf { width: 48px; height: 104px; }
.ls-n .t { font-size: 14.5px; font-weight: 500; }
.ls-n .s { color: var(--ink-2); margin-top: 2px; }
.ls-n .src { font-size: 11.5px; color: var(--accent); font-weight: 500; margin-top: 4px; }
.ls-n.n--dec { padding: 12px 14px 12px 46px; border-radius: 16px; background: #F6F3FF; border: 1.5px solid var(--accent); }
.ls-n.n--dec::after { content: ""; position: absolute; left: 16px; top: 16px; width: 14px; height: 14px; transform: rotate(45deg); border: 1.5px solid var(--accent); background: #EEE9FF; border-radius: 2px; }
.ls-n.n--start { background: var(--ink); color: #fff; border-radius: 999px; }
.ls-n.n--start .s { color: #B7BAC2; }
.ls-n.n--end { border: 2px solid var(--ink); border-radius: 999px; }
.ls-n.n--sys { background: #EEF0FF; border-color: #C6D1FB; }
.ls-n.n--partner { background: #F7F4FF; border: 1px dashed #CDBFFF; }
.ls-n.n--alt { background: #F4F4F6; border: 1px dashed #B9B9C0; }
.ls-n.n--edge { background: #FFF3EF; border-color: #FFC6B4; }
.ls-brs { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ls-br { font-size: 12.5px; color: var(--ink-2); }
.ls-br b { font-weight: 500; color: var(--ink); }
.ls-br--err b { color: var(--alert); }
.motion .fl__fit.is-pre .ls-n { opacity: 0; transform: translateY(10px); }
.ls-n { transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
