.compact-hero {
  min-height: auto;
  grid-template-columns: 1.35fr .65fr;
  gap: 42px;
  padding: 58px 0 34px;
}

.compact-hero h1 {
  font-size: clamp(46px, 6vw, 76px);
}

.meeting-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid #36a3ff40;
  border-radius: 22px;
  background: linear-gradient(145deg, #10243a, #0a1727);
  box-shadow: 0 24px 70px #0005;
}

.meeting-card strong { color: #ddecff; font-size: 17px; }
.meeting-card p { margin: 0; color: #b5c6da; line-height: 1.55; }
.meeting-card span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.concept-notice {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border: 1px solid #f8b84e55;
  border-radius: 14px;
  background: #f8b84e0d;
}

.concept-notice strong { color: #ffe0a3; }
.concept-notice span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.demo-settings {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a1728;
}

.demo-settings > summary {
  cursor: pointer;
  padding: 13px 18px;
  color: #c8d8e9;
  font-size: 13px;
  font-weight: 750;
}

.demo-settings .control-deck {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  box-shadow: none;
}

.compact-metrics {
  margin: 0 0 54px;
}

.compact-metrics .metric {
  padding: 12px 14px;
}

.compact-metrics .metric strong {
  font-size: 23px;
}

.guided-demo { margin-bottom: 34px; }
.guided-heading { margin-bottom: 18px; }
.guided-heading h2 { font-size: clamp(30px, 4vw, 46px); }

.tab-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: #07111f;
}

.tab-list button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.tab-list button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff0a;
  font-size: 10px;
}

.tab-list button[aria-selected="true"] {
  border-color: #55e6a54d;
  background: #55e6a512;
  color: var(--text);
}

.tab-list button[aria-selected="true"] span {
  background: var(--green);
  color: #04130e;
}

.tab-list button:focus-visible {
  outline: 3px solid #36a3ff66;
  outline-offset: 1px;
}

.tab-stage {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(145deg, #0d1a2b, #091523);
  overflow: hidden;
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: start;
  min-height: 430px;
  padding: 36px;
}

.demo-panel[hidden] { display: none; }

.panel-intro h3 {
  margin: 0 0 12px;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -.035em;
}

.panel-intro > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 0 20px;
  color: #b2c2d5;
  line-height: 1.65;
}

.client-explanation {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: #55e6a50b;
}

.client-explanation.muted {
  border-left-color: #36a3ff;
  background: #36a3ff0b;
}

.client-explanation strong { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.client-explanation span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.focused-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #ffffff14;
  border-radius: 17px;
  background: #07111fa6;
}

.focused-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.focused-form .button { width: 100%; margin-top: 3px; }

.tab-next {
  grid-column: 1 / -1;
  justify-self: end;
}

.simulation-warning {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #55e6a566;
  border-radius: 11px;
  background: #55e6a50d;
}

.simulation-warning.tax { border-color: #36a3ff66; background: #36a3ff0d; }
.simulation-warning strong { color: var(--green); font-size: 11px; letter-spacing: .08em; }
.simulation-warning.tax strong { color: #8dc8ff; }
.simulation-warning span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.payment-actions { align-self: center; }

.demo-panel[data-demo-panel="traceability"] {
  grid-template-columns: minmax(250px, .55fr) minmax(0, 1.45fr);
}

.trace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
}

.trace-grid .data-panel,
.trace-grid .timeline-panel { padding: 17px; }
.trace-grid .data-panel > header,
.trace-grid .timeline-panel > header { margin-bottom: 14px; }
.trace-grid .data-panel h3,
.trace-grid .timeline-panel h3 { margin: 0; font-size: 20px; }
.trace-grid .timeline-panel ol { max-height: 170px; }

.secondary-panel {
  margin: 0 0 64px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a1728;
}

.secondary-panel summary { cursor: pointer; color: #c8d8e9; font-weight: 750; }
.secondary-panel > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.secondary-panel form { display: grid; grid-template-columns: 1fr 2fr auto; gap: 14px; align-items: end; margin-top: 16px; }
.secondary-panel form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }

@media (max-width: 1000px) {
  .compact-hero { grid-template-columns: 1fr; }
  .tab-list { display: flex; overflow-x: auto; justify-content: flex-start; }
  .tab-list button { min-width: 145px; }
  .demo-panel,
  .demo-panel[data-demo-panel="traceability"] { grid-template-columns: 1fr; }
  .secondary-panel form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar #resetButton { display: inline-flex; }
  .compact-hero { padding: 42px 0 26px; }
  .compact-hero h1 { font-size: 44px; }
  .concept-notice { margin-top: 6px; }
  .compact-metrics { margin-bottom: 42px; }
  .guided-heading { gap: 12px; }
  .tab-list { border-radius: 14px 14px 0 0; }
  .demo-panel { min-height: 0; padding: 22px 17px; gap: 24px; }
  .tab-next { width: 100%; }
  .secondary-panel { margin-bottom: 44px; }
}
