/* Forward's screens (docs/forward-screens-brief.md, Nov 19, 2026), drawn from the canvas boards and
   the design system (ptv.css holds its tokens). One filled blue button on a screen; the rest outlined.
   Stages show by shape: a filled ink dot for what has happened, a blue dot in a blue ring for where it
   is now, an open ring for what is to come. Stand-ins (what Brian hasn't decided, or what isn't real
   yet) are drawn dashed. Nothing moves on its own. */

body { min-height: 100vh; display: flex; flex-direction: column; }
#app { flex: 1; display: flex; flex-direction: column; }
.wrap { width: min(1040px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(640px, 100% - 32px); margin: 0 auto; }
main { flex: 1; }
.screen { padding: 40px 0 72px; display: flex; flex-direction: column; gap: 28px; }

/* Header and footer, as on the canvas. */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 18px 0; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); text-decoration: none; }
.brand b { font: 600 1.5rem/1.1 var(--display); }
.brand span { color: var(--quiet); font-size: 0.875rem; }
.nav { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a.strong { color: var(--link); font-weight: 600; }
.foot { background: var(--foot); color: var(--on-foot); }
.foot .wrap { padding: 20px 0; font-size: 0.875rem; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.foot a { color: var(--on-foot); }

/* Labels and stand-ins. */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-block; background: var(--tint); color: var(--on-tint); font-size: 0.8rem; font-weight: 500; padding: 4px 12px; border-radius: var(--r-pill); }
.standin { display: inline-block; border: 1.5px dashed var(--quiet); border-radius: 6px; padding: 0 6px; }
.note { margin: 0; font-size: 0.875rem; color: var(--quiet); line-height: 1.45; }
.quiet { color: var(--quiet); }
.eyebrow { font-size: 0.8rem; color: var(--quiet); margin: 0; }
.dashed { border: 1.5px dashed var(--quiet); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--quiet); }
.dashed strong { color: var(--ink); }

/* Type. */
.h-hero { margin: 0; font: 300 clamp(3rem, 2rem + 4.5vw, 6.5rem)/1 var(--display); letter-spacing: -0.02em; }
.h-big { margin: 0; font: 300 clamp(2.25rem, 1.6rem + 2.6vw, 4rem)/1.04 var(--display); letter-spacing: -0.012em; text-wrap: balance; }
.h-mid { margin: 0; font: 600 clamp(1.4rem, 1.2rem + 0.9vw, 2rem)/1.2 var(--display); text-wrap: pretty; }
.h-small { margin: 0; font: 600 1.25rem/1.3 var(--display); }
.p { margin: 0; font-size: 1.05rem; line-height: 1.55; max-width: 66ch; }
.p.big { font-size: 1.15rem; }
h1:focus { outline: none; }

/* Buttons (ptv.css has .go and .plain). A little smaller on these screens, as on the canvas. */
.go, .plain { height: 52px; padding: 0 32px; font-size: 1.0625rem; }
.small-btn { height: 40px; padding: 0 18px; font-size: 0.95rem; }
.row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; justify-content: space-between; }
.split > .main { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split > .side { flex: 0 1 360px; min-width: 0; }

/* The two boxes: Today and Instead, joined by a line, as on the canvas. */
.boxes { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.boxes::before { content: ""; position: absolute; left: 25px; top: 38px; height: calc(100% - 76px); width: 2px; background: var(--line); }
.box { position: relative; display: flex; align-items: center; gap: 16px; background: var(--fill); border-radius: var(--r); padding: 0 18px; min-height: 60px; }
.box textarea { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.125rem/1.4 var(--sans); color: var(--ink); padding: 18px 0; resize: none; field-sizing: content; min-height: 1.4em; }
.box textarea::placeholder { color: var(--quiet); opacity: 1; }
.box textarea:focus-visible { outline: none; }
.box:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.dot { flex: none; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; }
.dot.done { background: var(--ink); }
.dot.now { border: 2px solid var(--link); display: flex; align-items: center; justify-content: center; }
.dot.now::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--link); }
.dot.later { border: 2px solid var(--ink); }
.compact .box { min-height: 52px; }
.compact .box textarea { font-size: 1rem; padding: 14px 0; }

/* The examples under the front door. */
.examples { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.examples ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.examples button { all: unset; cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; font-size: 0.95rem; }
.examples button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.figure { flex: 0 1 380px; min-width: 0; margin: 0; }
.figure .art { aspect-ratio: 4 / 5; border-radius: var(--r); background: linear-gradient(170deg, #012D61 0%, #0057B8 60%, #4D8FD6 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #FFFFFF; gap: 10px; }
.figure .art .result { font: 300 2rem/1.1 var(--display); }
.figure figcaption { margin-top: 8px; font-size: 0.75rem; color: var(--quiet); }

/* Forward's steps while it works: what's done, and how long each took. */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.steps li .t { color: var(--quiet); font-size: 0.875rem; margin-left: auto; }
.steps li.waiting { color: var(--quiet); }

/* The first step, in its blue frame. */
.first { border: 2px solid var(--link); border-radius: var(--r); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px; font-size: 0.875rem; }
.ruled { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 1rem; line-height: 1.45; }
.ruled p { margin: 0; }
.check-first { margin: 0; padding: 10px 14px; background: var(--tint); color: var(--on-tint); border-radius: var(--r); font-size: 0.95rem; }

/* The path from today to instead. */
.path { background: var(--fill); border-radius: var(--r); padding: 28px; }
.path ol { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 24px; }
.path ol::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.path li { position: relative; display: flex; gap: 16px; }
.path li .dot { margin-top: 3px; background-clip: padding-box; }
.path li .dot.now, .path li .dot.later { background: var(--fill); }
.path b { display: block; font-weight: 600; }
.path .now-text b { color: var(--link); }
.path span.d { font-size: 0.95rem; color: var(--quiet); line-height: 1.45; }

/* Lists of plain facts. */
.facts { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; font-size: 1rem; line-height: 1.5; }
.facts.wide { grid-template-columns: 170px minmax(0, 1fr); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.ack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; line-height: 1.5; }
.ack li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.ack li::before { content: ""; width: 6px; height: 6px; margin: 9px 0 0 4px; border-radius: 50%; background: var(--quiet); }
.panel { background: var(--fill); border-radius: var(--r); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
textarea.field, input.field { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--fill); border: 0; border-radius: var(--r); padding: 12px 14px; resize: vertical; }
label.lbl { font-weight: 600; }

/* The company's screen, inside a frame, on "Before the ask". */
.preview { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.preview .bar { background: var(--fill); padding: 10px 18px; font-size: 0.85rem; color: var(--quiet); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.preview .in { padding: 24px; display: flex; flex-direction: column; gap: 18px; }

/* The blue band of a moment: they're in, it's agreed. */
.band { background: var(--button); color: #FFFFFF; }
.band .wrap { padding: 44px 0 52px; display: flex; flex-direction: column; gap: 28px; }
.band .pill { background: var(--tint); color: #012D61; }
.band .status { font-size: 1rem; font-weight: 600; color: #E1F0FF; margin: 0; }
.band .h-big { color: #FFFFFF; }
.band p { margin: 0; font-size: 1.15rem; line-height: 1.5; max-width: 62ch; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #4D8FD6; }
.stats > div { padding: 20px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid #4D8FD6; }
.stats dt { font: 300 2.5rem/1 var(--display); }
.stats dd { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.45; color: #E1F0FF; }
.band .go-white { display: inline-flex; align-items: center; height: 52px; padding: 0 32px; border-radius: var(--r-pill); background: #FFFFFF; color: #0057B8; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1.0625rem; width: fit-content; }
.band a, .band .textlike { color: #FFFFFF; }
.band :focus-visible { outline-color: #FFFFFF; }

/* The plan, slot by slot, with where each stands. */
.plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plan > li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan > li:first-child { border-top: 0; }
.plan .dot { margin-top: 4px; }
.plan .name { font-size: 0.8rem; color: var(--quiet); }
.plan .text { font-size: 1rem; line-height: 1.5; }
.plan .src { font-size: 0.8rem; color: var(--quiet); }

/* Forward's conversation and its questions. */
.msgs { display: flex; flex-direction: column; gap: 18px; }
.msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.msg .who { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: #012D61; font: 600 0.95rem/32px var(--display); text-align: center; }
.msg .who.you { background: var(--fill-strong); color: var(--ink); font-family: var(--sans); font-size: 0.75rem; }
.msg .meta { font-size: 0.8rem; color: var(--quiet); margin-bottom: 2px; }
.msg p { margin: 0; line-height: 1.5; }
.ask-card { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ask-card fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ask-card legend { padding: 0; font: 600 1.15rem/1.35 var(--display); margin-bottom: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.choice input { margin-top: 4px; accent-color: var(--link); }
.choice:has(input:checked) { border-color: var(--link); background: color-mix(in srgb, var(--link) 6%, transparent); }

/* The time-out's three things. */
.three { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.three > li { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px 14px; }
.three .n { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.three .said { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.three .back { margin: 6px 0 0; padding: 10px 14px; background: var(--fill); border-radius: var(--r); font-size: 0.95rem; }
.who-confirmed { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 0.9rem; align-items: center; }
.who-confirmed .yes::before { content: "✓ "; font-weight: 700; }
.who-confirmed .not { color: var(--quiet); }

/* The one page and its checklist. */
.onepage { display: flex; flex-direction: column; gap: 32px; }
.onepage section { display: flex; flex-direction: column; gap: 12px; }
.onepage h2 { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--quiet); }
.onepage .grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 24px; margin: 0; }
.onepage .grid dt { font-weight: 600; }
.onepage .grid dd { margin: 0; line-height: 1.5; }
.onepage .grid dd .src { display: block; font-size: 0.8rem; color: var(--quiet); }
.checks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.checks li { display: grid; grid-template-columns: 28px 220px minmax(0, 1fr); gap: 4px 12px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: start; }
.checks li:first-child { border-top: 0; }
.checks .mark { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.checks .title { font-weight: 600; }
.checks .small { display: block; font-size: 0.75rem; color: var(--quiet); margin-top: 2px; }
.checks li.after { color: var(--quiet); }
.checks li.after .title { color: var(--quiet); font-weight: 500; }
.checks li.fail .mark { color: var(--ink); }
.ready { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 2px solid var(--ink); border-radius: var(--r); font: 600 1.35rem/1.2 var(--display); }
.ready .seal { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--page); display: flex; align-items: center; justify-content: center; font: 700 1rem var(--sans); }
.notready { padding: 14px 18px; border: 1.5px dashed var(--quiet); border-radius: var(--r); }

/* A phone's lock screen, drawn: the line that follows you. */
.phone { width: 240px; height: 500px; border-radius: 38px; background: #080808; padding: 10px; }
.phone .scr { width: 100%; height: 100%; border-radius: 29px; background: linear-gradient(170deg, #012D61 0%, #0057B8 55%, #4D8FD6 100%); position: relative; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; }
.phone .isl { margin-top: 12px; width: 80px; height: 22px; border-radius: 12px; background: #080808; }
.phone .day { margin-top: 24px; font-size: 0.8rem; opacity: 0.85; }
.phone .clock { font-size: 3.6rem; font-weight: 300; line-height: 1.05; }
.phone .note-card { position: absolute; left: 10px; right: 10px; bottom: 64px; background: rgba(8, 8, 8, 0.62); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.phone .note-card b { font: 600 0.85rem var(--display); }
.phone .note-card span { font-size: 0.95rem; font-weight: 600; line-height: 1.25; }
.phone .note-card small { font-size: 0.75rem; opacity: 0.8; }

/* The prototype's controls: stand-ins for the other side, always marked. */
.proto { border: 1.5px dashed var(--quiet); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.proto > b { font-size: 0.8rem; color: var(--quiet); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.error { margin: 0; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: var(--r); font-size: 0.95rem; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list > li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.list > li:first-child { border-top: 0; }

@media (max-width: 820px) {
  .screen { padding: 28px 0 56px; gap: 22px; }
  .split { gap: 32px; }
  .figure { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats > div, .stats > div + div { padding: 16px 0 0; border-left: 0; }
  .stats > div + div { border-top: 1px solid #4D8FD6; margin-top: 16px; }
  .onepage .grid { grid-template-columns: 1fr; gap: 4px; }
  .facts.wide { grid-template-columns: 1fr; gap: 2px; }
  .facts.wide dd { margin-bottom: 10px; }
  .onepage .grid dd { margin-bottom: 10px; }
  .checks li { grid-template-columns: 24px minmax(0, 1fr); }
  .checks li .text { grid-column: 2; }
  .phone-wrap { display: none; }
  .band .wrap { padding: 32px 0 40px; }
  .go { width: auto; }
}
@media print {
  .top, .foot, .invented, .proto, .no-print { display: none !important; }
  .screen { padding: 0; }
}

/* The engine's lines run longer than the canvas's: long ones step down a size, so they read as text. */
.h-big.long { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.12; }
.h-mid.long { font: 600 1.2rem/1.45 var(--display); }
/* A fieldset won't shrink below its content unless told, which pushed the phone's page sideways. */
.ask-card fieldset { min-width: 0; }
.ask-card, .choice, .choice span { min-width: 0; overflow-wrap: anywhere; }
/* Small buttons carry company names and can run long: they wrap on a phone instead of pushing the page. */
.small-btn { white-space: normal; height: auto; min-height: 40px; padding: 8px 18px; line-height: 1.25; text-align: center; }

/* ---- Since Dec 1, 2026 (slice 1 of the PTV reset): Forward inside the Portal. One narrow column, phone first.
   The header has Forward's name and the way back to the Portal, on every page. ---- */
.top .narrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.top .portal { font-weight: 600; text-decoration: none; }
.top .portal:hover { text-decoration: underline; }
.top-links { display: flex; align-items: center; gap: 20px; }
.top .signout { padding: 8px 0; background: none; border: 0; cursor: pointer; font: 600 1rem var(--sans); color: var(--link); }
.top .signout:hover { text-decoration: underline; }
.signout-form { margin: 0; display: inline; }
.said { margin: 0; padding: 12px 16px; background: var(--tint); color: var(--on-tint); border-radius: var(--r); font-size: 0.95rem; }
.from-idea { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); }
.from-idea .eyebrow { font-size: 0.9rem; color: var(--ink); font-weight: 600; }
details > summary { cursor: pointer; color: var(--link); font-size: 0.95rem; }
details > summary + .p { margin-top: 8px; font-size: 0.95rem; color: var(--quiet); white-space: pre-line; }
.needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.need { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.need p { margin: 0; }
@media (max-width: 820px) {
  .h-hero { font-size: clamp(2.6rem, 2rem + 4vw, 3.4rem); }
  .row .go { width: 100%; }
}
