.llamaparse-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.demo-header {
  align-items: center;
  background: rgba(6, 18, 30, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--white);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  left: 0;
  padding: 1.05rem max(24px, calc((100vw - var(--container)) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.demo-header .brand,
.demo-footer .brand {
  color: inherit;
  text-decoration: none;
}

.demo-nav {
  align-items: center;
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.demo-nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.demo-nav a:hover {
  color: var(--white);
}

.powered-label {
  background: rgba(120, 184, 220, 0.11);
  border: 1px solid rgba(120, 184, 220, 0.24);
  border-radius: 999px;
  color: #d7edf8;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 0.62rem 0.82rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-hero {
  background: var(--navy-950);
  color: var(--white);
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5.5rem, 10vw, 8.5rem) max(24px, calc((100vw - var(--container)) / 2)) clamp(3rem, 6vw, 5rem);
  position: relative;
}

.demo-grid-bg {
  background-image:
    linear-gradient(rgba(122, 178, 208, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 178, 208, 0.14) 1px, transparent 1px);
  background-size: 68px 68px;
  inset: 0;
  mask-image: linear-gradient(to right, transparent 2%, #000 42%, #000 82%, transparent);
  opacity: 0.18;
  position: absolute;
  z-index: -2;
}

.demo-grid-bg::after {
  background:
    linear-gradient(90deg, var(--navy-950) 2%, transparent 45%),
    linear-gradient(0deg, var(--navy-950), transparent 64%);
  content: "";
  inset: 0;
  position: absolute;
}

.demo-glow {
  background: radial-gradient(circle, rgba(57, 124, 165, 0.28), transparent 65%);
  border-radius: 999px;
  height: 680px;
  position: absolute;
  right: -180px;
  top: -260px;
  width: 680px;
  z-index: -1;
}

.demo-hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
  margin: 0;
  max-width: 860px;
}

.demo-hero p:not(.eyebrow) {
  color: rgba(230, 238, 242, 0.7);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.82;
  margin: 1.6rem 0 0;
  max-width: 720px;
}

.demo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.demo-trust span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(230, 238, 242, 0.68);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 0.55rem 0.72rem;
  text-transform: uppercase;
}

.demo-note {
  align-self: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(8, 26, 42, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  min-height: 210px;
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
}

.demo-note::before {
  background: linear-gradient(90deg, var(--blue-bright), transparent);
  content: "";
  height: 1px;
  left: 1.35rem;
  position: absolute;
  right: 1.35rem;
  top: 0;
}

.demo-note strong,
.demo-note span {
  display: block;
}

.demo-note strong {
  color: var(--blue-bright);
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.demo-note span {
  color: rgba(247, 244, 237, 0.86);
  line-height: 1.75;
}

.demo-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
  margin: -2rem auto 0;
  max-width: var(--container);
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.demo-grid.is-parsed {
  align-items: start;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.demo-grid.is-parsed .upload-panel {
  position: sticky;
  top: 92px;
}

.demo-grid.is-parsed .upload-form {
  display: none;
}

.demo-grid.is-parsed .pdf-preview {
  border-top: 0;
  height: 360px;
}

.demo-grid.is-parsed .panel-head {
  padding: 1rem;
}

.panel {
  background: rgba(250, 249, 245, 0.94);
  border: 1px solid rgba(12, 32, 48, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(247, 249, 248, 0.28));
  border-bottom: 1px solid rgba(12, 32, 48, 0.1);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.15rem 1.2rem;
}

.panel-head h2 {
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0.22rem 0 0;
}

.status-chip {
  background: #edf4f8;
  border: 1px solid rgba(78, 135, 174, 0.24);
  border-radius: 999px;
  color: #214a64;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  padding: 0.43rem 0.68rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip.idle {
  background: #f3eee4;
  color: #6d5631;
}

.status-chip.success {
  background: #e7f7ef;
  color: #15623f;
}

.status-chip.error {
  background: #fff0ed;
  color: #9d2a1d;
}

.upload-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.drop-zone {
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(120, 184, 220, 0.13), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 241, 234, 0.62));
  border: 1px dashed rgba(78, 135, 174, 0.52);
  border-radius: 22px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  min-height: 235px;
  padding: 2.2rem;
  position: relative;
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.drop-zone::after {
  border: 1px solid rgba(78, 135, 174, 0.12);
  border-radius: 18px;
  content: "";
  inset: 0.55rem;
  pointer-events: none;
  position: absolute;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--blue);
  box-shadow: 0 18px 45px rgba(78, 135, 174, 0.12);
  transform: translateY(-2px);
}

.drop-zone input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.drop-icon {
  align-items: center;
  background: var(--navy-950);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(6, 18, 30, 0.18);
  color: var(--blue-bright);
  display: inline-flex;
  font-family: "DM Mono", monospace;
  font-size: 1.9rem;
  height: 64px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 64px;
}

.drop-zone strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.drop-zone small {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0.4rem;
  max-width: 340px;
}

.index-option {
  background: rgba(6, 18, 30, 0.035);
  border: 1px solid rgba(12, 32, 48, 0.1);
  border-radius: 18px;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0.95rem 1rem;
}

.index-option legend {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  padding: 0 0.35rem;
  text-transform: uppercase;
}

.index-option label {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 800;
  gap: 0.65rem;
  line-height: 1.4;
}

.index-option input {
  accent-color: var(--blue);
  height: 1rem;
  width: 1rem;
}

.index-option input:disabled + span {
  color: #7b8a94;
}

.index-option small {
  color: var(--muted);
  line-height: 1.5;
}

.form-error {
  color: #9d2a1d;
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2rem;
}

.upload-form .button {
  justify-self: start;
  min-width: 180px;
}

.upload-form .button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.pdf-preview {
  background: #e7edf1;
  border-top: 1px solid rgba(12, 32, 48, 0.1);
  height: 520px;
}

.pdf-preview iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.source-callout {
  background:
    linear-gradient(180deg, rgba(120, 184, 220, 0.08), transparent 42%),
    rgba(6, 18, 30, 0.97);
  border-top: 1px solid rgba(120, 184, 220, 0.16);
  color: #d9e9f1;
  padding: 1rem;
}

.source-callout strong {
  color: #ffffff;
  display: block;
  margin-top: 0.45rem;
}

.source-callout p {
  background: rgba(247, 200, 115, 0.1);
  border: 1px solid rgba(247, 200, 115, 0.18);
  border-radius: 14px;
  color: #f7efe0;
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0.7rem 0 0;
  padding: 0.75rem;
}

.processing-steps {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.2rem 1.25rem;
}

.processing-steps li {
  align-items: center;
  color: #607280;
  display: flex;
  gap: 0.75rem;
  min-height: 38px;
  position: relative;
}

.processing-steps li + li::after {
  background: rgba(78, 135, 174, 0.18);
  content: "";
  height: 18px;
  left: 5px;
  position: absolute;
  top: -9px;
  width: 1px;
}

.processing-steps li::before {
  background: #dce7ed;
  border: 2px solid #eef4f7;
  border-radius: 999px;
  content: "";
  flex: 0 0 11px;
  height: 11px;
  width: 11px;
  z-index: 1;
}

.processing-steps li.is-active {
  color: var(--ink);
  font-weight: 800;
}

.processing-steps li.is-active::before {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(78, 135, 174, 0.13);
}

.processing-steps li.is-complete {
  color: #1a6544;
}

.processing-steps li.is-complete::before {
  background: var(--success);
}

.processing-steps li.is-future {
  color: #8d9aa3;
}

.processing-steps li.is-future span {
  border: 1px solid rgba(12, 32, 48, 0.13);
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  margin-left: auto;
  padding: 0.2rem 0.45rem;
  text-transform: uppercase;
}

.result-facts {
  border-top: 1px solid rgba(12, 32, 48, 0.1);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.result-facts div {
  border-bottom: 1px solid rgba(12, 32, 48, 0.1);
  padding: 1rem 1.2rem;
}

.result-facts div:nth-child(odd) {
  border-right: 1px solid rgba(12, 32, 48, 0.1);
}

.result-facts dt {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-facts dd {
  color: var(--ink);
  font-weight: 800;
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

.developer-box {
  background: rgba(6, 18, 30, 0.035);
  border: 1px solid rgba(12, 32, 48, 0.1);
  border-radius: 20px;
  margin: 1.2rem;
  padding: 1rem;
}

.developer-box summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.developer-box ul {
  color: #4a5f6d;
  line-height: 1.9;
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.developer-box span {
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
}

.product-visual-card {
  background:
    linear-gradient(180deg, rgba(120, 184, 220, 0.06), transparent 38%),
    rgba(6, 18, 30, 0.97);
  border: 1px solid rgba(120, 184, 220, 0.16);
  border-radius: 24px;
  display: grid;
  gap: 1rem;
  margin: 1.2rem;
  padding: 1rem;
}

.product-visual-card[hidden] {
  display: none;
}

.product-visual-card h3 {
  color: var(--ink);
  font-size: 1rem;
  margin: 0.25rem 0 0;
}

.product-visual-preview {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    #06121e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  min-height: 240px;
  overflow: hidden;
  position: relative;
}

.product-visual-preview img {
  display: block;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  padding: 1rem;
  width: 100%;
}

.product-visual-hs {
  color: var(--muted);
  display: grid;
  gap: 0.75rem;
}

.markdown-panel {
  margin: 1.25rem auto 4rem;
  max-width: var(--container);
  width: min(calc(100% - 48px), var(--container));
}

.analysis-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  margin: 1.25rem auto 0;
  max-width: var(--container);
  padding: 0 24px;
}

.table-wrap {
  overflow: auto;
}

.record-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.record-table th,
.record-table td {
  border-bottom: 1px solid rgba(12, 32, 48, 0.1);
  color: #405665;
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

.record-table th {
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.record-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.table-status {
  border-radius: 999px;
  display: inline-flex;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.52rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-status.extracted,
.table-status.found {
  background: #e7f7ef;
  color: #15623f;
}

.table-status.missing {
  background: #fff0ed;
  color: #9d2a1d;
}

.table-status.ambiguous {
  background: #fff7df;
  color: #755211;
}

.source-details summary,
.precedent-comparison summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.source-details[open] summary {
  color: #1a6544;
}

.source-details p {
  color: #405665;
  margin: 0.55rem 0 0;
}

.attention-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 1.2rem;
}

.attention-list li {
  background: rgba(192, 111, 104, 0.08);
  border: 1px solid rgba(192, 111, 104, 0.16);
  border-radius: 16px;
  color: #62312c;
  font-weight: 700;
  line-height: 1.45;
  padding: 0.85rem 0.95rem;
}

.retrieval-panel {
  margin: 1.25rem auto 0;
  max-width: var(--container);
  width: min(calc(100% - 48px), var(--container));
}

.retrieval-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding: 1.2rem;
}

.retrieval-layout h3 {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.profile-list {
  border: 1px solid rgba(12, 32, 48, 0.1);
  border-radius: 20px;
  margin: 0;
  overflow: hidden;
}

.profile-list div {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
}

.profile-list div + div {
  border-top: 1px solid rgba(12, 32, 48, 0.1);
}

.profile-list dt {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-list dd {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.retrieval-results {
  background:
    linear-gradient(180deg, rgba(120, 184, 220, 0.08), transparent 45%),
    rgba(6, 18, 30, 0.97);
  border: 1px solid rgba(120, 184, 220, 0.16);
  border-radius: 20px;
  color: #d9e9f1;
  line-height: 1.7;
  min-height: 220px;
  padding: 1rem;
}

.retrieval-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.9rem;
}

.retrieval-card + .retrieval-card {
  margin-top: 0.75rem;
}

.retrieval-group + .retrieval-group {
  margin-top: 1rem;
}

.retrieval-group > h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.retrieval-card span,
.retrieval-card small {
  color: var(--blue-bright);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retrieval-card h4 {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 0.55rem 0 0;
}

.retrieval-card p {
  color: #e9f5fb;
  margin: 0.6rem 0;
}

.retrieval-card a {
  color: #f7c873;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: 0.65rem;
}

.precedent-comparison {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.precedent-comparison table {
  border-collapse: collapse;
  margin-top: 0.75rem;
  width: 100%;
}

.precedent-comparison th,
.precedent-comparison td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9e9f1;
  font-size: 0.78rem;
  padding: 0.55rem;
  text-align: left;
}

.precedent-comparison th {
  color: var(--blue-bright);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hs-code-panel {
  background:
    linear-gradient(135deg, rgba(247, 200, 115, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(247, 200, 115, 0.18);
  border-radius: 22px;
  margin-top: 1rem;
  padding: 1rem;
}

.hs-code-panel h3 {
  color: var(--ink);
  font-size: 1rem;
  margin: 0;
}

.hs-code-panel p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.3rem 0 0.9rem;
}

.hs-code-results {
  color: #d9e9f1;
  display: grid;
  gap: 0.75rem;
}

.hs-code-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.9rem;
}

.hs-code-card-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 54%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(120, 184, 220, 0.18);
}

.hs-code-card strong {
  color: #ffffff;
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.hs-code-card-primary strong {
  color: #ffffff;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin: 0.18rem 0 0.45rem;
}

.hs-code-card p {
  color: #cbdde7;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.hs-code-card span {
  color: var(--blue-bright);
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.hs-code-card ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.hs-code-card li {
  color: #e9f5fb;
  display: grid;
  gap: 0.2rem;
}

.hs-code-card a {
  color: #ffffff;
  font-weight: 800;
}

.hs-code-card small {
  color: var(--muted);
  line-height: 1.45;
}

.hs-code-ranked-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.hs-code-ranked-list div {
  align-items: center;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: auto 1fr;
}

.hs-code-ranked-list span {
  color: #8fb8cf;
  grid-row: span 2;
  margin: 0;
}

.hs-code-ranked-list strong {
  color: #e9f5fb;
  font-size: 1rem;
  margin: 0;
}

.hs-code-ranked-list small {
  grid-column: 2;
}

.markdown-panel pre {
  background:
    linear-gradient(180deg, rgba(120, 184, 220, 0.06), transparent 34%),
    var(--navy-950);
  color: #e9f5fb;
  font-family: "DM Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.72;
  margin: 0;
  max-height: 680px;
  overflow: auto;
  padding: 1.25rem;
  white-space: pre-wrap;
}

.demo-footer {
  align-items: flex-start;
  background: #06131f;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 3.8rem max(24px, calc((100vw - var(--container)) / 2)) 2rem;
}

.demo-footer p {
  color: #667f8e;
  font-size: 0.82rem;
  margin: 1rem 0 0;
}

.demo-footer > a {
  color: #8196a2;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.demo-footer > a:hover {
  color: var(--white);
}

@media (max-width: 980px) {
  .demo-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .demo-nav {
    order: 3;
    width: 100%;
  }

  .demo-hero,
  .demo-grid,
  .demo-grid.is-parsed,
  .analysis-grid,
  .retrieval-layout {
    grid-template-columns: 1fr;
  }

  .demo-grid.is-parsed .upload-panel {
    position: static;
  }

  .demo-note {
    min-height: 0;
  }
}

@media (max-width: 660px) {
  .demo-header {
    padding: 0.9rem 18px;
  }

  .demo-nav {
    display: none;
  }

  .powered-label {
    font-size: 0.55rem;
    white-space: normal;
  }

  .demo-hero {
    padding: 4.6rem 18px 3.2rem;
  }

  .demo-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .demo-trust span {
    width: 100%;
  }

  .demo-grid {
    margin-top: -1.2rem;
    padding: 0 14px;
  }

  .panel-head,
  .demo-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-facts {
    grid-template-columns: 1fr;
  }

  .result-facts div:nth-child(odd) {
    border-right: 0;
  }

  .markdown-panel {
    width: min(calc(100% - 28px), var(--container));
  }

  .analysis-grid {
    padding: 0 14px;
  }

  .retrieval-panel {
    width: min(calc(100% - 28px), var(--container));
  }

  .pdf-preview {
    height: 420px;
  }
}
