/* Instrument extension: the walkthrough gets focus only when requested. */
:is(.p-scan,.p-get) .rs-watch{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:60px; padding:14px 20px; border:2px solid var(--action);
  border-radius:var(--r10); background:transparent; color:var(--ink);
  font-size:17px; font-weight:600; line-height:1.3; text-decoration:none;
  transition:background var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
:is(.p-scan,.p-get) .rs-watch svg{ flex:none; width:32px; height:32px; border:1.5px solid currentColor; border-radius:50%; }
:is(.p-scan,.p-get) .rs-watch__time{ color:inherit; font-size:15px; font-weight:400; white-space:nowrap; }
:is(.p-scan,.p-get) [data-ground="ink-black"] .rs-watch{color:var(--text-1)}
:is(.p-scan,.p-get) .rs-watch:active{ background:rgba(249,115,22,.14); transform:scale(.97); }
:is(.p-scan,.p-get) .rs-start-cta{min-height:60px;padding-inline:28px;font-size:17px}
.p-scan .rs-hero__trial{margin-top:14px;font-size:14px;color:var(--ink-2)}
:is(.p-scan,.p-get) .rs-hero__price{ margin-top:8px; font-size:14px; }
:is(.p-scan,.p-get) .rs-hero__cta .rs-device{ margin-top:8px; }

.p-scan .rs-demo{
  padding-block:clamp(40px,6vw,80px);
}
.p-scan .rs-demo__panel{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center; gap:clamp(24px,4vw,56px);
  padding:clamp(24px,4vw,56px); border:1px solid var(--rule);
  border-radius:var(--r10); background:var(--graphite);
}
.p-scan .rs-demo__title{ max-width:18ch; text-wrap:balance; }
.p-scan .rs-demo__watch{
  width:fit-content; max-width:100%; margin-top:24px;
  min-height:48px; padding:8px 14px; font-size:15px;
  border:1px solid var(--datum); color:var(--text-1);
}
.p-scan .rs-demo__watch svg{ width:24px; height:24px; }
.p-scan .rs-demo__image{
  width:100%; height:auto; border:1px solid var(--rule-strong);
  border-radius:var(--r10);
}
@media (max-width:767px){
  .p-scan .rs-demo__panel{ grid-template-columns:minmax(0,1fr); }
}

:is(.p-scan,.p-get).rs-tutorial-open{ position:fixed; left:0; right:0; overflow:hidden; }
.walkthrough-dialog{
  --walkthrough-inset:clamp(10px,1.6vw,20px);
  --walkthrough-controls:88px;
  width:min(1120px,calc(100% - 24px),max(280px,calc((100dvh - 208px) * 16 / 9)));
  max-width:none; max-height:calc(100dvh - 24px);
  padding:0 var(--walkthrough-inset) var(--walkthrough-inset);
  border:1px solid var(--hairline); border-radius:20px; overflow:auto;
  background:var(--raised); color:var(--ink); overscroll-behavior:contain;
  box-shadow:0 24px 80px -20px rgba(12,15,16,.5);
}
.walkthrough-dialog::backdrop{ background:rgba(12,15,16,.62); }
.walkthrough-dialog__bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:60px; padding:6px 0; margin:0;
}
.walkthrough-dialog__bar .walkthrough-dialog__title{
  margin:0; font-size:clamp(16px,2vw,20px); font-weight:500; line-height:1.3;
  letter-spacing:-.015em; color:inherit;
}
.walkthrough-dialog__close{
  display:grid; place-items:center; flex:none; width:44px; height:44px;
  padding:0; border:1px solid var(--hairline); border-radius:50%;
  background:transparent; color:inherit; cursor:pointer; font:inherit; font-size:22px;
  transition:background var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.walkthrough-dialog__close:active{ transform:scale(.97); }
.walkthrough-dialog__screen{ container-type:inline-size; }
.walkthrough-dialog__screen video{
  display:block; width:100%; height:auto; aspect-ratio:16 / 9;
  border-radius:var(--r10); background:var(--ink-black);
}
@supports (height:1cqw){
  /* Native controls overlay the video element. Align the picture above their space. */
  .walkthrough-dialog__screen video:not(:fullscreen){
    height:calc(56.25cqw + var(--walkthrough-controls));
    aspect-ratio:auto; object-fit:contain; object-position:50% 0;
  }
}
.walkthrough-dialog__screen video:fullscreen{ object-fit:contain; object-position:center; }
.rs-tutorial__status{ margin:12px 0 0; font-size:15px; line-height:1.5; }
@media (hover:hover) and (pointer:fine){
  :is(.p-scan,.p-get) .rs-watch:hover{ background:rgba(249,115,22,.09); }
  .walkthrough-dialog__close:hover{ background:var(--canvas); }
}
@media (max-width:767px){
  :is(.p-scan,.p-get) :is(.rs-watch,.rs-start-cta){ width:100%; align-self:center; }
  :is(.p-scan,.p-get) .rs-hero__price{ text-align:center; }
}
@media (prefers-reduced-motion:reduce){
  :is(.p-scan,.p-get) .rs-watch, .walkthrough-dialog__close{ transition:none; }
  :is(.p-scan,.p-get) .rs-watch:active, .walkthrough-dialog__close:active{ transform:none; }
}

.rs-chapter__actions{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px;
  margin-top:var(--space-sm);
}
.rs-chapter__trigger{
  display:inline-flex; align-items:center; gap:10px; max-width:100%;
  min-height:48px; padding:8px 12px; text-align:left; cursor:pointer;
  border:1px solid var(--datum-idle); border-radius:var(--r10);
  background:var(--charcoal); color:var(--text-1);
  font:inherit; font-size:15px; font-weight:600; line-height:1.3;
  transition:background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.rs-chapter__trigger svg{ flex:none; }
.rs-chapter__play{ color:var(--datum-active); }
.rs-chapter__time{
  flex:none; color:var(--text-2); font-size:13px; font-weight:400;
  font-variant-numeric:tabular-nums;
}
.rs-chapter__time-portrait{ display:none; }
.rs-chapter__caret{
  color:var(--datum-active); transition:transform var(--dur-fast) var(--ease-out);
}
.rs-chapter__trigger[aria-expanded="true"]{
  border-color:var(--datum-active); background:var(--slate);
}
.rs-chapter__trigger[aria-expanded="true"] .rs-chapter__caret{ transform:rotate(180deg); }
.rs-chapter{
  display:grid; grid-template-rows:1fr;
  width:min(100%, 860px); min-width:0; margin-inline:auto;
  transition:grid-template-rows 240ms var(--ease-out), visibility 240ms;
}
.rs-chapter[inert]{ grid-template-rows:0fr; visibility:hidden; }
.rs-chapter__clip{ min-height:0; overflow:hidden; }
.rs-chapter__frame{
  --walkthrough-controls:72px;
  margin-top:16px; padding:5px; border:1px solid var(--rule-strong);
  border-radius:14px; background:var(--charcoal);
}
.rs-chapter__status{ margin:8px; color:var(--text-2); font-size:14px; }
.rs-chapter:has(video[data-portrait]){ width:min(100%, 450px); }
.rs-chapter__frame video[data-portrait]:not(:fullscreen){
  height:auto; aspect-ratio:4 / 5; object-fit:contain; object-position:center;
}
@media (max-width:600px){
  .rs-chapter__time-wide{ display:none; }
  .rs-chapter__time-portrait{ display:inline; }
  .rs-chapter__frame{ padding:3px; border-radius:12px; }
  .rs-chapter__frame video{ border-radius:8px; }
}
.p-scan .rs-reads{ row-gap:0; }
@media (min-width:1100px){
  .rs-reads > .rs-chapter{ grid-column:1 / -1; }
  .rs-reads__animation{ grid-column:2; grid-row:1; }
}
@media (max-width:1099px){
  .rs-reads__animation{ margin-top:var(--space-lg); }
}
@media (hover:hover) and (pointer:fine){
  .rs-chapter__trigger:hover{ border-color:var(--datum-active); background:var(--slate); }
}
@media (prefers-reduced-motion:reduce){
  .rs-chapter, .rs-chapter__trigger, .rs-chapter__caret{ transition:none; }
}
