:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #686868;
  --line: #dfdfdc;
  --paper: #f4f3ef;
  --white: #ffffff;
  --red: #d51d2c;
  --red-dark: #a70d1a;
  --green: #0f7a4f;
  --shadow: 0 22px 70px rgba(23, 23, 23, 0.08);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 72px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: white;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.05em;
  font-size: 14px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  font-weight: 800;
  font-size: 18px;
}

.client-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9d9d9;
  font-size: 13px;
}

.client-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

main { padding: 0 clamp(18px, 5vw, 72px) 56px; }

.hero {
  max-width: 1380px;
  margin: 0 auto;
  padding: 64px 0 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.boundary {
  min-width: 310px;
  padding: 17px 19px;
  border-left: 3px solid var(--red);
  background: rgba(255,255,255,0.52);
}

.boundary span, .boundary strong { display: block; }
.boundary span { margin-bottom: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; }
.boundary strong { font-size: 13px; line-height: 1.5; }

.workspace {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.8fr);
  gap: 22px;
}

.conversation-card, .summary-card {
  background: var(--white);
  border: 1px solid rgba(23,23,23,0.07);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.conversation-card { padding: 28px; }
.summary-card { padding: 28px; align-self: start; }

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.card-heading.compact { margin-bottom: 24px; }
.card-heading h2, .examples h2 { margin-bottom: 0; font-size: 24px; letter-spacing: -0.025em; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f2ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-light { width: 8px; height: 8px; border-radius: 50%; background: #9b9b96; }
.status-pill[data-state="live"] { background: #fff0f1; color: var(--red-dark); }
.status-pill[data-state="live"] .status-light { background: var(--red); box-shadow: 0 0 0 4px rgba(213,29,44,.12); }
.status-pill[data-state="done"] { background: #eaf6f0; color: var(--green); }
.status-pill[data-state="done"] .status-light { background: var(--green); }
.status-pill[data-state="error"] { background: #fff0f1; color: var(--red-dark); }
.status-pill[data-state="error"] .status-light { background: var(--red); }

.progress { display: flex; align-items: center; margin: 28px 0 20px; }
.progress-step { display: flex; align-items: center; gap: 7px; color: #999; }
.progress-step span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #cfcfca; border-radius: 50%; font-size: 11px; font-weight: 800; }
.progress-step small { font-size: 11px; font-weight: 700; }
.progress-step.active { color: var(--red); }
.progress-step.active span { border-color: var(--red); background: var(--red); color: white; }
.progress-step.complete { color: var(--green); }
.progress-step.complete span { border-color: var(--green); background: var(--green); color: white; }
.progress-line { flex: 1; height: 1px; margin: 0 12px; background: var(--line); }

.transcript {
  height: 386px;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafaf8;
  scroll-behavior: smooth;
}

.empty-state { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 18px 0 7px; color: var(--ink); }
.empty-state p { max-width: 390px; margin-bottom: 0; font-size: 13px; line-height: 1.55; }

.voice-orb {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 9px #ecece8;
}
.voice-orb span { width: 4px; height: 20px; border-radius: 5px; background: white; }
.voice-orb span:nth-child(2) { height: 33px; background: var(--red); }

.message { max-width: 83%; margin-bottom: 15px; }
.message .speaker { margin: 0 0 5px 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.message .bubble { margin: 0; padding: 12px 14px; border-radius: 13px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.message.assistant .bubble { background: #ededeb; border-bottom-left-radius: 3px; }
.message.user { margin-left: auto; }
.message.user .speaker { text-align: right; margin-right: 4px; }
.message.user .bubble { background: #1a1a1a; color: white; border-bottom-right-radius: 3px; }
.message.system .bubble { background: #fff0f1; color: var(--red-dark); border: 1px solid #ffd2d6; }

.controls { padding-top: 18px; }
.primary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; padding: 0 17px; border-radius: 9px; border: 1px solid transparent; font-weight: 750; font-size: 13px; }
.button-primary { display: inline-flex; align-items: center; gap: 9px; background: var(--red); color: white; }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { background: white; border-color: #cfcfca; color: var(--ink); }
.button-quiet { background: transparent; color: var(--muted); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.mic-icon { width: 12px; height: 17px; border: 2px solid currentColor; border-radius: 8px; position: relative; }
.mic-icon::after { content: ""; position: absolute; width: 17px; height: 10px; left: -4px; top: 8px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 10px 10px; }

.text-entry { display: flex; gap: 8px; margin-top: 12px; }
.text-entry input { min-width: 0; flex: 1; height: 44px; padding: 0 13px; border: 1px solid #cfcfca; border-radius: 9px; outline: none; }
.text-entry input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(213,29,44,.1); }
.text-entry button { padding: 0 18px; border: 0; border-radius: 9px; background: #1a1a1a; color: white; font-weight: 750; }
.control-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; }

.summary-placeholder { min-height: 350px; display: grid; place-content: center; padding: 32px; border: 1px dashed #cecec9; border-radius: 13px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.summary-placeholder p { margin: 0; }
.summary-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary-grid > div { padding: 13px; background: #f7f7f4; border-radius: 10px; }
.summary-grid .full { grid-column: 1 / -1; }
.summary-grid dt { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.summary-grid dd { margin: 0; font-size: 13px; line-height: 1.5; }
.category-tag { display: inline-block; padding: 6px 9px; border-radius: 6px; background: #fff0f1; color: var(--red-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.linear-handoff {
  margin-top: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f7f4;
}
.linear-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #5e6ad2; color: white; font-size: 13px; font-weight: 900; }
.linear-handoff strong, .linear-handoff a, .linear-handoff button { display: block; }
.linear-handoff strong { font-size: 12px; line-height: 1.4; }
.linear-handoff a, .link-button { margin-top: 4px; color: #4b56b7; font-size: 11px; font-weight: 800; }
.linear-handoff[data-state="done"] { border-color: #b9ddca; background: #f0f9f4; }
.linear-handoff[data-state="error"] { border-color: #ffd2d6; background: #fff5f6; }
.link-button { padding: 0; border: 0; background: transparent; text-decoration: underline; }

footer { min-height: 68px; padding: 20px clamp(22px,5vw,72px); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #d5d5d0; color: var(--muted); font-size: 11px; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .hero { align-items: start; flex-direction: column; gap: 24px; }
  .boundary { width: 100%; }
  .workspace { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { height: 62px; }
  .client-lockup { font-size: 0; }
  main { padding-inline: 12px; }
  .hero { padding: 42px 8px 28px; }
  .hero-copy { font-size: 16px; }
  .conversation-card, .summary-card { padding: 18px; border-radius: 13px; }
  .transcript { height: 360px; padding: 14px; }
  .message { max-width: 92%; }
  .primary-actions .button { width: 100%; justify-content: center; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
