body{background:linear-gradient(180deg,#f7f8ff 0%,#eef3ff 45%,#f6f7fb 100%);color:#0f172a}
.card-demo{border-radius:1rem;border:1px solid rgba(15,23,42,.08);background:#fff;box-shadow:0 .25rem .75rem rgba(15,23,42,.06)}
.pill{display:inline-flex;align-items:center;gap:.45rem;border:1px solid rgba(13,110,253,.12);background:rgba(13,110,253,.06);color:#0d6efd;border-radius:999px;padding:.28rem .6rem;font-size:.78rem;font-weight:700}
.muted{color:#64748b}
.tags{display:flex;flex-wrap:wrap;gap:.4rem}
.tags .badge{font-weight:600}
.utility-strip{border:1px solid rgba(15,23,42,.08);border-radius:1rem;background:linear-gradient(135deg,#fff,#f6fbff);box-shadow:0 .55rem 1.6rem rgba(15,23,42,.06);padding:1rem 1.1rem}
.utility-links{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.75rem}
.utility-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .7rem;border-radius:999px;border:1px solid rgba(13,110,253,.12);background:rgba(13,110,253,.06);color:#0d6efd;text-decoration:none;font-size:.8rem;font-weight:600}
.utility-pill:hover{color:#0b5ed7}
.rto-docs-brand{display:inline-flex;align-items:center;gap:.9rem;color:#0f172a}
.rto-docs-brand-mark img{border-radius:12px}
.rto-docs-brand-copy{display:flex;flex-direction:column;line-height:1.1}
.rto-docs-brand-title{font-size:1.12rem;font-weight:800;letter-spacing:-.02em}
.rto-docs-brand-subtitle{font-size:.82rem;color:#64748b}
.navbar .btn,.card-demo .btn{border-radius:.55rem}
.log-box,.mission-box{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre-wrap;border-radius:.9rem;padding:1rem;overflow:auto}
.log-box{min-height:280px;background:#0f172a;color:#e2e8f0}
.mission-box{min-height:360px;background:#08101f;color:#dbeafe;border:1px solid rgba(59,130,246,.12)}
.status-dot{width:.65rem;height:.65rem;border-radius:50%;display:inline-block}
.dot-muted{background:#cbd5e1}.dot-ok{background:#16a34a}.dot-err{background:#dc2626}.dot-run{background:#2563eb}
.tab-nav{display:flex;gap:.5rem;flex-wrap:wrap}
.tab-btn{border:1px solid rgba(15,23,42,.08);background:#fff;color:#334155;border-radius:999px;padding:.45rem .8rem;font-size:.88rem;font-weight:700;cursor:pointer}
.tab-btn.active{background:#0d6efd;color:#fff;border-color:#0d6efd}
.tab-panel{display:none}
.tab-panel.active{display:block}
details.scene-card{border:1px solid rgba(15,23,42,.08);border-radius:1rem;background:#fff;padding:.85rem 1rem}
details.scene-card+details.scene-card{margin-top:.75rem}
details.scene-card summary{list-style:none;cursor:pointer;font-weight:800;color:#0f172a}
details.scene-card summary::-webkit-details-marker{display:none}
details.scene-card .scene-body{padding-top:.8rem;color:#475569}
.timeline{display:grid;gap:.75rem}.timeline-item{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:flex-start}.timeline-bullet{width:.75rem;height:.75rem;border-radius:50%;background:#cbd5e1;margin-top:.35rem}.timeline-item.ok .timeline-bullet{background:#16a34a}.timeline-item.run .timeline-bullet{background:#2563eb}.timeline-item.err .timeline-bullet{background:#dc2626}
.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.result-card{border:1px solid rgba(15,23,42,.08);border-radius:1rem;padding:.85rem .95rem;background:#fff}
.result-card .label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.result-card .value{font-size:1rem;font-weight:800;color:#0f172a;margin-top:.25rem}
@media (max-width: 991px){.result-grid{grid-template-columns:1fr}}


/* Demo journey + living proof console */
.demo-journey{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:1px solid rgba(15,23,42,.08);border-radius:1rem;background:linear-gradient(135deg,#fff,#f6fbff);box-shadow:0 .55rem 1.6rem rgba(15,23,42,.06);padding:.85rem 1rem;margin-top:1rem;}
.demo-journey-title{font-weight:800;color:#0f172a;}
.demo-journey-links{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end;}
.demo-journey a{display:inline-flex;align-items:center;gap:.35rem;border:1px solid rgba(13,110,253,.14);border-radius:999px;background:rgba(13,110,253,.06);color:#0d6efd;text-decoration:none;font-size:.8rem;font-weight:700;padding:.34rem .68rem;}
.proof-console{position:relative;overflow:hidden;border-radius:1.25rem;border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#0f172a,#17233d);box-shadow:0 1.1rem 2.5rem rgba(15,23,42,.18);padding:.9rem;color:#e5edff;transform:translateZ(0);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;}
.proof-console:before{content:"";position:absolute;inset:-1px;border-radius:inherit;background:radial-gradient(circle at var(--proof-x,22%) var(--proof-y,18%),rgba(96,165,250,.28),transparent 36%);opacity:.38;pointer-events:none;transition:opacity .35s ease;}
.proof-console:after{content:"";position:absolute;inset:-40% -20%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.14) 48%,transparent 62%);opacity:0;transform:translateX(-48%);pointer-events:none;}
.proof-console.is-running:after{animation:rtoProofSweep 5.8s ease-in-out infinite;}
.proof-console.is-complete{box-shadow:0 1.2rem 2.8rem rgba(15,23,42,.22),0 0 0 1px rgba(34,197,94,.12) inset;}
.proof-console.is-proof-shaking{animation:rtoProofNudge .34s cubic-bezier(.34,1.56,.64,1) 1;}
.proof-console-top{display:flex;align-items:center;gap:.35rem;margin-bottom:.75rem;color:#b6c5e7;font-size:.8rem;position:relative;z-index:1;}
.proof-console-top span{width:.68rem;height:.68rem;border-radius:50%;background:#334155;display:inline-block;}
.proof-console-top span:nth-child(1){background:#ef4444;}.proof-console-top span:nth-child(2){background:#f59e0b;}.proof-console-top span:nth-child(3){background:#22c55e;}
.proof-console-top strong{margin-left:auto;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;transition:color .22s ease,letter-spacing .22s ease;}
.proof-console.is-running .proof-console-top strong{color:#eaf2ff;letter-spacing:.105em;}
.proof-console-row{display:grid;grid-template-columns:2rem 1fr auto;gap:.65rem;align-items:center;margin:.5rem 0;padding:.72rem;border-radius:.85rem;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.09);position:relative;z-index:1;transition:transform .28s ease,background .28s ease,border-color .28s ease,box-shadow .28s ease,opacity .28s ease;}
.proof-console-row b{display:inline-flex;width:1.45rem;height:1.45rem;align-items:center;justify-content:center;border-radius:50%;background:#1e293b;color:#bfdbfe;font-size:.75rem;}
.proof-console-row.ok b{background:#14532d;color:#bbf7d0;}.proof-console-row code{color:#dbeafe;background:rgba(59,130,246,.14);border-radius:.45rem;padding:.18rem .35rem;font-size:.75rem;}
.proof-console-row.is-active{transform:translateX(7px) scale(1.018);background:rgba(59,130,246,.18);border-color:rgba(147,197,253,.36);box-shadow:0 .55rem 1.45rem rgba(37,99,235,.18),0 0 0 1px rgba(191,219,254,.08) inset;}
.proof-console-row.is-done{opacity:.96;background:rgba(34,197,94,.105);border-color:rgba(74,222,128,.22);}
.proof-console-row.is-busy b{background:#1d4ed8;color:#dbeafe;animation:rtoProofPulse .86s ease-in-out infinite;}
.proof-console-row.is-active code{background:rgba(96,165,250,.24);color:#f8fbff;}
.proof-console-row.is-done code{background:rgba(34,197,94,.16);color:#dcfce7;}
@keyframes rtoProofSweep{0%,18%{opacity:0;transform:translateX(-54%);}42%,52%{opacity:1;}82%,100%{opacity:0;transform:translateX(54%);}}
@keyframes rtoProofPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(96,165,250,.35);}50%{transform:scale(1.12);box-shadow:0 0 0 .42rem rgba(96,165,250,0);}}
@keyframes rtoProofNudge{0%,100%{transform:translate3d(0,0,0) rotate(0deg);}24%{transform:translate3d(3px,-2px,0) rotate(.22deg);}52%{transform:translate3d(-2px,1px,0) rotate(-.18deg);}76%{transform:translate3d(1px,0,0) rotate(.08deg);}}
.rto-master-guide{box-shadow:0 0 0 .28rem rgba(13,110,253,.18)!important;border-color:rgba(13,110,253,.55)!important;animation:rtoMasterGuidePulse .7s ease-in-out 2;}
@keyframes rtoMasterGuidePulse{0%{transform:scale(1)}50%{transform:scale(1.02)}100%{transform:scale(1)}}
@media (max-width:991px){.demo-journey{align-items:flex-start;flex-direction:column}.demo-journey-links{justify-content:flex-start}.proof-console-row{grid-template-columns:2rem 1fr}.proof-console-row code{grid-column:2}}
@media (prefers-reduced-motion:reduce){.proof-console,.proof-console:after,.proof-console-row,.proof-console-row.is-busy b{animation:none!important;transition:none!important}.proof-console-row.is-active{transform:none}}

/* UI clarity pass: passive labels must not look like navigation buttons. */
.pill:not(a):not(button){
  border:0!important;
  background:transparent!important;
  color:#2563eb!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
  cursor:default!important;
  text-decoration:none!important;
  letter-spacing:.01em;
}
.pill:not(a):not(button) i{opacity:.86;}
.utility-pill,
.demo-journey-links a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:.38rem!important;
  min-height:2.05rem!important;
  padding:.38rem .78rem!important;
  border-radius:.55rem!important;
  border:1px solid rgba(15,23,42,.34)!important;
  background:#fff!important;
  color:#334155!important;
  font-size:.82rem!important;
  font-weight:700!important;
  line-height:1.1!important;
  text-decoration:none!important;
  box-shadow:0 .18rem .5rem rgba(15,23,42,.06)!important;
  cursor:pointer!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
.utility-pill:hover,
.demo-journey-links a:hover,
.utility-pill:focus-visible,
.demo-journey-links a:focus-visible{
  background:#eff6ff!important;
  border-color:#0d6efd!important;
  color:#0d6efd!important;
  box-shadow:0 .25rem .75rem rgba(13,110,253,.14)!important;
  transform:translateY(-1px);
}
.utility-pill:focus-visible,
.demo-journey-links a:focus-visible{outline:3px solid rgba(13,110,253,.18)!important;outline-offset:2px!important;}
.card-demo .badge:not(a):not(button),
.utility-strip .badge:not(a):not(button){
  border:1px solid rgba(15,23,42,.08)!important;
  background:#f8fafc!important;
  color:#475569!important;
  box-shadow:none!important;
  cursor:default!important;
}
.card-demo .badge.text-bg-primary:not(a):not(button){
  border-color:rgba(37,99,235,.16)!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
.card-demo .badge.text-bg-light:not(a):not(button){
  border-color:rgba(15,23,42,.1)!important;
  background:#fff!important;
  color:#334155!important;
}

.proof-console.is-live{box-shadow:0 1.15rem 2.75rem rgba(15,23,42,.2),0 0 0 1px rgba(14,165,233,.1) inset;}
.proof-console.is-live .proof-console-top strong:before{content:"LIVE";display:inline-flex;align-items:center;margin-right:.55rem;padding:.12rem .42rem;border-radius:999px;background:rgba(34,197,94,.16);color:#bbf7d0;font-size:.62rem;letter-spacing:.08em;}
.proof-console-row.is-error{background:rgba(239,68,68,.16);border-color:rgba(248,113,113,.34);box-shadow:0 .55rem 1.45rem rgba(220,38,38,.14);}
.proof-console-row.is-error b{background:#7f1d1d;color:#fee2e2;}
.proof-console-row.is-error code{background:rgba(248,113,113,.18);color:#fee2e2;}

/* Harmonized advanced examples look — applied to the older demo pages too. */
body{
  background:
    radial-gradient(circle at 8% 4%, rgba(34,211,238,.16), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(124,58,237,.13), transparent 28%),
    linear-gradient(180deg,#f7f8ff 0%,#eef3ff 45%,#f8fbff 100%);
}
.navbar{
  background:rgba(255,255,255,.88)!important;
  backdrop-filter:blur(16px);
  box-shadow:0 .55rem 1.8rem rgba(15,23,42,.055);
}
.rto-docs-brand-mark img{
  box-shadow:0 .45rem 1.2rem rgba(37,99,235,.18);
}
.utility-strip,
.master-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(37,99,235,.16)!important;
  border-radius:1.55rem!important;
  background:
    radial-gradient(circle at 0% 0%, rgba(34,211,238,.18), transparent 36%),
    radial-gradient(circle at 100% 10%, rgba(236,72,153,.13), transparent 34%),
    linear-gradient(135deg,#ffffff,#f4f8ff)!important;
  box-shadow:0 1.1rem 3rem rgba(15,23,42,.09)!important;
}
.utility-strip:after,
.master-hero:after{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(37,99,235,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.055) 1px, transparent 1px);
  background-size:30px 30px;
  mask-image:linear-gradient(135deg,rgba(0,0,0,.55),transparent 70%);
  pointer-events:none;
}
.utility-strip > *,
.master-hero > *{
  position:relative;
  z-index:1;
}
.demo-journey{
  border-color:rgba(37,99,235,.15)!important;
  border-radius:1.25rem!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,246,255,.92))!important;
  box-shadow:0 .85rem 2.2rem rgba(15,23,42,.07)!important;
}
.demo-journey-title{
  letter-spacing:-.015em;
}
.card-demo,
.card.card-demo{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:1.65rem!important;
  background:#fff!important;
  box-shadow:0 1.05rem 2.7rem rgba(15,23,42,.085)!important;
}
.card-demo:before,
.card.card-demo:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:6px;
  background:linear-gradient(90deg,#2563eb,#22d3ee,#7c3aed);
  z-index:1;
}
.card-demo > *,
.card.card-demo > *{
  position:relative;
  z-index:2;
}
.card-demo h1,
.card-demo h2,
.master-hero h1{
  letter-spacing:-.028em;
  font-weight:900;
  color:#102033;
}
.pill:not(a):not(button){
  display:inline-flex!important;
  align-items:center!important;
  gap:.45rem!important;
  border:1px solid rgba(37,99,235,.13)!important;
  border-radius:999px!important;
  padding:.38rem .72rem!important;
  background:rgba(37,99,235,.075)!important;
  color:#1d4ed8!important;
  font-size:.78rem!important;
  font-weight:900!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
.utility-pill,
.demo-journey-links a{
  border-radius:.85rem!important;
  border-color:rgba(37,99,235,.18)!important;
  color:#1d4ed8!important;
  background:#fff!important;
  box-shadow:0 .4rem 1rem rgba(37,99,235,.08)!important;
}
.utility-pill:hover,
.demo-journey-links a:hover,
.utility-pill:focus-visible,
.demo-journey-links a:focus-visible{
  color:#fff!important;
  background:linear-gradient(135deg,#2563eb,#7c3aed)!important;
  border-color:transparent!important;
}
.btn-primary{
  border-color:#2563eb!important;
  background:linear-gradient(135deg,#2563eb,#7c3aed)!important;
  box-shadow:0 .7rem 1.45rem rgba(37,99,235,.18);
}
.btn-outline-primary{
  border-color:rgba(37,99,235,.38)!important;
  color:#1d4ed8!important;
  background:#fff!important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible{
  color:#fff!important;
  background:linear-gradient(135deg,#2563eb,#06b6d4)!important;
  border-color:transparent!important;
}
.alert-info,
.alert-warning{
  border-radius:1.1rem!important;
  background:linear-gradient(135deg,#eff6ff,#fff7ed)!important;
  color:#334155!important;
}
.log-box,
.mission-box,
pre.bg-light{
  border-radius:1.15rem!important;
  border:1px solid rgba(15,23,42,.09)!important;
}
pre.bg-light{
  background:#f8fafc!important;
}
.result-card,
details.scene-card,
.list-group-item{
  border-color:rgba(148,163,184,.22)!important;
}
@media (max-width:991px){
  .utility-strip,
  .master-hero,
  .card-demo,
  .card.card-demo{
    border-radius:1.25rem!important;
  }
}
