/* The one stylesheet of the TBR journey site (#86): every page links this file and nothing else.
   No build step, no framework. Tokens first, then the page skeleton, then the pieces a journey
   page is made of. Light and dark follow the phone unless data-theme is set. Shape copied from
   the prototype Jamie reacted to on prototype/journey, 2026-10-14 PT. */

:root {
  --bg: #f6f7f9;            /* snow with a blue bias */
  --panel: #ffffff;
  --fg: #22272e;            /* granite */
  --muted: #5d6673;
  --line: #c9cfd8;
  --soft: #eef1f5;
  --accent: #c8471c;        /* signal orange: launch */
  --accent-soft: #fbe9e1;
  --accent-fg: #ffffff;
  --ok: #1f7a46;            /* built */
  --warn: #a15c00;          /* waiting on a decision */
  --later: #7f8a99;         /* year 2, future */
  --later-soft: #e4e8ee;
  --ask: #6d28d9;           /* the question box */
  --ask-soft: #efe9fb;
  --wire: #d9dee5;          /* grey boxes in a wireframe */
  --wire-dark: #b8c0cb;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15191f; --panel: #1d232b; --fg: #e6e9ee; --muted: #a2abb8; --line: #3a434f; --soft: #262d37;
    --accent: #ef7a4f; --accent-soft: #3a2419; --accent-fg: #1b1208;
    --ok: #4cc283; --warn: #e3a63c; --later: #8d98a7; --later-soft: #2b3340;
    --ask: #b48cf2; --ask-soft: #2a2140; --wire: #2f3844; --wire-dark: #45505e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15191f; --panel: #1d232b; --fg: #e6e9ee; --muted: #a2abb8; --line: #3a434f; --soft: #262d37;
  --accent: #ef7a4f; --accent-soft: #3a2419; --accent-fg: #1b1208;
  --ok: #4cc283; --warn: #e3a63c; --later: #8d98a7; --later-soft: #2b3340;
  --ask: #b48cf2; --ask-soft: #2a2140; --wire: #2f3844; --wire-dark: #45505e;
  color-scheme: dark;
}

/* Skeleton */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 48px; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; margin: 20px 0 8px; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.25rem; margin: 36px 0 10px; line-height: 1.2; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
p { margin: 0 0 12px; max-width: 70ch; }
.lede { color: var(--muted); font-size: 1.05rem; }
.note { color: var(--muted); font-size: .9rem; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 20px; }
code { font-family: var(--mono); font-size: .88em; background: var(--soft); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* Notice line under the nav: wireframes, invented people */
.proto { background: #fde68a; color: #3b2f00; font-size: .8rem; padding: 6px 16px; text-align: center; }

/* Nav bar: Prev · n of N · map · Next, on every page */
.bar { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); }
.bar .in { max-width: 880px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .95rem; }
.bar a { text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--soft); color: var(--fg); min-width: 44px; text-align: center; }
.bar a.disabled { opacity: .45; pointer-events: none; }
.bar .mid { color: var(--muted); display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.bar .mid a { background: none; padding: 0; color: var(--accent); min-width: 0; }

/* Boxes */
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.box h2, .box h3 { margin-top: 0; }
.rules ul { margin: 0; padding-left: 20px; }
.rules li { margin: 4px 0; }
.ask { background: var(--ask-soft); border: 1px solid var(--ask); border-left-width: 6px; border-radius: 10px; padding: 14px 16px; margin: 24px 0; }
.ask h2 { color: var(--ask); margin-top: 0; font-size: 1.1rem; }
.ask ol { margin: 0; padding-left: 20px; }
.ask li { margin: 6px 0; }
.assume { color: var(--accent); font-weight: 600; }
.decided ul { margin: 0; padding-left: 20px; }
.decided li { margin: 6px 0; }

/* Tags and pills */
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.tag.launch { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tag.y2 { color: var(--later); border-color: var(--later); background: var(--later-soft); }
.tag.future { color: var(--later); border-color: var(--later); border-style: dashed; }
.tag.effort { color: var(--muted); border-color: var(--line); }
.tag.effort.on { color: var(--fg); border-color: var(--fg); font-weight: 700; }

/* The journey: groups of numbered step cards */
.group { margin-top: 28px; }
.group h2 { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.group h2 small { color: var(--muted); font-size: .85rem; font-weight: 400; }
.steps { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: inherit; }
.step:hover { border-color: var(--accent); }
.step .n { font-weight: 800; font-size: 1.2rem; color: var(--accent); line-height: 1.1; }
.step.later .n { color: var(--later); }
.step .t { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.step .what { color: var(--muted); font-size: .92rem; margin: 2px 0 8px; }
.step .meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }

/* Progress: four segments by function points */
.prog { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--later-soft); margin: 4px 0 6px; }
.prog i { display: block; height: 100%; }
.prog .built { background: var(--ok); }
.prog .building { background: var(--accent); }
.prog .waiting { background: var(--warn); }
.prog .y2 { background: var(--later); }
.key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); margin: 10px 0; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }

/* Measurements strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.strip .m { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.strip b { display: block; font-size: 1.6rem; line-height: 1.1; font-family: var(--mono); }
.strip span { font-size: .85rem; color: var(--muted); }

/* Test one-liners */
.proves { margin: 0; padding: 0; list-style: none; }
.proves li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 8px; font-size: .92rem; }
.proves li b { font-weight: 600; }
@media (max-width: 480px) { .proves li { grid-template-columns: 1fr; gap: 2px; } }

/* Flow graphic: an SVG that scrolls sideways on a phone rather than shrinking its words */
.flow { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin: 12px 0; }
.flow svg { display: block; min-width: 600px; width: 100%; height: auto; }
.flow svg text { font-family: var(--font); fill: var(--fg); }
.flow svg .step-box { fill: var(--soft); stroke: var(--line); }
.flow svg .end-box { fill: var(--accent-soft); stroke: var(--accent); }
.flow svg .lbl { fill: var(--muted); font-size: 11px; }
.flow svg .edge { stroke: var(--muted); fill: none; }

/* Wireframe of a phone screen: grey boxes and real labels */
.wire { max-width: 360px; margin: 12px auto; background: var(--panel); border: 2px solid var(--wire-dark); border-radius: 28px; padding: 18px 16px 22px; font-size: .95rem; }
.wire .brand { font-size: .8rem; color: var(--muted); }
.wire h4 { margin: 4px 0 2px; font-size: 1.15rem; line-height: 1.2; }
.wire .box-g { background: var(--wire); border: 1px dashed var(--wire-dark); border-radius: 8px; padding: 10px 12px; margin: 8px 0; color: var(--muted); font-size: .88rem; }
.wire .box-g.tall { min-height: 90px; display: grid; place-items: center; }
.wire .lab { font-weight: 600; margin: 12px 0 4px; }
.wire .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wire .seg span, .wire .trio span { border: 1px solid var(--wire-dark); border-radius: 8px; padding: 9px; text-align: center; background: var(--panel); }
.wire .seg span.on, .wire .trio span.on { background: var(--fg); color: var(--panel); border-color: var(--fg); }
.wire .trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.wire .field { border: 1px solid var(--wire-dark); border-radius: 8px; padding: 10px; background: var(--panel); color: var(--muted); font-size: .9rem; }
.wire .field.filled { color: var(--fg); }
.wire .btn { display: block; text-align: center; font-weight: 700; padding: 13px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); margin-top: 14px; }
.wire .help { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }

/* Effort levels */
.levels { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .levels { grid-template-columns: 1fr 1fr 1fr; } }
.level { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.level.on { border-color: var(--accent); border-width: 2px; }
.level h3 { margin-top: 0; display: flex; justify-content: space-between; gap: 8px; }
.level p { margin: 0; }

/* Feedback and footer */
.feedback { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 24px 0; }
.feedback .cta { display: inline-block; font-weight: 700; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); text-decoration: none; margin: 4px 0 8px; }
footer { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 32px; }

/* Added for the built site, 2026-10-14 PT */

/* A row of small interstitial screens (link sent, saved on this phone, sent, sign-up confirmed) */
.wires { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 12px 0; }
.wire.small { max-width: 220px; margin: 0; padding: 14px 12px 16px; font-size: .82rem; border-radius: 20px; }
.wire.small h4 { font-size: .98rem; }
.wire.small .btn { padding: 9px; margin-top: 10px; font-size: .85rem; }
.wire.small .cap { text-align: center; color: var(--muted); font-size: .78rem; margin: 10px 0 0; }

/* A laptop-width wireframe for the admin screens */
.wire.wide { max-width: 640px; border-radius: 12px; padding: 14px 16px 18px; }
.wire.wide table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 6px 0; }
.wire.wide th, .wire.wide td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wire.wide th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.wire .tabs { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.wire .tabs span { border: 1px solid var(--wire-dark); border-radius: 999px; padding: 4px 10px; font-size: .82rem; color: var(--muted); }
.wire .tabs span.on { background: var(--fg); color: var(--panel); border-color: var(--fg); }
.wire .row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.wire .row:last-child { border-bottom: 0; }
.wire .row .st { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.wire .pill { display: inline-block; font-size: .74rem; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.wire .pill.ok { color: var(--ok); } .wire .pill.warn { color: var(--warn); } .wire .pill.bad { color: var(--accent); } .wire .pill.later { color: var(--later); }
.wire .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.wire .btn.quiet { background: var(--panel); color: var(--fg); border: 1px solid var(--wire-dark); }
.wire .btn + .btn { margin-top: 8px; }

/* An email shown as an inbox view, full text, for review */
.inbox { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin: 14px 0; overflow: hidden; }
.inbox .hdr { background: var(--soft); padding: 10px 14px; font-size: .86rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.inbox .hdr b { color: var(--fg); font-weight: 600; }
.inbox .hdr div { margin: 1px 0; }
.inbox .body { padding: 14px 16px; font-size: .95rem; white-space: pre-wrap; font-family: var(--font); line-height: 1.5; }
.inbox .body a { overflow-wrap: anywhere; }

/* The index's user-testing list */
.learn { margin: 0; padding-left: 20px; }
.learn li { margin: 6px 0; }
.learn li b { font-weight: 600; }
