.demo-device-tabs {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 30px auto 24px;
  padding: 5px;
  border: 1px solid #ffffff18;
  border-radius: 99px;
  background: #ffffff05;
  width: max-content;
  max-width: 100%;
}
.demo-device-tabs button {
  border: 0;
  background: transparent;
  color: #9faec9;
  border-radius: 99px;
  padding: 10px 22px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.demo-device-tabs button[aria-selected="true"] {
  color: #101522;
  background: #eef2fc;
}
.demo-device-tabs button:hover {
  color: #fff;
}
.demo-device-tabs button[aria-selected="true"]:hover {
  color: #101522;
}
.demo-device-tabs button:focus-visible,
.portable-demo button:focus-visible {
  outline: 2px solid #8db8ff;
  outline-offset: 3px;
}
.demo-device-panel[hidden] {
  display: none;
}
.portable-demo {
  min-height: 710px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border: 1px solid #ffffff12;
  border-radius: 28px;
  background: #080c16;
}
.demo-device-panel button {
  cursor: pointer;
}
.device-demo-disclaimer,
.portable-demo-hint {
  text-align: center;
  font-size: 13px;
  color: #8f9db8;
  margin: 20px 0 0;
  line-height: 1.5;
}
.demo-phone {
  width: 332px;
  max-width: 100%;
  height: 660px;
  border-radius: 49px;
  background: #15171b;
  border: 2px solid #757b88;
  padding: 7px;
  box-shadow:
    inset 0 0 0 3px #2f333b,
    0 28px 65px #0007;
}
.demo-phone-screen {
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 100% 0, #142b6040, transparent 70%),
    radial-gradient(ellipse at 0 100%, #33216b45, transparent 60%), #060912;
  color: #f2f4fc;
}
.phone-status {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}
.phone-status i {
  position: absolute;
  width: 102px;
  height: 29px;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 99px;
}
.phone-app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}
.phone-app-heading b {
  font-size: 15px;
  font-weight: 500;
}
.phone-app-heading > div {
  display: flex;
  padding: 3px;
  background: #ffffff0b;
  border: 1px solid #ffffff18;
  border-radius: 24px;
}
.phone-app-heading button {
  border: 0;
  background: none;
  color: #a7b1c7;
  padding: 8px 12px;
  border-radius: 20px;
  font: inherit;
  font-size: 12px;
}
.phone-app-heading button[aria-pressed="true"] {
  background: #f3f5ff;
  color: #0a0e18;
}
.phone-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-talk {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.phone-talk > img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  margin: 10px auto 2px;
}
.phone-talk h3 {
  font-size: 29px;
  font-weight: 600;
  margin: 4px 0 12px;
}
.phone-talk p {
  font-size: 14px;
  color: #9eaac1;
  line-height: 1.5;
  margin: 0 0 22px;
}
.phone-compose {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #ffffff08;
  border: 1px solid #ffffff20;
  border-radius: 24px;
}
.phone-compose input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  color: #f2f4ff;
  padding: 8px;
  font-size: 14px;
  outline: none;
}
.phone-compose input:focus-visible {
  outline: 1px solid #8db8ff;
  border-radius: 14px;
}
.phone-compose button {
  width: 35px;
  flex-shrink: 0;
  border: 0;
  background: #e4edff;
  color: #15223e;
  border-radius: 50%;
  font-size: 20px;
}
.phone-example {
  border: 0;
  background: none;
  color: #92b9ff;
  font: inherit;
  font-size: 12px;
  margin: 12px 0;
  padding: 7px;
}
.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  background: #030508;
  padding: 10px 8px 6px;
  border-top: 1px solid #ffffff0c;
  flex-shrink: 0;
  gap: 0;
}
.phone-bottom-nav button {
  display: grid;
  gap: 3px;
  background: none;
  border: 0;
  color: #9ca9be;
  font-size: 24px;
  padding: 3px 12px;
}
.phone-bottom-nav button span {
  font-size: 12px;
}
.phone-bottom-nav button[aria-pressed="true"] {
  color: #75b4ff;
}
.phone-home-indicator {
  height: 4px;
  width: 100px;
  border-radius: 99px;
  background: #dce4f7;
  margin: 9px auto 7px;
  flex-shrink: 0;
}
.portable-list-title {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0 10px;
}
.portable-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 9px;
  border: 0;
  border-bottom: 1px solid #ffffff0b;
  border-radius: 10px;
  color: #e5eaf8;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 14px;
}
.portable-row:hover {
  background: #ffffff08;
}
.portable-row img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}
.portable-row span {
  min-width: 0;
}
.portable-row small {
  display: block;
  font-size: 12px;
  color: #98a7c2;
  line-height: 1.5;
  margin-top: 3px;
}
.portable-back {
  align-self: flex-start;
  color: #9cc2ff;
  border: 0;
  background: none;
  padding: 5px 0;
  font: inherit;
  font-size: 13px;
}
.portable-bubble {
  padding: 12px;
  border-radius: 14px;
  background: #ffffff08;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.portable-bubble.user {
  background: #4978bd24;
  margin-left: 15px;
}
.portable-approve {
  background: #e7efff;
  color: #111c32;
  border: 0;
  border-radius: 18px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
}
.portable-feedback {
  font-size: 14px;
  color: #9bd6c3;
  line-height: 1.5;
  margin: 5px 0;
}
.portable-route {
  background: #ffffff07;
  border: 1px solid #ffffff0e;
  border-radius: 13px;
  padding: 12px;
  font-size: 14px;
}
.portable-route small {
  display: block;
  font-size: 12px;
  color: #9caccc;
  margin-top: 5px;
}
.demo-watch {
  position: relative;
  width: 280px;
  height: 435px;
  display: grid;
  place-items: center;
  margin: 35px 0;
}
.watch-band {
  position: absolute;
  inset: 0 49px;
  border-radius: 34px;
  background: linear-gradient(90deg, #141923, #2a313d 48%, #121720);
  box-shadow: inset 0 0 0 1px #ffffff10;
}
.watch-case {
  position: relative;
  width: 264px;
  height: 316px;
  border-radius: 57px;
  padding: 8px;
  border: 2px solid #78828d;
  background: linear-gradient(
    120deg,
    #a1a6ae,
    #353b45 25%,
    #6c7380 85%,
    #c5cad1
  );
  box-shadow: 0 20px 45px #0009;
}
.watch-crown {
  position: absolute;
  right: -9px;
  top: 70px;
  width: 8px;
  height: 34px;
  border-radius: 4px;
  background: #747e8b;
  box-shadow: inset 0 0 0 1px #aab1bb;
}
.watch-screen {
  height: 100%;
  background: #03060c;
  border-radius: 47px;
  overflow: hidden;
  padding: 16px 13px;
  display: flex;
  flex-direction: column;
}
.watch-status {
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
  color: #83b8ff;
  font-size: 12px;
  margin: 2px 7px 8px;
}
.watch-status span:last-child {
  color: #e8edf7;
}
.watch-content {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 7px;
  scrollbar-width: thin;
}
.watch-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 3px 5px;
}
.watch-content .portable-row {
  padding: 8px;
  font-size: 13px;
}
.watch-content .portable-row img {
  width: 22px;
  height: 22px;
}
.watch-content .portable-row small {
  font-size: 11px;
}
.watch-content .portable-bubble,
.watch-content .portable-route {
  font-size: 13px;
  padding: 9px;
}
.watch-content .portable-route small {
  font-size: 11px;
}
.watch-content .portable-approve {
  font-size: 13px;
  padding: 9px;
}
.watch-content .portable-feedback {
  font-size: 12px;
  margin: 0 5px;
}
.watch-talk-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto;
}
.watch-content .portable-back {
  font-size: 12px;
  padding: 2px 6px;
}
@media (max-width: 700px) {
  .demo-device-tabs button {
    padding: 9px 15px;
  }
  .portable-demo {
    padding: 18px 8px;
    min-height: 710px;
  }
  .demo-phone {
    width: 310px;
    height: 630px;
  }
  .demo-watch {
    transform: none;
    width: 270px;
  }
  .portable-demo-hint {
    max-width: 280px;
  }
  .device-demo-disclaimer {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portable-demo * {
    animation: none;
    transition: none;
  }
}

/* Reserve the device stage so switching previews does not move later sections. */
.adaptive-section > .demo-device-panel {
  min-height: 760px;
}
/* All three devices form one shared, live product scene. */
.adaptive-section {
  max-width: 1560px;
}
.demo-device-ensemble {
  display: grid;
  grid-template-columns: 220px 280px minmax(580px, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 44px;
}
.demo-device-ensemble .demo-device-panel {
  min-width: 0;
  min-height: 0;
}
.demo-device-ensemble .portable-demo {
  min-height: 0;
  border: 0;
  background: none;
  padding: 0;
}
.demo-device-ensemble .demo-phone {
  width: 280px;
  height: 556px;
}
.demo-device-ensemble .demo-watch {
  width: 220px;
  height: 390px;
  margin: 0;
}
.demo-device-ensemble .watch-case {
  width: 206px;
  height: 286px;
  border-radius: 48px;
}
.demo-device-ensemble .watch-screen {
  border-radius: 38px;
  padding: 14px 10px;
}
.demo-device-ensemble .watch-band {
  left: 38px;
  right: 38px;
}
.demo-device-ensemble .watch-status {
  font-size: 11px;
}
.demo-device-ensemble .portable-demo-hint {
  font-size: 12px;
  margin-top: 18px;
  max-width: 280px;
}
.demo-device-ensemble .orbit-desktop {
  margin-top: 0;
  height: 560px;
}
.demo-device-ensemble .adaptive-caption {
  font-size: 12px;
  padding: 14px 4px;
}
@media (max-width: 1239px) {
  .demo-device-ensemble {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  .demo-device-ensemble #demo-device-mac {
    grid-column: 1 / -1;
  }
  .demo-device-ensemble #demo-device-watch {
    justify-self: end;
    width: 270px;
    max-width: 100%;
  }
  .demo-device-ensemble #demo-device-phone {
    justify-self: start;
    width: 310px;
    max-width: 100%;
  }
  .demo-device-ensemble .demo-phone {
    width: min(310px, 100%);
    height: 616px;
  }
  .demo-device-ensemble .demo-watch {
    width: min(270px, 100%);
  }
  .demo-device-ensemble .watch-case {
    width: calc(100% - 14px);
    max-width: 264px;
    height: 316px;
  }
}
@media (max-width: 700px) {
  .demo-device-ensemble {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    margin-top: 30px;
  }
  .demo-device-ensemble #demo-device-watch,
  .demo-device-ensemble #demo-device-phone {
    justify-self: center;
    width: 100%;
  }
  .demo-device-ensemble #demo-device-mac {
    grid-column: auto;
  }
  .demo-device-ensemble .demo-phone {
    width: min(310px, 100%);
    height: auto;
    aspect-ratio: 332 / 660;
  }
  .demo-device-ensemble .demo-watch {
    width: min(270px, 100%);
    height: 390px;
  }
  .demo-device-ensemble .portable-demo-hint {
    max-width: 310px;
    font-size: 13px;
  }
  .demo-device-ensemble .orbit-desktop {
    height: 560px;
  }
}
