/* The lead-pipeline demo's own pieces, on top of base.css (build 1's demo styles, Chris's brand v4).
   This page is about an interface, so it shows one: the morning email, the six steps, the board.
   Motion only where it shows the flow: the email's rows and the board's cards arrive in order. */

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--demo-accent); margin-bottom: 14px; }
.hero h1 { max-width: 17ch; }

/* the morning email: a paper sheet */
.mail { background: #fff; border: 1px solid var(--mist); border-radius: 14px; box-shadow: var(--float); overflow: hidden; }
.mail-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--mist); background: var(--paper); }
.mail-meta { font-size: 13px; color: var(--muted); line-height: 1.7; }
.mail-meta span { display: inline-block; width: 38px; color: var(--faint); }
.mail-subject { margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.mail-rows { padding: 6px 0; }
.mail-rows li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 10px 20px; border-bottom: 1px solid var(--stone-2);
  opacity: 0; transform: translateY(6px); animation: row-in .4s var(--ease) forwards;
}
.mail-rows li:last-child { border-bottom: 0; }
.mail-rows .co { font-weight: 600; font-size: 15px; color: var(--ink); }
.mail-rows .sub { grid-column: 1; font-size: 13px; color: var(--muted); }
.mail-rows .state { grid-row: 1 / span 2; grid-column: 2; display: grid; justify-items: end; gap: 4px; }
@keyframes row-in { to { opacity: 1; transform: none; } }
.mail-foot { padding: 12px 20px 16px; font-size: 14px; color: var(--graphite); border-top: 1px solid var(--mist); background: var(--paper); }

/* score pill and status tags */
.score { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.score i { display: inline-flex; gap: 2px; }
.score i b { width: 4px; height: 10px; border-radius: 2px; background: var(--stone-2); }
.score i b.on { background: var(--demo-accent); }
.pill { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--stone); color: var(--graphite); white-space: nowrap; }
.pill.email { background: var(--demo-accent-soft); color: var(--royal-500); }
.pill.letter { background: #F6EBD9; color: #7A4B12; }
.pill.sent { background: var(--stone-2); color: var(--graphite); }
.pill.replied { background: #DDF2E6; color: #17633C; }

/* the six steps: numbered dots joined by a dashed line (the site's Steps component) */
.flow { margin-top: 44px; display: grid; gap: 26px; position: relative; }
.flow li { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
.flow-n {
  grid-row: 1 / span 2; position: relative; z-index: 1;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 15px;
  box-shadow: inset 0 0 0 1.5px #C2BBAE, 0 0 0 5px var(--stone);
}
.flow-n.ai { background: var(--demo-accent); color: #fff; box-shadow: 0 0 0 5px var(--stone), 0 0 0 7px rgba(7, 42, 200, .12); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: -22px; border-left: 1.5px dashed #C2BBAE; }
.flow h3 { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.flow p { margin-top: 4px; font-size: 15px; max-width: 34ch; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; background: var(--demo-accent-soft); color: var(--royal-500); }

/* the board */
.board-head { display: grid; gap: 18px; align-items: end; }
.skipped { justify-self: start; font-size: 14px; color: var(--graphite); background: var(--stone); border-radius: 12px; padding: 10px 14px; max-width: 46ch; }
.skipped summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.skipped ul { margin-top: 8px; display: grid; gap: 6px; }
.skipped li { padding-left: 14px; position: relative; }
.skipped li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1.5px; background: var(--faint); }
.board { margin-top: 36px; display: grid; gap: 16px; }
.col { background: var(--stone); border-radius: 14px; padding: 12px; display: grid; gap: 10px; align-content: start; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 6px 2px; }
.col-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.col-head .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.col-note { padding: 0 6px; font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.card {
  display: grid; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--mist); border-radius: 11px; padding: 12px 13px;
  box-shadow: 0 1px 2px rgba(40, 32, 20, .05);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  opacity: 0; transform: translateY(8px);
}
.board.go .card { animation: row-in .45s var(--ease) forwards; }
.card:hover { border-color: #CFC9BE; box-shadow: var(--sheet); transform: translateY(-1px); }
.card .co { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink); }
.card .meta { font-size: 13px; color: var(--muted); }
.card .why { font-size: 13.5px; color: var(--graphite); line-height: 1.45; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.card .when { font-size: 12px; color: var(--muted); }
.board-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* what Priya does */
.priya-grid { display: grid; gap: 18px; }
.priya-text { display: grid; gap: 14px; max-width: 58ch; font-size: 17px; }

/* the lead, opened */
.lead-dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 20, 55, .3); }
.lead-dlg::backdrop { background: rgba(27, 26, 23, .38); backdrop-filter: blur(2px); }
.lead-dlg[open] { animation: rise .3s var(--ease); }
.dlg-inner { position: relative; padding: 26px clamp(18px, 4vw, 30px) 28px; }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--stone); cursor: pointer; display: grid; place-items: center; color: var(--graphite); }
.dlg-close svg { width: 16px; height: 16px; }
.dlg-close:hover { color: var(--ink); background: var(--stone-2); }
.dlg-top { padding-right: 44px; display: grid; gap: 6px; }
.dlg-top h2 { font-size: clamp(22px, 4vw, 27px); }
.dlg-top .meta { font-size: 14px; color: var(--muted); }
.dlg-sec { margin-top: 20px; }
.dlg-sec h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 8px; }
.dlg-checks { display: grid; gap: 7px; }
.dlg-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14.5px; color: var(--graphite); }
.dlg-checks svg { width: 18px; height: 18px; color: var(--demo-accent); margin-top: 2px; }
.dlg-why { font-size: 15px; color: var(--ink); }
.draft { border: 1px solid var(--mist); border-radius: 12px; overflow: hidden; }
.draft-head { padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--mist); font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.draft-head b { color: var(--ink); font-weight: 600; }
.draft pre { margin: 0; padding: 14px; white-space: pre-wrap; font: 400 14.5px/1.55 var(--font); color: var(--ink); }
.draft-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 14px 14px; }
.fake-btn { font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--stone); color: var(--graphite); }
.fake-btn.primary { background: var(--demo-accent); color: #fff; }
.dlg-status { font-size: 15px; }

@media (min-width: 760px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
  .flow li:not(:last-child)::after { display: none; }
  .board-head { grid-template-columns: 1fr auto; }
  .priya-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
}
@media (min-width: 1040px) {
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .mail-rows li, .card { opacity: 1; transform: none; animation: none; }
}
