:root {
  --bg: #f7f3ea;
  --bg-soft: #fffdf7;
  --surface: rgba(255, 252, 245, 0.82);
  --surface-strong: #fff9ee;
  --text: #182218;
  --muted: #5a6659;
  --line: rgba(24, 34, 24, 0.1);
  --accent: #e46d2e;
  --accent-dark: #b54f16;
  --accent-soft: rgba(228, 109, 46, 0.12);
  --green: #2e6b4d;
  --shadow: 0 20px 60px rgba(85, 66, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(228, 109, 46, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(46, 107, 77, 0.16), transparent 30%),
    linear-gradient(180deg, #f8f2e7 0%, #f4efe8 100%);
}

.app-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.hero {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 249, 238, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.topbar,
.hero-grid,
.story-grid,
.roadmap,
.metric-grid,
.result-grid,
.persona-grid,
.confidence {
  display: grid;
  gap: 16px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff8f1;
  background: linear-gradient(135deg, var(--accent) 0%, #ffb36b 100%);
}

.brand-title,
.brand-subtitle,
.section-kicker,
.summary-label,
.result-card p,
.report-card p,
.story-card h3,
.field span,
.hero-card-list,
.hero-text,
.section-heading p,
.roadmap span,
.metric-grid span,
.hero-tags span,
.panel-header span {
  margin: 0;
}

.brand-title {
  font-weight: 800;
}

.brand-subtitle,
.hero-text,
.section-heading p,
.panel-header span,
.summary-label,
.result-card p,
.report-card p,
.field span,
.metric-grid span,
.roadmap p,
.story-card p {
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hero-tags span,
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-top: 34px;
  align-items: start;
  column-gap: clamp(20px, 3vw, 40px);
}

.eyebrow,
.section-kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

.hero-copy h1,
.section-heading h2 {
  margin: 10px 0 16px;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  max-width: 100%;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 42ch;
  font-size: 1.02rem;
  line-height: 1.75;
}

@media (min-width: 981px) {
  .hero-text {
    max-width: 48ch;
  }
}

.hero-metrics {
  grid-column: 1 / -1;
  margin-top: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.persona-btn,
select,
input,
textarea {
  border-radius: 18px;
  font: inherit;
}

.primary-btn,
.ghost-btn,
.persona-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.persona-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff9e57 100%);
  color: #fffdf9;
  border: none;
  box-shadow: 0 16px 30px rgba(228, 109, 46, 0.28);
  cursor: pointer;
}

.primary-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.metric-grid article,
.hero-card,
.panel,
.story-card,
.roadmap article,
.report-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-grid article {
  padding: 18px;
  border-radius: 22px;
}

.metric-grid strong,
.result-card h4,
.report-header h4,
.panel-header h3,
.story-card h3,
.roadmap h3,
.hero-card h2 {
  margin: 0 0 6px;
}

.hero-card {
  padding: 24px;
  border-radius: 28px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-top,
.panel-header,
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-top {
  color: var(--green);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3abf7a;
  box-shadow: 0 0 0 6px rgba(58, 191, 122, 0.12);
}

.hero-card-list,
.result-card ul,
.report-card ol {
  padding-left: 20px;
  line-height: 1.8;
}

.confidence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.confidence div {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.confidence p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.confidence strong {
  font-size: 1.2rem;
}

.section {
  margin-top: 28px;
  padding: 28px 0 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
}

.workspace-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: min(1120px, 100%);
  margin: 0 auto;
}

.workspace-health {
  margin: 0 auto 16px;
  max-width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workspace-health__item {
  border: 1px solid rgba(24, 34, 24, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(249, 245, 236, 0.78));
}

.workspace-health__item p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.workspace-health__item strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  color: var(--text);
}

.workspace-row {
  display: grid;
  gap: 18px;
}

.workspace-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-block {
  scroll-margin-top: 12px;
}

.workflow-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.workflow-block__head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.workflow-block__head span {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: min(520px, 100%);
  line-height: 1.5;
}

.workflow-block--pdf {
  border-color: rgba(46, 107, 77, 0.22);
  background: linear-gradient(165deg, rgba(238, 252, 244, 0.9), var(--surface));
}

.workflow-block--prd {
  border-color: rgba(228, 109, 46, 0.2);
  background: linear-gradient(165deg, rgba(255, 248, 240, 0.95), var(--surface));
}

.workflow-block--rag {
  border-color: rgba(228, 109, 46, 0.15);
}

.workflow-block--persona {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--surface));
}

.workflow-block--compare {
  background: linear-gradient(135deg, rgba(46, 107, 77, 0.06), rgba(255, 255, 255, 0.88));
}

.workflow-block--guide {
  background: linear-gradient(135deg, rgba(25, 105, 77, 0.08), rgba(255, 255, 255, 0.9));
}

.quick-guide {
  display: grid;
  gap: 10px;
}

.quick-guide__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.68);
}

.quick-guide__item h4 {
  margin: 0 0 4px;
  font-size: 0.93rem;
}

.quick-guide__item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.field--tight {
  margin-top: 12px;
}

.field--tight:first-of-type {
  margin-top: 0;
}

.field--inline {
  margin-top: 0;
}

.field--inline span {
  font-size: 0.88rem;
}

.model-options-row {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 14px 18px;
  align-items: end;
}

.model-options-row--compact {
  grid-template-columns: minmax(220px, 1.35fr) minmax(140px, 0.65fr);
}

.compact-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.api-box--flat {
  margin-top: 0;
  padding: 14px 16px;
}

.action-near-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.workflow-primary-btn {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 0 22px;
}

.workflow-primary-btn.is-loading {
  opacity: 0.92;
  filter: saturate(0.9);
  box-shadow: 0 10px 22px rgba(228, 109, 46, 0.18);
}

.workflow-primary-btn--narrow {
  max-width: 280px;
}

.workflow-output {
  margin-top: 0;
}

.adjacent-result {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.adjacent-result__line {
  margin: 0 0 6px;
}

.adjacent-result__line:last-child {
  margin-bottom: 0;
}

.adjacent-result__line--emphasis {
  color: var(--text);
  font-weight: 500;
}

.rag-query-row {
  display: grid;
  grid-template-columns: 1fr minmax(108px, auto);
  gap: 12px 14px;
  align-items: end;
  margin-top: 4px;
}

.rag-query-row__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rag-query-row__label {
  font-size: 0.9rem;
  color: var(--muted);
}

.rag-submit-btn {
  min-height: 48px;
  padding: 0 18px;
  white-space: nowrap;
}

.workflow-block--rag .workflow-output {
  margin-top: 12px;
}

.inline-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.summary-head--tight {
  margin-top: 18px;
  padding-top: 4px;
}

.report-card--tight {
  margin-top: 14px;
}

.toolbar-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.summary-label--tight {
  margin-top: 8px;
  margin-bottom: 4px;
}

.compare-grid--tight {
  margin-top: 4px;
}

.persona-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-line--global {
  text-align: center;
  margin: 4px 0 0;
}

.status-line--top {
  margin: 0 auto 14px;
  padding: 10px 14px;
  max-width: min(1120px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}

.workflow-block #paperAbstract {
  min-height: 182px;
}

.workflow-output--bounded {
  max-height: min(38vh, 360px);
  overflow-y: auto;
}

.chat-dock {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(24, 34, 24, 0.14);
  background: rgba(255, 252, 245, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -10px 40px rgba(85, 66, 33, 0.12);
  max-height: min(42vh, 340px);
  min-height: 140px;
}

.chat-dock__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}

.chat-dock__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}

.chat-dock__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.chat-dock__sub {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(200px, 42vw);
}

.chat-dock__clear {
  min-height: 36px !important;
  padding: 0 12px !important;
  font-size: 0.86rem !important;
  flex-shrink: 0;
}

.chat-dock__messages {
  flex: 1 1 auto;
  min-height: 64px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-dock__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px 0;
}

.prompt-chip,
.rewrite-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
}

.prompt-chip:hover,
.rewrite-chip:hover {
  color: var(--text);
  border-color: rgba(228, 109, 46, 0.35);
}

.prompt-chip--recommended {
  border-color: rgba(228, 109, 46, 0.5);
  color: var(--accent-dark);
  background: rgba(255, 244, 232, 0.95);
}

.chat-dock__composer {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.chat-dock__textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px !important;
  max-height: 120px;
  resize: vertical;
}

.chat-dock__send {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
}

.chat-placeholder {
  margin: 0;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.chat-bubble {
  max-width: min(720px, 100%);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-bubble--user {
  align-self: flex-end;
  margin-left: 12%;
  background: linear-gradient(135deg, rgba(228, 109, 46, 0.2), rgba(255, 200, 150, 0.25));
  border: 1px solid rgba(228, 109, 46, 0.28);
}

.chat-bubble--assistant {
  align-self: flex-start;
  margin-right: 8%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.chat-bubble--error {
  border-color: rgba(180, 60, 60, 0.35);
  background: rgba(255, 230, 230, 0.5);
  color: #6b1c1c;
}

.chat-bubble__body {
  margin: 0;
}

.chat-bubble__cites {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
}

.citation-title {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.answer-feedback {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  min-width: 34px;
  min-height: 30px;
  cursor: pointer;
}

.feedback-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.feedback-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.feedback-error-tags {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
}

.feedback-error-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--muted);
}

.answer-feedback.submitted .feedback-btn {
  border-color: rgba(46, 107, 77, 0.35);
  background: rgba(46, 107, 77, 0.1);
}

.panel,
.story-card,
.roadmap article,
.report-card {
  border-radius: 28px;
}

.panel {
  padding: 22px;
}

.api-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px dashed rgba(24, 34, 24, 0.22);
  background: rgba(255, 255, 255, 0.5);
}

.upload-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px dashed rgba(46, 107, 77, 0.3);
  background: rgba(238, 252, 244, 0.65);
}

.rag-box {
  border-color: rgba(228, 109, 46, 0.28);
  background: rgba(255, 252, 248, 0.88);
}

.rag-output {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}

.rag-output.muted {
  color: var(--muted);
}

.rag-output strong {
  color: var(--text);
}

.rag-output .prd-block + .prd-block {
  margin-top: 14px;
}

.rag-output h5 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.citation-stack {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.citation-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-size: 0.9rem;
}

.citation-card[role="button"] {
  cursor: pointer;
}

.citation-card--active {
  border-color: rgba(228, 109, 46, 0.45);
  box-shadow: 0 0 0 3px rgba(228, 109, 46, 0.14);
}

.chat-bubble__rewrite {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.answer-highlight {
  background: rgba(255, 223, 155, 0.8);
  color: #2a200d;
  border-radius: 4px;
  padding: 0 2px;
}

.rewrite-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.citation-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.keyword-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.84rem;
}

textarea.rag-question {
  min-height: 96px;
}

.field {
  display: block;
  margin-top: 18px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(24, 34, 24, 0.12);
  background: rgba(255, 255, 255, 0.85);
  padding: 14px 16px;
  outline: none;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(228, 109, 46, 0.45);
  box-shadow: 0 0 0 4px rgba(228, 109, 46, 0.09);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}

.toggle input {
  width: 18px;
  height: 18px;
}

.status-line {
  margin: 14px 2px 0;
  font-size: 0.92rem;
  color: var(--green);
}

.status-line.error {
  color: #bb3a1f;
}

.hint-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.persona-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.persona-btn {
  min-height: 50px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
}

.persona-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #1f6b4b 0%, #4c9877 100%);
  color: #f7fff8;
  box-shadow: 0 14px 24px rgba(31, 107, 75, 0.24);
}

.full-width {
  width: 100%;
  margin-top: 18px;
}

.summary-head {
  padding: 4px 0 12px;
}

.summary-head h3 {
  margin: 6px 0;
  font-size: 1.6rem;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card {
  min-height: 200px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.result-card.accent {
  background: linear-gradient(180deg, rgba(228, 109, 46, 0.15), rgba(255, 255, 255, 0.74));
}

.result-card h4 {
  font-size: 1.22rem;
  line-height: 1.6;
}

.report-card {
  margin-top: 18px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(46, 107, 77, 0.08), rgba(255, 255, 255, 0.78));
}

.compare-card {
  margin-top: 20px;
}

.compact-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
}

#compareList {
  margin: 4px 0 12px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.compare-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare-item-checkbox {
  width: 16px;
  height: 16px;
}

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

.compare-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.compare-grid h5 {
  margin: 0 0 8px;
}

.compare-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.compare-grid ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.story-grid,
.roadmap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.roadmap article {
  padding: 22px;
}

.roadmap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .story-grid,
  .roadmap,
  .metric-grid,
  .result-grid,
  .topbar {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-column: auto;
    margin-top: 16px;
  }

  .hero-card {
    align-self: stretch;
  }

  .hero-tags {
    justify-content: flex-start;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .workspace-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-row--three,
  .workspace-row--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 10px;
  }

  .hero,
  .panel,
  .story-card,
  .roadmap article,
  .report-card {
    border-radius: 24px;
  }

  .persona-grid,
  .confidence,
  .action-row {
    grid-template-columns: 1fr;
  }

  .rag-query-row {
    grid-template-columns: 1fr;
  }

  .rag-submit-btn {
    width: 100%;
    justify-self: stretch;
  }

  .model-options-row {
    grid-template-columns: 1fr;
  }

  .workspace-health {
    grid-template-columns: 1fr;
  }

  .workflow-primary-btn,
  .workflow-primary-btn--narrow {
    width: 100%;
    max-width: none;
  }
}
