:root {
  --bg: #060913;
  --panel: rgba(12, 16, 29, 0.82);
  --panel-strong: rgba(17, 22, 38, 0.96);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.25);
  --text: #f8fbff;
  --muted: #a8b3c7;
  --soft: #6d7892;
  --teal: #00d4b2;
  --indigo: #635bff;
  --blue: #1ba8d8;
  --danger: #fb7185;
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(99, 91, 255, 0.26), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(0, 212, 178, 0.16), transparent 34%),
    linear-gradient(180deg, #060913 0%, #080b14 52%, #05070d 100%);
}

button, input, textarea {
  font: inherit;
}

a { color: inherit; text-decoration: none; }

.whiteglove-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

.brand img {
  width: 148px;
  height: auto;
  display: block;
}

.product-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.product-nav a:hover,
.product-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--teal);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 610px;
  padding: 38px 0 22px;
}

.stage[data-step="questions-loading"],
.stage[data-step="plan-loading"] {
  grid-template-columns: 1fr;
  place-items: center;
}

.stage[data-step="questions"] {
  grid-template-columns: 0.56fr 1fr;
}

.stage[data-step="plan"] {
  display: block;
  min-height: auto;
}

.hidden { display: none !important; }

.hero-copy {
  align-self: center;
  padding: 32px 18px 32px 0;
}

.eyebrow,
.panel-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span { display: block; }

h1 span:last-child {
  background: linear-gradient(92deg, var(--teal), #79e9ff 42%, var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 28px;
}

.dot {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.dot.active {
  background: linear-gradient(90deg, var(--teal), var(--indigo));
}

.intake-card,
.scope-card,
.console-card,
.proposal-card,
.trust-grid article,
.product-strip article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18, 22, 35, 0.92), rgba(7, 10, 20, 0.86));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.intake-card {
  padding: 22px;
  align-self: center;
}

.card-head,
.proposal-head,
.action-row,
.prompt-rail-head,
.sticky-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.card-head h2,
.console-card h2,
.scope-card h2,
.proposal-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.08;
}

.status-pill {
  white-space: nowrap;
  border: 1px solid rgba(0, 212, 178, 0.32);
  color: var(--teal);
  background: rgba(0, 212, 178, 0.08);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 178px;
  margin-top: 20px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(2, 5, 14, 0.8);
  color: var(--text);
  padding: 18px;
  outline: none;
  line-height: 1.55;
}

textarea:focus,
input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 212, 178, 0.14);
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  color: #061013;
  background: linear-gradient(90deg, var(--teal), #68ddff 52%, var(--indigo));
  font-weight: 900;
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.prompt-rail {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.prompt-rail-head {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.prompt-pill {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.prompt-pill:hover,
.prompt-pill.active {
  border-color: var(--teal);
  background: rgba(0, 212, 178, 0.08);
}

.console-card {
  width: min(760px, 100%);
  padding: 34px;
}

.split-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
}

.console-card p {
  color: var(--muted);
  line-height: 1.55;
}

.console-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.console-lines span {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: #d6deef;
  padding: 12px;
  border-radius: var(--radius);
}

.console-lines span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(0, 212, 178, 0.8);
}

.stream {
  display: flex;
  gap: 7px;
  margin-top: 24px;
}

.stream span {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--indigo), transparent);
  animation: stream 1.35s infinite ease-in-out;
}

.stream span:nth-child(2) { animation-delay: 0.16s; }
.stream span:nth-child(3) { animation-delay: 0.28s; }
.stream span:nth-child(4) { animation-delay: 0.42s; }

@keyframes stream {
  0%, 100% { opacity: 0.25; transform: scaleX(0.72); }
  50% { opacity: 1; transform: scaleX(1); }
}

.scope-card {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 18px;
}

.scope-card p {
  color: var(--muted);
  line-height: 1.55;
}

.scope-meter {
  height: 6px;
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin: 28px 0 12px;
}

.scope-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--indigo));
  transition: width 180ms ease;
}

.question-stack {
  display: grid;
  gap: 12px;
}

.question-card {
  border: 1px solid var(--line);
  background: rgba(5, 8, 18, 0.74);
  border-radius: var(--radius);
  padding: 18px;
}

.question-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.question-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.question-card small {
  color: var(--muted);
  font-weight: 800;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.option-button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.option-button strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.option-button span {
  color: var(--muted);
  font-size: 12px;
}

.option-button::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.option-button.active {
  border-color: var(--teal);
  background: rgba(0, 212, 178, 0.08);
}

.option-button.active::after {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 178, 0.14);
}

.sticky-actions {
  grid-column: 2;
  align-self: start;
  margin-top: 6px;
}

.lead-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.lead-card h3 {
  margin-bottom: 4px;
}

.lead-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lead-card input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 6, 15, 0.82);
  color: var(--text);
  padding: 0 11px;
  outline: none;
}

.check-row {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 9px !important;
  line-height: 1.35;
}

.check-row input {
  min-height: auto;
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.proposal-card {
  padding: 24px;
}

.proposal-head p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.metric-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.metric-grid span,
.note-band span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(20px, 3.6vw, 32px);
  line-height: 1;
}

.proposal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.proposal-grid section,
.review-card,
.note-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.proposal-grid h3,
.review-card h3 {
  margin-bottom: 12px;
}

ol, ul {
  margin: 0;
  padding-left: 21px;
  color: #dbe4f6;
}

li {
  margin: 0 0 10px;
  color: #dbe4f6;
}

.note-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.note-band p,
.review-card p {
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.5;
}

.review-card {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  margin-top: 12px;
  align-items: start;
}

.lead-card.compact {
  padding: 14px;
}

.calendar-button {
  color: #061013;
  margin-top: 4px;
}

.trust-grid,
.product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.product-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-strip.subtle-strip {
  grid-template-columns: 1fr;
}

.product-strip.subtle-strip article {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 18px;
  align-items: center;
}

.trust-grid article,
.product-strip article {
  padding: 18px;
  box-shadow: none;
}

.trust-grid span,
.product-strip span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.trust-grid p,
.product-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.coming-soon {
  opacity: 0.72;
}

@media (max-width: 900px) {
  .whiteglove-shell { width: min(100% - 28px, 720px); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .product-nav { flex-wrap: wrap; }
  .stage,
  .stage[data-step="questions"],
  .split-card,
  .proposal-grid,
  .review-card,
  .note-band,
  .trust-grid,
  .product-strip {
    grid-template-columns: 1fr;
  }
  .product-strip.subtle-strip article {
    grid-template-columns: 1fr;
  }
  .stage { min-height: auto; }
  .hero-copy { padding-right: 0; }
  .prompt-grid,
  .option-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .sticky-actions { grid-column: 1; }
}

@media (max-width: 520px) {
  .whiteglove-shell { width: min(100% - 22px, 480px); padding-top: 16px; }
  .stage { padding-top: 26px; }
  h1 { font-size: 44px; }
  .card-head,
  .proposal-head,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }
  .primary-button,
  .secondary-button {
    width: 100%;
  }
}

/* WG-PLAN-RENDER-DELTAS-2026-06-11 — intake recap, complexity pill,
   fallback transparency note (ported from the Codex React original). */
.pill-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.complexity-pill {
  border-color: rgba(99, 91, 255, 0.4);
  color: #b7b2ff;
  background: rgba(99, 91, 255, 0.1);
}

.fallback-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(27, 168, 216, 0.07);
}

.intake-recap {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 5, 14, 0.5);
}

.intake-recap h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.intake-recap p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.recap-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recap-badge {
  border: 1px solid rgba(0, 212, 178, 0.28);
  color: var(--teal);
  background: rgba(0, 212, 178, 0.06);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
