:root {
  --bg: #f6f7f4; --surface: #fff; --surface-soft: #eef1ec; --ink: #151817; --text: #252927;
  --muted: #66706b; --line: #d9ded9; --green: #0d7554; --green-dark: #07573e; --green-soft: #e3f3ec;
  --blue: #315f91; --blue-soft: #eaf2fb; --amber: #8a650d; --amber-soft: #fff2cf;
  --red: #923f39; --red-soft: #fbe8e6; --shadow: 0 18px 50px rgba(23, 31, 27, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color-scheme: light;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input { font: inherit; } button { color: inherit; } a { color: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(217,222,217,.8); background: rgba(246,247,244,.9); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; color: var(--ink); font-size: 18px; font-weight: 720; letter-spacing: -.025em; }
.brand-mark, .assistant-avatar { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.primary-nav { display: flex; gap: 28px; color: #515b56; font-size: 13px; font-weight: 580; }
.primary-nav a, .site-footer a { text-decoration: none; } .primary-nav a:hover, .site-footer a:hover { color: var(--green); }
.pipeline-status { justify-self: end; position: relative; }
.pipeline-status summary { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.pipeline-status summary::-webkit-details-marker { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #b5bbb7; box-shadow: 0 0 0 3px rgba(181,187,183,.18); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(13,117,84,.13); }
.pipeline-popover { position: absolute; right: 0; top: 30px; width: 330px; display: grid; gap: 6px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 12px; line-height: 1.45; }
.pipeline-popover strong { color: var(--ink); font-size: 13px; }
.app-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 190px; }
.hero { max-width: 820px; margin: 2vh auto 92px; text-align: center; }
.eyebrow, .section-kicker { display: inline-block; color: var(--green); font-size: 11px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.hero-icon { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 20px 0 24px; color: var(--green); font-size: 14px; font-weight: 760; }
.hero-icon span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #b2d5c6; border-radius: 50%; background: var(--surface); }
.hero-icon i { width: 36px; height: 2px; background: #b2d5c6; position: relative; }
.hero-icon i::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 2px solid #b2d5c6; border-right: 2px solid #b2d5c6; transform: rotate(45deg); }
h1 { margin: 0; color: var(--ink); font-size: clamp(40px, 6.2vw, 68px); line-height: 1.01; letter-spacing: -.058em; font-weight: 690; }
h1 em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero > p { max-width: 690px; margin: 24px auto 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.primary-button, .secondary-button, .text-button { border: 0; cursor: pointer; font-weight: 680; }
.primary-button, .secondary-button { padding: 12px 17px; border-radius: 11px; }
.primary-button { background: var(--ink); color: #fff; } .primary-button:hover { background: var(--green-dark); }
.secondary-button { border: 1px solid var(--line); background: var(--surface); } .secondary-button:hover { border-color: #9dc8b6; color: var(--green); }
.text-button { padding: 0; background: transparent; color: var(--green); }
.example-row { display: flex; justify-content: center; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 25px; color: #8a928e; font-size: 12px; }
.example { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); color: #59615d; font-size: 12px; cursor: pointer; }
.example:hover { border-color: #9dc8b6; background: var(--green-soft); color: var(--green-dark); }
.trust-strip { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; padding: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #777f7b; font-size: 12px; }
.trust-strip strong { color: #3d4541; font-size: 13px; }
.landing-block { padding: 106px 0; }
.section-heading { max-width: 680px; margin-bottom: 45px; }
.section-heading h2, .sample-copy h2, .use-cases h2 { margin: 11px 0 13px; color: var(--ink); font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p, .sample-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.workflow-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 30px rgba(23,31,27,.04); }
.workflow-grid article { min-height: 205px; padding: 24px; border-right: 1px solid var(--line); } .workflow-grid article:last-child { border-right: 0; }
.workflow-grid article > span { color: #9aa39e; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-grid h3 { margin: 44px 0 8px; color: var(--ink); font-size: 17px; }
.workflow-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.sample-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 85px; align-items: center; padding: 92px 0; }
.sample-copy .text-button { margin-top: 22px; }
.sample-card { padding: 28px; border: 1px solid #bed8cd; border-radius: 20px; background: #fdfefd; box-shadow: var(--shadow); }
.sample-card-head { display: flex; gap: 12px; align-items: center; padding-bottom: 19px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 21px; font-weight: 690; }
.sample-card-head b { color: #a4aba7; font-weight: 400; }
.sample-status { display: flex; gap: 8px; align-items: center; margin: 18px 0; color: var(--green-dark); font-size: 13px; font-weight: 680; }
.sample-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sample-card dl { margin: 0; } .sample-card dl div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid #e8ebe8; }
.sample-card dt { color: var(--muted); font-size: 13px; } .sample-card dd { margin: 0; font-size: 13px; font-weight: 700; }
.good { color: var(--green); } .neutral { color: var(--amber); }
.standards-section { border-top: 1px solid var(--line); }
.standard-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.standard-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.65); }
.standard-grid p { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.use-cases { padding: 88px 0 115px; text-align: center; }
.use-cases h2 { max-width: 740px; margin-left: auto; margin-right: auto; }
.use-case-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.use-case-row span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: #505955; font-size: 12px; }
.conversation { display: grid; gap: 28px; width: min(940px,100%); margin: 0 auto; }
.analysis-mode .landing-section { display: none; }
.analysis-mode .app-shell { width: min(980px,calc(100% - 36px)); padding-top: 36px; }
.message { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 14px; }
.assistant-avatar { width: 34px; height: 34px; border-radius: 10px; margin-top: 2px; }
.user-message { display: flex; justify-content: flex-end; }
.user-bubble { max-width: 76%; padding: 12px 17px; border-radius: 19px 19px 4px 19px; background: #e8eae6; font-weight: 600; }
.message-body { min-width: 0; line-height: 1.65; }
.answer-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 14px; }
.answer-header h2 { margin: 0; color: var(--ink); font-size: 27px; letter-spacing: -.035em; }
.verified-badge { white-space: nowrap; padding: 5px 9px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 750; }
.unverified-badge { color: var(--amber); background: var(--amber-soft); }
.conclusion { margin: 0 0 22px; font-size: 16px; }
.executive-summary { margin: 20px 0 28px; padding: 20px; border: 1px solid #c6dcd3; border-radius: 16px; background: linear-gradient(135deg,#fbfefc,#edf7f2); }
.summary-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; }
.summary-top strong { color: var(--ink); font-size: 14px; } .summary-top span { color: var(--muted); font-size: 11px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.summary-metric { padding: 12px; border: 1px solid rgba(178,213,198,.7); border-radius: 10px; background: rgba(255,255,255,.7); }
.summary-metric span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.summary-metric strong { display: block; margin-top: 5px; color: var(--ink); font-size: 13px; }
.answer-section { margin: 23px 0; } .answer-section h3 { margin: 0 0 7px; color: var(--ink); font-size: 15px; } .answer-section p { margin: 0; color: #363d39; }
.claim-links { margin-top: 7px; color: var(--muted); font-size: 12px; } .claim-links a { color: var(--green); }
.pathway-grid { display: grid; gap: 12px; margin-top: 12px; }
.pathway-card, .audit-panel, .uncertainty-panel, .provenance-panel { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pathway-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.pathway-title strong { font-size: 14px; } .pathway-title a { color: var(--green); text-decoration: none; font-size: 12px; }
.chain { padding: 8px 10px; margin: 6px 0; border-left: 3px solid #86bda6; border-radius: 3px 8px 8px 3px; background: #f2f8f5; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .tag { padding: 4px 8px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: 11px; } .tag.outcome { background: var(--green-soft); color: var(--green-dark); }
.audit-panel { margin-top: 18px; } .audit-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .audit-summary strong { font-size: 14px; }
.audit-counts { display: flex; gap: 12px; color: var(--muted); font-size: 12px; }
.claims-list { display: grid; margin-top: 14px; }
.claim-row { display: grid; grid-template-columns: 165px 1fr; gap: 11px; align-items: start; padding: 13px 0; border-top: 1px solid #e9ece9; font-size: 13px; }
.status-pill { width: fit-content; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 780; text-transform: uppercase; letter-spacing: .015em; }
.status-pill.supported, .status-pill.externally_verified { color: var(--green-dark); background: var(--green-soft); }
.status-pill.partially_supported, .status-pill.externally_partially_supported { color: var(--amber); background: var(--amber-soft); }
.status-pill.not_testable, .status-pill.unsupported, .status-pill.externally_refuted { color: var(--red); background: var(--red-soft); }
.status-pill.model_hypothesis_unverified, .status-pill.insufficient_external_evidence { color: #76580e; background: #f8edce; }
.status-pill.not_applicable_source_fact, .status-pill.database_supported { color: #53605a; background: var(--surface-soft); }
.evidence-quote { margin: 8px 0; padding: 9px 11px; border-left: 3px solid #a7cfbd; background: #f2f8f5; color: #47504c; font-size: 12px; }
.warning-section { padding: 14px 16px; border: 1px solid #e6d196; border-radius: 13px; background: var(--amber-soft); }
.warning-section ul { margin: 9px 0 0; padding-left: 20px; }
details summary { cursor: pointer; list-style: none; } details summary::-webkit-details-marker { display: none; }
.details-label { color: var(--muted); font-size: 13px; } .details-label::after { content: " +"; } details[open] .details-label::after { content: " −"; }
.uncertainty-panel, .provenance-panel { margin-top: 12px; color: var(--muted); font-size: 13px; }
.uncertainty-panel ul { margin: 10px 0 0; padding-left: 20px; }
.provenance-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 11px; }
.provenance-grid div { padding: 9px; border-radius: 8px; background: var(--surface-soft); } .provenance-grid span { display: block; font-size: 10px; text-transform: uppercase; } .provenance-grid strong { display: block; margin-top: 3px; color: var(--text); font-size: 11px; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 17px; }
.action-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 12px; } .action-button:hover { background: var(--surface-soft); color: var(--ink); }
.loading-title { margin-bottom: 12px; font-weight: 680; }
.progress-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #a1a7a3; font-size: 13px; }
.progress-list li { position: relative; padding-left: 22px; } .progress-list li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #d4d8d4; }
.progress-list li.active { color: var(--text); } .progress-list li.active::before { background: var(--green); box-shadow: 0 0 0 4px rgba(13,117,84,.12); animation: pulse 1.25s infinite; }
.progress-list li.done { color: #737b77; } .progress-list li.done::before { content: "✓"; width: auto; height: auto; top: -2px; color: var(--green); background: none; font-size: 14px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(13,117,84,.04); } }
.error-card { padding: 16px; border: 1px solid #ebc2be; border-radius: 13px; background: var(--red-soft); } .error-card strong { display: block; margin-bottom: 4px; }
.composer-wrap { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 22px 18px 15px; background: linear-gradient(0deg,var(--bg) 72%,rgba(246,247,244,0)); }
.composer { width: min(930px,100%); min-height: 76px; margin: 0 auto; display: grid; grid-template-columns: minmax(120px,.7fr) auto minmax(220px,1.25fr) auto; align-items: center; gap: 12px; padding: 10px 11px 10px 18px; border: 1px solid #cfd5d0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.field { min-width: 0; } .field label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 720; text-transform: uppercase; letter-spacing: .06em; }
.field input { width: 100%; padding: 4px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; text-transform: uppercase; }
.field input::placeholder { color: #afb5b1; text-transform: none; } .arrow { color: #a3aaa6; font-size: 20px; }
.send-button { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 15px; border: 0; border-radius: 11px; background: var(--ink); color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; }
.send-button:hover { background: var(--green-dark); } .send-button:disabled { opacity: .35; cursor: default; } .send-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.input-help { margin: 8px auto 0; text-align: center; color: #858d89; font-size: 11px; } .input-help.error { color: var(--red); }
code { padding: 1px 4px; border-radius: 4px; background: #e9ece8; }
.site-footer { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 28px; align-items: center; padding: 40px max(32px,calc((100vw - 1120px)/2)); border-top: 1px solid var(--line); background: #e8ece7; color: var(--muted); font-size: 12px; }
.site-footer > div { display: flex; gap: 10px; align-items: center; color: var(--ink); } .site-footer p { margin: 0; text-align: center; line-height: 1.5; } .site-footer nav { display: flex; justify-content: flex-end; gap: 16px; }
@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; } .primary-nav { display: none; }
  .app-shell { width: min(100% - 28px,1120px); padding-top: 38px; }
  .hero { margin-bottom: 60px; } h1 { font-size: clamp(38px,11vw,58px); }
  .workflow-grid { grid-template-columns: repeat(2,1fr); } .workflow-grid article:nth-child(2) { border-right: 0; } .workflow-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sample-section { grid-template-columns: 1fr; gap: 36px; } .summary-grid { grid-template-columns: repeat(2,1fr); }
  .site-footer { grid-template-columns: 1fr; text-align: center; } .site-footer > div, .site-footer nav { justify-content: center; }
}
@media (max-width: 600px) {
  .pipeline-status summary span:last-child { display: none; } .pipeline-popover { width: min(330px,calc(100vw - 28px)); }
  .hero-actions { flex-direction: row; padding: 0; } .hero-actions button { flex: 1; padding-left: 10px; padding-right: 10px; font-size: 12px; } .trust-strip { gap: 14px; } .trust-strip span { width: 100%; }
  .landing-block { padding: 76px 0; } .workflow-grid, .standard-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 165px; border-right: 0; border-bottom: 1px solid var(--line); } .workflow-grid article:last-child { border-bottom: 0; } .workflow-grid h3 { margin-top: 24px; }
  .composer { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px; border-radius: 17px; } .field { grid-column: 1; } .arrow { display: none; } .receptor-field { grid-column: 1; }
  .send-button { grid-column: 2; grid-row: 1/3; align-self: stretch; height: auto; padding: 0 12px; } .send-button span { display: none; }
  .message { grid-template-columns: 30px minmax(0,1fr); gap: 10px; } .assistant-avatar { width: 30px; height: 30px; }
  .answer-header, .audit-summary { display: block; } .verified-badge { display: inline-block; margin-top: 8px; } .audit-counts { margin-top: 7px; }
  .claim-row { grid-template-columns: 1fr; } .summary-grid, .provenance-grid { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .composer-wrap, .site-footer, .actions, .user-message { display: none !important; }
  body { background: #fff; } .app-shell { width: 100%; padding: 0; } .message { grid-template-columns: 1fr; } .assistant-avatar { display: none; }
}
