/* ============================================================
   FONTS
============================================================ */

@font-face {
  font-family: 'Quincy CF';
  src: url('fonts/QuincyCF-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Quincy CF';
  src: url('fonts/QuincyCF-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Lumios Typewriter Used';
  src: url('fonts/Lumios Typewriter Used.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* ============================================================
   BRAND TOKENS — from AlisonRoseBrand.md
============================================================ */

:root {
  /* Neutrals */
  --white:      #FFFFFF;
  --off-white:  #F8F8F6;
  --black:      #1A1916;
  --rule:       #E2E0DC;

  /* Text */
  --text-primary:   #1A1916;
  --text-secondary: #4A4845;

  /* Ink */
  --ink-light: #E6EAEC;
  --ink:       #1E4457;
  --ink-dark:  #152E3A;

  /* Mustard (functional accent only) */
  --mustard-light: #F7E5C6;
  --mustard:       #D5AC65;
  --mustard-dark:  #885F10;

  /* Sage */
  --sage-light: #EBEFEE;
  --sage:       #7A9E94;
  --sage-dark:  #44615E;

  /* Rose */
  --rose-light: #F2E0D6;
  --rose:       #C77D7D;
  --rose-dark:  #883A3A;

  /* Fig */
  --fig-light: #EAE0E6;
  --fig:       #6B4D5E;
  --fig-dark:  #4A3342;

  /* Spacing */
  --page-max:    860px;
  --page-pad:    24px;
  --section-gap: 64px;
  --topbar-h:    48px;
}

/* ============================================================
   RESET + BASE
============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--off-white);
  min-height: 100vh;
}

/* ============================================================
   EYEBROW / LABEL
============================================================ */

.eyebrow {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-dark);
  background: var(--ink-light);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 0;
  margin-bottom: 8px;
}

/* ============================================================
   TOP BAR
============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--page-pad);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-wordmark {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-demo {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-primary {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--ink-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ============================================================
   PAGE LAYOUT
============================================================ */

/* ============================================================
   APP SHELL
============================================================ */

.app-shell {
  display: flex;
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}

.app-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--off-white);
}

/* ============================================================
   SIDEBAR
============================================================ */

.sidebar {
  width: 200px;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  background: var(--white);
  border-right: 1px solid var(--rule);
  padding: 24px 0 32px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-item {
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-left: 2px solid transparent;
  text-decoration: none;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.sidebar-link:hover { background: var(--ink-light); }

.sidebar-link.active {
  border-left-color: var(--rose);
  background: var(--white);
}

.sidebar-num {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--rose-light);
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.sidebar-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.3;
  transition: color 0.12s ease;
}

.sidebar-link:hover .sidebar-num { color: var(--rose); }
.sidebar-link:hover .sidebar-label { color: var(--text-primary); }

.sidebar-link.active .sidebar-num { color: var(--rose); }
.sidebar-link.active .sidebar-label { color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .sidebar {
    display: none;
  }
  .document {
    padding: 32px var(--page-pad) 80px;
  }
}

/* ============================================================
   DOCUMENT LAYOUT
============================================================ */

.document {
  flex: 1;
  min-width: 0;
  padding: 40px 48px;
  overflow-y: auto;
  max-width: 1200px;
}

/* ============================================================
   EMPTY STATE
============================================================ */

.empty-state {
  padding: 80px 0 40px;
  text-align: left;
}

.empty-eyebrow {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.empty-heading {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.empty-body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
}

@media (max-width: 600px) {
  .empty-heading {
    font-size: 36px;
  }
}

/* ============================================================
   DOCUMENT SECTIONS
============================================================ */

.doc-section {
  padding-top: 0;
}

/* ============================================================
   BOTTOM SECTION NAV
============================================================ */

.section-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.section-nav-btn {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}

.section-nav-btn:hover { color: var(--text-primary); }
.section-nav-btn:disabled { opacity: 0; pointer-events: none; }

.section-nav-label {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  text-align: center;
  flex: 1;
}

#section-1 {
  border-top: none;
  padding-top: 0;
}


.section-label {
  margin-bottom: 36px;
}

.section-label .eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-dark);
  background: var(--rose-light);
  border-radius: 0;
  display: inline-block;
  padding: 5px 20px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
}

/* ============================================================
   SECTION 1 — PERSONAL INPUT CARDS (2-column grid)
============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 680px) {
  .card-grid { grid-template-columns: 1fr; }
}

.input-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.card-eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 14px;
}

.card-label {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--black);
  margin-bottom: 14px;
  flex: 1;
}

.card-summary {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ============================================================
   SECTION 2 — PERSONAL SYNTHESIS
============================================================ */

.synthesis-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.synthesis-block {
  border-radius: 12px;
  padding: 40px 44px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.synthesis-block {
  background: var(--white);
  border: 1px solid var(--rule);
}

.synthesis-block-eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
  background: none;
  padding: 0;
  border-radius: 0;
}

.synthesis-block-headline {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
  flex: 1;
}

.synthesis-block-content {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 20px;
}


@media (max-width: 680px) {
  .synthesis-blocks { grid-template-columns: 1fr; }
  .synthesis-block-headline { font-size: 26px; }
}

.synthesis-block-content p,
.s4-approach p,
.strategy-desc p {
  margin-bottom: 10px;
}

.synthesis-block-content p:last-child,
.s4-approach p:last-child,
.strategy-desc p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SECTION 3 — BUSINESS PROFILE
============================================================ */

.s3-goals {
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.s3-goals-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 560px) {
  .s3-goals-inner {
    grid-template-columns: 1fr;
  }
}

.s3-goals-north .eyebrow,
.s3-goals-priority .eyebrow,
.s5-goal .eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.s3-north-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
}

.priority-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.priority-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 32px;
}

.brand-card-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
}

@media (max-width: 600px) {
  .brand-card-inner {
    grid-template-columns: 1fr;
  }
}

.brand-card-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-priority {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.brand-name {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--black);
}

.brand-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.visibility-tag,
.status-tag {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Visibility tag colors */
.vt-founder-forward  { background: var(--ink-light);  color: var(--ink-dark); }
.vt-founder-adjacent { background: var(--fig-light);  color: var(--fig-dark); }
.vt-brand-separate   { background: var(--rose-light); color: var(--rose-dark); }

/* Status tag colors */
.st-active       { background: var(--sage-light);    color: var(--sage-dark); }
.st-soft-launch  { background: var(--mustard-light); color: var(--mustard-dark); }
.st-beta         { background: var(--fig-light);     color: var(--fig-dark); }

.brand-card-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-field-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.brand-field-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.offer-row {
  margin-bottom: 4px;
}

.offer-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.offer-meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.offer-notes {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

/* ============================================================
   SECTION 4 — MARKETING STRATEGY
============================================================ */

.s4-block {
  margin-bottom: 36px;
}

.s4-block:last-child {
  margin-bottom: 0;
}

/* Shared block heading — used across all sections */
.block-heading {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--black);
  display: block;
  margin-bottom: 20px;
}

.s4-label {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--black);
  display: block;
  margin-bottom: 20px;
}

.s4-approach-block {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 32px;
}

.s4-approach {
  font-size: 15px;
  line-height: 1.7;
  color: var(--black);
  max-width: 640px;
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.strategy-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.strategy-name {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 12px;
}

.strategy-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.strategy-bullet {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.strategy-bullet::before {
  content: '\2713';
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--rose);
  line-height: 1.6;
}

.s4-avoid-box {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 32px;
}

.avoid-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.avoid-item {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.avoid-item::before {
  content: '\2715';
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 11px;
  color: var(--rose);
  line-height: 1;
}

.s4-sales-arc-list {
  list-style: none;
  counter-reset: sales-arc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}

.s4-sales-arc-item {
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  padding-left: 28px;
  position: relative;
  counter-increment: sales-arc;
}

.s4-sales-arc-item::before {
  content: counter(sales-arc);
  position: absolute;
  left: 0;
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ============================================================
   SECTION 5 — ACTION PLAN
============================================================ */

.s7-goal {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 36px;
}

.s7-goal .eyebrow {
  margin-bottom: 10px;
}

.goal-text {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  color: var(--black);
  max-width: 620px;
}

.s7-block {
  margin-bottom: 36px;
}

.s7-block:last-child {
  margin-bottom: 0;
}

.s7-label {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--black);
  display: block;
  margin-bottom: 20px;
}

.moves-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.move-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 28px;
}

.move-number {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--sage);
  flex-shrink: 0;
  min-width: 36px;
}

.move-body {
  flex: 1;
  min-width: 0;
  max-width: 600px;
}

.move-what {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.move-why {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 8px;
}


.move-item-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.move-open-btn {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--sage-dark);
  background: var(--sage-light);
  border: 1px solid var(--sage);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 16px;
  white-space: nowrap;
}

.move-passed-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Claimed slot — idea is in WIP */
.move-item-claimed .move-what,
.move-item-claimed .move-why {
  display: none;
}

.move-item-claimed .move-body::after {
  content: 'In progress or completed, see below';
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.move-regen-btn {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dark);
  background: var(--ink-light);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 16px;
  white-space: nowrap;
}
.move-regen-btn:hover { opacity: 0.85; }
.move-regen-btn:disabled { opacity: 0.5; cursor: default; }

/* Work in Progress section */
.s7-wip {
  margin-top: 48px;
}

.wip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wip-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 28px;
}

.wip-body {
  flex: 1;
  min-width: 0;
  max-width: 600px;
}

.wip-direction {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.wip-outcome {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.wip-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.wip-status-badge {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}

.wip-badge-not_started { background: var(--off-white); color: var(--text-secondary); }
.wip-badge-in_progress { background: var(--mustard-light); color: var(--mustard-dark); }
.wip-badge-done        { background: var(--sage-light); color: var(--sage-dark); }

.wip-item.wip-done {
  opacity: 0.65;
}
.wip-item.wip-done .wip-direction {
  text-decoration: line-through;
}

.defer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.defer-item {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.defer-item:first-child {
  border-top: 1px solid var(--rule);
}

/* ============================================================
   SECTION 5 — REALITY CHECK
============================================================ */

.reality-checks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rc-context {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 28px;
}

.rc-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 32px;
}

.rc-item .eyebrow {
  margin-bottom: 12px;
}

.rc-headline {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 12px;
}

.rc-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 600px;
}

/* ============================================================
   SECTION 5 — SALES ARC
============================================================ */

.sales-arcs-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sales-arc-item {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
}

.sales-arc-item .eyebrow {
  margin-bottom: 12px;
}

.sales-arc-offer {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 20px;
}

.sales-arc-steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
}

.sales-arc-step {
  counter-increment: step-counter;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  padding: 6px 0;
}

.sales-arc-step::before {
  content: counter(step-counter);
  flex-shrink: 0;
  min-width: 20px;
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--sage);
  line-height: 1;
}

.move-item-dismissed .move-what,
.move-item-dismissed .move-why {
  opacity: 0.4;
}

/* ============================================================
   LOADING INDICATOR
============================================================ */

.section-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
}

.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
  animation: pulse 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { background: var(--rule); transform: scale(1); }
  40% { background: var(--ink); transform: scale(1.3); }
}

/* ============================================================
   ERROR STATE
============================================================ */

.error-msg {
  font-size: 14px;
  color: var(--rose-dark);
  padding: 16px;
  background: var(--rose-light);
  border-radius: 4px;
  line-height: 1.5;
}

/* ============================================================
   UTILITY — hidden attribute support
============================================================ */

[hidden] {
  display: none !important;
}

/* ============================================================
   PHASE 2 — ACTION LIST (Section 6)
============================================================ */

.action-zone {
  margin-bottom: 40px;
}

.action-zone-label {
  display: block;
  margin-bottom: 16px;
}

.action-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  transition: opacity 0.2s ease;
}

.action-card.card-loading {
  pointer-events: none;
}

.action-card.card-loading .action-card-body {
  opacity: 0.4;
}

.action-card.card-loading .action-card-btns {
  display: none;
}

.card-generating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.card-generating-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--rule);
  border-top-color: var(--mustard-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.action-card.card-new {
  animation: card-appear 0.4s ease;
}

@keyframes card-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.action-card-body {
  flex: 1;
}

.action-direction {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.action-outcome {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.action-card-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-items: stretch;
}

.action-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
}

.btn-accept {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  min-height: 40px;
  border-radius: 6px;
  border: none;
  background: var(--mustard-dark);
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-accept:hover { background: #6b4a0c; }
.btn-accept:disabled { opacity: 0.5; cursor: default; }

.btn-dismiss {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 24px;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.btn-dismiss:hover { opacity: 0.6; }
.btn-dismiss:disabled { opacity: 0.4; cursor: default; }

.accepted-card {
  cursor: pointer;
}

.accepted-card:hover {
  border-color: var(--ink);
}

.accepted-badge {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.dismissed-card {
  opacity: 0.6;
}

.dismissed-text {
  text-decoration: line-through;
  color: var(--text-secondary) !important;
}

.dismissed-reason {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* ============================================================
   PHASE 2 — PROJECT PAGE PANEL
============================================================ */

.project-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--off-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.panel-open { overflow: hidden; }

.project-panel-topbar {
  position: relative;
  flex-shrink: 0;
}

.project-panel-inner {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Left sidebar */
.project-nav-sidebar {
  width: 200px;
  flex-shrink: 0;
  height: 100%;
  border-right: 1px solid var(--rule);
  background: var(--white);
  overflow-y: auto;
  padding: 24px 0 80px;
  display: flex;
  flex-direction: column;
}

.project-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  margin-bottom: 0;
  border-radius: 0;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.project-nav-item:hover { background: var(--ink-light); }

.project-nav-item.active {
  border-left-color: var(--rose);
  background: var(--white);
}

.project-nav-name {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-primary);
  display: block;
}

.project-nav-item.active .project-nav-name { font-weight: 600; color: var(--ink); }

.project-nav-item.done { opacity: 0.4; }
.project-nav-item.done .project-nav-name { text-decoration: line-through; }

.project-nav-status {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.project-nav-add {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--sage-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  text-align: left;
  margin-top: auto;
  display: block;
  width: 100%;
}

.project-nav-add:hover { color: var(--ink); }

/* Main content area */
.project-main {
  flex: 1;
  overflow-y: auto;
  padding: 28px 40px 80px;
  background: var(--white);
  min-width: 0;
}

.project-back-link {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.15s ease;
}

.project-back-link:hover { color: var(--text-primary); }

.project-main-header { margin-bottom: 24px; }

.project-title {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-context {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 0;
}

.project-header-divider {
  height: 1px;
  background: var(--rule);
  margin: 16px 0;
}

.project-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

/* Status pill */
.project-status-pill {
  border-radius: 999px;
  padding: 6px 16px;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.1s ease;
}

.project-status-pill:hover { opacity: 0.8; }
.project-status-pill::after { content: ' ↓'; font-size: 9px; opacity: 0.6; }
.pill-not-started { background: var(--off-white); border-color: var(--rule); color: var(--text-secondary); }
.pill-in-progress { background: var(--mustard-light); border-color: var(--mustard); color: var(--mustard-dark); }
.pill-done        { background: var(--sage-light); border-color: var(--sage); color: var(--sage-dark); }

/* Offer tag */
.project-offer-tag {
  border-radius: 999px;
  padding: 3px 12px;
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  background: var(--off-white);
  border: 1px solid var(--rule);
  color: var(--black);
}

/* Offer eyebrow above project title */
.project-offer-eyebrow {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.offer-tag-wren      { background: var(--ink-light);     color: var(--ink); }
.offer-tag-rcc       { background: var(--rose-light);    color: var(--rose-dark); }
.offer-tag-design    { background: var(--mustard-light); color: var(--mustard-dark); }
.offer-tag-alignment { background: var(--fig-light);     color: var(--fig); }
.offer-tag-default   { background: var(--sage-light);    color: var(--sage-dark); }

/* Progress bar */
.project-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.project-progress-track {
  flex: 1;
  height: 4px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
}

.project-progress-fill {
  height: 100%;
  background: var(--mustard);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.project-progress-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
}

.project-loading {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 32px 0;
}

/* ============================================================
   PHASE 2 — TODOS
============================================================ */

.project-todos { margin-bottom: 8px; }

.todo-phase {
  margin-bottom: 28px;
}

.todo-phase-label {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
  margin-top: 24px;
}

.todo-phase:first-child .todo-phase-label { margin-top: 0; }

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.todo-item:first-child { border-top: 1px solid var(--rule); }

.todo-check-label {
  flex-shrink: 0;
  padding-top: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
}

/* Circle checkbox */
.todo-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--white);
  cursor: pointer;
  position: relative;
  margin-top: 1px;
}

.todo-checkbox:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.todo-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.todo-text {
  flex: 1;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.12s ease;
}

.todo-text:hover { color: var(--ink); }

.todo-done .todo-text {
  text-decoration: line-through;
  opacity: 0.5;
  cursor: default;
}

.todo-done .todo-text:hover { color: var(--text-primary); }

.todo-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  transition: background 0.2s ease;
}

.dot-not_started { background: var(--rule); }
.dot-in_progress { background: var(--mustard); }
.dot-done        { background: var(--sage); }

.help-btn {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  display: inline-block;
  margin-left: 29px;
  margin-top: 4px;
}

.help-btn:hover { border-color: var(--ink); color: var(--ink); }
.help-btn:disabled { opacity: 0.4; cursor: default; }

/* Done section toggle */
.project-done-toggle {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 24px 0 8px;
  display: block;
}

.project-done-toggle:hover { color: var(--text-primary); }

/* Help drawer */
.project-help-drawer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 440px;
  background: var(--white);
  border-left: 1px solid var(--rule);
  padding: 28px 32px 60px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-help-drawer.open { transform: translateX(0); }

.project-help-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.help-drawer-close {
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.help-drawer-close:hover { color: var(--text-primary); }

.project-help-todo-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Workspace status picker */
.workspace-status-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workspace-status-pills {
  display: flex;
  gap: 6px;
}

.workspace-status-pill {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}

.workspace-status-pill:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.workspace-status-pill.active[data-status="not_started"] {
  background: var(--off-white);
  border-color: var(--rule);
  color: var(--text-primary);
  font-weight: 600;
}

.workspace-status-pill.active[data-status="in_progress"] {
  background: var(--mustard-light);
  border-color: var(--mustard);
  color: var(--mustard-dark);
  font-weight: 600;
}

.workspace-status-pill.active[data-status="done"] {
  background: var(--sage-light);
  border-color: var(--sage);
  color: var(--sage-dark);
  font-weight: 600;
}

/* Workspace notes area */
.workspace-notes-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workspace-notes-label {
  margin-bottom: 0;
}

.workspace-textarea {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease;
}

.workspace-textarea:focus {
  border-color: var(--text-secondary);
}

.workspace-textarea::placeholder {
  color: var(--rule);
}

.workspace-saved {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.2s ease;
  align-self: flex-end;
}

.workspace-saved.visible {
  opacity: 1;
}

/* Get help button */
.workspace-get-help-btn {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: background 0.15s ease;
}

.workspace-get-help-btn:hover { background: var(--ink-dark); }
.workspace-get-help-btn:disabled { opacity: 0.5; cursor: default; }

/* Divider between notes and AI output */
.workspace-help-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.workspace-help-divider:empty { display: none; }

.project-help-content {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.project-help-content p { margin-bottom: 10px; }
.project-help-content p:last-child { margin-bottom: 0; }
.project-help-content .help-heading { font-weight: 600; font-size: 13px; margin-top: 16px; margin-bottom: 6px; }
.project-help-content ul { padding-left: 16px; margin-bottom: 10px; }
.project-help-content li { margin-bottom: 4px; }

.help-spinner {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

/* ============================================================
   PHASE 2 — ADD PROJECT MODAL
============================================================ */

.add-project-modal { max-width: 560px; }

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-family: 'Lumios Typewriter Used', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.modal-input,
.modal-textarea {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
}

.modal-input:focus,
.modal-textarea:focus { outline: none; border-color: var(--ink); }

.modal-textarea { resize: vertical; line-height: 1.55; }

.add-project-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.add-project-blank-link {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--sage-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.add-project-blank-link:hover { color: var(--ink); }

/* Mobile */
@media (max-width: 860px) {
  .project-panel-inner { flex-direction: column; }
  .project-nav-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 12px;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .project-nav-item {
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 6px;
    border-left: none;
    flex-shrink: 0;
  }
  .project-nav-item.active {
    background: var(--rose-light);
    border-left: none;
  }
  .project-nav-add { padding: 7px 12px; margin-top: 0; flex-shrink: 0; }
  .project-nav-status { display: none; }
  .project-main { padding: 24px 16px 60px; }
  .project-help-drawer { width: 100%; border-left: none; border-top: 1px solid var(--rule); top: auto; bottom: 0; height: 60%; transform: translateY(100%); }
  .project-help-drawer.open { transform: translateY(0); }
}

/* ============================================================
   PHASE 2 — DISMISS MODAL
============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 25, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--white);
  border-radius: 10px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-heading {
  font-family: 'Quincy CF', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.dismiss-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dismiss-option {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.dismiss-option:hover { border-color: var(--text-secondary); }
.dismiss-option.selected { border-color: var(--ink); background: var(--ink-light); color: var(--ink-dark); }

.dismiss-freetext {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 14px;
  resize: none;
  width: 100%;
  line-height: 1.5;
}

.dismiss-freetext:focus { outline: none; border-color: var(--ink); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-ghost {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-dark {
  background: var(--mustard-dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  min-height: 40px;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-dark:hover { background: #6b4a0c; }
.btn-dark:disabled { opacity: 0.4; cursor: default; }
