/* Adaptive homepage: premium visual refinement and live experiment diagnostics. */
body.rg-adaptive-home {
  --rgw-amber: #ffc381;
  --rgw-cyan: #7cdbff;
  --rgw-inkdeep: #07111f;
  --rgw-card: #101f34;
  --rgw-frost: #b5c9e1;
}
body.rg-adaptive-home .rgw-top {
  isolation: isolate;
  background:
    radial-gradient(ellipse 34% 54% at 94% 15%, rgba(83,136,226,.26), transparent 78%),
    radial-gradient(ellipse 62% 62% at -20% 90%, rgba(255,139,48,.14), transparent 79%),
    linear-gradient(118deg,#050c17 7%,#101d34 64%,#070e1a);
}
body.rg-adaptive-home .rgw-top::after {
  content:"";
  z-index:-1;
  pointer-events:none;
  position:absolute;
  width:52vw;
  height:52vw;
  max-width:840px;
  max-height:840px;
  top:-28vw;
  right:-13vw;
  border:1px solid rgba(142,191,246,.075);
  border-radius:50%;
  box-shadow:
    0 0 0 95px rgba(115,183,250,.016),
    0 0 0 185px rgba(115,183,250,.013),
    0 0 110px rgba(104,158,231,.07);
}
body.rg-adaptive-home .rgw-hero {
  padding-top:104px;
  padding-bottom:116px;
}
body.rg-adaptive-home .rgw-hero-grid {
  gap:clamp(35px,4.7vw,76px);
}
body.rg-adaptive-home .rgw-hero h1 {
  max-width:740px;
  font-size:clamp(47px,5.65vw,80px);
  line-height:1.055;
  letter-spacing:-.073em;
}
body.rg-adaptive-home .rgw-hero h1 em {
  background-image:linear-gradient(93deg,#ffd29a 1%,#ffa451 50%,#91caff 94%);
}
body.rg-adaptive-home .rgw-hero .rgw-eyebrow{
  background:rgba(255,161,81,.075);
  padding:9px 12px 9px 11px;
  border:1px solid rgba(255,174,102,.15);
  border-radius:100px;
  font-size:10px;
  letter-spacing:.12em;
}
body.rg-adaptive-home .rgw-visual-shell {
  border:1px solid rgba(168,211,255,.25);
  box-shadow:
    0 40px 100px rgba(0,0,0,.47),
    0 1px 25px rgba(66,161,255,.08),
    inset 0 1px 0 rgba(226,243,255,.09);
}
body.rg-adaptive-home .rgw-visual:after {
  content:"RESPONSE_ROUTER  /  LIVE EXPERIMENT";
  display:block;
  margin:13px 3px 0;
  font:10px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#7897b9;
  letter-spacing:.08em;
}
body.rg-adaptive-home .rgw-hero .rgw-trust {
  max-width:550px;
  line-height:1.75;
}
body.rg-adaptive-home .rgw-button-primary {
  background:linear-gradient(110deg,#ffcd85,#ffaa54 76%);
  color:#14202d!important;
  border:1px solid rgba(255,224,170,.64);
  box-shadow:0 16px 39px rgba(240,137,50,.18),inset 0 1px 0 rgba(255,244,216,.34);
}
body.rg-adaptive-home .rgw-button-primary:hover {
  box-shadow:0 20px 42px rgba(240,137,50,.27),inset 0 1px 0 rgba(255,244,216,.3);
}
body.rg-adaptive-home .rgw-nav {
  background:rgba(10,20,35,.52);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
body.rg-adaptive-home .rgw-steps .rgw-step {
  min-height:250px;
  transition:transform .25s,border-color .25s,background .25s;
  overflow:hidden;
}
body.rg-adaptive-home .rgw-steps .rgw-step:before {
  position:absolute;
  content:"";
  right:-66px;top:-66px;width:150px;height:150px;
  border:1px solid rgba(154,194,235,.12);
  border-radius:50%;
}
body.rg-adaptive-home .rgw-steps .rgw-step:hover {
  transform:translateY(-5px);
  border-color:rgba(135,198,255,.46);
  background:linear-gradient(150deg,#152942,#0c192b);
}
body.rg-adaptive-home .rgw-warp .rgw-answer {
  position:relative;
  overflow:hidden;
  background:linear-gradient(143deg,#12243a,#0c192b);
  border-color:#29405c;
  box-shadow:inset 0 1px 0 rgba(220,235,255,.035);
}
body.rg-adaptive-home .rgw-warp .rgw-answer:before {
  content:"";
  display:block;
  position:absolute;
  top:0;left:0;bottom:0;
  width:3px;
  background:linear-gradient(180deg,#ffb05e,#6ab9e8);
  opacity:.65;
}
body.rg-adaptive-home .rgw-answer details:focus-within,
body.rg-adaptive-home .rgw-outcome:focus-within {
  outline:1px solid #8ebfff;
  outline-offset:3px;
}

/* Live protocol lab */
body.rg-adaptive-home .rgw-lab-section {
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(ellipse 55% 54% at 15% 90%,rgba(45,105,168,.14),transparent),
    linear-gradient(180deg,#081321,#0c1729);
  border-top:1px solid rgba(152,190,237,.11);
  border-bottom:1px solid rgba(152,190,237,.13);
}
body.rg-adaptive-home .rgw-lab-section::before {
  content:"";
  position:absolute;
  top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(123,188,243,.37),transparent);
}
body.rg-adaptive-home .rgw-lab-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 25px;
}
body.rg-adaptive-home .rgw-lab-badge {
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid #334d68;
  background:rgba(121,181,230,.07);
  color:#a5cce9;
  padding:7px 10px;
  font:700 10px/1.4 ui-monospace,monospace;
  border-radius:7px;
}
body.rg-adaptive-home .rgw-lab-badge::before {
  content:"";width:7px;height:7px;
  border:1px solid #72baff;
  border-radius:50%;
  box-shadow:0 0 12px rgba(107,180,242,.55);
}
body.rg-adaptive-home .rgw-lab-grid {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:clamp(28px,5vw,75px);
  align-items:start;
}
body.rg-adaptive-home .rgw-lab-intro h2 {
  max-width:540px;
  font-weight:860;
  font-size:clamp(38px,4.6vw,61px);
  line-height:1.11;
  letter-spacing:-.061em;
  color:#fff;
  margin:15px 0 22px;
}
body.rg-adaptive-home .rgw-lab-intro .rgw-lab-lede {
  font-size:17px;
  line-height:1.78;
  max-width:490px;
  color:#b9cbe1;
  margin:0 0 17px;
}
body.rg-adaptive-home .rgw-lab-code {
  margin:25px 0;
  display:grid;
  gap:8px;
}
body.rg-adaptive-home .rgw-lab-code code {
  display:block;
  word-break:break-word;
  padding:13px 15px;
  font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#95d7ff;
  border:1px solid #304e6c;
  background:#071322;
  border-radius:9px;
}
body.rg-adaptive-home .rgw-lab-code b {
  color:#c8d4e8;
  font:750 10px/1.3 ui-monospace,monospace;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.rg-adaptive-home .rgw-lab-intro .rgw-note {
  margin-top:18px;
  max-width:510px;
  font-size:12px;
  color:#92a6be;
  line-height:1.7;
}
body.rg-adaptive-home .rgw-button[disabled]{
  opacity:.55;
  cursor:wait;
  transform:none!important;
}
body.rg-adaptive-home .rgw-lab-panel {
  border:1px solid #3a5472;
  background:linear-gradient(150deg,#102239,#0a1426 85%);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.33), inset 0 1px 0 rgba(231,247,255,.065);
}
body.rg-adaptive-home .rgw-lab-panel-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  border-bottom:1px solid #2a405c;
  padding:17px 21px;
  background:rgba(255,255,255,.022);
}
body.rg-adaptive-home .rgw-lab-panel-top strong {
  font-size:13px;
  color:#f3f8ff;
}
body.rg-adaptive-home .rgw-lab-panel-top span {
  color:#8aa7c8;
  font:10px/1.4 ui-monospace,monospace;
}
body.rg-adaptive-home .rgw-lab-panel-body{padding:25px 24px 22px}
body.rg-adaptive-home .rgw-lab-variants {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
}
body.rg-adaptive-home .rgw-lab-variant {
  min-width:0;
  padding:20px;
  border-radius:13px;
  background:rgba(53,102,150,.11);
  border:1px solid #32516f;
}
body.rg-adaptive-home .rgw-lab-variant:nth-child(2) {
  border-color:#6d5940;
  background:rgba(164,101,39,.07);
}
body.rg-adaptive-home .rgw-lab-var-head {
  color:#d2e3f8;
  font-size:11px;
  font-weight:790;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:14px;
}
body.rg-adaptive-home .rgw-lab-var-head .dot {
  width:7px;height:7px;display:inline-block;border-radius:50%;
  background:#80c8ff;margin-right:7px;
}
body.rg-adaptive-home .rgw-lab-variant:nth-child(2) .dot{background:#ffc285}
body.rg-adaptive-home .rgw-lab-variant strong {
  display:block;
  color:#f3f9ff;
  font:830 clamp(20px,2.1vw,28px)/1.2 ui-monospace,Consolas,monospace;
  letter-spacing:-.04em;
  margin:0 0 10px;
}
body.rg-adaptive-home .rgw-lab-variant small {
  display:block;
  color:#9eb9d4;
  font:11px/1.5 ui-monospace,monospace;
  overflow-wrap:anywhere;
  min-height:34px;
}
body.rg-adaptive-home .rgw-lab-bars {
  margin-top:23px;
  padding:22px 0;
  border-top:1px solid #29415d;
  border-bottom:1px solid #29415d;
}
body.rg-adaptive-home .rgw-lab-bars .rgw-lab-row{
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  gap:16px;
  align-items:center;
  margin-bottom:14px;
}
body.rg-adaptive-home .rgw-lab-bars .rgw-lab-row:last-child{margin-bottom:0}
body.rg-adaptive-home .rgw-lab-bars .rgw-bar-name{
  color:#a5c4df;
  font:650 11px ui-monospace,monospace;
}
body.rg-adaptive-home .rgw-lab-track{
  height:11px;
  width:100%;
  background:#1d324c;
  border-radius:50px;
  overflow:hidden;
}
body.rg-adaptive-home .rgw-lab-fill{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#4c99da,#8ad2ff);
  border-radius:50px;
  transition:width .55s cubic-bezier(.2,.8,.2,1);
}
body.rg-adaptive-home .rgw-lab-fill-markdown{
  background:linear-gradient(90deg,#ba7a3e,#ffc885);
}
body.rg-adaptive-home .rgw-lab-insights {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:19px 0 0;
}
body.rg-adaptive-home .rgw-lab-insights > div{
  padding:15px;
  border:1px solid #304866;
  border-radius:10px;
  min-width:0;
}
body.rg-adaptive-home .rgw-lab-insights span{
  display:block;
  color:#91abc5;
  font:680 10px/1.3 ui-monospace,monospace;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:8px;
}
body.rg-adaptive-home .rgw-lab-insights strong {
  color:#e3f4ff;
  display:block;
  font-size:16px;
  overflow-wrap:anywhere;
  line-height:1.45;
}
body.rg-adaptive-home .rgw-lab-insights small{
  color:#8ca5bf;
  display:block;
  font-size:10px;
  margin-top:8px;
}
body.rg-adaptive-home .rgw-lab-status{
  margin-top:18px;
  padding:13px 15px;
  font-size:12px;
  line-height:1.65;
  border-radius:10px;
  background:#203148;
  border:1px solid #385371;
  color:#c3d9ee;
  min-height:62px;
}
body.rg-adaptive-home .rgw-lab-status[data-status="pass"] {
  background:#173646;
  border-color:#4e92b1;
  color:#daeffc;
}
body.rg-adaptive-home .rgw-lab-status[data-status="fail"] {
  background:#382a2d;
  border-color:#98716c;
  color:#ffe6de;
}
body.rg-adaptive-home .rgw-lab-status[data-status="checking"]{color:#b4dcff}
body.rg-adaptive-home .rgw-lab-foot {
  font:10px/1.55 ui-monospace,Consolas,monospace;
  padding:13px 21px;
  color:#839cb8;
  border-top:1px solid #29415d;
}

/* Utility improvements */
body.rg-adaptive-home .rgw-run-note{font-size:12px;color:#859bb5;line-height:1.6;margin-top:13px}
body.rg-adaptive-home .rgw-sticky-indicator {
  position:absolute;right:0;top:-19px;
  color:#e1efff;
  background:#172b43;
  border:1px solid #345574;
  font:700 10px/1 ui-monospace,Consolas,monospace;
  padding:9px 12px;border-radius:7px;
  box-shadow:0 10px 24px rgba(0,0,0,.28)
}
body.rg-adaptive-home .rgw-cta-section{
  background:
    radial-gradient(ellipse 55% 90% at 51% 130%,rgba(47,108,193,.24),transparent),
    radial-gradient(ellipse 50% 52% at 70% 0%,rgba(225,128,61,.06),transparent),
    #081422;
}
body.rg-adaptive-home a:focus-visible,
body.rg-adaptive-home button:focus-visible,
body.rg-adaptive-home summary:focus-visible {
  outline:3px solid #b3d5ff;
  outline-offset:4px;
}
@media(max-width:1000px){
  body.rg-adaptive-home .rgw-lab-grid{grid-template-columns:1fr;gap:35px}
  body.rg-adaptive-home .rgw-lab-intro h2{max-width:750px}
  body.rg-adaptive-home .rgw-lab-intro .rgw-lab-lede{max-width:730px}
  body.rg-adaptive-home .rgw-lab-panel{max-width:800px}
}
@media(max-width:780px){
  body.rg-adaptive-home .rgw-hero{padding-top:70px;padding-bottom:68px}
  body.rg-adaptive-home .rgw-visual:after{font-size:9px}
  body.rg-adaptive-home .rgw-lab-variants{gap:8px}
  body.rg-adaptive-home .rgw-lab-variant{padding:15px}
  body.rg-adaptive-home .rgw-lab-variant strong{font-size:21px}
  body.rg-adaptive-home .rgw-lab-panel-body{padding:18px 17px}
  body.rg-adaptive-home .rgw-lab-panel-top{padding:14px 17px}
  body.rg-adaptive-home .rgw-lab-insights{grid-template-columns:1fr}
  body.rg-adaptive-home .rgw-lab-section{padding:80px 0}
}
@media(max-width:410px){
  body.rg-adaptive-home .rgw-hero h1{font-size:41px}
  body.rg-adaptive-home .rgw-lab-variants{grid-template-columns:1fr}
  body.rg-adaptive-home .rgw-lab-variant{display:grid;grid-template-columns:1fr 1fr;align-items:center;column-gap:10px;min-height:86px}
  body.rg-adaptive-home .rgw-lab-var-head{grid-column:1/-1;margin:0 0 5px}
  body.rg-adaptive-home .rgw-lab-variant strong{font-size:20px;margin:0}
  body.rg-adaptive-home .rgw-lab-variant small{min-height:auto;font-size:10px}
  body.rg-adaptive-home .rgw-lab-bars .rgw-lab-row{grid-template-columns:70px minmax(0,1fr);gap:10px}
  body.rg-adaptive-home .rgw-lab-intro h2{font-size:37px}
}
@media(prefers-reduced-motion:reduce){
  body.rg-adaptive-home .rgw-steps .rgw-step,
  body.rg-adaptive-home .rgw-lab-fill {transition:none}
}


/* Refined responsive research metrics and accessible keyboard navigation. */
body.rg-adaptive-home .rgw-skip-link{position:fixed;z-index:9999;top:-90px;left:16px;padding:12px 20px;border:2px solid #ffca83;border-radius:8px;background:#111e2e;color:#fff;font-weight:800}
body.rg-adaptive-home .rgw-skip-link:focus{top:12px}
body.rg-adaptive-home .rgw-measure-strip{position:relative;background:linear-gradient(105deg,#101f33,#101c2d 65%,#142338);border-top:1px solid #34516c;border-bottom:1px solid #263f59}
body.rg-adaptive-home .rgw-measure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.3fr);align-items:stretch}
body.rg-adaptive-home .rgw-measure{display:flex;align-items:center;gap:16px;min-width:0;padding:27px 24px 27px 0;position:relative}
body.rg-adaptive-home .rgw-measure+.rgw-measure{padding-left:26px}
body.rg-adaptive-home .rgw-measure+.rgw-measure:before{content:"";height:48px;width:1px;position:absolute;left:0;top:calc(50% - 24px);background:#344863}
body.rg-adaptive-home .rgw-measure strong{font:800 clamp(26px,2.6vw,37px)/1.05 ui-monospace,Consolas,monospace;letter-spacing:-.08em;color:#ffcb8c}
body.rg-adaptive-home .rgw-measure span{font-size:12px;font-weight:760;line-height:1.45;color:#eef7ff}
body.rg-adaptive-home .rgw-measure small{display:block;font-size:10px;color:#a4b9d0;font-weight:500;margin-top:3px}
body.rg-adaptive-home .rgw-measure-callout{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}
body.rg-adaptive-home .rgw-measure-callout a{color:#c4e7ff;font-weight:800;font-size:13px;line-height:1.4;text-decoration:underline;text-decoration-color:rgba(170,215,255,.55);text-underline-offset:5px}
body.rg-adaptive-home .rgw-measure-callout a:hover{color:#fff}
body.rg-adaptive-home .rgw-measure-callout small{margin:0}
body.rg-adaptive-home .rgw-top .rgw-nav-links a,body.rg-adaptive-home .rgw-nav-cta{white-space:nowrap}
body.rg-adaptive-home .rgw-measure-grid a:focus-visible{outline:3px solid #a7d6ff;outline-offset:4px}
@media(max-width:950px){
 body.rg-adaptive-home .rgw-measure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.rg-adaptive-home .rgw-measure{padding:20px 12px!important}
 body.rg-adaptive-home .rgw-measure:nth-child(odd){padding-left:0!important}
 body.rg-adaptive-home .rgw-measure:nth-child(odd):before{display:none}
 body.rg-adaptive-home .rgw-measure:nth-child(3),body.rg-adaptive-home .rgw-measure:nth-child(4){border-top:1px solid #2c455d}
}
@media(max-width:480px){
 body.rg-adaptive-home .rgw-measure{gap:10px}
 body.rg-adaptive-home .rgw-measure strong{font-size:27px}
 body.rg-adaptive-home .rgw-measure span{font-size:11px}
 body.rg-adaptive-home .rgw-measure+.rgw-measure{padding-left:13px!important}
 body.rg-adaptive-home .rgw-measure-callout{padding-left:13px!important}
 body.rg-adaptive-home .rgw-nav-inner{gap:8px}
 body.rg-adaptive-home .rgw-nav-links{display:none}
 body.rg-adaptive-home .rgw-nav-cta{font-size:11px;padding:8px 10px}
 body.rg-adaptive-home .rgw-hero{padding-top:52px}
}


/* Clarity update: reuse existing premium components for the plain-English explainer. */
body.rg-adaptive-home .rgw-hero-goal{
  max-width:580px;
  margin:-3px 0 24px;
  padding:13px 17px;
  border-left:3px solid #ffc381;
  border-radius:0 10px 10px 0;
  background:rgba(126,183,232,.075);
  color:#e1efff;
  font-size:15px;
  line-height:1.65;
}
body.rg-adaptive-home .rgw-hero-goal strong{color:#fff}
body.rg-adaptive-home .rgw-why{padding-bottom:58px}
body.rg-adaptive-home .rgw-why + #how{padding-top:58px}
body.rg-adaptive-home .rgw-why-note{
  max-width:1000px;
  margin:29px 0 0;
  padding:20px 2px 0;
  border-top:1px solid #30465e;
  color:#aabbcf;
  font-size:13px;
  line-height:1.75;
}
body.rg-adaptive-home .rgw-why-note strong{color:#e3eeff}
@media(max-width:780px){
  body.rg-adaptive-home .rgw-why{padding-bottom:35px}
  body.rg-adaptive-home .rgw-why + #how{padding-top:42px}
  body.rg-adaptive-home .rgw-hero-goal{font-size:14px}
}
