/* Symphony Health — demonstrações do produto sobre a base v32 */

.system-demo {
  --demo-panel: rgba(16, 26, 29, 0.86);
  --demo-panel-strong: #101a1d;
  --demo-border: rgb(var(--paper-rgb) / 0.18);
  position: relative;
  overflow: hidden;
  padding: clamp(104px, 13vw, 168px) 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 18%, rgba(35, 217, 192, 0.1), transparent 34%),
    var(--night);
}

.system-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgb(var(--paper-rgb) / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--paper-rgb) / 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

html[data-theme="light"] .system-demo {
  --demo-panel: rgba(237, 243, 241, 0.9);
  --demo-panel-strong: #edf3f1;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 123, 112, 0.1), transparent 34%),
    var(--night);
}

.system-demo .container {
  position: relative;
  z-index: 1;
}

.system-demo-head {
  display: grid;
  gap: 22px;
}

.system-demo-head h2 {
  max-width: 1050px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(3.25rem, 7.2vw, 7rem);
  font-weight: 540;
  line-height: 0.92;
  letter-spacing: -0.068em;
  text-wrap: balance;
}

.system-demo-head h2 em {
  color: var(--mint);
  font-style: normal;
}

.system-demo-intro {
  max-width: 650px;
  margin: 4px 0 0;
  color: rgb(var(--paper-rgb) / 0.7);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.system-demo-shell {
  margin-top: clamp(54px, 7vw, 88px);
  border: 1px solid var(--demo-border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--demo-panel);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.23);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

html[data-theme="light"] .system-demo-shell {
  box-shadow: 0 30px 74px rgba(25, 57, 53, 0.12);
}

.system-demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 13px 16px 13px 20px;
  border-bottom: 1px solid var(--demo-border);
}

.system-demo-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(var(--paper-rgb) / 0.58);
  font-size: 11px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-demo-status i {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(35, 217, 192, 0.09);
}

.system-demo-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--demo-border);
  border-radius: 999px;
  background: rgb(var(--paper-rgb) / 0.04);
}

.system-demo-tab {
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  color: rgb(var(--paper-rgb) / 0.62);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.system-demo-tab:hover,
.system-demo-tab:focus-visible {
  color: var(--paper);
}

.system-demo-tab:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.system-demo-tab[aria-selected="true"] {
  color: #071412;
  background: var(--mint);
  box-shadow: 0 6px 22px rgba(35, 217, 192, 0.2);
}

html[data-theme="light"] .system-demo-tab[aria-selected="true"] {
  color: #f8f8f5;
}

.system-demo-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.28fr) minmax(0, 0.72fr);
  min-height: 560px;
}

.system-demo-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.5vw, 36px);
  border-right: 1px solid var(--demo-border);
}

.system-demo-index {
  display: block;
  margin-bottom: auto;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.system-demo-copy h3 {
  max-width: 460px;
  margin: clamp(32px, 4vw, 60px) 0 0;
  color: var(--paper);
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.system-demo-copy > p {
  max-width: 430px;
  margin: 26px 0 0;
  color: rgb(var(--paper-rgb) / 0.66);
  font-size: 16px;
  line-height: 1.58;
}

.system-demo-steps {
  display: grid;
  gap: 13px;
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: demo-step;
}

.system-demo-steps li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 11px;
  align-items: start;
  color: rgb(var(--paper-rgb) / 0.74);
  font-size: 13px;
  line-height: 1.35;
  counter-increment: demo-step;
}

.system-demo-steps li::before {
  content: "0" counter(demo-step);
  color: var(--mint);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
  transform: translateY(2px);
}

.system-demo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(14px, 1.5vw, 24px) clamp(12px, 1.5vw, 24px) 42px;
  background:
    radial-gradient(circle at 50% 52%, rgba(35, 217, 192, 0.13), transparent 45%),
    rgb(5 12 14 / 0.62);
}

html[data-theme="light"] .system-demo-stage {
  background:
    radial-gradient(circle at 50% 52%, rgba(0, 123, 112, 0.11), transparent 45%),
    rgba(223, 233, 230, 0.62);
}

.system-demo-device {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: #080d0f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  transform: none;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.system-demo-device:hover {
  transform: none;
}

.system-demo-browser {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #11191c;
}

.system-demo-browser span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(248, 247, 243, 0.26);
}

.system-demo-browser p {
  margin: 0 0 0 7px;
  color: rgba(248, 247, 243, 0.48);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.system-demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #080d0f;
}

.system-demo-caption {
  position: absolute;
  right: clamp(28px, 4vw, 58px);
  bottom: 16px;
  margin: 0;
  color: rgb(var(--paper-rgb) / 0.46);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.system-demo[data-visible="false"] .system-demo-head,
.system-demo[data-visible="false"] .system-demo-shell {
  opacity: 0;
  transform: translateY(26px);
}

.system-demo .system-demo-head,
.system-demo .system-demo-shell {
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.system-demo .system-demo-shell {
  transition-delay: 130ms;
}

@media (max-width: 980px) {
  .site-header nav .system-demo-nav-link {
    display: none;
  }

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

  .system-demo-copy {
    border-right: 0;
    border-bottom: 1px solid var(--demo-border);
  }

  .system-demo-index {
    margin-bottom: 0;
  }

  .system-demo-copy h3 {
    margin-top: 30px;
  }

  .system-demo-steps {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 38px;
  }

  .system-demo-stage {
    min-height: 560px;
  }
}

@media (max-width: 700px) {
  .system-demo {
    padding: 94px 0;
  }

  .system-demo-head h2 {
    font-size: clamp(3.05rem, 14vw, 4.8rem);
  }

  .system-demo-shell {
    margin-top: 48px;
    border-radius: 15px;
  }

  .system-demo-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .system-demo-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }

  .system-demo-tab {
    flex: 1;
    padding: 10px 8px;
  }

  .system-demo-copy {
    padding: 30px 22px 34px;
  }

  .system-demo-copy h3 {
    font-size: clamp(2.45rem, 12vw, 3.65rem);
  }

  .system-demo-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .system-demo-stage {
    min-height: 610px;
    padding: 30px 18px 52px;
  }

  .system-demo-device {
    width: min(100%, 330px);
    border-radius: 20px;
    transform: none;
  }

  .system-demo-device:hover {
    transform: none;
  }

  .system-demo-browser {
    height: 32px;
  }

  .system-demo-video {
    aspect-ratio: 390 / 844;
  }

  .system-demo-caption {
    right: 18px;
    bottom: 18px;
    left: 18px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-demo[data-visible="false"] .system-demo-head,
  .system-demo[data-visible="false"] .system-demo-shell {
    opacity: 1;
    transform: none;
  }

  .system-demo .system-demo-head,
  .system-demo .system-demo-shell,
  .system-demo-device {
    transition: none;
  }
}

/* Demonstração narrada: um player amplo, com capítulos sincronizados. */
.narrated-demo .system-demo-layout{display:block;min-height:0}
.narrated-demo .system-demo-stage{display:block;padding:0;min-height:0;background:#10171b}
.narrated-demo .system-demo-device{width:100%;border:0;border-radius:0;box-shadow:none;transform:none}
.narrated-demo .system-demo-video{width:100%;aspect-ratio:16/9;object-fit:contain}
.narrated-demo .system-demo-copy{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;padding:26px 30px;border:0;border-top:1px solid var(--demo-border);min-height:152px}
.narrated-demo .system-demo-index{margin:0;font-size:10px;line-height:1.4}
.narrated-demo .system-demo-copy h3{margin:9px 0 0;font-size:clamp(22px,2.3vw,32px);line-height:1.1;letter-spacing:-.045em;max-width:650px}
.narrated-demo .system-demo-copy>p{margin:0;max-width:600px;font-size:15px;line-height:1.5}
.narrated-demo .system-demo-tabs{flex-wrap:wrap;justify-content:center}
.narrated-demo .system-demo-tab{font-size:12px;padding:8px 13px}
.narrated-demo .system-demo-tab[aria-current=true]{color:#071412;background:var(--mint);box-shadow:0 6px 22px #23d9c022}
html[data-theme=light] .narrated-demo .system-demo-tab[aria-current=true]{color:#f8f7f3}
.narrated-demo-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 30px;border-top:1px solid var(--demo-border);color:rgb(var(--paper-rgb)/.6);font-size:11px;line-height:1.4}
.narrated-demo-footer a{color:var(--mint);font-size:12px;white-space:nowrap;text-decoration:none}
.narrated-demo-footer a:focus-visible{outline:2px solid var(--mint);outline-offset:5px}
@media(max-width:1100px){.narrated-demo .system-demo-toolbar{flex-direction:column;align-items:stretch}.narrated-demo .system-demo-status{padding:8px 0}}
@media(max-width:700px){.narrated-demo .system-demo-toolbar{padding:12px}.narrated-demo .system-demo-tabs{display:flex;gap:4px;padding:3px;border-radius:12px}.narrated-demo .system-demo-tab{flex:1 0 auto;min-height:38px;font-size:11px;padding:7px 9px}.narrated-demo .system-demo-copy{grid-template-columns:1fr;gap:15px;padding:22px;min-height:204px}.narrated-demo .system-demo-copy h3{font-size:25px}.narrated-demo .system-demo-copy>p{font-size:14px}.narrated-demo .system-demo-device{border-radius:0}.narrated-demo-footer{flex-direction:column;align-items:flex-start;padding:16px 22px;gap:12px}}

.narrated-demo-expand{margin-left:auto;border:1px solid var(--demo-border);border-radius:30px;background:transparent;color:var(--mint);padding:9px 13px;font:inherit;cursor:pointer;white-space:nowrap}.narrated-demo-expand:focus-visible{outline:2px solid var(--mint);outline-offset:3px}@media(max-width:700px){.narrated-demo-expand{margin-left:0;min-height:42px}}

/* Entradas para a demonstração, sem multiplicar os players. */
.demo-entry{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;color:var(--mint);font:inherit;font-size:14px;font-weight:600;line-height:1.3;text-decoration:none;transition:background .2s ease,color .2s ease}
.demo-entry svg{flex:0 0 auto}
.demo-entry:focus-visible,.demo-footer-link:focus-visible{outline:2px solid var(--mint);outline-offset:5px}
.demo-entry-primary{background:var(--mint);color:#071412;border:1px solid transparent;border-radius:999px;padding:15px 23px;min-height:52px;white-space:nowrap}
.demo-entry-primary:hover{background:var(--paper);color:var(--night)}
html[data-theme=light] .demo-entry-primary{color:#fff}
html[data-theme=light] .demo-entry-primary:hover{background:var(--paper);color:var(--night)}
.demo-opening-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;flex-shrink:0}
.demo-opening-actions .opening-scroll{margin:0;padding:4px 0;min-height:40px}
.site-header nav .system-demo-nav-link{display:inline-flex;color:var(--mint);white-space:nowrap}
.site-header nav{gap:20px;align-items:center}
.demo-entry-inline{justify-content:flex-start;margin-top:24px;padding:10px 0;border-bottom:1px solid rgb(var(--paper-rgb)/.25)}
.demo-entry-inline:hover{color:var(--paper);border-bottom-color:var(--mint)}
.movement-copy .demo-entry-inline{margin-top:0;text-align:left}
.demo-footer-link{display:inline-flex;align-items:center;gap:8px}
.system-demo,.system-demo-toolbar{scroll-margin-top:104px}
.system-demo-video:focus-visible{outline:2px solid var(--mint);outline-offset:-3px}
@media(min-width:701px) and (max-width:1200px){.site-header nav>a:not(.system-demo-nav-link){display:none}.site-header nav{display:flex}.header-cta-full{display:none}.header-cta-short{display:inline}.demo-opening-actions{flex-shrink:1}.demo-entry-primary{white-space:normal}}
@media(max-width:700px){
  .site-header.opening-header{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;min-height:110px;padding:12px 16px 9px;gap:8px 12px}
  .site-header.opening-header>.header-actions{grid-column:2;grid-row:1}
  .site-header.opening-header>nav{display:flex;grid-column:1/-1;grid-row:2;justify-content:center}
  .site-header.opening-header>nav>a:not(.system-demo-nav-link){display:none}
  .site-header nav .system-demo-nav-link{display:inline-flex;min-height:36px;font-size:12px;padding:7px 15px;border:1px solid rgb(var(--paper-rgb)/.22);border-radius:999px}
  .pure-opening{padding-top:110px}
  .opening-content{min-height:calc(100svh - 110px)}
  .demo-opening-actions{width:100%;gap:5px}
  .demo-entry-primary{font-size:13px;white-space:normal;max-width:100%}
  .demo-entry-inline{font-size:13px}
  .system-demo,.system-demo-toolbar{scroll-margin-top:126px}
}
@media(prefers-reduced-motion:reduce){.demo-entry{transition:none}}
@media(max-width:380px){.movement h3{font-size:clamp(2.65rem,13.5vw,3.2rem)}.movement-copy{min-width:0}.consult-row{gap:10px}}


/* Vertical film: native phone layout, shared narration and chapter times. */
.narrated-demo[data-format="portrait"] .system-demo-device{max-width:430px;margin-inline:auto}
.narrated-demo[data-format="portrait"] .system-demo-video{aspect-ratio:9/16;max-height:none}
.narrated-demo[data-format="portrait"] .system-demo-tabs{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--mint) transparent;-webkit-overflow-scrolling:touch}
.narrated-demo[data-format="portrait"] .system-demo-tab{flex:0 0 auto;min-height:44px;padding:10px 15px;font-size:12px;white-space:nowrap}
@media(max-width:700px){
  .site-header.opening-header{position:absolute}
  .narrated-demo>.container{width:auto;margin-inline:12px;padding-inline:0}
  .narrated-demo .system-demo-head{padding-inline:12px}
  .narrated-demo .system-demo-shell{margin-top:28px;border-radius:14px}
  .narrated-demo .system-demo-toolbar{padding:7px;gap:0;scroll-margin-top:8px}
  .narrated-demo .system-demo-status{display:none}
  .narrated-demo .system-demo-tabs{width:100%;border-radius:10px;gap:3px;padding:2px}
  .narrated-demo .system-demo-copy{min-height:0;gap:12px;padding:23px 20px}
  .narrated-demo .system-demo-copy h3{font-size:25px;line-height:1.14}
  .narrated-demo-footer{padding:12px 20px;gap:8px}
  .narrated-demo-footer a,.narrated-demo-expand{display:inline-flex;align-items:center;min-height:44px}
  .system-demo{scroll-margin-top:20px}
}
@media(max-height:500px) and (orientation:landscape){
  .narrated-demo[data-format="portrait"] .system-demo-video{max-height:calc(100svh - 76px);width:100%;aspect-ratio:auto}
}
