:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --border: #d9dee5;
  --accent: #126c5f;
  --accent-dark: #0a4f45;
  --danger: #b42318;
  --success: #087443;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 750;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 28px auto 0;
  padding: 28px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.site-footer nav {
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-brand img {
  width: 126px;
  height: auto;
  display: block;
}

.intro {
  min-height: calc(100vh - 144px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.landing-section {
  margin: 32px 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

.landing-section h2,
.pricing-hero h1,
.legal-hero h1 {
  max-width: 820px;
}

.landing-section h2 {
  font-size: 30px;
  line-height: 1.12;
}

.landing-section > p:not(.eyebrow),
.landing-section.split p,
.pricing-hero p,
.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.landing-section.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(242, 251, 248, 0.94), rgba(255, 255, 255, 0.98) 60%),
    white;
}

.home-plans .section-heading {
  align-items: flex-end;
  margin-bottom: 20px;
}

.home-plans .section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.feature-grid article,
.faq-grid article {
  padding: 16px;
  border: 1px solid rgba(217, 222, 229, 0.88);
  border-radius: 8px;
  background: #f9fcfb;
}

.feature-grid h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-grid h3,
.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 216, 207, 0.82);
  border-radius: 8px;
  background: #eef7f5;
  color: var(--accent-dark);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-grid p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-hero,
.legal-hero {
  margin-bottom: 24px;
}

.pricing-hero h1,
.legal-hero h1 {
  font-size: 48px;
}

.pricing-section {
  margin-bottom: 24px;
}

.faq-section {
  margin-top: 24px;
}

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

.legal-note {
  padding: 14px 16px;
  border: 1px solid #d7e7e4;
  border-radius: 8px;
  background: #f7fbfa;
  color: #344054;
  line-height: 1.55;
}

.legal-note.small {
  margin: 14px 0 0;
  font-size: 13px;
}

.legal-shell {
  max-width: 980px;
  margin: 0 auto;
}

.legal-hero span {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.legal-nav a {
  padding: 8px 9px;
  border-radius: 6px;
  color: #344054;
  font-weight: 700;
}

.legal-nav a.active,
.legal-nav a:hover {
  background: #eef7f5;
  color: var(--accent-dark);
}

.legal-content h2 {
  margin-top: 26px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: #344054;
  line-height: 1.65;
}

.home-visual {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.team-hero {
  display: block;
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(16, 35, 31, 0.14));
}

.button,
button.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: white;
  color: var(--accent-dark);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.inline-form {
  display: inline;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.danger {
  border-color: #f2b8b5;
  color: var(--danger);
}

.icon-button.danger:hover {
  background: #fee4e2;
}

.terminal-preview,
.panel,
.notice,
.auth-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.terminal-preview {
  width: min(100%, 460px);
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(238, 247, 245, 0.9), rgba(255, 255, 255, 0.98) 44%),
    var(--panel);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 6px 16px;
  border-bottom: 1px solid var(--border);
}

.preview-ticker {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.company-logo-wrap {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid #d3e7cf;
  border-radius: 10px;
  background: #f7fcf5;
}

.company-logo-wrap img {
  width: 158px;
  max-width: none;
  max-height: none;
  height: auto;
  display: block;
}

.preview-ticker strong,
.preview-ticker span {
  display: block;
}

.preview-ticker strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.preview-ticker span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.preview-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a5a00;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 180ms ease, color 180ms ease;
}

.terminal-preview.sample-complete .preview-pill {
  background: #dcfae6;
  color: var(--success);
}

.agent-list {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.agent-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 222, 229, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.agent-row.working {
  border-color: rgba(242, 180, 71, 0.78);
  background: #fffaf0;
}

.agent-row.complete {
  border-color: rgba(167, 216, 207, 0.75);
  background: rgba(249, 253, 251, 0.9);
}

.agent-row strong,
.agent-row span {
  display: block;
}

.agent-row strong {
  color: #1d2734;
  font-size: 14px;
}

.agent-row div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.agent-row > span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agent-row.complete > span:last-child {
  color: var(--success);
}

.agent-row.working > span:last-child {
  color: #9a6700;
}

.agent-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #c5ced8;
  box-shadow: 0 0 0 5px rgba(102, 112, 133, 0.1);
}

.agent-row.working .agent-dot,
.agent-row.working .agent-spinner {
  background: transparent;
  box-shadow: none;
}

.agent-row.complete .agent-dot {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(8, 116, 67, 0.12), 0 0 16px rgba(8, 116, 67, 0.45);
}

.agent-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #d8ece8;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.sample-report-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(167, 216, 207, 0.82);
  border-radius: 8px;
  background: #f2fbf8;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.terminal-preview.sample-complete .sample-report-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sample-report-cta strong,
.sample-report-cta span {
  display: block;
}

.sample-report-cta strong {
  color: #1d2734;
  font-size: 14px;
}

.sample-report-cta span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.sample-report-cta .button {
  min-height: 38px;
  white-space: nowrap;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.dashboard-hero {
  align-items: center;
  padding: 10px 0 0;
}

.dashboard-header h1 {
  max-width: none;
  font-size: 44px;
}

.dashboard-copy {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.usage-box {
  min-width: 180px;
  padding: 14px 16px;
  background: linear-gradient(145deg, #ffffff, #f7fbfa);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
}

.usage-box span {
  display: block;
  font-size: 24px;
  font-weight: 750;
}

.usage-box small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.usage-box em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.usage-meter {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef0;
}

.usage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.panel,
.notice,
.auth-panel {
  padding: 22px;
  margin-bottom: 24px;
}

.notice {
  border-color: #a7d8cf;
}

.notice > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.notice.danger {
  border-color: #f2b8b5;
}

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

.plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(104px, auto) minmax(44px, auto) 1fr auto;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(217, 222, 229, 0.92);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f9fcfb);
}

.plan-card.featured {
  border-color: #a7d8cf;
  background:
    radial-gradient(circle at 88% 8%, rgba(158, 216, 206, 0.22), transparent 34%),
    linear-gradient(145deg, #ffffff, #f2fbf8);
}

.plan-card h2,
.plan-card h3 {
  margin: 0;
  font-size: 22px;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.plan-card .plan-note {
  margin-top: -6px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.plan-card .plan-description {
  min-height: 24px;
}

.plan-card .plan-value {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #dcfae6;
  color: var(--success);
  font-size: 14px;
  font-weight: 800;
}

.plan-card .plan-value-placeholder {
  visibility: hidden;
}

.plan-price {
  min-height: 46px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.plan-price strong {
  font-size: 38px;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-weight: 700;
}

.plan-allowance {
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(217, 222, 229, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.plan-allowance strong,
.plan-allowance span,
.plan-allowance small {
  display: block;
}

.plan-allowance strong {
  font-size: 24px;
}

.plan-allowance span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-allowance small {
  margin-top: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.plan-features {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #344054;
  font-size: 14px;
  line-height: 1.45;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
}

.plan-features li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dcfae6;
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-card > .button,
.plan-card > button.button {
  width: 100%;
  align-self: end;
}

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

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

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-stats div {
  padding: 14px;
  border: 1px solid rgba(217, 222, 229, 0.9);
  border-radius: 8px;
  background: #f9fcfb;
}

.account-stats span,
.account-stats strong {
  display: block;
}

.account-stats span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-stats strong {
  color: var(--text);
  font-size: 18px;
}

.compact-plans {
  margin-top: 18px;
}

.compact-plans .plan-card {
  gap: 10px;
}

.compact-plans .plan-price strong {
  font-size: 30px;
}

.button:disabled {
  border-color: var(--border);
  background: #eef2f6;
  color: var(--muted);
  cursor: not-allowed;
}

.auth-panel {
  max-width: 440px;
  margin: 40px auto;
}

.auth-panel h1 {
  font-size: 32px;
  margin-bottom: 22px;
}

.auth-copy {
  margin: -8px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.stack-form,
.research-form {
  display: grid;
  gap: 14px;
}

.research-form {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
}

.launch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 22px;
  align-items: center;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(242, 251, 248, 0.94), rgba(255, 255, 255, 0.98) 52%),
    var(--panel);
}

.launch-panel.locked {
  border-color: #d7e7e4;
  background:
    linear-gradient(135deg, rgba(249, 252, 251, 0.92), rgba(255, 255, 255, 0.98) 58%),
    var(--panel);
}

.launch-copy h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.launch-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.58;
}

.launch-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  max-width: 860px;
}

.launch-form.locked {
  opacity: 0.62;
}

.launch-lock {
  display: inline-grid;
  gap: 2px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #d7e7e4;
  border-radius: 8px;
  background: #f7fbfa;
}

.launch-lock span {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.launch-lock strong {
  color: #344054;
  font-size: 13px;
}

.launch-art {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 170px;
}

.launch-art img {
  width: min(100%, 250px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(16, 35, 31, 0.12));
}

.confirm-shell {
  max-width: 820px;
  margin: 0 auto;
}

.confirm-copy {
  margin-bottom: 22px;
}

.confirm-copy h1 {
  max-width: 620px;
  font-size: 48px;
}

.confirm-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.confirm-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  background:
    radial-gradient(circle at 86% 8%, rgba(158, 216, 206, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 248, 0.94)),
    white;
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.company-art,
.company-badge {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border: 1px solid #a7d8cf;
  border-radius: 18px;
  background: #f2fbf8;
}

.company-art {
  object-fit: contain;
  padding: 14px;
}

.company-badge {
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0;
}

.company-identity h2 {
  margin: 0 0 4px;
  font-size: 44px;
}

.company-identity p:not(.eyebrow) {
  margin: 0;
  color: #344054;
  font-size: 17px;
  font-weight: 700;
}

.confirm-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.confirm-details div {
  padding: 14px;
  border: 1px solid rgba(217, 222, 229, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.confirm-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.confirm-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

.company-description {
  margin: 0;
  color: #344054;
  line-height: 1.58;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--text);
  font: inherit;
}

input:disabled {
  background: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.recent-panel {
  overflow-x: auto;
}

.recent-panel h2 {
  margin-bottom: 4px;
}

.jobs-table {
  min-width: 760px;
}

.admin-search-panel .research-form {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.admin-table {
  min-width: 900px;
}

.jobs-table th,
.jobs-table td {
  padding: 14px 10px;
}

.ticker-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef7f5;
  color: var(--accent-dark);
  font-weight: 800;
}

.table-progress {
  width: 118px;
  height: 7px;
  margin-bottom: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef0;
}

.table-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.status.succeeded {
  background: #dcfae6;
  color: var(--success);
}

.status.failed {
  background: #fee4e2;
  color: var(--danger);
}

.status.running,
.status.pending,
.status.cancel_requested {
  background: #fff3cd;
  color: #7a5a00;
}

.status.canceled {
  background: #eef2f6;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading span,
.muted {
  color: var(--muted);
}

.alert,
.success {
  padding: 12px 14px;
  border-radius: 6px;
  margin: 0 0 18px;
}

.alert {
  background: #fee4e2;
  color: var(--danger);
}

.alert.soft {
  margin: 0;
  background: #fff8e5;
  color: #7a5a00;
}

.success {
  background: #dcfae6;
  color: var(--success);
}

.report {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
}

.report-hero,
.report-band,
.report-section {
  margin-bottom: 24px;
}

.report-layout {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.report-content {
  min-width: 0;
}

.report-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 4px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.toc-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-toc a {
  display: block;
  padding: 8px 9px;
  border-radius: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.report-toc a.toc-sub {
  padding: 5px 9px 5px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.report-toc a:hover {
  background: #eef7f5;
  color: var(--accent-dark);
}

.report-hero {
  padding: 28px;
  background: #10231f;
  color: white;
  border-radius: 8px;
}

.report-hero .eyebrow {
  color: #9ed8ce;
}

.report-hero h2 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1;
}

.summary-copy {
  color: #d7e7e4;
  font-size: 16px;
}

.report-band {
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.report-band.final {
  border-color: #a7d8cf;
}

.sample-signup-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(167, 216, 207, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 20%, rgba(158, 216, 206, 0.22), transparent 34%),
    linear-gradient(145deg, #ffffff, #f2fbf8);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.sample-signup-callout h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.sample-signup-callout p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sample-signup-callout .button {
  flex: 0 0 auto;
}

.report-fine-print {
  margin: -4px 0 0;
  padding: 12px 2px 0;
  border-top: 1px solid rgba(217, 222, 229, 0.82);
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.report-fine-print p {
  margin: 0;
}

.report-fine-print strong {
  color: #344054;
}

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

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

.report-stack {
  display: grid;
  gap: 16px;
}

.report-card {
  min-width: 0;
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.report-card.has-mascot {
  position: relative;
  overflow: visible;
}

.report-card.has-mascot::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -24px;
  z-index: 1;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 42%, rgba(235, 247, 244, 0.78) 43%, rgba(235, 247, 244, 0) 70%);
  pointer-events: none;
}

.report-card.has-mascot .report-card-header {
  padding-right: 104px;
}

.report-card.has-mascot .markdown-body > :first-child {
  padding-right: 118px;
}

.report-subsection {
  scroll-margin-top: 84px;
}

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

.analyst-mascot {
  position: absolute;
  top: 26px;
  right: -18px;
  z-index: 2;
  width: 124px;
  height: 124px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(16, 35, 31, 0.14));
  pointer-events: none;
}

.report-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: 0;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.markdown-body {
  color: #273444;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin: 0 0 12px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 22px;
}

.markdown-body table {
  display: block;
  overflow-x: auto;
  font-size: 13px;
}

.markdown-body.compact {
  color: #2c3848;
  line-height: 1.56;
}

.markdown-body.compact h1,
.markdown-body.compact h2,
.markdown-body.compact h3,
.markdown-body.compact h4 {
  margin: 12px 0 6px;
  font-size: 15px;
  line-height: 1.25;
}

.markdown-body.compact p,
.markdown-body.compact ul,
.markdown-body.compact ol {
  margin-bottom: 9px;
}

.markdown-body.compact hr {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.proposal-callout {
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid #a7d8cf;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f2fbf8;
}

.proposal-label {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proposal-body {
  color: #273444;
  font-weight: 650;
}

.report-hero .markdown-body {
  color: #d7e7e4;
}

.progress-panel {
  display: grid;
  gap: 22px;
}

.research-room {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(158, 216, 206, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(242, 251, 248, 0.98), rgba(255, 255, 255, 0.98) 48%),
    white;
}

.research-room-main {
  display: grid;
  align-content: start;
  gap: 18px;
}

.progress-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.progress-heading h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

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

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #cfe7e2;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
  margin-top: 2px;
}

.progress-track {
  height: 12px;
  width: 100%;
  overflow: hidden;
  background: #e9eef3;
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, var(--accent), #24a08d);
  border-radius: inherit;
  transition: width 240ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
}

.progress-steps li {
  padding-left: 4px;
}

.progress-steps li.done {
  color: var(--success);
  font-weight: 700;
}

.progress-steps li.active {
  color: var(--accent-dark);
  font-weight: 700;
}

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

.progress-stats div {
  padding: 14px;
  border: 1px solid rgba(217, 222, 229, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.progress-stats strong,
.progress-stats span {
  display: block;
}

.progress-stats strong {
  color: var(--text);
  font-size: 18px;
}

.progress-stats span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.active-agent-card {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(167, 216, 207, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.agent-orbit {
  position: relative;
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 48%, #e7f5f2 49%, transparent 68%);
}

.agent-orbit::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(18, 108, 95, 0.22);
  border-radius: 999px;
  animation: spin 14s linear infinite;
}

.agent-orbit img {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(16, 35, 31, 0.14));
  animation: float-agent 3.8s ease-in-out infinite;
}

.active-agent-card .eyebrow {
  margin-top: 4px;
}

.active-agent-card h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
}

.active-agent-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.agent-roster {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.mini-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  opacity: 0.7;
}

.mini-agent.active {
  border-color: #a7d8cf;
  background: #f2fbf8;
  opacity: 1;
  box-shadow: 0 8px 18px rgba(16, 35, 31, 0.08);
}

.mini-agent.complete {
  opacity: 1;
}

.mini-agent img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.mini-agent strong,
.mini-agent span {
  display: block;
}

.mini-agent strong {
  overflow: hidden;
  color: #1d2734;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-agent span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mini-agent.active span {
  color: var(--accent-dark);
}

.mini-agent.complete span {
  color: var(--success);
}

.live-report-preview {
  margin-top: 18px;
  padding: 22px;
}

.live-preview-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.live-preview-header h2 {
  margin: 0;
  font-size: 22px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #cfe7e2;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f2fbf8;
}

.live-dot span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(8, 116, 67, 0.12);
}

.live-preview-list {
  display: grid;
  gap: 12px;
}

.live-preview-card,
.live-preview-empty {
  border: 1px solid rgba(217, 222, 229, 0.88);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 251, 0.98));
}

.live-preview-card {
  padding: 16px;
  animation: preview-pop 220ms ease-out;
}

.live-preview-card.writing {
  border-color: #b6ded6;
  background: #f6fcfa;
}

.live-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.live-preview-meta span,
.live-preview-meta strong {
  display: block;
}

.live-preview-meta span {
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-preview-meta strong {
  color: var(--text);
  font-size: 18px;
}

.live-preview-meta em {
  flex: 0 0 auto;
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f5f2;
  color: var(--accent-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-preview-card.ready .live-preview-meta em {
  background: #dcf7e5;
  color: var(--success);
}

.live-preview-content {
  max-height: 210px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.live-preview-content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
}

.live-preview-card.writing .live-preview-content::after {
  background: linear-gradient(180deg, rgba(246, 252, 250, 0), #f6fcfa);
}

.live-preview-empty {
  padding: 18px;
  color: var(--muted);
}

.live-preview-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.live-preview-empty p {
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-agent {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes preview-pop {
  from {
    transform: translateY(6px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 780px) {
  .topbar {
    padding: 0 16px;
  }

  nav {
    gap: 12px;
  }

  .intro,
  .research-form,
  .dashboard-header,
  .launch-panel,
  .plan-grid,
  .feature-grid,
  .faq-grid,
  .legal-layout,
  .account-grid,
  .account-stats {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-footer,
  .landing-section.split {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .pricing-hero h1,
  .legal-hero h1,
  .landing-section h2 {
    font-size: 34px;
  }

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .launch-panel {
    padding: 20px;
  }

  .launch-art {
    order: -1;
    min-height: 120px;
    justify-content: flex-start;
  }

  .launch-art img {
    width: min(70%, 230px);
  }

  .confirm-copy h1 {
    font-size: 36px;
  }

  .confirm-card {
    padding: 20px;
  }

  .company-identity {
    align-items: flex-start;
  }

  .company-art,
  .company-badge {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    font-size: 22px;
  }

  .company-identity h2 {
    font-size: 34px;
  }

  .confirm-details {
    grid-template-columns: 1fr;
  }

  .confirm-actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .confirm-actions .button,
  .confirm-actions form,
  .confirm-actions button {
    width: 100%;
  }

  .research-room {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .progress-stats {
    grid-template-columns: 1fr;
  }

  .agent-roster {
    grid-template-columns: 1fr;
  }

  .agent-orbit {
    width: 148px;
    height: 148px;
  }

  .agent-orbit::before {
    inset: -8px;
  }

  .agent-orbit img {
    width: 126px;
    height: 126px;
  }

  .report-hero,
  .report-grid,
  .report-grid.two {
    grid-template-columns: 1fr;
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-toc {
    position: sticky;
    top: 64px;
    z-index: 5;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
  }

  .toc-title {
    display: none;
  }

  .report-toc a {
    white-space: nowrap;
  }

  .report-toc a.toc-sub {
    padding-left: 9px;
  }

  .sample-signup-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-signup-callout .button {
    width: 100%;
  }

  .report-card-header {
    gap: 12px;
  }

  .report-card.has-mascot {
    overflow: hidden;
  }

  .report-card.has-mascot::after {
    top: 36px;
    right: 2px;
    width: 88px;
    height: 88px;
  }

  .report-card.has-mascot .report-card-header {
    padding-right: 76px;
  }

  .report-card.has-mascot .markdown-body > :first-child {
    padding-right: 0;
  }

  .analyst-mascot {
    top: 42px;
    right: 8px;
    width: 78px;
    height: 78px;
  }

  .dashboard-header {
    align-items: start;
  }

  h1,
  .dashboard-header h1 {
    font-size: 36px;
  }
}
