/* Flow page: one terminal window, 2 steps, one big button, all on one phone screen. Phone first.
   Animations: transform/opacity only. The page itself scrolls, so the phone keyboard can push content up. */
body.flow { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(1, 6, 3, .92); }
.bar .brand { min-height: 44px; min-width: 0; font-size: 15px; }
.bar .brand span { font-size: 13px; }
.bar .icon-btn { width: 44px; height: 44px; }
.bar .snd::after { left: 13px; right: 13px; }

.stage { flex: 1 0 auto; display: flex; flex-direction: column; gap: 10px; width: min(560px, 100% - 32px); margin-inline: auto; padding: 14px 0 10px; }
.top-note { text-align: center; }
.pitch { margin: 0; font: 700 clamp(14px, 4.2vw, 20px)/1.35 var(--f-body); color: var(--text); white-space: nowrap; }
.pitch b { color: var(--accent); }
.clock { margin: 2px 0 0; color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }

.term-body { padding: 14px; }
[data-view].in { animation: view-in .22s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prog { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; color: var(--accent); font: 700 15px/1.4 var(--f-body); }
.prog i { font-style: normal; color: var(--mute); }
.term-body h2 { margin: 14px 0 8px; font: 700 clamp(23px, 6.6vw, 30px)/1.2 var(--f-body); letter-spacing: -.01em; color: var(--text); overflow-wrap: anywhere; }
.hint { margin: 0 0 6px; color: #b4e8c4; font-size: 15px; line-height: 1.45; }
.hint a { padding: 14px 2px; color: var(--accent); } /* padding, not height: a big tap area that keeps the line spacing */
.hint.big-line { font-size: 17px; color: var(--text); margin-bottom: 12px; }

/* the 2 steps */
.step + .step { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line2); }
.term-body .step h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; font-size: clamp(16px, 4.7vw, 21px); letter-spacing: -.02em; }
.step h2 i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--f-body); }
.step.finished h2 i { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.step .hint { margin-bottom: 0; font-size: clamp(12.5px, 3.45vw, 13.5px); }

.task-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.btn.task { min-width: 0; min-height: 50px; padding: 8px 2px; font-size: clamp(13px, 3.7vw, 15px); letter-spacing: -.02em; white-space: nowrap; }
.btn.task.done { background: transparent; border-color: var(--line); color: var(--accent2); box-shadow: none; }

.paste-row { display: flex; gap: 6px; margin-top: 10px; }
.field { display: block; flex: 1; min-width: 0; width: 100%; min-height: 52px; padding: 12px; border: 1px solid var(--line2); border-radius: 6px; background: #03140a; color: var(--text); font: 400 16px/1.3 var(--f-body); outline: none; caret-color: var(--accent); -webkit-appearance: none; appearance: none; }
.field::placeholder { color: var(--mute); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field.good { border-color: var(--accent); }
.field.bad { border-color: var(--warn); }
.btn.paste { flex: none; min-height: 52px; padding: 0 14px; font-size: 15px; }
.err { margin: 10px 0 0; padding: 9px 12px; border: 1px solid rgba(232, 255, 122, .4); border-radius: 6px; background: rgba(232, 255, 122, .07); color: var(--warn); font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.err::before { content: '[!] '; font-weight: 700; }

.btn.big.go { width: 100%; min-height: 56px; margin-top: 10px; font-size: 17px; }
.btn.go.dim { opacity: .55; box-shadow: none; }
.go + .hint { margin-top: 14px; }
.sub { margin: 10px 0 0; color: var(--mute); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 0; }
.addr code { font: 400 14.5px/1.3 var(--f-body); color: var(--text); overflow-wrap: anywhere; }
.btn.mini { flex: none; min-width: 72px; min-height: 44px; padding: 0 12px; font-size: 13.5px; }

.fine { flex: none; width: min(560px, 100% - 32px); margin-inline: auto; padding: 2px 0 calc(10px + env(safe-area-inset-bottom)); color: var(--mute); font-size: 11.5px; line-height: 1.4; text-align: center; }
.fine p { margin: 0; }
.fine a { padding: 15px 2px; color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* phone keyboard open: less above the input, room to push the big button above the keyboard */
.typing .top-note, .typing .topcode { display: none; }
.typing .stage { padding-top: 8px; padding-bottom: 50vh; }
.typing .fine { display: none; }
/* short phone screens (browser bars take space): keep all of it on one screen */
@media (max-height: 720px) {
  .bar { height: 48px; }
  .stage { gap: 6px; padding: 6px 0; }
  .term-body { padding: 10px 12px; }
  .step + .step { margin-top: 10px; padding-top: 10px; }
  .task-list, .paste-row { margin-top: 8px; }
  .btn.task { min-height: 46px; }
  .field, .btn.paste { min-height: 46px; padding-block: 8px; }
  .btn.big.go { min-height: 50px; margin-top: 8px; padding-block: 12px; }
  .fine { font-size: 11px; line-height: 1.3; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
}
@media (min-width: 700px) and (min-height: 720px) { .stage { justify-content: center; } .term-body { padding: 22px; } }

/* the one code line above the box (owner 2026-11-04) */
.topcode { margin: 0; font: 600 clamp(11.5px, 3.6vw, 16px)/1.4 var(--f-mono, ui-monospace, monospace); color: var(--text); text-align: center; white-space: nowrap; min-height: 1.4em; }
.topcode i { font-style: normal; color: var(--accent); }
.topcode b { font-weight: 700; color: var(--accent); }
