.demo-page-hero {
  border-bottom: 1px solid var(--border);
}

.demo-library {
  background: #f5f8fc;
  padding-top: 72px;
  padding-bottom: 72px;
}

.demo-feature {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  align-items: center;
  gap: 48px;
}

.demo-feature + .demo-feature {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid #d9e3f0;
}

.demo-feature-customizable {
  grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr);
}

.demo-request-feature {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 64px;
}

.demo-request-feature + .demo-request-feature {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid #d9e3f0;
}

.demo-accounting-feature {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
}

.demo-accounting-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(0, 32, 76, .14);
  color: #24354d;
}

.demo-accounting-preview > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid #dfe6ef;
  background: #071a33;
  color: #fff;
}

.demo-accounting-preview header span {
  font-size: .8rem;
  font-weight: 700;
}

.demo-accounting-preview header small {
  color: #aebfd3;
  font-size: .68rem;
}

.demo-accounting-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #dfe6ef;
}

.demo-accounting-summary div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: #fff;
}

.demo-accounting-summary small {
  color: #718096;
  font-size: .62rem;
}

.demo-accounting-summary strong {
  color: #071a33;
  font-size: .95rem;
}

.demo-accounting-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: .68rem;
}

.demo-accounting-preview th,
.demo-accounting-preview td {
  padding: 12px 16px;
  border-top: 1px solid #e5eaf1;
  text-align: left;
}

.demo-accounting-preview th {
  background: #f7f9fb;
  color: #718096;
  font-size: .58rem;
  text-transform: uppercase;
}

.demo-accounting-preview th:not(:first-child),
.demo-accounting-preview td:not(:first-child) {
  text-align: right;
}

.demo-locked-preview {
  min-height: 350px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background:
    linear-gradient(rgba(0, 20, 49, .84), rgba(0, 20, 49, .84)),
    linear-gradient(135deg, #1d4f8f, #081a33);
  color: #fff;
  box-shadow: 0 24px 65px rgba(0, 32, 76, .14);
}

.demo-locked-preview small {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.demo-lock,
.demo-access-icon {
  width: 82px;
  height: 70px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
}

.demo-lock::before,
.demo-access-icon::before {
  content: "";
  width: 42px;
  height: 38px;
  position: absolute;
  top: -27px;
  border: 7px solid currentColor;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  color: #fff;
}

.demo-lock span,
.demo-access-icon span {
  width: 9px;
  height: 23px;
  position: relative;
  border-radius: 5px;
  background: #fff;
}

.demo-lock span::before,
.demo-access-icon span::before {
  content: "";
  width: 17px;
  height: 17px;
  position: absolute;
  top: -2px;
  left: -4px;
  border-radius: 50%;
  background: #fff;
}

.demo-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(0, 32, 76, .14);
}

.demo-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.demo-preview-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(4, 24, 49, .92);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.demo-live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(4, 24, 49, .92);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.demo-live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .16);
}

.demo-workshop-preview {
  min-height: 420px;
  padding: 76px 28px 28px;
  background: linear-gradient(145deg, #f8fbf9, #e8f3ed);
}

.workshop-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  color: #173d2b;
}

.workshop-preview-top span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.workshop-preview-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f8b5b;
}

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

.workshop-preview-grid div,
.workshop-preview-request {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  border: 1px solid #bfd7c9;
  border-radius: 9px;
  background: #fff;
}

.workshop-preview-grid b,
.workshop-preview-request strong {
  color: #173d2b;
  font-size: .9rem;
}

.workshop-preview-grid span,
.workshop-preview-request span,
.workshop-preview-request small {
  color: #607468;
  font-size: .72rem;
}

.workshop-preview-grid .off {
  border-style: dashed;
  background: rgba(255, 255, 255, .55);
  opacity: .62;
}

.workshop-preview-request {
  margin-top: 12px;
  border-left: 4px solid #2f8b5b;
}

.demo-category {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.demo-summary h2,
.demo-presenter h2 {
  color: var(--navy);
  font-family: 'Archivo', sans-serif;
  letter-spacing: 0;
}

.demo-summary h2 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.demo-summary > p {
  color: var(--muted);
  line-height: 1.7;
}

.demo-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.demo-role-list span {
  padding: 7px 10px;
  border: 1px solid #cdd9e8;
  border-radius: 5px;
  background: #fff;
  color: #203550;
  font-size: .76rem;
  font-weight: 600;
}

.demo-request-points {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.demo-request-points span {
  position: relative;
  padding-left: 27px;
  color: #203550;
  font-size: .86rem;
  font-weight: 600;
}

.demo-request-points span::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.demo-access-shell {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding-top: 132px;
  padding-bottom: 64px;
  background: #f5f8fc;
}

.demo-access-card {
  width: min(92vw, 480px);
  padding: 48px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(0, 32, 76, .12);
}

.demo-access-icon {
  width: 62px;
  height: 54px;
  margin: 25px 0 34px;
}

.demo-access-icon::before {
  width: 34px;
  height: 31px;
  top: -22px;
  border-width: 6px;
}

.demo-access-icon span {
  width: 7px;
  height: 18px;
}

.demo-access-icon span::before {
  width: 14px;
  height: 14px;
  left: -3.5px;
}

.demo-access-card h1 {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: 'Archivo', sans-serif;
  font-size: 2rem;
}

.demo-access-card > p {
  color: var(--muted);
}

.demo-access-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.demo-access-form label {
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
}

.demo-access-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #c8d5e5;
  border-radius: 6px;
  color: var(--navy);
  font: inherit;
}

.demo-access-form input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(10, 99, 240, .15);
}

.demo-access-form .demo-launch {
  width: 100%;
  margin-top: 6px;
}

.demo-access-error {
  color: #b42318;
  font-size: .8rem;
}

.demo-access-card .demo-access-help {
  margin-top: 22px;
  font-size: .8rem;
  text-align: center;
}

.demo-access-help a {
  color: var(--blue);
  font-weight: 700;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.demo-launch,
.demo-copy {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font: 700 .84rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}

.demo-launch {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.demo-copy {
  border: 1px solid #c8d5e5;
  background: #fff;
  color: var(--navy);
}

.demo-launch:hover,
.demo-copy:hover {
  transform: translateY(-2px);
}

.demo-copy:hover {
  border-color: var(--blue);
}

.demo-summary .demo-disclosure {
  padding: 14px;
  border-left: 3px solid #f59e0b;
  background: #fff8e8;
  color: #5b4a23;
  font-size: .78rem;
  line-height: 1.55;
}

.demo-capabilities {
  background: #fff;
}

.demo-capability-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-capability-grid article {
  min-width: 0;
  padding: 30px 24px;
  border-right: 1px solid var(--border);
}

.demo-capability-grid article:last-child {
  border-right: 0;
}

.demo-capability-grid article > span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
}

.demo-capability-grid h3 {
  margin: 18px 0 9px;
  color: var(--navy);
  font-size: 1rem;
}

.demo-capability-grid p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
}

.demo-presenter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #071a33;
  color: #fff;
}

.demo-presenter > div {
  max-width: 720px;
}

.demo-presenter h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.8rem;
}

.demo-presenter p {
  color: #b8c8dc;
  line-height: 1.7;
}

.demo-presenter .demo-launch {
  flex: 0 0 auto;
  background: #fff;
  border-color: #fff;
  color: #071a33;
}

@media (max-width: 960px) {
  .demo-feature,
  .demo-request-feature {
    grid-template-columns: 1fr;
  }

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

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

  .demo-capability-grid article:nth-child(2) {
    border-right: 0;
  }

  .demo-capability-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .demo-page-hero {
    padding-top: 110px;
  }

  .demo-library {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .demo-feature {
    gap: 30px;
  }

  .demo-request-feature {
    gap: 36px;
  }

  .demo-summary h2 {
    font-size: 1.65rem;
  }

  .demo-actions,
  .demo-presenter {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-actions > *,
  .demo-presenter .demo-launch {
    width: 100%;
  }

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

  .demo-capability-grid article,
  .demo-capability-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .demo-capability-grid article:last-child {
    border-bottom: 0;
  }

  .demo-access-card {
    padding: 36px 24px;
  }

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