/* トップページだけで使う見た目（pages/index.mjs の page.css = 'top'）。
   アニメーションは CSS だけ。何も動かない状態（動きを減らす設定・画面の撮影）では、最後の場面（入力済み・送信の手前で停止）を出す */

.hero h1 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.875rem); }
.hero .lead { font-size: 1.0625rem; }
@media (min-width: 961px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
}

/* ---- ヒーロー：アプリが動く様子 ---- */
.app-demo { margin: 0; --loop: 16s; }
.ad-window { background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(20, 33, 61, .55); font-size: 12px; line-height: 1.5; color: var(--ink); }
.ad-titlebar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #e9edf2; border-bottom: 1px solid var(--line); }
.ad-dot { width: 9px; height: 9px; border-radius: 50%; background: #c5ccd6; }
.ad-app { margin-left: 8px; font-weight: 700; color: var(--muted); font-size: 11px; }
.ad-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.ad-side { background: #f4f6f9; border-right: 1px solid var(--line); display: grid; align-content: start; justify-items: center; gap: 14px; padding-top: 14px; color: #6b7588; }
.ad-side .icon { width: 18px; height: 18px; }
.ad-side .icon:first-child { color: #2a3f66; }
.ad-main { padding: 14px 16px 16px; min-width: 0; }
.ad-h { font-weight: 700; font-size: 14px; }
.ad-search { margin-top: 8px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; border: 1.5px solid #9aa5b5; border-radius: 99px; background: #fff; }
.ad-search .icon { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ad-typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 25ch; max-width: calc(100% - 80px); font-size: 12px; font-weight: 700; }
.ad-caret { width: 1.5px; height: 16px; background: var(--ink); opacity: 0; }
.ad-go { flex: none; white-space: nowrap; margin-left: auto; background: #2a3f66; color: #fff; font-weight: 700; padding: 4px 14px; border-radius: 99px; font-size: 12px; }

.ad-browser { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ad-urlbar { position: relative; height: 28px; background: #f1f3f6; border-bottom: 1px solid var(--line); }
.ad-url { position: absolute; inset: 4px 8px; padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-url-1 { opacity: 0; }
.ad-view { position: relative; height: 318px; padding: 10px 12px; overflow: hidden; }

.ad-idle { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 11.5px; opacity: 0; }
.ad-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: absolute; inset: 10px 12px auto; opacity: 0; }
.ad-results li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; display: grid; }
.ad-results b { color: #1a4fa3; font-size: 12px; }
.ad-results span { color: var(--muted); font-size: 11px; }

.ad-form-h { font-size: 11px; font-weight: 700; color: var(--muted); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; margin-bottom: 4px; }
.ad-form-h + .ad-row { margin-top: 0; }
.ad-file:first-of-type { margin-top: 0; }
.ad-row ~ .ad-form-h { margin-top: 8px; }
.ad-row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 16px; gap: 8px; align-items: center; padding: 3px 0; }
.ad-k { color: var(--muted); font-size: 11px; }
.ad-v { height: 22px; border: 1px solid var(--line); border-radius: 3px; background: #fbfcfd; padding: 0 6px; display: flex; align-items: center; overflow: hidden; }
.ad-v > span { display: inline-block; overflow: hidden; white-space: nowrap; font-weight: 700; max-width: 100%; }
.ad-row .icon { width: 16px; height: 16px; color: var(--green); }
.ad-file { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 11.5px; }
.ad-file .icon { width: 15px; height: 15px; color: var(--muted); }
.ad-file em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 10.5px; color: var(--green-dark); background: var(--green-tint); padding: 0 8px; border-radius: 99px; }

.ad-stop { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: #fff4f1; border: 1.5px solid var(--vermilion); border-radius: 6px; box-shadow: 0 8px 18px -12px rgba(194, 65, 45, .6); }
.ad-stop-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vermilion); color: #fff; flex: none; }
.ad-stop-mark .icon { width: 18px; height: 18px; }
.ad-stop p { display: grid; }
.ad-stop b { color: #8f2a1c; font-size: 12.5px; }
.ad-stop span { color: var(--text); font-size: 11px; }

.ad-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: adst; }
.ad-steps li { counter-increment: adst; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 4px 0; border-top: 3px solid var(--line); line-height: 1.45; }
.ad-steps li::before { content: counter(adst) ". "; }
.ad-steps .ad-st4 { color: var(--vermilion); border-top-color: var(--vermilion); }

.ad-time { margin-top: 12px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.ad-time-h { font-weight: 700; font-size: .875rem; color: var(--ink); }
.ad-bar { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 4.5em; gap: 10px; align-items: center; margin-top: 8px; font-size: .875rem; }
.ad-bar-label { color: var(--muted); font-weight: 700; }
.ad-bar-track { height: 14px; background: #e3e7ed; border-radius: 99px; overflow: hidden; }
.ad-bar-fill { display: block; height: 100%; border-radius: 99px; background: #9aa5b5; width: 100%; }
.ad-bar-auto .ad-bar-fill { background: var(--green); width: 14.5%; }
.ad-bar-auto .ad-bar-label, .ad-bar-auto .ad-bar-val { color: var(--green-dark); }
.ad-bar-val { font-weight: 700; color: var(--ink); text-align: right; font-size: 1rem; }
.ad-time-note { margin-top: 8px; font-size: .75rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .ad-typed { animation: ad-type var(--loop) steps(25, end) infinite both; }
  .ad-caret { animation: ad-caret var(--loop) infinite both; }
  .ad-go { animation: ad-go var(--loop) infinite both; }
  .ad-url-1 { animation: ad-show-search var(--loop) infinite both; }
  .ad-url-2 { animation: ad-show-form var(--loop) infinite both; }
  .ad-results { animation: ad-show-search var(--loop) infinite both; }
  .ad-idle { animation: ad-idle var(--loop) infinite both; }
  .ad-hit { animation: ad-hit var(--loop) infinite both; }
  .ad-form { animation: ad-show-form var(--loop) infinite both; }
  .ad-v > span { animation: ad-fill var(--loop) steps(12, end) infinite both; }
  .ad-row .icon, .ad-file em { animation: ad-appear var(--loop) infinite both; }
  .ad-r1 .ad-v > span, .ad-r1 .icon { animation-delay: .6s; }
  .ad-r2 .ad-v > span, .ad-r2 .icon { animation-delay: 1.2s; }
  .ad-r3 .ad-v > span, .ad-r3 .icon { animation-delay: 1.8s; }
  .ad-r4 .ad-v > span, .ad-r4 .icon { animation-delay: 2.4s; }
  .ad-f0 em { animation-delay: 3.2s; }
  .ad-f1 em { animation-delay: 3.8s; }
  .ad-stop { animation: ad-stop var(--loop) infinite both; }
  .ad-steps li { animation: ad-step var(--loop) infinite both; }
  .ad-steps .ad-st1 { animation-name: ad-step1; }
  .ad-steps .ad-st2 { animation-name: ad-step2; }
  .ad-steps .ad-st3 { animation-name: ad-step3; }
  .ad-steps .ad-st4 { animation-name: ad-step4; }
  .ad-bar-fill { animation: ad-bar 2.4s cubic-bezier(.3, .7, .3, 1) both; }
  .ad-bar-auto .ad-bar-fill { animation-delay: .4s; }
}
/* 16秒で1周：0〜2.6秒 入力 → 3〜6秒 検索結果 → 6〜12.5秒 申請画面に入力・添付 → 12.5〜16秒 送信の手前で停止 */
@keyframes ad-type { 0%, 3% { width: 0; } 16%, 100% { width: 25ch; } }
@keyframes ad-caret { 0%, 17% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes ad-go { 0%, 16% { background: #2a3f66; transform: none; } 17% { background: #14213d; transform: scale(.94); } 19%, 100% { background: #2a3f66; transform: none; } }
@keyframes ad-idle { 0%, 17% { opacity: 1; } 18.5%, 100% { opacity: 0; } }
@keyframes ad-show-search { 0%, 18% { opacity: 0; } 19.5%, 36.5% { opacity: 1; } 37.5%, 100% { opacity: 0; } }
@keyframes ad-show-form { 0%, 37% { opacity: 0; } 38.5%, 100% { opacity: 1; } }
@keyframes ad-hit { 0%, 26% { background: transparent; border-color: var(--line); } 28%, 100% { background: #eaf1fc; border-color: #1a4fa3; } }
@keyframes ad-fill { 0%, 40% { max-width: 0; } 44%, 100% { max-width: 100%; } }
@keyframes ad-appear { 0%, 44% { opacity: 0; } 45.5%, 100% { opacity: 1; } }
@keyframes ad-stop { 0%, 77% { opacity: 0; transform: translateY(14px); } 80%, 100% { opacity: 1; transform: none; } }
@keyframes ad-step1 { 0%, 18.5% { color: var(--ink); border-top-color: #2a3f66; } 19%, 100% { color: var(--muted); border-top-color: var(--line); } }
@keyframes ad-step2 { 0%, 18.5% { color: var(--muted); border-top-color: var(--line); } 19%, 37% { color: var(--ink); border-top-color: #2a3f66; } 37.5%, 100% { color: var(--muted); border-top-color: var(--line); } }
@keyframes ad-step3 { 0%, 37% { color: var(--muted); border-top-color: var(--line); } 37.5%, 77% { color: var(--ink); border-top-color: #2a3f66; } 78%, 100% { color: var(--muted); border-top-color: var(--line); } }
@keyframes ad-step4 { 0%, 77% { color: var(--muted); border-top-color: var(--line); } 78%, 100% { color: var(--vermilion); border-top-color: var(--vermilion); } }
@keyframes ad-bar { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

@media (max-width: 600px) {
  .ad-body { grid-template-columns: minmax(0, 1fr); }
  .ad-side { display: none; }
  .ad-row { grid-template-columns: 6.5em minmax(0, 1fr) 14px; }
  .ad-view { height: 340px; }
  .ad-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-bar { grid-template-columns: 5.5em minmax(0, 1fr) 4em; }
}

/* ---- いつ役立つか ---- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 0; position: relative; }
.journey::before { content: ""; position: absolute; top: 44px; left: 10%; right: 10%; height: 3px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 18px); }
.jr-step { position: relative; text-align: center; padding: 0 20px; }
.jr-icon { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); position: relative; z-index: 1; }
.jr-icon .icon { width: 38px; height: 38px; }
.jr-step h3 { margin-top: 14px; font-size: 1.125rem; }
.jr-step p { margin-top: 6px; font-size: .9375rem; color: var(--muted); }
.jr-focus .jr-icon { width: 104px; height: 104px; margin-top: -8px; background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 0 0 8px var(--green-tint); }
.jr-focus h3 { color: var(--green-dark); font-size: 1.25rem; }
.jr-badge { display: inline-block; margin-bottom: 10px; font-size: .8125rem; font-weight: 700; color: #fff; background: var(--vermilion); padding: 2px 12px; border-radius: 99px; position: absolute; top: -34px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .jr-focus .jr-icon { animation: jr-pulse 2.4s ease-out infinite; }
}
@keyframes jr-pulse { 0% { box-shadow: 0 0 0 0 rgba(29, 122, 95, .45); } 70% { box-shadow: 0 0 0 18px rgba(29, 122, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 122, 95, 0); } }
.section .journey { margin-top: 56px; }

.vs { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px 26px; display: flex; flex-direction: column; }
.vs-after { border: 2px solid var(--green); }
.vs-label { font-weight: 700; color: var(--muted); font-size: .9375rem; }
.vs-after .vs-label { color: var(--green-dark); }
.vs-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.vs-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.vs-list .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--muted); }
.vs-after .vs-list .icon { color: var(--green); }
.vs-time { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.vs-after .vs-time { color: var(--green-dark); }
.vs-time small { font-size: .8125rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.vs-arrow { display: grid; place-items: center; color: var(--green); }
.vs-arrow .icon { width: 36px; height: 36px; }
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 44px; }
  .journey::before { top: 0; bottom: 0; left: 50%; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 10px, transparent 10px 18px); }
  .jr-step p { background: var(--surface); }
  .vs { grid-template-columns: 1fr; gap: 8px; }
  .vs-arrow { transform: rotate(90deg); height: 48px; }
}

/* ---- できること（アイコン付き） ---- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 20px; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green-tint); color: var(--green-dark); }
.feature-icon .icon { width: 26px; height: 26px; }
.feature-card h3 { margin-top: 14px; font-size: 1.0625rem; }
.feature-card p { margin-top: 6px; font-size: .875rem; color: var(--muted); line-height: 1.75; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- 様式の違いを吸収 ---- */
.tpl { display: grid; grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr); gap: 48px; align-items: center; position: relative; }
.tpl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tpl-doc { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; position: relative; }
.tpl-doc::after { content: ""; position: absolute; right: -48px; top: 50%; width: 48px; height: 2px; background: var(--line-strong); }
.tpl-ext { grid-row: span 2; display: grid; place-items: center; min-width: 76px; height: 44px; padding: 0 8px; border-radius: 6px; color: #fff; font-weight: 700; font-size: .75rem; }
.tpl-xlsx .tpl-ext { background: #1d6f42; }
.tpl-docx .tpl-ext { background: #2b579a; }
.tpl-pptx .tpl-ext { background: #b7472a; }
.tpl-doc b { color: var(--ink); }
.tpl-doc span:last-child { font-size: .875rem; color: var(--muted); }
.tpl-hub { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 16px; background: var(--ink); color: #fff; border-radius: 16px; position: relative; z-index: 1; }
.tpl-hub-icon .icon { width: 40px; height: 40px; color: #9fe3cc; }
.tpl-hub b { font-size: 1.125rem; }
.tpl-hub span:last-child { font-size: .8125rem; color: #c3cad6; }
.tpl-out li { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius-m); padding: 14px 16px; font-weight: 700; color: var(--ink); position: relative; }
.tpl-out li::before { content: ""; position: absolute; left: -48px; top: 50%; width: 48px; height: 2px; background: var(--green); }
.tpl-out .icon { width: 22px; height: 22px; color: var(--green); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .tpl-doc, .tpl-out li { animation: tpl-in 6s ease-out infinite both; }
  .tpl-in li:nth-child(2) { animation-delay: .3s; }
  .tpl-in li:nth-child(3) { animation-delay: .6s; }
  .tpl-out li { animation-name: tpl-out; }
  .tpl-out li:nth-child(2) { animation-delay: .3s; }
  .tpl-out li:nth-child(3) { animation-delay: .6s; }
  .tpl-hub-icon { animation: tpl-hub 6s ease-in-out infinite both; }
}
@keyframes tpl-in { 0% { opacity: 0; transform: translateX(-16px); } 10%, 100% { opacity: 1; transform: none; } }
@keyframes tpl-out { 0%, 40% { opacity: 0; transform: translateX(-16px); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes tpl-hub { 0%, 20% { transform: none; } 28% { transform: scale(1.15); } 36%, 100% { transform: none; } }
@media (max-width: 860px) {
  .tpl { grid-template-columns: 1fr; gap: 28px; }
  .tpl-doc::after, .tpl-out li::before { display: none; }
  .tpl-hub { justify-self: center; width: 220px; }
}

/* ---- アプリの画面 ---- */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.shot figure { margin: 0; }
.shot-frame { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 36px -26px rgba(20, 33, 61, .5); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.shot figcaption b { display: block; color: var(--ink); font-size: 1.0625rem; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* ---- セキュリティ ---- */
.sec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sec-grid li { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius-s); padding: 22px 20px; }
.sec-grid .icon { width: 30px; height: 30px; color: var(--ink); }
.sec-grid h3 { margin-top: 10px; font-size: 1.0625rem; }
.sec-grid p { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.sec-more { margin-top: 28px; }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sec-grid { grid-template-columns: 1fr; } .sec-more .btn { width: 100%; } }

/* ---- 試算の前提 ---- */
.estimate { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.estimate h3 { font-size: .9375rem; }
.estimate p { margin-top: 6px; font-size: .8125rem; color: var(--muted); }

/* ---- 申請の流れ（段ごとの画像。client/flow.ts）。PC は左に段の一覧・右に画像。狭い画面は画像の下に一覧 ---- */
.flow-player { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.flow-view { grid-column: 2; grid-row: 1; }
.flow-steps { grid-column: 1; grid-row: 1; }
.flow-frame { margin: 0; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -26px rgba(20, 33, 61, .5); aspect-ratio: 1280 / 860; }
.flow-frame img { display: block; width: 100%; height: auto; }
.flow-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.flow-ctrl p { font-size: .75rem; color: var(--muted); }
.flow-toggle { display: none; flex: none; white-space: nowrap; min-height: 36px; padding: 4px 16px; font: inherit; font-size: .875rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius-s); cursor: pointer; }
.flow-player.is-ready .flow-toggle { display: inline-block; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.flow-step { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; text-align: left; padding: 6px 8px; font: inherit; color: var(--text); background: transparent; border: 0; border-left: 3px solid transparent; border-radius: 0 var(--radius-s) var(--radius-s) 0; cursor: pointer; }
.flow-step:hover { background: rgba(20, 33, 61, .04); }
.flow-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface); }
.flow-t { display: grid; line-height: 1.5; }
.flow-t b { font-size: .875rem; color: var(--ink); }
.flow-t span { font-size: .75rem; color: var(--muted); display: none; }
.flow-step[aria-current="step"] { background: var(--surface); border-left-color: var(--green); box-shadow: 0 1px 0 var(--line); }
.flow-step[aria-current="step"] .flow-t span { display: block; }
.flow-step[aria-current="step"] .flow-n { background: var(--green); border-color: var(--green); color: #fff; }
.flow-steps li:nth-child(4) .flow-n, .flow-steps li:nth-child(9) .flow-n { border-color: var(--vermilion); color: var(--vermilion); }
.flow-steps li:nth-child(4) .flow-step[aria-current="step"], .flow-steps li:nth-child(9) .flow-step[aria-current="step"] { border-left-color: var(--vermilion); }
.flow-steps li:nth-child(4) .flow-step[aria-current="step"] .flow-n, .flow-steps li:nth-child(9) .flow-step[aria-current="step"] .flow-n { background: var(--vermilion); color: #fff; }
.flow-player:not(.is-ready) .flow-t span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .flow-frame img:not([hidden]) { animation: flow-in .35s ease-out both; }
}
@keyframes flow-in { from { opacity: .3; } to { opacity: 1; } }
@media (max-width: 960px) {
  .flow-player { grid-template-columns: 1fr; gap: 16px; }
  .flow-view, .flow-steps { grid-column: 1; grid-row: auto; }
  .flow-t span { display: block; }
}
