/* Original Samran One application scenes: readable UI, not stock imagery. */
.demo-hero-shot {
  margin: 0;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dee3ef;
  border-radius: 14px;
  background: linear-gradient(120deg, #edf2ff, #fcebf4);
  box-shadow: 0 18px 45px #2337600c;
}
.demo-hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.demo-hero-shot figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding: 12px 3px 3px;
  font-size: 12px;
  line-height: 1.7;
  color: #59667b;
}
.demo-hero-shot a {
  color: #29539b;
}
.product-demo-section {
  padding: 72px 0 88px;
  background: linear-gradient(120deg, #f1f5ff, #f7f3fb 55%, #fff0f7);
  border-block: 1px solid #e4e5f0;
}
.demo-section-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 32px;
}
.demo-section-intro h2 {
  margin: 20px 0 0;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.demo-section-intro > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
}
.demo-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.demo-selector button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  min-height: 48px;
  border: 1px solid #d9dfee;
  background: #ffffffaa;
  border-radius: 8px;
  color: #485a79;
  font-size: 14px;
  text-align: left;
}
.demo-selector button > span {
  font-size: 12px;
  opacity: 0.75;
}
.demo-selector button[aria-pressed="true"] {
  color: white;
  border-color: #263f88;
  background: #203872;
  box-shadow: 0 3px 10px #233e7410;
}
.demo-app {
  border: 1px solid #cdd7e7;
  border-radius: 12px;
  box-shadow: 0 24px 60px #203a7410;
  overflow: hidden;
  background: white;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}
.demo-sidebar {
  background: #f7f9fd;
  border-right: 1px solid #e0e7f1;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}
.demo-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #182740;
}
.demo-business {
  border: 1px solid #dce3ee;
  padding: 12px;
  margin: 28px 0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #33486c;
  background: white;
}
.demo-business small {
  display: block;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #737e92;
  margin-top: 6px;
}
.demo-nav-label {
  font-size: 12px;
  letter-spacing: 0.09em;
  color: #738099;
  margin-bottom: 12px;
}
.demo-sidebar-items {
  display: grid;
  gap: 6px;
}
.demo-sidebar-items > span {
  padding: 9px 12px;
  border-radius: 6px;
  color: #56677f;
  font-size: 13px;
}
.demo-sidebar-items > span:first-child {
  background: #e9effd;
  color: #294e99;
}
.demo-owner {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #33486c;
}
.demo-owner > span {
  padding: 9px;
  background: #e2e8f4;
  border-radius: 50%;
}
.demo-owner small {
  display: block;
  font-size: 14px;
  color: #6e7b91;
  margin-top: 3px;
}
.demo-app-main {
  min-width: 0;
}
.demo-app-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #e3e9f2;
  padding: 20px 28px;
  font-size: 12px;
  color: #66758b;
}
.demo-app-toolbar i {
  font-style: normal;
  margin: 0 10px;
  color: #a0abc0;
}
.demo-sample-tag {
  border: 1px solid #dce3ef;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.demo-screen {
  padding: 30px 28px;
}
.demo-screen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.demo-screen-heading > div > span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #756080;
}
.demo-screen-heading h3 {
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 12px 0 0;
}
.demo-view-badge {
  font-size: 12px;
  color: #435e98;
  background: #f0f4fd;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.demo-metrics > div {
  border: 1px solid #e0e7f1;
  background: #f9fafe;
  padding: 16px;
  border-radius: 8px;
}
.demo-metrics span {
  display: block;
  font-size: 12px;
  color: #718099;
  margin-bottom: 8px;
}
.demo-metrics strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: #2e456b;
}
.demo-table-scroll {
  overflow-x: auto;
  border: 1px solid #e0e7f1;
  border-radius: 8px;
}
.demo-table-scroll:focus-visible {
  outline: 3px solid #405dad;
  outline-offset: 4px;
}
.demo-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  min-width: 510px;
}
.demo-table-scroll th {
  background: #f7f9fd;
  font-size: 12px;
  color: #60708a;
  font-weight: 500;
}
.demo-table-scroll th,
.demo-table-scroll td {
  padding: 16px;
  line-height: 1.6;
  border-bottom: 1px solid #e9edf5;
}
.demo-table-scroll td {
  color: #2d4264;
}
.demo-table-scroll tr:last-child td {
  border-bottom: 0;
}
.demo-explanation {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin-top: 22px;
  background: linear-gradient(110deg, #f0f3fd, #faf0f8);
  border: 1px solid #e9e3f2;
  border-radius: 8px;
}
.demo-explanation > span {
  color: #85538d;
}
.demo-explanation p {
  color: #5b4d70;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.demo-app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e6ebf4;
  padding: 16px 28px;
  font-size: 12px;
  color: #6b7b94;
}
.demo-disclosure {
  font-size: 14px;
  line-height: 1.8;
  color: #68748b;
  max-width: 1000px;
  margin: 22px 0 0;
}
.demo-disclosure a {
  color: #29539b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-snapshot {
  margin-bottom: 24px;
}
.demo-snapshot > summary {
  color: #29539b;
  padding: 12px 0;
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
}
.demo-snapshot .demo-hero-shot {
  margin: 16px 0;
}
.demo-chart {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid #e1e7f1;
  border-radius: 8px;
}
.demo-chart > span {
  display: block;
  font-size: 12px;
  color: #586a86;
}
.demo-chart b {
  float: right;
  font-weight: 500;
}
.demo-chart i {
  display: block;
  width: var(--value);
  height: 9px;
  border-radius: 10px;
  margin-top: 9px;
  background: linear-gradient(90deg, #315fcb, #b74c94);
}
@media (max-width: 1000px) {
  .demo-app {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .demo-sidebar {
    padding: 22px 14px;
  }
  .demo-brand {
    font-size: 16px;
  }
  .demo-screen {
    padding: 24px;
  }
  .demo-view-badge {
    display: none;
  }
  .demo-section-intro {
    gap: 32px;
  }
}
@media (max-width: 750px) {
  .demo-section-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .demo-app {
    grid-template-columns: 1fr;
  }
  .demo-sidebar {
    display: none;
  }
  .demo-screen-heading h3 {
    font-size: 24px;
  }
  .demo-metrics {
    gap: 8px;
  }
  .demo-metrics > div {
    padding: 12px;
  }
  .demo-metrics strong {
    font-size: 14px;
  }
  .demo-app-toolbar {
    padding: 16px 20px;
  }
  .demo-screen {
    padding: 24px 20px;
  }
  .demo-app-toolbar > span:first-child {
    max-width: 70%;
  }
  .demo-selector button {
    font-size: 13px;
    padding: 12px 14px;
  }
  .product-demo-section {
    padding: 56px 0;
  }
  .demo-section-intro > p {
    font-size: 16px;
  }
  .demo-disclosure {
    font-size: 14px;
  }
}
@media (max-width: 400px) {
  .demo-metrics {
    grid-template-columns: 1fr;
  }
  .demo-metrics > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .demo-metrics span {
    margin: 0;
  }
  .demo-screen-heading h3 {
    font-size: 22px;
  }
  .demo-selector {
    gap: 8px;
  }
}
.demo-answer-stream {
  display: grid;
  gap: 16px;
}
.demo-answer-stream article {
  border-left: 3px solid #b69cc9;
  padding: 18px 22px;
  background: #f8f5fc;
  border-radius: 0 8px 8px 0;
}
.demo-answer-stream article > span {
  display: block;
  font-size: 12px;
  color: #7e5d90;
  margin-bottom: 10px;
}
.demo-answer-stream strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #283d60;
}
.demo-answer-stream p {
  font-size: 14px;
  margin: 10px 0 0;
}
.demo-event-stream {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
}
.demo-event-stream li {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  padding: 18px 20px;
  border-left: 2px solid #bfcdea;
  border-bottom: 1px solid #e5ebf5;
}
.demo-event-stream li > span {
  font-size: 12px;
  color: #667b99;
}
.demo-event-stream strong {
  font-size: 15px;
  font-weight: 500;
}
.demo-event-stream p {
  margin: 8px 0 0;
  font-size: 14px;
}
.demo-assumption-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #dce4f0;
  border-radius: 10px;
  overflow: hidden;
}
.demo-assumption-board > div {
  padding: 28px 20px;
  background: #f7f8fd;
}
.demo-assumption-board > div + div {
  border-left: 1px solid #dce4f0;
}
.demo-assumption-board span,
.demo-assumption-board small {
  display: block;
  font-size: 14px;
  color: #71819a;
}
.demo-assumption-board strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  color: #294889;
  margin: 18px 0;
}
.demo-mapping-board {
  border: 1px solid #dce4f0;
  border-radius: 8px;
  overflow: hidden;
}
.demo-mapping-board > div {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e1e8f3;
  font-size: 13px;
}
.demo-mapping-board > div:last-child {
  border: 0;
}
.demo-mapping-board i {
  font-style: normal;
  color: #99629b;
}
.demo-mapping-board strong {
  font-weight: 500;
  color: #31588f;
}
.demo-mapping-board small {
  grid-column: 3;
  font-size: 14px;
  color: #71809a;
}
.demo-record-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.demo-record-board article {
  border: 1px solid #dce4f1;
  border-radius: 8px;
  padding: 22px 18px;
  background: linear-gradient(140deg, #fff, #f4f6fd);
}
.demo-record-board h4 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.demo-record-board span {
  font-size: 12px;
  color: #77869d;
}
.demo-record-board strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: #344f83;
  margin: 9px 0;
}
.demo-record-board p {
  font-size: 14px;
  margin: 12px 0 0;
  line-height: 1.8;
}
@media (max-width: 750px) {
  .demo-record-board,
  .demo-assumption-board {
    grid-template-columns: 1fr;
  }
  .demo-assumption-board > div + div {
    border-left: 0;
    border-top: 1px solid #dce4f0;
  }
  .demo-event-stream li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .demo-record-board h4 {
    margin-bottom: 14px;
  }
}

/* Phones display each table record as labelled fields rather than cropping columns. */
.demo-image-link {
  display: block;
  border-radius: 8px;
}
.demo-image-link:focus-visible {
  outline: 3px solid #405dad;
  outline-offset: 3px;
}
.demo-image-link img {
  width: 100%;
}
.demo-section-intro > *,
.demo-screen-heading > *,
.demo-app-toolbar > *,
.demo-record-board > *,
.demo-event-stream li > *,
.demo-mapping-board > div > *,
.demo-assumption-board > * {
  min-width: 0;
}
.demo-section-intro h2,
.demo-screen-heading h3,
.demo-metrics strong,
.demo-business,
.demo-record-board h4,
.demo-record-board strong,
.demo-assumption-board strong,
.demo-mapping-board strong,
.demo-event-stream strong {
  overflow-wrap: anywhere;
}
.demo-disclosure a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 600px) {
  .demo-app-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
  }
  .demo-app-toolbar > span:first-child {
    max-width: 100%;
  }
  .demo-selector {
    display: grid;
    grid-template-columns: 1fr;
  }
  .demo-selector button {
    width: 100%;
    font-size: 14px;
    min-height: 48px;
  }
  .demo-table-scroll {
    overflow: visible;
  }
  .demo-table-scroll table {
    min-width: 0;
    table-layout: fixed;
  }
  .demo-table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .demo-table-scroll tbody,
  .demo-table-scroll tr {
    display: block;
  }
  .demo-table-scroll tr {
    padding: 12px 14px;
    border-bottom: 1px solid #e0e7f1;
  }
  .demo-table-scroll tr:last-child {
    border-bottom: 0;
  }
  .demo-table-scroll td {
    display: grid;
    grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1.2fr);
    gap: 14px;
    padding: 9px 0;
    border: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  .demo-table-scroll td::before {
    content: attr(data-label);
    color: #66758b;
    font-size: 12px;
  }
  .demo-hero-shot figcaption {
    font-size: 12px;
  }
  .demo-mapping-board > div {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }
  .demo-explanation {
    padding: 16px;
  }
}
