:root {
  --bg: #f4eadc;
  --white: #fffdf8;
  --ink: #1c1916;
  --muted: #6a6258;
  --line: #e4d5c2;
  --orange: #c45c2b;
  --orange-deep: #a3481f;
  --orange-soft: #f8e6d8;
  --green: #176b45;
  --moss: #e8f3ec;
  --clay: #a33b32;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --shadow: 0 22px 50px rgba(28, 25, 22, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -12%, rgba(196, 92, 43, 0.2), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(23, 107, 69, 0.1), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

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

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.mark { display: flex; }

.nav-price {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a, .nav-links button {
  font-size: 14px;
  font-weight: 650;
}

.nav-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}

a.primary, a.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 750;
}

a.primary { background: var(--orange); color: #fff; }
a.primary:hover { background: var(--orange-deep); }

a.ghost {
  background: var(--white);
  border: 1px solid var(--line);
}

.auth {
  width: min(560px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.hero, .steps, .work, .desk, .foot {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 28px 0 8px;
  text-align: center;
}

.badge, .eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, .brand {
  font-family: var(--serif);
}

h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-copy, .note {
  color: var(--muted);
}

.hero-copy {
  max-width: 58ch;
  margin: 16px auto 0;
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}

.stats article, .steps article, .sheet, .chat, .card, .thread {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.stats article { padding: 18px 18px 16px; }

.stats strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats span, .steps p { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.steps article { padding: 20px; }

.steps span {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.steps h2, .sheet h2, .chat h2, .panel-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.steps p { margin: 0; }

.catalog-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
}

.catalog-wrap .offers { width: auto; margin-top: 0; }

.live-board {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.live-board[hidden] { display: none; }

.crew-viz { margin-top: 16px; }

.crew-gauges {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: stretch;
}

.gauge-card {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  position: relative;
}

.gauge-ring {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.gauge-track, .gauge-arc {
  fill: none;
  stroke-width: 10;
}

.gauge-track { stroke: #e4e7ee; }
.gauge-arc {
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset 0.25s ease;
}

.gauge-readout {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.gauge-readout strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.gauge-readout span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.load-card .gauge-readout { top: 46px; }
.load-dial { width: min(100%, 280px); height: 140px; }
.load-track, .load-arc {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}
.load-track { stroke: #e4e7ee; }
.load-arc { stroke: var(--green); }
.load-needle {
  stroke: #121212;
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: 100px 100px;
  transition: transform 0.2s ease;
}

.crew-graph-wrap {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.crew-graph-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.crew-graph {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: 8px;
}

.crew-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

.crew-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crew-legend i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
}

.bot-meter {
  height: 8px;
  margin: 10px 0 8px;
  border-radius: 99px;
  background: #e4e7ee;
  overflow: hidden;
}

.bot-meter > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.live-card.running .bot-meter > i {
  background: repeating-linear-gradient(90deg, #f26b1d, #f26b1d 8px, #ffb27a 8px, #ffb27a 16px);
  background-size: 24px 8px;
  animation: meter-run 0.6s linear infinite;
}

.live-card.done .bot-meter > i { background: var(--green); width: 100% !important; }

@keyframes meter-run {
  from { background-position: 0 0; }
  to { background-position: 24px 0; }
}

.live-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.live-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  min-height: 140px;
}

.live-card .live-who {
  display: block;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.live-card .live-state {
  display: inline-flex;
  margin: 8px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--white);
  color: var(--muted);
}

.live-card.running {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 0 0 1px var(--orange);
}

.live-card.running .live-state { color: var(--orange-deep); }

.live-card.done {
  border-color: var(--green);
  background: var(--moss);
}

.live-card.done .live-state { color: var(--green); }

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

.live-card.running .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1s infinite;
}

.catalog-wrap h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.bot-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.bot-card strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.bot-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.bot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.bot-card.picked {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.sheet { padding: 22px; }

.form { display: grid; gap: 12px; margin-top: 14px; }

.platforms {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.platforms legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }

.choice span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  font-weight: 700;
}

.choice svg { width: 22px; height: 22px; }

.choice input:checked + span {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.choice input:focus-visible + span { outline: 3px solid rgba(242, 107, 29, 0.28); }

label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

textarea { min-height: 78px; resize: vertical; }

input:focus, textarea:focus, button:focus-visible {
  outline: 3px solid rgba(242, 107, 29, 0.28);
  outline-offset: 1px;
}

.pay { display: grid; gap: 8px; margin-top: 4px; }

.pay button, .primary {
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--orange);
  color: white;
  font-weight: 750;
}

.pay button:hover, .primary:hover { background: var(--orange-deep); }

.pay button:disabled, .primary:disabled { cursor: wait; opacity: 0.7; }

.stand-in {
  margin: 8px 0 0;
  color: var(--clay);
  font-size: 14px;
  font-weight: 700;
}

.chat {
  display: flex;
  flex-direction: column;
  min-height: 680px;
  overflow: hidden;
}

.chat header, .panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fafbfc;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.pill.up::before { background: var(--green); }

.messages, .thread-log {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(#fff, #f7f8fb);
}

.bubble, .line {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  white-space: pre-wrap;
}

.bubble.visitor, .line.agent {
  align-self: flex-end;
  background: var(--ink);
  color: white;
}

.bubble.bot, .line.bot, .line.orchestrator, .line.synthesizer,
.line.sales, .line.research, .line.composer, .line.report {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
}

.line.orchestrator, .line.research { background: #f7f8fb; }

.line.synthesizer, .line.report { background: var(--orange-soft); }

.who {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.composer input { flex: 1; }

.ghost, .copy, .reject {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--white);
  font-weight: 700;
}

.reject { color: var(--clay); }

.error {
  margin: 10px 0 0;
  color: var(--clay);
  font-size: 14px;
  font-weight: 700;
}

.chat .error { margin: 0 16px 12px; }

.foot {
  padding: 28px 0 40px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.desk { padding-bottom: 40px; }

.desk-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 12px 0 18px;
}

.unlock-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px 20px;
  background: var(--orange-soft);
  border: 1px solid var(--orange);
  border-radius: 18px;
}

.unlock-bar h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.unlock-bar .hero-copy { margin: 0; }

.unlock-bar[hidden] { display: none; }

.trial-report {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.desk .trial-report { width: auto; margin: 0 0 18px; }

.trial-report[hidden] { display: none; }

.trial-report h2 {
  margin: 8px 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.report-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 17px;
  line-height: 1.6;
}

.trial-report .hero-actions { margin-top: 18px; }

.desk h1 { margin: 0; max-width: none; font-size: clamp(40px, 5vw, 60px); }

.desk .hero-copy { margin: 10px 0 0; text-align: left; }

.count {
  margin: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.thread { min-height: 420px; overflow: hidden; display: flex; flex-direction: column; }

.drafts { display: grid; gap: 12px; }

.card { padding: 16px; }

.card.approved { background: var(--moss); }

.card.locked p { color: var(--muted); }

.card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.card h3 { margin: 0; font-size: 18px; letter-spacing: -0.03em; }

.meta { color: var(--muted); font-size: 13px; }

.card p { margin: 0 0 14px; white-space: pre-wrap; }

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

.generating-text { font-weight: 700; }

.dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1s infinite;
}

.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.reset { margin-top: 22px; color: var(--muted); font-size: 14px; }

.reset button {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange-deep);
  font-weight: 750;
  text-decoration: underline;
}

.lede {
  max-width: 44ch;
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
}

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

.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.stage {
  width: min(1120px, calc(100% - 32px));
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  min-height: 54vh;
}

.stage-copy { text-align: left; }

.stage h1 {
  margin: 0;
  max-width: 13ch;
  text-align: left;
}

.paper-stack {
  position: relative;
  min-height: 340px;
}

.scrap {
  position: absolute;
  width: min(280px, 82%);
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.scrap span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.scrap p {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
}

.scrap-a { top: 8px; left: 6%; transform: rotate(-3.2deg); }
.scrap-b {
  top: 118px;
  right: 2%;
  transform: rotate(4deg);
  background: var(--ink);
  color: #f4eadc;
  border-color: var(--ink);
}
.scrap-b span { color: #e8b48a; }
.scrap-c { bottom: 4px; left: 16%; transform: rotate(-1.4deg); }

.offers {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

a.offer,
.bot-card.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 280px;
  padding: 28px;
  text-align: left;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.offer.research,
.bot-card.offer.research {
  background: linear-gradient(165deg, #fffdf8 0%, #e8f3ec 100%);
}

a.offer.drafts,
.bot-card.offer.drafts {
  background: linear-gradient(165deg, #fffdf8 0%, #f8e6d8 100%);
}

.offer h2,
.bot-card.offer h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
}

.offer p,
.bot-card.offer p { margin: 0; color: var(--muted); }

.offer-go {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 750;
  color: var(--orange-deep);
}

a.offer:hover,
.bot-card.offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px rgba(28, 25, 22, 0.12);
}

.offer-mark {
  width: 52px;
  height: 52px;
  color: var(--ink);
}

.offer-mark svg { width: 52px; height: 52px; }

.story {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.story h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.story p { margin: 0; color: var(--muted); }

.peek { margin-top: 40px; }

.home .hero-actions { justify-content: flex-start; }

.studio-hero {
  text-align: left;
  padding: 12px 0 0;
}

.studio-hero h1 { margin: 0; }

.home .foot,
.studio .foot { margin-top: 48px; }

@media (max-width: 900px) {
  .stats, .steps, .work, .layout, .desk-top, .catalog, .live-cards, .stage, .offers, .story { grid-template-columns: 1fr; display: grid; }
  .stats { grid-template-columns: 1fr 1fr; }
  .catalog, .offers { grid-template-columns: 1fr; }
  .live-cards { grid-template-columns: 1fr 1fr; }
  .crew-gauges { grid-template-columns: 1fr; }
  h1, .desk h1, .stage h1 { max-width: none; }
  .chat { min-height: 560px; }
  .count { justify-self: start; }
  .paper-stack { min-height: 280px; }
}
