/* Alice — branch-office customer intake.
 * Designed for calm, deliberate flow: a quiet landing page that progressively
 * reveals more of itself as the conversation captures painpoints, ending in
 * a workspace where Alice continues with the customer post-signup.
 */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #FAF6EF;
  --paper: #FFFFFF;
  --fg: #1A1410;
  --muted: #6E6357;
  --faint: #B8AC9C;
  --line: #E8DECC;
  --line-soft: #F0E8D8;
  --brand: #B6573A;
  --brand-deep: #9A4628;
  --brand-soft: #F2E0D5;
  --brand-wash: #F8EBE0;

  /* Font system:
     --sans    Bricolage Grotesque — default UI: testimonials, tickets,
               journey labels, workspace nav, footer, topbar.
     --display Outfit — the header (hook) AND the chat conversation +
               composer input. The two pieces the customer reads as
               "talking to Alice".
     --mark    Fraunces — brand mark and editorial quote details. */
  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --display: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --mark: 'Fraunces', ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;

  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Hide the scrollbar entirely — the page scrolls naturally, but visually
     the chrome stays calm. The journey + notes columns and the composer
     are sticky, so the user is never lost scroll-wise. */
  scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

/* ── atmosphere ─────────────────────────────────────────────────────────── */

.bg-blob {
  position: fixed;
  top: -300px; right: -260px;
  width: 760px; height: 760px;
  background: radial-gradient(circle at center, rgba(182, 87, 58, 0.12), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.bg-grain {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  mix-blend-mode: multiply;
}

/* ── topbar ─────────────────────────────────────────────────────────────── */

/* Topbar stays at the top of the viewport while the page scrolls. Its
   grid columns mirror the .page grid below — so the A mark sits over the
   journey dots, and the small compact title sits over the chat column. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 280px;
  column-gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 14px 36px;
  background: linear-gradient(to bottom, var(--bg) 80%, color-mix(in oklab, var(--bg) 92%, transparent));
}
.topnav { justify-self: end; }
.topbar-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.topbar-title .alice { color: var(--brand); font-weight: 500; }
body[data-scrolled="past"] .topbar-title {
  opacity: 1;
  transform: translateY(0);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 30px; height: 30px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mark);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding-top: 1px;
  font-variation-settings: "opsz" 24;
}
.brand .brand-name {
  font-family: var(--mark);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--fg);
  font-variation-settings: "opsz" 36;
}
.lang-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { background: var(--brand-wash); color: var(--fg); }

/* ── intake page: 3-col grid ────────────────────────────────────────────── */

.page {
  flex: 1;
  position: relative; z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 36px 24px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 280px;
  column-gap: 40px;
  align-items: start;
}
.page[hidden],
.workspace[hidden] { display: none !important; }

/* journey column (left) — sticky beneath the topbar so the dot map is
   always visible as the conversation scrolls past it. */
.journey-col {
  padding-top: 22px;
  position: sticky;
  top: 76px;            /* below the slimmer topbar */
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.journey-col::-webkit-scrollbar { display: none; }
.journey {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* The first column matches the 30px A-mark in the topbar, so each dot's
   centre lines up exactly under the A above. Together they read as a
   vertical flow: brand → step 1 → step 2 → … */
.journey::before {
  content: '';
  position: absolute;
  left: 14.5px;            /* centre of the 30px first-column */
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: var(--line);
  z-index: 0;
}
.step {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 14px 0;
  position: relative;
  z-index: 1;
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    padding 0.35s ease,
    transform 0.45s ease;
}
.step-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--faint);
  flex-shrink: 0;
  justify-self: center;    /* centre dot in the 30px column → aligned w/ A */
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.step-label {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--faint);
  transition: color 0.3s, font-weight 0.3s;
}
.step.active .step-dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
  transform: scale(1.08);
}
.step.active .step-label { color: var(--fg); font-weight: 600; }
.step.done .step-dot { background: var(--brand-deep); border-color: var(--brand-deep); }
.step.done .step-label { color: var(--muted); }

/* once journey reaches the hand-off step, completed dots collapse away */
body[data-journey="handoff"] .step.done {
  max-height: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  overflow: hidden;
}

/* main column (center) — normal block flow so the composer sits right
   under the conversation, just below the hero. */
.main-col {
  min-width: 0;
}

/* Hero — part of the page flow. It stays at its full size as you scroll
   past it; once it has scrolled out of view, the small "Alice." in the
   topbar takes over. No intermediate shrinking-in-place. */
.hero {
  margin-bottom: 36px;
}
.hook {
  font-family: var(--display);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 22px 0;
}
.hook .alice { color: var(--brand); font-weight: 600; }
.subhook {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.5;
}

/* legacy in-page wordmark — topbar carries the brand now */
.top .wordmark { display: none; }

/* conversation — transcript style, no chat bubbles. */
.conversation {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 40px;
  margin-bottom: 16px;
}
.turn-who { display: none; }
.turn { animation: turnIn 0.45s ease backwards; }
@keyframes turnIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.turn-text {
  font-family: var(--display);
  font-size: 16.5px;
  line-height: 1.62;
  max-width: 86%;
}
.turn.assistant .turn-text { color: var(--fg); }
.turn.user {
  display: flex;
  justify-content: flex-end;
}
.turn.user .turn-text {
  color: var(--muted);
  font-style: italic;
  text-align: right;
  max-width: 78%;
}

/* typing indicator (used by stream.js placeholder) */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}
.typing-indicator span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--faint);
  animation: bounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); opacity: 0.6; }
}

/* composer — normal flow, immediately under the conversation (which is
   immediately under the hero). Not sticky to the viewport. */
.input-area {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 4px 0 0;
}
.input-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 8px 8px 18px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input-row:focus-within {
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 4px var(--brand-wash);
}
.input-row {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
#input {
  flex: 1;
  resize: none;
  height: 48px;            /* ≈ 2 rows at line-height 1.5 × 16px */
  max-height: 160px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  padding: 6px 0;
}
#input::placeholder { color: var(--faint); }
#send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
#send-btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
#send-btn:active { transform: translateY(0); }
#send-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* notes column (right) — sticky beneath the topbar; no internal scroll
   so testimonials sit where they sit (kept to 3 in HTML). */
.notes-col {
  padding-top: 14px;
  position: sticky;
  top: 76px;
  align-self: start;
}

/* ── testimonials (right column, landing) ───────────────────────────────── */

.stories {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 28px;
}
.story {
  animation: storyIn 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.story:nth-child(1) { animation-delay: 0.20s; }
.story:nth-child(2) { animation-delay: 0.55s; }
.story:nth-child(3) { animation-delay: 0.90s; }
.story:nth-child(4) { animation-delay: 1.25s; }
.story:nth-child(5) { animation-delay: 1.60s; }
@keyframes storyIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.story-quote {
  font-family: var(--mark);
  font-style: italic;
  font-weight: 400;
  font-size: 17.5px;
  line-height: 1.38;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0 0 10px 0;
  font-variation-settings: "opsz" 36;
}
.story-quote::before {
  content: '\201E';
  color: var(--brand);
  margin-right: 1px;
  font-style: normal;
}
.story-quote::after {
  content: '\201C';
  color: var(--brand);
  margin-left: 1px;
  font-style: normal;
}
html[lang="en"] .story-quote::before { content: '\201C'; }
html[lang="en"] .story-quote::after  { content: '\201D'; }
.story-who {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.005em;
}
.story-tag {
  display: inline-block;
  margin-left: 8px;
  color: var(--brand);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story-tag::before { content: '·'; color: var(--faint); margin-right: 4px; }

/* once we have any cards in #proposalCards, the stories fade away */
body[data-cards="1"] .stories { display: none; }

/* ── ticket cards (intake sidebar) ──────────────────────────────────────── */

#proposalCards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticket-card {
  position: relative;
  display: block;
  padding: 16px 18px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: ticketIn 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  box-shadow: 0 1px 0 rgba(26, 20, 16, 0.02);
}
.ticket-card:nth-child(2) { animation-delay: 0.10s; }
.ticket-card:nth-child(3) { animation-delay: 0.20s; }
.ticket-card:nth-child(4) { animation-delay: 0.30s; }
.ticket-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--brand);
  opacity: 0.35;
  transition: opacity 0.2s, background 0.2s;
}
.ticket-card.complete::before,
.ticket-card.requested::before { opacity: 0.95; }
.ticket-card.requested::before { background: var(--brand-deep); }
.ticket-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand-soft);
  box-shadow: 0 1px 0 rgba(26, 20, 16, 0.02),
              0 12px 28px -18px rgba(182, 87, 58, 0.35);
}
.ticket-card:hover::before { opacity: 0.95; }

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.ticket-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
}
.ticket-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.ticket-card.partial .ticket-status { color: var(--muted); }
.ticket-card.partial .ticket-status::before { background: var(--muted); }
.ticket-card.requested .ticket-status { color: var(--brand-deep); }
.ticket-card.requested .ticket-status::before { background: var(--brand-deep); }

.ticket-num {
  font-family: var(--mark);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--faint);
  font-variation-settings: "opsz" 24;
}
.ticket-title {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--fg);
  letter-spacing: -0.008em;
  margin: 0 0 6px 0;
}
.ticket-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}
.ticket-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.ticket-meta-sep { color: var(--faint); }
.ticket-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.ticket-card:hover .ticket-cta { opacity: 1; transform: translateX(0); }
.ticket-card.requested .ticket-cta { opacity: 1; color: var(--brand-deep); cursor: default; }

@keyframes ticketIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── workspace (post-signup product page) ───────────────────────────────── */

.workspace {
  flex: 1;
  position: relative; z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 56px 24px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  column-gap: 40px;
  align-items: stretch;
  min-height: 0;
}

.ws-nav {
  padding-top: 16px;
  overflow-y: auto;
  min-height: 0;
}
.ws-brand {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.ws-brand-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.ws-brand-tier {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-wash);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.ws-brand-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.005em;
}
.ws-group { margin-bottom: 22px; }
.ws-group-title {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px 0;
}
.ws-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  gap: 10px;
  padding: 9px 10px 9px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.3;
}
.ws-item:hover { background: var(--brand-wash); color: var(--fg); }
.ws-item.is-active { background: var(--brand-wash); color: var(--fg); }
.ws-item-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--faint);
  justify-self: center;
  margin-top: 5px;
}
.ws-item[data-status="requested"] .ws-item-dot,
.ws-item[data-status="submitted"] .ws-item-dot {
  background: var(--brand);
  border-color: var(--brand);
}
.ws-item[data-status="identified"] .ws-item-dot {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.ws-item.is-active .ws-item-dot { box-shadow: 0 0 0 4px var(--brand-soft); }
.ws-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ws-item-label {
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
.ws-item.is-active .ws-item-label { color: var(--fg); font-weight: 600; }
.ws-item-meta {
  font-size: 11.5px;
  color: var(--brand);
  letter-spacing: 0.005em;
}
.ws-item[data-status="draft"] .ws-item-meta { color: var(--faint); }
.ws-notes-hint {
  margin: 8px 8px 0;
  padding: 10px 12px;
  background: var(--brand-wash);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  font-style: italic;
}
.ws-chat-link {
  display: block;
  margin-top: 20px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.ws-chat-link:hover { background: var(--brand-wash); }

/* ticket detail (center) — scrolls internally so the surrounding shell stays still */
.ws-detail {
  padding-top: 16px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
.ws-detail-head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.ws-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  flex-wrap: wrap;
}
.ws-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand-wash);
  color: var(--brand);
  border-radius: 999px;
}
.ws-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.ws-status.is-submitted { background: rgba(110, 99, 87, 0.12); color: var(--muted); }
.ws-status.is-submitted::before { background: var(--muted); }
.ws-meta {
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  font-size: 12px;
}
.ws-title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.ws-fields {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ws-field-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ws-field-tag {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 10.5px;
  color: var(--brand);
  background: var(--brand-wash);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.ws-field-value {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
}
.ws-field.empty .ws-field-value { color: var(--faint); font-style: italic; font-size: 14px; }

.ws-detail-action { margin-top: 28px; }
.ws-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.ws-cta:hover { background: var(--brand-deep); transform: translateY(-1px); }
.ws-cta:disabled { background: var(--faint); cursor: default; transform: none; }

.detail-empty {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  padding: 80px 0;
  text-align: center;
}

/* right column: continued chat with Alice — same app-shell shape; only
   the inner .conversation scrolls. */
.ws-chat {
  padding: 22px 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 32px -20px rgba(26, 20, 16, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}
.ws-chat-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.ws-chat-with {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.ws-chat-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.01em;
}
/* inside .ws-chat the .conversation and .input-area that were moved in flow naturally */
.ws-chat .conversation { gap: 14px; margin-bottom: 16px; min-height: 80px; }
.ws-chat .turn-text { font-size: 14.5px; max-width: 100%; }
.ws-chat .turn.user .turn-text { max-width: 90%; }
.ws-chat .input-area { padding-top: 14px; border-top: 1px solid var(--line-soft); margin-top: 0; }
.ws-chat #input { font-size: 14.5px; }
.ws-chat #send-btn { width: 32px; height: 32px; }
.ws-chat #send-btn svg { width: 14px; height: 14px; }

/* ── footer ─────────────────────────────────────────────────────────────── */

.page-footer {
  position: relative; z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 36px;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.page-footer .sep { color: var(--line); }
.footer-lock { fill: var(--faint); margin-right: 4px; flex-shrink: 0; }

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  /* Mobile falls back to normal page scroll — the app-shell only really
     makes sense on a desktop window with sticky columns. */
  body {
    height: auto;
    overflow: visible;
  }
  .page,
  .workspace {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 24px 64px;
  }
  .journey-col, .notes-col, .ws-nav, .ws-chat, .ws-detail {
    overflow-y: visible;
    padding-top: 0;
  }
  .conversation {
    flex: none;
    overflow-y: visible;
    padding-right: 0;
  }
  .journey { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .journey::before { display: none; }
  .step { padding: 6px 0; }
  .topbar { padding: 24px; }
  .hook { font-size: 40px; }
  .ws-title { font-size: 28px; }
  .page-footer { padding: 24px; }
}
