:root {
  --rto-blue: #2796ef;
  --rto-blue-dark: #1572bd;
  --rto-bg: #101827;
  --rto-panel: #172134;
  --rto-page: #f6f8fb;
  --rto-border: #d8dee8;
  --rto-text: #172134;
  --rto-muted: #657187;
  --rto-warning: #f5c077;
  --rto-warning-dark: #9a6418;
  --rto-shadow: 0 22px 60px rgba(0, 0, 0, .24);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f7fbff;
  background: radial-gradient(circle at top left, #203b66, #0f1724 58%, #08101c);
}

button {
  font: inherit;
}

.rto-demo {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.rto-demo-panel {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(17, 28, 47, .82);
  box-shadow: var(--rto-shadow);
}

.rto-eyebrow {
  margin: 0 0 6px;
  color: #8cc8ff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.rto-intro {
  max-width: 760px;
  color: #d6e4f7;
  font-size: 1.08rem;
}

.rto-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}

.rto-button {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  padding: 10px 20px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.rto-button-primary {
  border-color: var(--rto-blue);
  background: linear-gradient(135deg, var(--rto-blue), var(--rto-blue-dark));
}

.rto-button-stop {
  display: none;
  border-color: rgba(255, 255, 255, .22);
}

.rto-demo.is-auto-running .rto-button-stop {
  display: inline-flex;
  align-items: center;
  border-color: rgba(248, 113, 113, .92);
  background: linear-gradient(135deg, #e11d48, #991b1b);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, .16);
}

.rto-demo.is-auto-running .rto-button-primary {
  display: none;
}

.rto-button:focus-visible,
.in-page-button:focus-visible,
.warning-close:focus-visible,
.warning-pill:focus-visible,
.tab:focus-visible {
  outline: 3px solid rgba(39, 150, 239, .38);
  outline-offset: 2px;
}

.rto-status {
  min-height: 1.4em;
  margin: 0;
  color: #b9cae2;
}

.browser-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  background: #e8ebf1;
  box-shadow: var(--rto-shadow);
}

.browser-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 10px 16px;
  background: #e6e8ee;
  border-bottom: 1px solid #ccd2dc;
}

.window-buttons {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}

.window-buttons span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c5c9d1;
}

.tabs {
  display: flex;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 16px 16px 6px 6px;
  padding: 8px 14px;
  color: #596173;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transform-origin: bottom left;
}

.tab[hidden] {
  display: none !important;
}

.tab-visible {
  animation: tabBirth 420ms ease-out;
}

.tab-active {
  color: #182133;
  background: #fff;
  border-color: #d6dce7;
  box-shadow: 0 -2px 18px rgba(37, 45, 65, .1);
}

.tab-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #fff;
  background: #5c6677;
  font-weight: 800;
}

.tab-remote .tab-icon {
  background: var(--rto-blue);
}

.tab-remote-alt .tab-icon {
  font-size: .72rem;
  background: #805ad5;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #f4f6fa;
  color: #7a8494;
}

.nav-symbol {
  font-size: 1.3rem;
}

.address {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 9px 15px;
  color: #4e5868;
  background: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: text;
  user-select: none;
}

.address.address-selected {
  border-color: transparent;
  background: #fff;
  box-shadow: none;
}

.address-value {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px;
  padding: 0 2px;
  color: #4e5868;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.address.address-selected .address-value {
  color: #fff;
  background: #2f80ed;
}

.viewport {
  position: relative;
  height: 500px;
  overflow-x: hidden;
  overflow-y: scroll;
  color: var(--rto-text);
  background: #1d2738;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.viewport::-webkit-scrollbar {
  width: 13px;
}

.viewport::-webkit-scrollbar-track {
  background: #e4e8ef;
}

.viewport::-webkit-scrollbar-thumb {
  border: 3px solid #e4e8ef;
  border-radius: 999px;
  background: #9eabbc;
}

.page {
  position: relative;
  min-height: 680px;
  padding: 42px;
  background: var(--rto-page);
}

.page-master {
  min-height: 720px;
}

.page-controlled {
  min-height: 760px;
}

.page[hidden] {
  display: none;
}

.page-card,
.controlled-content {
  width: min(720px, 100%);
  border: 1px solid var(--rto-border);
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(30, 42, 63, .12);
}

.mini-title {
  margin-bottom: 8px;
  color: var(--rto-blue-dark);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.action-row-main {
  align-items: center;
}

.action-row-secondary {
  margin-top: 12px;
}

.script-button {
  color: #fff;
  background: linear-gradient(135deg, #4d5dff, #6f46e8);
  box-shadow: 0 14px 30px rgba(79, 70, 229, .24);
}

.script-button[hidden] {
  display: none !important;
}

.script-button:disabled {
  color: #c9d4e4;
  background: linear-gradient(180deg, #f7f9fc, #edf2f8);
  box-shadow: none;
}

.second-actions {
  margin-top: 24px;
  border-top: 1px solid #e7ebf2;
  padding-top: 22px;
}

.second-actions[hidden] {
  display: none;
}

.second-actions.reveal {
  animation: slideIn 520ms ease-out;
}

.small-note {
  margin-bottom: 0;
  color: var(--rto-muted);
  font-weight: 700;
}

.in-page-button {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .13);
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.in-page-button:disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.65);
  box-shadow: none;
}

.open-button,
.open-second-button {
  background: var(--rto-blue);
}

.open-second-button {
  background: #805ad5;
}

.focus-button {
  background: #168464;
}

.close-button {
  background: #29364c;
}

.warning-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: -42px -42px 0;
  padding: 8px 16px;
  color: #1d2b40;
  background: linear-gradient(180deg, #ffd79b, var(--rto-warning));
  border-bottom: 1px solid #d09a4a;
  box-shadow: 0 8px 24px rgba(109, 70, 12, .18);
  cursor: pointer;
}

.warning-bar[hidden] {
  display: none;
}

.warning-key {
  color: #4d3925;
  font-weight: 700;
}

.warning-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(45, 44, 42, .35);
  border-radius: 3px;
  color: #152033;
  background: rgba(255, 255, 255, .62);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.warning-pill {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d09a4a;
  border-radius: 999px;
  padding: 8px 26px 8px 12px;
  color: #1d2b40;
  background: linear-gradient(180deg, #ffd79b, var(--rto-warning));
  box-shadow: 0 8px 20px rgba(109, 70, 12, .26);
  cursor: grab;
  transition: left 520ms ease, right 520ms ease, top 520ms ease, transform 360ms ease;
}

.warning-pill[hidden] {
  display: none;
}

.warning-pill.dragged {
  cursor: grabbing;
  transform: scale(1.03);
}

.controlled-content {
  margin-top: 86px;
}

.fake-form {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.fake-form label {
  color: var(--rto-muted);
  font-weight: 700;
}

.fake-form input {
  width: min(420px, 100%);
  border: 1px solid var(--rto-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: #3e495c;
  background: #f8fafc;
}

.fake-form-alt input {
  border-color: #c8b7f4;
  background: #fbf9ff;
}

.demo-report,
.calculator-report {
  margin-top: 16px;
  border: 1px solid rgba(39, 150, 239, .22);
  border-radius: 16px;
  padding: 12px 14px;
  color: #102033;
  background: linear-gradient(180deg, #f4fbff, #eaf5ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.demo-report[hidden],
.calculator-report[hidden] {
  display: none;
}

.report-label {
  display: block;
  margin-bottom: 3px;
  color: var(--rto-blue-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}



.contact-field input,
.contact-field textarea,
.save-draft-button,
.calc-editable,
.calculate-button,
.reset-calc-button,
.warning-bar,
.warning-pill,
.demo-report,
.calculator-report {
  scroll-margin-top: 92px;
  scroll-margin-bottom: 92px;
}

.contact-card {
  display: grid;
  gap: 14px;
  width: min(650px, 100%);
  margin-top: 22px;
  border: 1px solid #d7e4f3;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 18px 42px rgba(29, 48, 78, .12), inset 0 0 0 1px rgba(255, 255, 255, .82);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 7px;
  color: var(--rto-muted);
  font-weight: 800;
}

.contact-field span {
  color: #516074;
  font-size: .82rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #cbd8e8;
  border-radius: 14px;
  padding: 12px 13px;
  color: #172134;
  background: #fff;
  font: inherit;
  font-weight: 750;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, .05);
}

.contact-field textarea {
  min-height: 92px;
  resize: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--rto-blue);
  outline: 3px solid rgba(39, 150, 239, .18);
}

.save-draft-button {
  justify-self: start;
  border: 0;
  border-radius: 15px;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, #168464, #0c6b50);
  box-shadow: 0 12px 28px rgba(22, 132, 100, .24);
  cursor: pointer;
  font-weight: 900;
}

.save-draft-button:hover {
  filter: brightness(1.04);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reset-draft-button {
  justify-self: start;
  border: 1px solid #cbd8e8;
  border-radius: 15px;
  padding: 13px 22px;
  color: #34445a;
  background: linear-gradient(180deg, #fff, #edf3fa);
  box-shadow: 0 10px 22px rgba(29, 48, 78, .10);
  cursor: pointer;
  font-weight: 900;
}

.reset-draft-button:hover {
  filter: brightness(1.04);
}

.contact-saved {
  min-height: 24px;
  color: #0f6f52;
  font-weight: 900;
}

.contact-saved:empty {
  display: none;
}

.form-report {
  border-color: rgba(22, 132, 100, .24);
  background: linear-gradient(180deg, #f4fff9, #e9fbf3);
}

.calculator-card {
  display: grid;
  gap: 16px;
  width: min(620px, 100%);
  margin-top: 22px;
  border: 1px solid #cfe0f4;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  box-shadow: 0 18px 42px rgba(29, 48, 78, .13), inset 0 0 0 1px rgba(255, 255, 255, .82);
}

.calculator-screen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  border: 1px solid #d8e7f7;
  border-radius: 18px;
  padding: 14px 16px;
  color: #0f2742;
  background: radial-gradient(circle at top left, #ecf7ff, #ffffff 58%);
}

.calculator-kicker {
  color: var(--rto-blue-dark);
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: .02em;
}

.calculator-line {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}

.calculator-field {
  display: grid;
  gap: 7px;
  min-width: 142px;
  color: var(--rto-muted);
  font-weight: 800;
}

.calculator-field span {
  font-size: .82rem;
}

.calc-editable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  min-height: 64px;
  border: 1px solid #cbd8e8;
  border-radius: 14px;
  padding: 12px 13px;
  color: #172134;
  background: #fff;
  font-size: 1.42rem;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, .05);
  outline: 0;
}

.calc-editable:focus {
  border-color: var(--rto-blue);
  outline: 3px solid rgba(39, 150, 239, .18);
}

.operator {
  padding-bottom: 12px;
  color: #516074;
  font-size: 1.55rem;
  font-weight: 900;
}

.result-chip {
  min-width: 116px;
  border: 1px solid #bee0ff;
  border-radius: 999px;
  padding: 12px 16px;
  color: #0f4f86;
  background: #edf8ff;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.calc-result {
  min-width: 92px;
  border-radius: 16px;
  padding: 10px 14px;
  color: #0c3f6f;
  background: linear-gradient(180deg, #e7f5ff, #d6edff);
  font-size: 1.7rem;
  font-weight: 950;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(39, 150, 239, .18);
}

.calc-result:empty::before {
  content: "—";
  color: #9aa8ba;
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calculate-button,
.reset-calc-button {
  justify-self: start;
  border: 0;
  border-radius: 15px;
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 900;
}

.calculate-button {
  color: #fff;
  background: linear-gradient(135deg, #2796ef, #1572bd);
  box-shadow: 0 12px 28px rgba(39, 150, 239, .26);
}

.reset-calc-button {
  color: #34445a;
  background: linear-gradient(180deg, #fff, #edf3fa);
  border: 1px solid #cbd8e8;
}

.calculate-button:hover,
.reset-calc-button:hover {
  filter: brightness(1.04);
}


@keyframes tryPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

.mouse-pointer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 40px;
  height: 40px;
  color: #0c1626;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .28));
  transform: translate3d(96px, 174px, 0);
  transition: transform 760ms cubic-bezier(.22, .8, .2, 1);
  pointer-events: none;
}

.mouse-pointer path {
  fill: #fff;
  stroke: #0c1626;
  stroke-width: 2;
  paint-order: stroke fill;
}

.mouse-pointer.clicking,
.mouse-pointer.grabbing {
  transform: translate3d(var(--mouse-x), var(--mouse-y), 0) scale(.9);
}

.mouse-pointer.scrolling {
  transform: translate3d(var(--mouse-x), var(--mouse-y), 0) scale(.96);
}


.mouse-pointer.idle-alive {
  animation: idlePointerPulse 1.2s ease-in-out infinite;
}

.moving-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 21;
  width: 42px;
  height: 42px;
  transform: translate3d(96px, 174px, 0);
  transition: transform 760ms cubic-bezier(.22, .8, .2, 1);
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, .28));
}

.moving-cursor img {
  display: block;
  width: 100%;
  height: auto;
}

.moving-cursor.clicking {
  transform: translate3d(var(--moving-x), var(--moving-y), 0) scale(.92);
}

@keyframes idlePointerPulse {
  0%, 100% {
    filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .28));
  }

  50% {
    filter: drop-shadow(0 7px 12px rgba(39, 150, 239, .34));
  }
}

.click-flash {
  animation: clickFlash 420ms ease-out;
}

.drag-shadow {
  box-shadow: 0 0 0 5px rgba(39, 150, 239, .22), 0 16px 36px rgba(0, 0, 0, .22);
}

@keyframes clickFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 150, 239, .55);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(39, 150, 239, 0);
  }
}

@keyframes tabBirth {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .rto-demo {
    width: min(100vw - 18px, 1180px);
    padding: 10px 0;
  }

  .page {
    padding: 24px 16px;
  }

  .browser-topbar {
    gap: 10px;
  }

  .tab span:last-child {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .warning-bar {
    margin: -24px -16px 0;
    font-size: .86rem;
  }

  .warning-pill {
    right: 12px;
    max-width: calc(100% - 24px);
  }

  .controlled-content {
    margin-top: 76px;
  }
}

.mouse-pointer[hidden],
.moving-cursor[hidden] {
  display: none !important;
}

.warning-pill.is-manual-dragging {
  transition: none;
  cursor: grabbing;
  user-select: none;
}

.warning-pill.is-auto-dragging {
  transition: left 760ms cubic-bezier(.22, .8, .2, 1), top 760ms cubic-bezier(.22, .8, .2, 1), right 760ms cubic-bezier(.22, .8, .2, 1), transform 360ms ease;
}

.browser-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
  margin-left: 6px;
  padding-right: 2px;
}

.browser-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #667085;
  background: transparent;
  line-height: 1;
}

.browser-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browser-icon-star {
  color: #2f80ed;
}

.browser-icon-star svg {
  fill: currentColor;
  stroke: currentColor;
}

.browser-icon-extension {
  color: #657286;
}

.browser-icon-extension svg {
  width: 20px;
  height: 20px;
}

.browser-icon-rto {
  background: rgba(39, 150, 239, .08);
}

.browser-icon-rto img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  transform-origin: 50% 50%;
}

.browser-icon-sidebar {
  color: #5d6572;
  background: #cfd2d8;
  box-shadow: inset 0 0 0 1px rgba(45, 52, 62, .08);
}

.browser-icon-sidebar svg {
  width: 20px;
  height: 20px;
}

.browser-icon-menu {
  color: #4f5968;
}

.browser-icon-menu svg {
  width: 23px;
  height: 23px;
}

.browser-shell.is-running .browser-icon-rto {
  background: rgba(39, 150, 239, .16);
}

.browser-shell.is-running .browser-icon-rto img {
  animation: rtoToolbarSpin 820ms linear infinite;
  filter: saturate(1.12) brightness(1.05);
}


.browser-shell.is-running .warning-bar .brand-icon,
.browser-shell.is-running .warning-pill .brand-icon {
  animation: rtoToolbarSpin 820ms linear infinite;
  filter: saturate(1.12) brightness(1.05);
}

.brand-icon {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  image-rendering: auto;
}

.warning-pill .brand-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

@keyframes rtoToolbarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.browser-icons .browser-icon {
  border: 0;
  padding: 0;
  cursor: default;
}

button.browser-icon-rto {
  cursor: pointer;
}

button.browser-icon-rto:focus-visible {
  outline: 3px solid rgba(39, 150, 239, .42);
  outline-offset: 2px;
}

.plugin-panel {
  position: absolute;
  top: 112px;
  right: 28px;
  z-index: 12;
  width: auto;
  max-width: none;
  border-radius: 16px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .34);
  animation: pluginPanelIn 220ms ease-out;
}

.plugin-panel[hidden] {
  display: none;
}

.plugin-panel img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.plugin-panel::after {
  content: "public fac-simile";
  position: absolute;
  right: 10px;
  bottom: 8px;
  border-radius: 999px;
  padding: 3px 8px;
  color: rgba(15, 23, 42, .62);
  background: rgba(255, 255, 255, .74);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@keyframes pluginPanelIn {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .plugin-panel {
    top: 106px;
    right: 12px;
    transform-origin: top right;
  }
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.try-message {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  display: grid;
  gap: 4px;
  width: min(430px, calc(100% - 28px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(39, 150, 239, .34);
  border-radius: 18px;
  padding: 13px 16px;
  color: #0f3358;
  background: linear-gradient(180deg, #ffffff, #eff8ff);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .20), 0 0 0 7px rgba(39, 150, 239, .08);
  pointer-events: none;
  text-align: center;
  animation: tryMessagePulse 1.45s ease-in-out infinite;
}

.try-message strong {
  color: #0b3f6f;
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.2;
}

.try-message span {
  color: #355174;
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.28;
}

.try-message[hidden] {
  display: none !important;
}

@keyframes tryMessagePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .20), 0 0 0 7px rgba(39, 150, 239, .08);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.025);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .24), 0 0 0 11px rgba(39, 150, 239, .12);
  }
}

/* v19 visual polish: premium master page, tighter viewport rhythm, credible calculator */
.page {
  padding: 24px 34px 34px;
}

.page-master {
  min-height: 650px;
  padding-top: 22px;
  background:
    radial-gradient(circle at 86% 12%, rgba(39, 150, 239, .14), transparent 36%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #f8fbff 100%);
}

.page-controlled {
  min-height: 690px;
  padding-top: 18px;
  background:
    radial-gradient(circle at 88% 16%, rgba(39, 150, 239, .11), transparent 34%),
    linear-gradient(180deg, #f8fbff, #f2f6fb);
}

.page-master::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .62;
  background:
    linear-gradient(90deg, rgba(39, 150, 239, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(39, 150, 239, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.page-master .page-card {
  position: relative;
  width: min(780px, 100%);
  overflow: hidden;
  border: 1px solid rgba(143, 173, 214, .48);
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(247, 251, 255, .94)),
    radial-gradient(circle at top right, rgba(39, 150, 239, .18), transparent 42%);
  box-shadow:
    0 28px 70px rgba(31, 48, 76, .16),
    0 2px 0 rgba(255, 255, 255, .86) inset;
}

.page-master .page-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 150, 239, .18), transparent 70%);
  pointer-events: none;
}

.page-master .mini-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(39, 150, 239, .20);
  border-radius: 999px;
  padding: 6px 12px;
  color: #0d66aa;
  background: rgba(237, 248, 255, .9);
  font-size: .78rem;
}

.page-master .mini-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20c997;
  box-shadow: 0 0 0 5px rgba(32, 201, 151, .14);
}

.page-master h2 {
  margin-bottom: 12px;
  color: #0e1b2e;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  letter-spacing: -.04em;
}

.page-master h2 + p {
  max-width: 610px;
  margin-bottom: 20px;
  color: #506178;
  font-size: 1.02rem;
  line-height: 1.45;
}

.page-master .action-row-main,
.page-master .action-row-secondary,
.page-master .second-actions .action-row {
  position: relative;
  z-index: 1;
  padding: 4px;
  border-radius: 20px;
  background: rgba(240, 246, 253, .72);
}

.page-master .action-row-main {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(130px, .6fr) minmax(190px, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.page-master .action-row-secondary {
  display: none;
  width: fit-content;
  margin-top: 12px;
}

.page-master .action-row-secondary:not([hidden]) {
  display: inline-flex;
}

.in-page-button {
  min-height: 48px;
  border-radius: 16px;
  letter-spacing: -.01em;
}

.page-master .in-page-button:not(:disabled) {
  box-shadow: 0 16px 30px rgba(24, 43, 73, .14);
}

.demo-report,
.calculator-report {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  border-color: rgba(31, 173, 127, .28);
  border-radius: 20px;
  padding: 14px 18px;
  background:
    linear-gradient(135deg, rgba(240, 255, 249, .98), rgba(232, 250, 243, .95));
  box-shadow: 0 16px 34px rgba(22, 132, 100, .10), inset 0 0 0 1px rgba(255, 255, 255, .76);
}

.calculator-report {
  border-color: rgba(39, 150, 239, .26);
  background: linear-gradient(135deg, #f4fbff, #eaf4ff);
  box-shadow: 0 16px 34px rgba(39, 150, 239, .11), inset 0 0 0 1px rgba(255, 255, 255, .76);
}

.report-label {
  color: #0e6ea9;
}

.second-actions {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  border-top: 1px solid rgba(133, 155, 185, .22);
  padding-top: 18px;
}

.second-actions .small-note {
  margin-bottom: 12px;
  color: #526277;
  font-size: .98rem;
}

.controlled-content {
  width: min(720px, 100%);
  margin-top: 72px;
}

.page-controlled-b .controlled-content {
  width: min(760px, 100%);
}

.controlled-content h2 {
  color: #0e1b2e;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  letter-spacing: -.035em;
}

.controlled-content p {
  color: #5b6b82;
  line-height: 1.45;
}

.calculator-card {
  position: relative;
  width: min(700px, 100%);
  gap: 18px;
  border: 1px solid rgba(132, 164, 206, .55);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(245, 250, 255, .96)),
    radial-gradient(circle at 88% 8%, rgba(39, 150, 239, .22), transparent 38%);
  box-shadow:
    0 26px 64px rgba(28, 48, 82, .17),
    inset 0 0 0 1px rgba(255, 255, 255, .86);
}

.calculator-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 82px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132, 164, 206, .36), transparent);
  pointer-events: none;
}

.calculator-screen {
  min-height: 92px;
  border: 1px solid rgba(18, 40, 72, .12);
  border-radius: 22px;
  padding: 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(107, 185, 255, .42), transparent 34%),
    linear-gradient(135deg, #10213a, #1d3760 56%, #12243e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 34px rgba(16, 33, 58, .18);
}

.calculator-kicker {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -.035em;
}

.calc-result {
  min-width: 118px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  padding: 12px 18px;
  color: #0d2038;
  background: linear-gradient(180deg, #ffffff, #d9efff);
  font-size: 1.95rem;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .82);
}

.calc-result:empty::before {
  content: "";
}

.calculator-line {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) auto minmax(124px, .75fr);
  align-items: end;
  gap: 12px;
}

.calculator-field {
  min-width: 0;
  gap: 8px;
}

.calculator-field span:first-child {
  color: #43536b;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calc-editable {
  width: 100%;
  min-height: 78px;
  border: 1px solid #bdd4ee;
  border-radius: 20px;
  padding: 14px 16px;
  color: #0f1d31;
  background:
    linear-gradient(180deg, #ffffff, #f6fbff);
  font-size: 1.8rem;
  box-shadow: inset 0 2px 7px rgba(15, 23, 42, .06), 0 12px 25px rgba(38, 67, 104, .08);
}

.calc-editable:focus {
  border-color: #2796ef;
  outline: 4px solid rgba(39, 150, 239, .18);
  box-shadow: inset 0 2px 7px rgba(15, 23, 42, .04), 0 0 0 1px rgba(39, 150, 239, .22), 0 14px 30px rgba(39, 150, 239, .12);
}

.operator {
  padding-bottom: 18px;
  color: #25344a;
  font-size: 2rem;
  line-height: 1;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 124px;
  border: 1px solid #a9d9ff;
  border-radius: 18px;
  padding: 12px 16px;
  color: #0f4f86;
  background: linear-gradient(180deg, #f2faff, #ddf0ff);
  font-size: 1.18rem;
  font-weight: 950;
}

.calculator-actions {
  padding-top: 4px;
}

.calculate-button,
.reset-calc-button {
  min-height: 50px;
  border-radius: 16px;
  padding: 14px 24px;
}

.calculate-button {
  background: linear-gradient(135deg, #218dea, #1166ad);
  box-shadow: 0 16px 32px rgba(39, 150, 239, .25);
}

.reset-calc-button {
  color: #26364c;
  background: linear-gradient(180deg, #ffffff, #edf4fb);
  border: 1px solid #bfd0e4;
  box-shadow: 0 12px 24px rgba(28, 48, 82, .10);
}

@media (max-width: 820px) {
  .page-master .action-row-main,
  .calculator-line {
    grid-template-columns: 1fr;
  }

  .operator {
    padding-bottom: 0;
    text-align: center;
  }

  .page {
    padding: 18px;
  }
}

.page-master .action-row-secondary:has(#runMovingCursorDemo[hidden]) {
  display: none;
}

.page-master .action-row-secondary:has(#runMovingCursorDemo:not([hidden])) {
  display: inline-flex;
}


/* v20 master page differentiation + real site hero dot-lens integration */
.page-master.rto-dot-lens {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(81, 156, 255, .24), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(105, 74, 232, .18), transparent 34%),
    linear-gradient(135deg, #07192f 0%, #0b2442 46%, #eff7ff 46.2%, #f8fbff 100%);
}

.page-master.rto-dot-lens > .rto-dot-lens-canvas {
  opacity: .72;
  mix-blend-mode: screen;
}

.page-master.rto-dot-lens::before {
  opacity: .28;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 44px 44px;
}

.page-master .page-card {
  width: min(840px, 100%);
  margin: 2px 0 0 22px;
  border-color: rgba(255, 255, 255, .62);
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(245, 250, 255, .88)),
    radial-gradient(circle at 92% 8%, rgba(39, 150, 239, .28), transparent 38%);
  backdrop-filter: blur(14px) saturate(1.18);
  box-shadow:
    0 34px 90px rgba(2, 8, 23, .24),
    0 0 0 1px rgba(255, 255, 255, .54) inset,
    0 1px 0 rgba(255, 255, 255, .92) inset;
}

.page-master .page-card::before {
  top: -110px;
  right: -100px;
  width: 340px;
  height: 340px;
  background:
    radial-gradient(circle, rgba(39, 150, 239, .26), rgba(99, 102, 241, .08) 45%, transparent 71%);
}

.page-master .page-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 150, 239, .28), transparent);
  pointer-events: none;
}

.page-master .mini-title {
  border-color: rgba(39, 150, 239, .24);
  color: #075d9b;
  background: rgba(233, 247, 255, .86);
  box-shadow: 0 10px 24px rgba(39, 150, 239, .10);
}

.page-master h2 {
  margin-top: 2px;
  color: #07182d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .70);
}

.page-master h2 + p {
  max-width: 660px;
  color: #40536b;
  font-weight: 650;
}

.page-master .action-row-main,
.page-master .action-row-secondary,
.page-master .second-actions .action-row {
  border: 1px solid rgba(161, 184, 216, .30);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(235, 244, 255, .66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}

.page-master .second-actions {
  border-top-color: rgba(39, 150, 239, .18);
}

.page-master .small-note {
  max-width: 620px;
}

.page-master .demo-report,
.page-master .calculator-report {
  border-width: 1px;
  background:
    linear-gradient(135deg, rgba(240, 255, 249, .94), rgba(228, 250, 241, .88));
  backdrop-filter: blur(10px);
}

.page-master .calculator-report {
  background: linear-gradient(135deg, rgba(244, 251, 255, .96), rgba(228, 241, 255, .90));
}

.warning-bar span:first-of-type::after {
  content: "";
}


/* v21 final polish: site-like hero, plugin highlight simulation, corrected warning text and calculator */
.rto-demo {
  width: min(1220px, calc(100vw - 28px));
  padding: 28px 0 36px;
}

.rto-demo-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(135, 190, 255, .28);
  border-radius: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at 16% 10%, rgba(39, 150, 239, .34), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(111, 70, 232, .23), transparent 32%),
    linear-gradient(135deg, rgba(7, 20, 39, .94), rgba(11, 32, 59, .92));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.rto-demo-panel > .rto-dot-lens-canvas {
  opacity: .62;
  mix-blend-mode: screen;
}

.rto-demo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(110deg, #000, rgba(0, 0, 0, .58), transparent 82%);
  pointer-events: none;
}

.rto-demo-hero-content,
.rto-warning-explainer {
  position: relative;
  z-index: 1;
}

.rto-eyebrow {
  color: #9ed5ff;
}

.rto-demo-panel h1 {
  max-width: 760px;
  margin-bottom: 14px;
  color: #fff;
  text-wrap: balance;
}

.rto-intro {
  max-width: 780px;
  margin-bottom: 18px;
  color: #ddecff;
}

.rto-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 20px;
}

.rto-hero-points span {
  border: 1px solid rgba(145, 202, 255, .28);
  border-radius: 999px;
  padding: 8px 12px;
  color: #e9f6ff;
  background: rgba(255, 255, 255, .08);
  font-size: .9rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.rto-warning-explainer {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 206, 133, .38);
  border-radius: 24px;
  padding: 20px;
  color: #fff2d8;
  background:
    linear-gradient(135deg, rgba(255, 174, 76, .16), rgba(255, 255, 255, .06)),
    rgba(8, 18, 34, .48);
  box-shadow:
    0 20px 46px rgba(2, 8, 23, .22),
    inset 0 1px 0 rgba(255, 255, 255, .10);
}

.rto-warning-explainer strong {
  color: #fff;
  font-size: 1.2rem;
}

.rto-warning-explainer span {
  color: #ffe9c2;
  line-height: 1.45;
}

.rto-status {
  color: #cfe2fb;
}

.warning-bar .warning-text {
  white-space: normal;
}

.warning-key {
  display: none;
}

.controlled-content {
  margin-top: 0;
}

.calculator-card {
  width: min(760px, 100%);
  display: grid;
  gap: 20px;
  border: 1px solid rgba(153, 188, 231, .58);
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(39, 150, 239, .12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .99), rgba(245, 250, 255, .97));
  box-shadow:
    0 26px 70px rgba(28, 48, 82, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .88);
}

.calculator-card::after {
  display: none;
}

.calculator-screen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  border: 0;
  border-radius: 24px;
  padding: 18px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(70, 158, 255, .30), transparent 42%),
    linear-gradient(135deg, #142b4e, #0d1b31 72%);
  box-shadow:
    0 20px 42px rgba(13, 27, 49, .22),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

.calculator-kicker {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 950;
  letter-spacing: -.035em;
}

.calc-result {
  flex: 0 0 auto;
  min-width: 116px;
  min-height: 52px;
  border: 1px solid rgba(169, 217, 255, .64);
  border-radius: 18px;
  padding: 10px 18px;
  color: #0b1e35;
  background: linear-gradient(180deg, #fff, #e4f5ff);
  font-size: 2rem;
  font-weight: 950;
  text-align: center;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .9);
}

.calc-result:empty {
  opacity: 0;
  transform: scale(.96);
}

.calculator-line {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 34px minmax(150px, 1fr) 34px minmax(170px, .9fr);
  align-items: end;
  gap: 14px;
}

.calculator-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.calculator-field span:first-child {
  color: #3c4c65;
  font-size: .83rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calc-editable {
  display: block;
  width: 100%;
  height: 86px;
  min-height: 86px;
  border: 1px solid #bdd4ee;
  border-radius: 22px;
  padding: 0 16px;
  color: #0c1b30;
  background:
    linear-gradient(180deg, #ffffff, #f6fbff);
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 84px;
  text-align: center;
  caret-color: #2796ef;
  box-shadow:
    inset 0 2px 7px rgba(15, 23, 42, .045),
    0 13px 26px rgba(38, 67, 104, .08);
}

.calc-editable:empty::before {
  content: "";
}

.calc-editable:focus {
  border-color: #2796ef;
  outline: 4px solid rgba(39, 150, 239, .18);
  background: #fff;
  box-shadow:
    inset 0 2px 7px rgba(15, 23, 42, .035),
    0 0 0 1px rgba(39, 150, 239, .24),
    0 16px 34px rgba(39, 150, 239, .16);
}

.operator {
  padding-bottom: 25px;
  color: #1a2940;
  font-size: 2.15rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  min-width: 170px;
  border: 1px solid #a8d7ff;
  border-radius: 22px;
  padding: 12px 18px;
  color: #0d528b;
  background: linear-gradient(180deg, #f3fbff, #dff1ff);
  font-size: 1.45rem;
  font-weight: 950;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 12px 24px rgba(39, 150, 239, .12);
}

.result-chip:empty {
  opacity: .42;
}

.calculator-actions {
  display: flex;
  gap: 12px;
  padding-top: 0;
}

.calculate-button,
.reset-calc-button {
  min-height: 56px;
  border-radius: 18px;
  padding: 15px 28px;
  font-weight: 950;
}

.rto-plugin-highlight {
  animation: rtoPluginHighlight 900ms ease-in-out 1;
}

@keyframes rtoPluginHighlight {
  0% {
    box-shadow:
      inset 0 0 0 999px rgba(39, 150, 239, 0),
      0 0 0 0 rgba(39, 150, 239, 0);
  }

  28% {
    border-color: #45b7ff;
    background: linear-gradient(180deg, #effaff, #dcf2ff);
    box-shadow:
      inset 0 0 0 999px rgba(39, 150, 239, .11),
      0 0 0 7px rgba(39, 150, 239, .17),
      0 18px 34px rgba(39, 150, 239, .18);
  }

  100% {
    box-shadow:
      inset 0 0 0 999px rgba(39, 150, 239, 0),
      0 0 0 0 rgba(39, 150, 239, 0);
  }
}

.contact-field input.rto-plugin-highlight,
.contact-field textarea.rto-plugin-highlight {
  border-color: #45b7ff;
  background: linear-gradient(180deg, #f3fbff, #e6f6ff);
}

@media (max-width: 880px) {
  .rto-demo-panel {
    grid-template-columns: 1fr;
  }

  .calculator-line {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .operator {
    padding-bottom: 0;
  }

  .result-chip {
    width: 100%;
  }
}

/* v22: align /RTO-simulation/ with site hero, yellow plugin highlight, clearer page copy */
body {
  color: #0f172a;
  background: linear-gradient(180deg, #f5f7ff 0%, #eef4ff 38%, #f8fafc 100%);
}

.rto-demo-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 .45rem 1.35rem rgba(15, 23, 42, .045);
}

.rto-demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}

.rto-demo-brand img {
  border-radius: 12px;
  box-shadow: 0 .35rem .9rem rgba(15, 23, 42, .13);
}

.rto-demo-brand strong,
.rto-demo-brand small {
  display: block;
  line-height: 1.1;
}

.rto-demo-brand small {
  margin-top: 2px;
  color: #64748b;
  font-size: .78rem;
}

.rto-demo-navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.rto-demo-navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 10px;
  padding: 7px 11px;
  color: #334155;
  background: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
  box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .045);
}

.rto-demo-navlinks a:hover {
  color: #0d6efd;
  transform: translateY(-1px);
}

.rto-demo {
  width: min(1180px, calc(100vw - 32px));
  padding: 26px 0 42px;
}

.rto-simulation-hero {
  border-radius: 24px;
  padding: 32px;
}

.rto-simulation-hero .hero-proof-line {
  gap: 8px;
}

.rto-simulation-hero .hero-proof-line span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 999px;
  padding: 7px 11px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: .86rem;
  font-weight: 800;
}

.simulation-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 .85rem 2.2rem rgba(15, 23, 42, .07);
}

.simulation-launch .rto-controls {
  margin: 0;
}

.rto-status {
  min-height: 1.4em;
  margin: 6px 0 0;
  color: #475569;
  font-weight: 700;
}

.rto-button {
  border-radius: 14px;
  min-height: 54px;
  padding: 14px 24px;
  font-weight: 900;
}

.simulation-launch .rto-button-primary {
  min-width: 250px;
  font-size: 1.03rem;
  box-shadow: 0 14px 32px rgba(39, 150, 239, .22);
}

.rto-demo.is-auto-running .rto-button-stop {
  min-width: 250px;
  justify-content: center;
  font-size: 1.03rem;
}

.browser-shell {
  margin-top: 0;
}

.simulation-explainer {
  margin-top: 28px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 26px;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 .85rem 2.2rem rgba(15, 23, 42, .07);
}

.simulation-explainer h2 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -.035em;
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.explainer-card {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 .45rem 1.35rem rgba(15, 23, 42, .05);
}

.explainer-card h3 {
  margin: 0 0 8px;
  color: #10233f;
  font-size: 1.05rem;
}

.explainer-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.rto-plugin-highlight,
.contact-field input.rto-plugin-highlight,
.contact-field textarea.rto-plugin-highlight {
  animation: rtoPluginHighlightYellow 950ms ease-in-out 1;
}

.contact-field input.rto-plugin-highlight,
.contact-field textarea.rto-plugin-highlight {
  border-color: #facc15;
  background: linear-gradient(180deg, #fffbe8, #fff1b8);
}

@keyframes rtoPluginHighlightYellow {
  0% {
    box-shadow:
      inset 0 0 0 999px rgba(250, 204, 21, 0),
      0 0 0 0 rgba(250, 204, 21, 0);
  }

  28% {
    border-color: #facc15;
    background: linear-gradient(180deg, #fffbe8, #fff1b8);
    box-shadow:
      inset 0 0 0 999px rgba(250, 204, 21, .18),
      0 0 0 7px rgba(250, 204, 21, .28),
      0 18px 34px rgba(202, 138, 4, .18);
  }

  100% {
    box-shadow:
      inset 0 0 0 999px rgba(250, 204, 21, 0),
      0 0 0 0 rgba(250, 204, 21, 0);
  }
}

.calculator-card {
  width: min(820px, 100%);
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(39, 150, 239, .10), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.calculator-screen {
  min-height: 72px;
  border-radius: 22px;
  padding: 14px 18px;
}

.calculator-kicker {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.calc-result {
  min-width: 112px;
  min-height: 48px;
  padding: 6px 16px;
  font-size: 1.8rem;
  line-height: 1.05;
}

.calculator-line {
  grid-template-columns: minmax(160px, 1fr) 34px minmax(160px, 1fr) 34px minmax(160px, .8fr);
  gap: 14px;
  align-items: end;
}

.calc-editable {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  min-height: 84px;
  padding: 0 18px;
  font-size: 2.8rem;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

.calc-editable:focus {
  caret-color: #0d6efd;
}

.result-chip {
  min-height: 66px;
  min-width: 160px;
  font-size: 1.7rem;
}

.calculate-button,
.reset-calc-button {
  border-radius: 14px;
}

@media (max-width: 880px) {
  .rto-demo-topbar,
  .simulation-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .rto-demo-navlinks {
    justify-content: flex-start;
  }

  .explainer-grid {
    grid-template-columns: 1fr;
  }

  .simulation-launch .rto-button-primary,
  .rto-demo.is-auto-running .rto-button-stop {
    width: 100%;
  }
}

/* v23 calculator legibility fix: large centred digits in contenteditable fields */
.calculator-card .calculator-line {
  grid-template-columns: minmax(190px, 1fr) 44px minmax(190px, 1fr) 44px minmax(190px, .9fr);
  gap: 18px;
  align-items: end;
}

.calculator-card .calculator-field {
  min-width: 190px;
}

.calculator-card .calculator-field .calc-editable {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  height: 108px !important;
  min-height: 108px !important;
  padding: 0 18px !important;
  font-family: inherit !important;
  font-size: clamp(3rem, 5.2vw, 4.85rem) !important;
  font-weight: 950 !important;
  line-height: 108px !important;
  letter-spacing: -.045em !important;
  text-align: center !important;
  color: #101a2b !important;
  caret-color: #2796ef !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.calculator-card .calculator-field .calc-editable:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 2px rgba(39, 150, 239, .82),
    0 0 0 6px rgba(39, 150, 239, .18),
    0 18px 34px rgba(39, 150, 239, .14) !important;
}

.calculator-card .operator-sign {
  align-self: center;
  padding-bottom: 4px;
  font-size: clamp(2.4rem, 4vw, 3.8rem) !important;
  line-height: 1 !important;
}

.calculator-card .result-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px !important;
  padding: 12px 18px;
  font-size: clamp(1.65rem, 2.9vw, 2.5rem) !important;
  line-height: 1.12;
  text-align: center;
}

@media (max-width: 880px) {
  .calculator-card .calculator-line {
    grid-template-columns: 1fr;
  }

  .calculator-card .calculator-field,
  .calculator-card .result-chip {
    width: 100%;
  }
}


/* v24 final balance: moderate calculator digits, colorful explanation and site footer */
.hero-safe-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 16px;
  padding: 10px 13px;
  color: #12335a;
  background: linear-gradient(180deg, rgba(240, 249, 255, .95), rgba(219, 234, 254, .72));
  font-size: .96rem;
  font-weight: 750;
  box-shadow: 0 .45rem 1.2rem rgba(14, 165, 233, .10);
}

.calculator-card .calculator-line {
  grid-template-columns: minmax(185px, 1fr) 40px minmax(185px, 1fr) 40px minmax(185px, .9fr) !important;
  gap: 16px !important;
  align-items: end !important;
}

.calculator-card .calculator-field {
  min-width: 185px !important;
}

.calculator-card .calculator-field .calc-editable {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 96px !important;
  min-height: 96px !important;
  padding: 0 18px !important;
  font-size: clamp(2.25rem, 3.8vw, 3.25rem) !important;
  line-height: 1 !important;
  letter-spacing: -.035em !important;
  overflow: hidden !important;
}

.calculator-card .operator {
  align-self: end !important;
  padding-bottom: 25px !important;
  font-size: clamp(2rem, 3vw, 2.8rem) !important;
  line-height: 1 !important;
}

.calculator-card .result-chip {
  min-height: 96px !important;
  min-width: 185px !important;
  padding: 10px 18px !important;
  font-size: clamp(1.45rem, 2.3vw, 2rem) !important;
  line-height: 1.12 !important;
}

.calc-result {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem) !important;
}

.simulation-explainer {
  background:
    radial-gradient(circle at 10% 0%, rgba(39, 150, 239, .13), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(124, 58, 237, .11), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7fbff) !important;
}

.explainer-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(59, 130, 246, .16) !important;
}

.explainer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2796ef, #8b5cf6);
}

.explainer-card:nth-child(2)::before {
  background: linear-gradient(180deg, #22c55e, #2796ef);
}

.explainer-card:nth-child(3)::before {
  background: linear-gradient(180deg, #facc15, #f97316);
}

.explainer-card:nth-child(4)::before {
  background: linear-gradient(180deg, #14b8a6, #2563eb);
}

.explainer-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #0b2444 !important;
}

.explainer-card h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .14);
}

.rto-demo-footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  padding: 18px 22px;
  color: #475569;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .06);
}

.rto-demo-footer strong,
.rto-demo-footer span {
  display: block;
}

.rto-demo-footer strong {
  color: #0f172a;
  font-size: 1rem;
}

.rto-demo-footer span {
  margin-top: 3px;
  font-size: .9rem;
}

.rto-demo-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rto-demo-footer a {
  color: #2563eb;
  font-weight: 850;
  text-decoration: none;
}

.rto-demo-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 880px) {
  .calculator-card .calculator-line {
    grid-template-columns: 1fr !important;
  }

  .calculator-card .operator {
    padding-bottom: 0 !important;
  }

  .rto-demo-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v26 separation guard: the plugin simulation stylesheet must not paint the public page background. */
html,
body {
  background: #fff !important;
}

.rto-simulation-page {
  color: #0f172a !important;
}

/* v27 Demo2 wow polish: premium second controlled tab inside the site-connected simulation. */
.page-controlled-b {
  min-height: 760px !important;
  background:
    radial-gradient(circle at 82% 10%, rgba(124, 58, 237, .18), transparent 34%),
    radial-gradient(circle at 18% 80%, rgba(39, 150, 239, .16), transparent 35%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 52%, #fbf7ff 100%) !important;
}

.page-controlled-b::before {
  content: "";
  position: absolute;
  inset: 56px 0 0;
  opacity: .72;
  background:
    linear-gradient(90deg, rgba(39, 150, 239, .075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(124, 58, 237, .065) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.page-controlled-b .warning-bar {
  background: linear-gradient(90deg, #ffcf79, #ffdca0 44%, #ffe9c7) !important;
  box-shadow: 0 10px 28px rgba(146, 90, 18, .18) !important;
}

.demo2-workspace {
  position: relative;
  z-index: 1;
  width: min(860px, 100%) !important;
  margin-top: 58px !important;
  overflow: hidden;
  border: 1px solid rgba(112, 146, 194, .38) !important;
  border-radius: 34px !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 94% 8%, rgba(124, 58, 237, .16), transparent 34%),
    radial-gradient(circle at 12% 14%, rgba(39, 150, 239, .16), transparent 30%),
    rgba(255, 255, 255, .94) !important;
  box-shadow:
    0 34px 80px rgba(23, 43, 77, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(8px);
}

.demo2-workspace::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 150, 239, .24), transparent 70%);
  pointer-events: none;
}

.demo2-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 32px 18px;
}

.demo2-hero .mini-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  border: 1px solid rgba(124, 58, 237, .18);
  border-radius: 999px;
  padding: 7px 12px;
  color: #4c1d95 !important;
  background: rgba(245, 243, 255, .92);
  font-size: .77rem;
  letter-spacing: .08em;
}

.demo2-hero .mini-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #805ad5;
  box-shadow: 0 0 0 6px rgba(128, 90, 213, .14);
}

.demo2-hero h2 {
  margin: 0 0 10px !important;
  color: #0b1730 !important;
  font-size: clamp(2rem, 3.2vw, 3.05rem) !important;
  line-height: .98 !important;
  letter-spacing: -.06em !important;
}

.demo2-hero p {
  max-width: 590px;
  margin: 0 !important;
  color: #52637a !important;
  font-size: 1.03rem;
  line-height: 1.48 !important;
}

.demo2-live-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(39, 150, 239, .20);
  border-radius: 999px;
  padding: 10px 14px;
  color: #0b4f85;
  background: linear-gradient(180deg, #f0f9ff, #dff2ff);
  box-shadow: 0 14px 30px rgba(39, 150, 239, .14);
  font-size: .9rem;
  white-space: nowrap;
}

.demo2-live-badge span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, .13);
}

.demo2-flow-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 32px 18px;
}

.demo2-flow-strip span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  padding: 12px 10px;
  color: #334155;
  background: rgba(248, 250, 252, .82);
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.demo2-flow-strip span::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2796ef, #805ad5);
}

.demo2-calculator {
  position: relative;
  z-index: 1;
  width: auto !important;
  margin: 0 32px 32px !important;
  border: 1px solid rgba(14, 35, 68, .12) !important;
  border-radius: 30px !important;
  padding: 22px !important;
  background:
    linear-gradient(145deg, rgba(12, 25, 48, .96), rgba(17, 35, 68, .96)),
    radial-gradient(circle at 16% 12%, rgba(39, 150, 239, .26), transparent 34%) !important;
  box-shadow:
    0 26px 56px rgba(12, 25, 48, .24),
    inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}

.demo2-calculator::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  pointer-events: none;
}

.demo2-calculator .calculator-screen {
  min-height: 88px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 24px !important;
  padding: 16px 18px !important;
  color: #eff6ff !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(39, 150, 239, .26), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(30, 41, 59, .86)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.demo2-calculator .calculator-kicker {
  color: #eff6ff !important;
  font-size: clamp(1.22rem, 2.2vw, 1.75rem) !important;
  letter-spacing: -.035em !important;
}

.demo2-calculator .calc-result {
  min-width: 122px !important;
  min-height: 58px !important;
  border: 1px solid rgba(147, 197, 253, .46);
  border-radius: 20px !important;
  padding: 8px 18px !important;
  color: #082f49 !important;
  background: linear-gradient(180deg, #ffffff, #dff2ff) !important;
  font-size: clamp(1.9rem, 3vw, 2.65rem) !important;
  box-shadow: 0 16px 34px rgba(39, 150, 239, .22), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

.demo2-calculator .calculator-line {
  display: grid !important;
  grid-template-columns: minmax(150px, 1fr) 42px minmax(150px, 1fr) 42px minmax(190px, 1.1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  margin-top: 4px;
}

.demo2-calculator .calculator-field {
  min-width: 0 !important;
  gap: 10px !important;
}

.demo2-calculator .calculator-field span:first-child {
  color: #bfdbfe !important;
  font-size: .78rem !important;
  font-weight: 950 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

.demo2-calculator .calc-editable {
  width: 100% !important;
  height: 116px !important;
  min-height: 116px !important;
  border: 1px solid rgba(147, 197, 253, .34) !important;
  border-radius: 24px !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 150, 239, .22), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045)) !important;
  font-size: clamp(3rem, 5vw, 4.55rem) !important;
  text-shadow: 0 5px 24px rgba(39, 150, 239, .24) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 18px 34px rgba(0, 0, 0, .14) !important;
}

.demo2-calculator .calc-editable:empty::before {
  content: "0";
  color: rgba(226, 232, 240, .32);
}

.demo2-calculator .calc-editable:focus {
  border-color: #7dd3fc !important;
  box-shadow:
    inset 0 0 0 2px rgba(125, 211, 252, .72),
    0 0 0 6px rgba(39, 150, 239, .18),
    0 20px 42px rgba(39, 150, 239, .20) !important;
}

.demo2-calculator .operator {
  display: grid;
  align-self: end !important;
  place-items: center;
  height: 116px;
  padding: 0 !important;
  color: #bfdbfe !important;
  font-size: clamp(2.2rem, 3vw, 3rem) !important;
  text-shadow: 0 8px 24px rgba(39, 150, 239, .20);
}

.demo2-calculator .result-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  min-height: 116px !important;
  border: 1px solid rgba(125, 211, 252, .38) !important;
  border-radius: 24px !important;
  padding: 14px 16px !important;
  color: #075985 !important;
  background:
    linear-gradient(180deg, rgba(240, 249, 255, .98), rgba(186, 230, 253, .92)) !important;
  font-size: clamp(1.45rem, 2.35vw, 2.15rem) !important;
  font-weight: 950 !important;
  box-shadow:
    0 18px 34px rgba(14, 165, 233, .18),
    inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

.demo2-calculator .result-chip:empty::before {
  content: "Result";
  color: rgba(7, 89, 133, .42);
}

.demo2-calculator .calculator-actions {
  margin-top: 2px;
}

.demo2-calculator .calculate-button,
.demo2-calculator .reset-calc-button {
  min-height: 50px;
  border-radius: 17px !important;
  padding: 13px 24px !important;
  font-weight: 950 !important;
}

.demo2-calculator .calculate-button {
  background: linear-gradient(135deg, #2796ef, #805ad5) !important;
  box-shadow: 0 16px 34px rgba(39, 150, 239, .28) !important;
}

.demo2-calculator .reset-calc-button {
  color: #e2e8f0 !important;
  border-color: rgba(226, 232, 240, .22) !important;
  background: rgba(255, 255, 255, .08) !important;
  box-shadow: none !important;
}

@media (max-width: 980px) {
  .demo2-hero {
    flex-direction: column;
  }

  .demo2-flow-strip,
  .demo2-calculator .calculator-line {
    grid-template-columns: 1fr !important;
  }

  .demo2-calculator .operator {
    height: auto;
    min-height: 42px;
  }
}

/* v27.1 Demo2 centering guard. */
.page-controlled-b .demo2-workspace {
  margin: 58px auto 0 !important;
}


/* v28 Demo2 compact refinement: smaller, lighter, clearer, result at the bottom. */
.page-controlled-b {
  min-height: 640px !important;
  background:
    radial-gradient(circle at 82% 10%, rgba(124, 58, 237, .10), transparent 30%),
    radial-gradient(circle at 18% 80%, rgba(39, 150, 239, .08), transparent 30%),
    linear-gradient(135deg, #fbfdff 0%, #f5f9ff 55%, #ffffff 100%) !important;
}

.page-controlled-b::before {
  opacity: .42;
  background-size: 40px 40px;
}

.page-controlled-b .controlled-content {
  margin-top: 48px !important;
}

.page-controlled-b .demo2-workspace {
  width: min(700px, 100%) !important;
  margin: 48px auto 0 !important;
  border-radius: 26px !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 20px 46px rgba(15, 23, 42, .10), inset 0 0 0 1px rgba(255, 255, 255, .85) !important;
  backdrop-filter: none;
}

.page-controlled-b .demo2-workspace::after {
  display: none;
}

.page-controlled-b .demo2-hero {
  gap: 16px;
  padding: 22px 24px 10px;
}

.page-controlled-b .demo2-hero h2 {
  margin: 0 0 6px !important;
  font-size: clamp(1.45rem, 2.3vw, 2rem) !important;
  letter-spacing: -.04em !important;
}

.page-controlled-b .demo2-hero p {
  max-width: 500px;
  font-size: .95rem;
  line-height: 1.45 !important;
}

.page-controlled-b .demo2-live-badge {
  padding: 8px 12px;
  font-size: .82rem;
}

.page-controlled-b .demo2-calculator {
  margin: 0 24px 24px !important;
  border-radius: 24px !important;
  padding: 18px !important;
  border: 1px solid rgba(191, 219, 254, .92) !important;
  background: linear-gradient(180deg, #f8fbff, #eef6ff) !important;
  box-shadow: 0 18px 34px rgba(39, 150, 239, .10), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

.page-controlled-b .demo2-calculator::before {
  inset: 10px;
  border: 1px solid rgba(39, 150, 239, .08);
  border-radius: 18px;
}

.page-controlled-b .demo2-calculator .calculator-screen {
  min-height: 0 !important;
  display: block;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #0f172a !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-controlled-b .demo2-calculator .calculator-kicker {
  color: #16325c !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}

.page-controlled-b .demo2-calculator .calculator-line {
  grid-template-columns: minmax(150px, 1fr) 34px minmax(150px, 1fr) !important;
  gap: 12px !important;
  margin-top: 2px;
}

.page-controlled-b .demo2-calculator .calculator-field span:first-child {
  color: #52637a !important;
  font-size: .76rem !important;
  letter-spacing: .10em !important;
}

.page-controlled-b .demo2-calculator .calc-editable {
  height: 84px !important;
  min-height: 84px !important;
  border: 1px solid rgba(148, 163, 184, .42) !important;
  border-radius: 18px !important;
  color: #0f172a !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  font-size: clamp(2.3rem, 4.2vw, 3.2rem) !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04), 0 8px 22px rgba(15, 23, 42, .04) !important;
}

.page-controlled-b .demo2-calculator .calc-editable:empty::before {
  color: rgba(100, 116, 139, .35);
}

.page-controlled-b .demo2-calculator .calc-editable:focus {
  border-color: #60a5fa !important;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .35), 0 0 0 4px rgba(39, 150, 239, .12), 0 10px 24px rgba(39, 150, 239, .10) !important;
}

.page-controlled-b .demo2-calculator .operator {
  align-self: center !important;
  height: auto;
  min-height: 84px;
  color: #3b82f6 !important;
  font-size: 2rem !important;
  text-shadow: none;
}

.page-controlled-b .demo2-calculator .calculator-actions {
  margin-top: 12px;
  gap: 10px;
}

.page-controlled-b .demo2-calculator .calculate-button,
.page-controlled-b .demo2-calculator .reset-calc-button {
  min-height: 44px;
  border-radius: 14px !important;
  padding: 10px 18px !important;
  font-size: .96rem;
}

.page-controlled-b .demo2-calculator .calculate-button {
  background: linear-gradient(135deg, #2f80ed, #4f46e5) !important;
  box-shadow: 0 12px 26px rgba(47, 128, 237, .18) !important;
}

.page-controlled-b .demo2-calculator .reset-calc-button {
  color: #334155 !important;
  border: 1px solid rgba(148, 163, 184, .42) !important;
  background: linear-gradient(180deg, #ffffff, #f3f7fb) !important;
}

.demo2-result-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border: 1px solid rgba(147, 197, 253, .72);
  border-radius: 18px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}

.demo2-result-label {
  color: #355174;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.page-controlled-b .demo2-calculator .calc-result {
  min-width: 86px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #1d4ed8 !important;
  background: transparent !important;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem) !important;
  font-weight: 950 !important;
  text-align: right;
  box-shadow: none !important;
}

.demo2-formula-cache {
  display: none !important;
}

@media (max-width: 980px) {
  .page-controlled-b .demo2-workspace {
    width: min(100%, 700px) !important;
  }

  .page-controlled-b .demo2-calculator .calculator-line {
    grid-template-columns: 1fr !important;
  }

  .page-controlled-b .demo2-calculator .operator {
    min-height: 28px;
  }

  .demo2-result-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-controlled-b .demo2-calculator .calc-result {
    text-align: left;
  }
}


/* v29 Demo2 compactness pass + clearer master result recovery cue. */
.page-controlled-b .demo2-workspace {
  width: min(640px, 100%) !important;
  margin-top: 42px !important;
}

.page-controlled-b .demo2-hero {
  padding: 18px 20px 8px;
}

.page-controlled-b .demo2-hero .mini-title {
  margin-bottom: 10px !important;
  padding: 6px 10px;
  font-size: .72rem;
}

.page-controlled-b .demo2-hero h2 {
  font-size: clamp(1.28rem, 2vw, 1.72rem) !important;
}

.page-controlled-b .demo2-hero p {
  font-size: .88rem;
}

.page-controlled-b .demo2-calculator {
  margin: 0 20px 20px !important;
  padding: 16px !important;
}

.page-controlled-b .demo2-calculator .calculator-kicker {
  font-size: 1rem !important;
}

.page-controlled-b .demo2-calculator .calculator-line {
  grid-template-columns: minmax(130px, 1fr) 28px minmax(130px, 1fr) !important;
  gap: 10px !important;
}

.page-controlled-b .demo2-calculator .calculator-field {
  gap: 7px !important;
}

.page-controlled-b .demo2-calculator .calc-editable {
  height: 68px !important;
  min-height: 68px !important;
  border-radius: 16px !important;
  font-size: clamp(1.85rem, 3vw, 2.45rem) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04), 0 6px 16px rgba(15, 23, 42, .03) !important;
}

.page-controlled-b .demo2-calculator .operator {
  min-height: 68px;
  font-size: 1.7rem !important;
}

.page-controlled-b .demo2-calculator .calculator-actions {
  margin-top: 10px;
}

.page-controlled-b .demo2-calculator .calculate-button,
.page-controlled-b .demo2-calculator .reset-calc-button {
  min-height: 40px;
  padding: 9px 16px !important;
  font-size: .92rem;
}

.demo2-result-panel {
  margin-top: 12px;
  border-radius: 16px;
  padding: 10px 14px;
}

.demo2-result-label {
  font-size: .78rem;
}

.page-controlled-b .demo2-calculator .calc-result {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem) !important;
}

.page-master .calculator-report {
  position: relative;
  overflow: hidden;
}

.page-master .calculator-report::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(39, 150, 239, .16), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}

.page-master .calculator-report.click-flash::after {
  animation: masterReportSweep 700ms ease-out;
}

@keyframes masterReportSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* v30 plugin-layer fidelity: warning bar and security overlay stay stable while the simulated page scrolls. */
.page-controlled .warning-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  transform: translateZ(0);
  will-change: transform;
}

.page-controlled .warning-pill {
  z-index: 41 !important;
  transform: translateZ(0);
  will-change: top, left, right, transform;
}

.viewport {
  isolation: isolate;
}


/* v31 minimal correction: simulated cursors must stay above every simulated plugin layer. */
.mouse-pointer,
.moving-cursor {
  z-index: 9999 !important;
}


/* v32 plugin highlight fidelity: no form highlight during manual typing; movingCursor uses the plain default yellow fill. */
.rto-plugin-highlight,
.contact-field input.rto-plugin-highlight,
.contact-field textarea.rto-plugin-highlight {
  animation: none !important;
  border-color: #eab308 !important;
  background: #fff176 !important;
  background-color: #fff176 !important;
  box-shadow: none !important;
}
