:root {
  --ink: #182436;
  --muted: #66758a;
  --line: #d8e0ea;
  --paper: #ffffff;
  --bg: #edf2f7;
  --navy: #1f3a5f;
  --blue: #2f75b5;
  --teal: #24947d;
  --amber: #c9792b;
  --soft-blue: #e8f1fa;
  --soft-teal: #e8f6f2;
  --soft-amber: #fff3e4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 28px 22px;
  background: #17263a;
  color: #fff;
}

.brand span,
.eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #9fc5e9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand h1,
.topbar h2,
.section-title h3 {
  margin: 0;
}

.brand h1 {
  font-size: 25px;
  line-height: 1.25;
}

.demo-nav {
  display: grid;
  gap: 8px;
}

.demo-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.demo-nav a:hover {
  border-color: rgba(159, 197, 233, 0.75);
  color: #fff;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 44px;
  padding: 12px 12px 12px 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.35;
}

.steps li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.steps li[data-step-state="active"] {
  border-color: rgba(159, 197, 233, 0.75);
  background: rgba(159, 197, 233, 0.12);
  color: #fff;
}

.steps li[data-step-state="active"]::before {
  background: #9fc5e9;
}

.runtime {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
}

.runtime div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.runtime dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.runtime dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.workbench {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.topbar,
.input-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.topbar h2 {
  font-size: 26px;
  line-height: 1.25;
}

.topbar-copy,
.panel-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.topbar-copy {
  max-width: 820px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.badge,
.state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-safe {
  background: var(--soft-teal);
  color: var(--teal);
}

.demo-summary,
.workflow-timeline,
.kpi-grid {
  display: grid;
  gap: 12px;
}

.demo-summary,
.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-summary article,
.kpi-grid article,
.scenario-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.demo-summary article,
.kpi-grid article {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 18px;
}

.demo-summary span,
.kpi-grid span,
.scenario-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.demo-summary strong,
.kpi-grid strong,
.scenario-card strong {
  color: #132235;
  font-size: 22px;
  line-height: 1.18;
}

.demo-summary small,
.kpi-grid small,
.queue-list small,
.evidence-list small {
  color: var(--muted);
  line-height: 1.45;
}

.workflow-timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-timeline article {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workflow-timeline article[data-stage-state="done"] {
  border-color: rgba(36, 148, 125, 0.35);
  background: var(--soft-teal);
}

.workflow-timeline article[data-stage-state="blocked"] {
  border-color: rgba(201, 121, 43, 0.42);
  background: var(--soft-amber);
}

.workflow-timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.workflow-timeline strong {
  color: #132235;
  font-size: 15px;
}

.workflow-timeline p {
  margin: 0;
  color: #55657a;
  font-size: 13px;
  line-height: 1.55;
}

.input-panel,
.panel {
  padding: 18px;
}

.scenario-workbench .section-title {
  align-items: flex-start;
}

.scenario-card {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  margin-bottom: 12px;
  padding: 14px;
  background: #f8fbfd;
}

.scenario-card div,
.scenario-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
}

.scenario-card ul {
  padding-left: 18px;
  color: #45566d;
  font-size: 13px;
  line-height: 1.55;
}

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

.section-title h3 {
  font-size: 17px;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

select {
  max-width: 190px;
  min-height: 40px;
  padding: 0 10px;
}

.select-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

textarea {
  min-height: 116px;
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
}

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

.consent-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.consent-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.consent-panel input {
  width: 18px;
  height: 18px;
  flex: none;
}

.actions button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-weight: 800;
}

.primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.secondary {
  background: #fff;
  color: var(--ink);
}

.store-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.store-actions button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
}

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

.panel {
  min-height: 250px;
  overflow: hidden;
}

.report {
  grid-column: span 2;
}

.record {
  display: grid;
  gap: 8px;
  margin: 0;
}

.record div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.record dt,
.compare h4 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.record dd {
  margin: 0;
  line-height: 1.45;
}

.tags,
.qa-list,
.audit,
.stored-list,
.queue-list,
.evidence-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li,
.qa-list li,
.audit li,
.queue-list li,
.evidence-list li {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft-blue);
  line-height: 1.45;
}

.queue-list li {
  background: #f8fbfd;
  border: 1px solid var(--line);
}

.queue-list li div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.queue-list p {
  margin: 0;
  color: #45566d;
  font-size: 13px;
}

.evidence-list li {
  background: var(--soft-teal);
}

.evidence-list strong {
  color: #132235;
}

.stored-list li {
  display: block;
}

.stored-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--ink);
  text-align: left;
  line-height: 1.4;
}

.stored-list li[data-active="true"] button {
  border-color: var(--teal);
  background: var(--soft-teal);
}

.stored-list span,
.stored-list small {
  color: var(--muted);
  font-size: 12px;
}

.tags span,
.qa-list span,
.audit span,
.evidence-list span,
.compare p {
  color: var(--muted);
  font-size: 13px;
}

.qa-list li[data-status="pass"] {
  background: var(--soft-teal);
}

.qa-list li[data-status="fail"] {
  background: var(--soft-amber);
}

.compare {
  display: grid;
  gap: 8px;
}

.compare h4,
.compare p {
  margin: 0;
}

pre {
  min-height: 188px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft-amber);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  white-space: pre-wrap;
}

.landing-page {
  background: #f6f8fb;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
}

.site-logo,
.site-nav,
.hero-actions,
.button,
.site-footer a {
  display: inline-flex;
  align-items: center;
}

.site-logo,
.site-nav a,
.button,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-logo {
  gap: 10px;
  font-weight: 900;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(36, 148, 125, 0.95), rgba(47, 117, 181, 0.88)),
    #24947d;
}

.site-nav {
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--navy);
}

.landing-hero {
  display: grid;
  gap: 32px;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 64px 0 28px;
}

.hero-copy {
  max-width: 920px;
}

.landing-eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-copy h2,
.section-heading h2 {
  margin: 0;
  color: #132235;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 980px;
  font-size: 56px;
  line-height: 1.08;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #45566d;
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-product {
  margin: 0;
}

.hero-product figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.record-preview {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(31, 58, 95, 0.14);
}

.preview-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 18px;
  background: #18324e;
  color: #fff;
}

.preview-rail strong {
  margin-bottom: 18px;
}

.preview-rail span {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.preview-main {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #eef4f8;
}

.preview-top,
.preview-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.preview-top small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.preview-top h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.25;
}

.preview-top em {
  flex: none;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--soft-blue);
  color: var(--navy);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.preview-grid section {
  min-height: 210px;
  padding: 18px;
}

.preview-grid h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.preview-grid p,
.preview-grid dd {
  margin: 0;
  color: #56677c;
  line-height: 1.7;
}

.preview-grid dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.preview-grid dl div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.preview-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.preview-summary {
  grid-column: span 2;
  background: #fff8ed !important;
}

.trust-strip,
.landing-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip div {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 20px;
  background: #fff;
}

.trust-strip strong,
.problem-map h3,
.workflow-steps h3,
.pilot-list strong {
  color: #132235;
}

.trust-strip span,
.problem-map p,
.workflow-steps p,
.pilot-list span,
.section-copy p {
  color: #55657a;
  line-height: 1.65;
}

.landing-section {
  padding: 86px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: start;
}

.section-copy h2,
.section-heading h2 {
  font-size: 36px;
  line-height: 1.22;
}

.section-copy p {
  margin: 18px 0 0;
  font-size: 17px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.problem-map,
.workflow-steps,
.evidence-grid,
.pilot-list,
.offer-grid,
.faq-grid,
.info-grid,
.info-stack {
  display: grid;
  gap: 14px;
}

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

.problem-map article,
.workflow-steps article,
.evidence-grid article,
.pilot-list li,
.offer-grid article,
.faq-grid article,
.info-grid article,
.notice-card,
.info-stack article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.problem-map article,
.workflow-steps article,
.offer-grid article {
  min-height: 192px;
  padding: 20px;
}

.faq-grid article {
  min-height: 180px;
  padding: 20px;
}

.problem-map span,
.workflow-steps span,
.offer-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft-teal);
  color: var(--teal);
  font-weight: 900;
}

.problem-map h3,
.workflow-steps h3,
.offer-grid h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.faq-grid h3 {
  margin: 0 0 10px;
  color: #132235;
  font-size: 18px;
  line-height: 1.35;
}

.problem-map p,
.workflow-steps p,
.offer-grid p,
.faq-grid p,
.notice-card p,
.info-stack p {
  margin: 0;
}

.workflow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.evidence-section {
  padding-top: 54px;
  padding-bottom: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.evidence-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
}

.evidence-grid strong {
  color: var(--navy);
  font-size: 42px;
  line-height: 1;
}

.evidence-grid span {
  color: #45566d;
  font-weight: 800;
}

.pilot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  min-height: 82px;
  padding: 18px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  padding: 68px 0 44px;
}

.page-hero h1 {
  max-width: 840px;
  margin: 0;
  color: #132235;
  font-size: 46px;
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #45566d;
  font-size: 18px;
  line-height: 1.75;
}

.content-section {
  padding: 34px 0 72px;
}

.compact-section {
  padding-top: 0;
}

.notice-card,
.info-stack article,
.info-grid article,
.contact-form {
  padding: 22px;
}

.notice-card {
  align-self: start;
  display: grid;
  gap: 10px;
  background: #fff8ed;
}

.notice-card strong {
  color: var(--amber);
  font-size: 18px;
}

.notice-card p,
.offer-grid p,
.info-stack p,
.notice-list {
  color: #55657a;
  line-height: 1.65;
}

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

.info-grid h2,
.info-stack h2 {
  margin: 0 0 14px;
  color: #132235;
  font-size: 21px;
}

.notice-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

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

.field,
.consent-check {
  display: grid;
  gap: 8px;
}

.field span,
.consent-check span {
  color: #132235;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  max-width: none;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.field input,
.field select {
  padding: 0 12px;
}

.field textarea {
  padding: 12px;
}

.field-wide,
.form-status {
  grid-column: 1 / -1;
}

.consent-check {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.form-status[data-state="error"] {
  color: #a43b37;
}

.form-status[data-state="success"] {
  color: var(--teal);
}

.text-link {
  color: var(--navy);
  font-weight: 900;
}

.footer-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-footer {
  min-height: 92px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  font-weight: 900;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .rail {
    gap: 14px;
    min-height: auto;
  }

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

  .steps {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .steps li {
    min-height: 40px;
    padding: 10px 10px 10px 32px;
    font-size: 12px;
  }

  .steps li::before {
    top: 13px;
    left: 12px;
    width: 10px;
    height: 10px;
  }

  .runtime {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
  }

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

  .demo-summary,
  .workflow-timeline,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report {
    grid-column: span 1;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .trust-strip,
  .two-column,
  .problem-map,
  .workflow-steps,
  .evidence-grid,
  .offer-grid,
  .faq-grid,
  .info-grid,
  .record-preview,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .record-preview {
    min-height: auto;
  }

  .preview-rail {
    min-height: auto;
  }

  .preview-summary {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .workbench,
  .rail {
    padding: 18px;
  }

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

  .demo-nav {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .topbar,
  .section-title,
  .select-row,
  .actions,
  .consent-panel,
  .store-actions,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-summary,
  .workflow-timeline,
  .kpi-grid,
  .scenario-card {
    grid-template-columns: 1fr;
  }

  .consent-panel {
    grid-template-columns: 1fr;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }

  select {
    max-width: none;
  }

  .record div {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .landing-hero,
  .trust-strip,
  .landing-section,
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-lead,
  .section-copy p {
    font-size: 16px;
  }

  .section-copy h2,
  .section-heading h2 {
    font-size: 28px;
  }

  .landing-section {
    padding: 58px 0;
  }

  .button,
  .hero-actions,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .pilot-list li {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-links {
    width: 100%;
    justify-content: stretch;
  }

  .footer-links a {
    width: 100%;
    justify-content: center;
  }
}
