/* RHiD — demonstração visual RealPonto
   Arquivo complementar, carregado somente em sistema-rhid.html.
   Mantenha css/style.css e js/script.js do seu site. */

body.rhid-page {
  --rhid-ink: var(--ink, #132238);
  --rhid-navy: var(--dark-site, #06172c);
  --rhid-accent: var(--rp, #25237b);
  --rhid-blue: var(--blue, #1233b3);
  --rhid-muted: var(--muted, #617086);
  --rhid-line: var(--line, #dfe7f0);
  --rhid-soft: var(--soft, #f4f8fc);
}
body.rhid-page .rhid-content *,
body.rhid-page .rhid-zoom-dialog * { box-sizing: border-box; }
body.rhid-page .rhid-content { overflow: clip; }
body.rhid-page .rhid-content [hidden],
body.rhid-page .rhid-zoom-dialog [hidden] { display: none !important; }
body.rhid-page .rhid-content svg,
body.rhid-page .rhid-zoom-dialog svg { width: 21px; height: 21px; flex: 0 0 auto; }
body.rhid-page .rhid-content p { color: var(--rhid-muted); }
body.rhid-page .rhid-content a { text-decoration: none; }
body.rhid-page .rhid-content button,
body.rhid-page .rhid-zoom-dialog button { font: inherit; cursor: pointer; }
body.rhid-page .rhid-content button:disabled { cursor: default; opacity: .42; }
body.rhid-page .rhid-content :focus-visible,
body.rhid-page .rhid-zoom-dialog :focus-visible {
  outline: 3px solid #228aaa; outline-offset: 4px;
}
body.rhid-page .rhid-skip {
  position: fixed; top: 12px; left: 12px; z-index: 9999; padding: 12px 20px;
  border-radius: 8px; background: white; color: #132238; transform: translateY(-180%);
}
body.rhid-page .rhid-skip:focus { transform: translateY(0); }
body.rhid-page .rhid-js-only { display: none; }
body.rhid-page.rhid-ready .rhid-js-only { display: flex; }
body.rhid-page .rhid-section { padding: 96px 0; }
body.rhid-page .rhid-soft { background: var(--rhid-soft); }
body.rhid-page .rhid-content h1,
body.rhid-page .rhid-content h2,
body.rhid-page .rhid-content h3 { color: var(--rhid-ink); }
body.rhid-page .rhid-content h2 {
  margin: 8px 0 20px; font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.09; letter-spacing: -.04em;
}
body.rhid-page .rhid-content .eyebrow { font-size: .75rem; font-weight: 900; letter-spacing: .10em; }
body.rhid-page .rhid-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
body.rhid-page .rhid-content .rhid-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 23px; min-height: 50px; max-width: 100%; border-radius: 999px;
  border: 1px solid transparent; font-size: .92rem; font-weight: 700;
  line-height: 1.3; text-align: center; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
body.rhid-page .rhid-content .rhid-btn.rhid-js-only { display: none; }
body.rhid-page.rhid-ready .rhid-content .rhid-btn.rhid-js-only { display: inline-flex; }
body.rhid-page .rhid-btn-primary { background: var(--rhid-accent); color: white; }
body.rhid-page .rhid-btn-primary:hover { background: var(--rhid-blue); }
body.rhid-page .rhid-btn-secondary { background: white; color: var(--rhid-ink); border-color: var(--rhid-line) !important; }
body.rhid-page .rhid-btn-secondary:hover { border-color: var(--rhid-accent) !important; background: #f9faff; }
body.rhid-page .rhid-text-button { border: 0; background: transparent; color: var(--rhid-accent); text-decoration: underline; padding: 12px; }
body.rhid-page .rhid-icon-label {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--rhid-line);
  border-radius: 12px; background: white; color: var(--rhid-ink); font-size: .85rem !important;
  font-weight: 600 !important; line-height: 1.25;
}
body.rhid-page .rhid-icon-label:hover { border-color: var(--rhid-accent); }

/* Abertura */
body.rhid-page .rhid-hero {
  padding: 32px 0 78px;
  background: radial-gradient(ellipse at 92% 12%, rgba(30,182,217,.13), transparent 44%),
              linear-gradient(155deg, #f8fbff, #fff 65%);
}
body.rhid-page .rhid-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 11px;
  margin-bottom: 48px; color: var(--rhid-muted); font-size: .80rem;
}
body.rhid-page .rhid-breadcrumb a { color: var(--rhid-muted); }
body.rhid-page .rhid-breadcrumb a:hover { color: var(--rhid-accent); text-decoration: underline; }
body.rhid-page .rhid-breadcrumb [aria-current] { color: var(--rhid-accent); font-weight: 600; }
body.rhid-page .rhid-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 46px; align-items: center; }
body.rhid-page .rhid-hero-grid > * { min-width: 0; }
body.rhid-page .rhid-hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.75rem); line-height: 1.01; letter-spacing: -.05em; margin: 14px 0 24px; }
body.rhid-page .rhid-hero h1 em { color: var(--rhid-accent); font-style: normal; }
body.rhid-page .rhid-hero .lead { font-size: 1.13rem; line-height: 1.65; margin: 0 0 30px; }
body.rhid-page .rhid-smallprint { margin: 19px 0 0; font-size: .79rem; }
body.rhid-page .rhid-smallprint span { padding: 0 6px; }
body.rhid-page .rhid-hero-preview { position: relative; padding-top: 16px; }
body.rhid-page .rhid-window {
  overflow: hidden; border: 1px solid var(--rhid-line); border-radius: 20px;
  box-shadow: 0 24px 62px rgba(7,28,53,.12); background: white;
}
body.rhid-page .rhid-window-bar {
  min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 15px; border-bottom: 1px solid var(--rhid-line); color: var(--rhid-muted); font-size: .71rem;
}
body.rhid-page .rhid-window-bar b { font-weight: inherit; padding: 0 4px; }
body.rhid-page .rhid-window-dots { display: flex; gap: 5px; }
body.rhid-page .rhid-window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b9c9db; }
body.rhid-page .rhid-preview-label { padding: 4px 7px; background: var(--rhid-soft); border-radius: 5px; font-size: .57rem; letter-spacing: .06em; }
body.rhid-page .rhid-preview-image { position: relative; display: block; }
body.rhid-page .rhid-preview-image img { width: 100%; height: auto; display: block; }
body.rhid-page .rhid-preview-play {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%);
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; border: 5px solid white; color: white; background: var(--rhid-accent);
  box-shadow: 0 8px 26px rgba(7,28,53,.22);
}
body.rhid-page .rhid-preview-play svg { width: 22px; height: 22px; }
body.rhid-page .rhid-preview-caption { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--rhid-muted); margin-top: 20px; font-size: .78rem; text-align: center; }
body.rhid-page .rhid-preview-caption svg { width: 18px; color: #168558; }

/* Estrutura da demonstração */
body.rhid-page .rhid-explore { scroll-margin-top: 120px; }
body.rhid-page .rhid-section-heading { display: grid; grid-template-columns: 1.12fr 1fr; gap: 60px; align-items: end; margin-bottom: 36px; }
body.rhid-page .rhid-section-heading h2 { margin-bottom: 0; }
body.rhid-page .rhid-section-heading > p { margin: 0 0 2px; max-width: 450px; line-height: 1.65; font-size: 1rem; }
body.rhid-page .rhid-demo { border: 1px solid var(--rhid-line); border-radius: 24px; background: white; box-shadow: 0 20px 60px rgba(7,28,53,.08); overflow: hidden; scroll-margin-top: 108px; }
body.rhid-page .rhid-demo-topbar { padding: 18px 24px; background: var(--rhid-navy); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; }
body.rhid-page .rhid-demo-topbar > div { display: flex; gap: 17px; align-items: center; }
body.rhid-page .rhid-demo-topbar strong { font-size: 1.5rem; font-weight: 900; letter-spacing: -.04em; }
body.rhid-page .rhid-demo-topbar > div > span { padding-left: 17px; border-left: 1px solid #334257; font-size: .84rem; color: #c6d8ec; }
body.rhid-page .rhid-demo-topbar .rhid-icon-label { background: rgba(255,255,255,.09); color: white; border-color: rgba(255,255,255,.24); }
body.rhid-page .rhid-demo-topbar .rhid-icon-label:hover { background: rgba(255,255,255,.16); }
body.rhid-page.rhid-ready .rhid-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--rhid-line); background: #f6f8fc; }
body.rhid-page .rhid-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 12px 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--rhid-muted); font-size: .95rem !important; font-weight: 600 !important; }
body.rhid-page .rhid-tab span { font-size: .70rem; font-weight: 700; }
body.rhid-page .rhid-tab[aria-selected="true"] { background: white; border-bottom-color: var(--rhid-accent); color: var(--rhid-accent); }
body.rhid-page .rhid-tab:hover { background: white; }
body.rhid-page .rhid-tab:focus-visible { outline-offset: -5px; }
body.rhid-page .rhid-panel { padding: 0; margin: 0; }
body.rhid-page .rhid-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px 22px; }
body.rhid-page .rhid-panel-heading h3 { font-size: 1.28rem; margin: 0 0 6px; line-height: 1.22; letter-spacing: -.018em; }
body.rhid-page .rhid-panel-heading p { margin: 0; font-size: .88rem; line-height: 1.55; }
body.rhid-page .rhid-panel-heading .rhid-icon-label { flex-shrink: 0; }
body.rhid-page .rhid-screen-figure { margin: 0; padding: 0 24px; }
body.rhid-page .rhid-screen { position: relative; border: 1px solid var(--rhid-line); border-radius: 10px; background: #f3f4f9; overflow: hidden; }
body.rhid-page .rhid-screen > img { display: block; width: 100%; height: auto; max-width: none; }
body.rhid-page.rhid-ready .rhid-highlight {
  display: block; position: absolute; left: var(--spot-left,14%); top: var(--spot-top,14%);
  width: var(--spot-width,53%); height: var(--spot-height,20%);
  border: 2px solid #167da4; border-radius: 6px; background: rgba(33,159,194,.045); pointer-events: none;
}
body.rhid-page.rhid-ready .rhid-hotspots { display: block; position: absolute; inset: 0; pointer-events: none; }
body.rhid-page .rhid-hotspot {
  position: absolute; left: var(--hot-x); top: var(--hot-y); transform: translate(-50%,-50%);
  pointer-events: auto; display: grid; place-items: center; padding: 0; width: 32px; height: 32px;
  border: 2px solid white; border-radius: 50%; color: white; background: var(--rhid-accent);
  font-size: .8rem !important; font-weight: 700 !important; line-height: 1; box-shadow: 0 3px 10px rgba(7,28,53,.25);
}
body.rhid-page .rhid-hotspot[aria-pressed="true"] { background: #0b7795; box-shadow: 0 0 0 4px rgba(12,131,164,.20); }
body.rhid-page .rhid-screen-figure figcaption { padding: 10px 4px 12px; color: var(--rhid-muted); font-size: .72rem; line-height: 1.45; }
body.rhid-page .rhid-demo-disclaimer { display: flex; gap: 12px; align-items: flex-start; max-width: 1000px; margin: 22px 0 0; font-size: .76rem; line-height: 1.6; }
body.rhid-page .rhid-demo-disclaimer svg { margin-top: 3px; width: 17px; height: 17px; }
body.rhid-page .rhid-noscript { padding: 16px; border: 1px solid var(--rhid-line); border-radius: 10px; }

/* Tour: exclusivamente manual, sem temporizadores e sem chamadas a um sistema real. */
body.rhid-page .rhid-tour-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; background: #eef4fb; border-bottom: 1px solid var(--rhid-line); }
body.rhid-page .rhid-tour-banner > div { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
body.rhid-page .rhid-tour-chip { color: var(--rhid-accent); font-size: .62rem; letter-spacing: .06em; font-weight: 900; }
body.rhid-page .rhid-tour-banner strong { font-weight: 600; font-size: .83rem; color: var(--rhid-ink); }
body.rhid-page .rhid-exit { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 0; color: var(--rhid-accent); font-size: .78rem !important; white-space: nowrap; }
body.rhid-page .rhid-exit svg { width: 16px; height: 16px; }
body.rhid-page .rhid-tour-progress { display: flex; gap: 3px; }
body.rhid-page .rhid-tour-progress button { border: 0; border-radius: 8px; background: transparent; color: var(--rhid-muted); padding: 0; width: 34px; height: 42px; display: grid; place-items: center; }
body.rhid-page .rhid-tour-progress button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .7rem; background: #e4eaf4; }
body.rhid-page .rhid-tour-progress button[aria-current="step"] span { color: white; background: var(--rhid-accent); }

/* Conteúdo comercial complementar */
body.rhid-page .rhid-value-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
body.rhid-page .rhid-value-grid article { padding: 30px; background: white; border: 1px solid var(--rhid-line); border-radius: 22px; }
body.rhid-page .rhid-value-grid article > svg { color: var(--rhid-accent); width: 30px; height: 30px; margin-bottom: 20px; }
body.rhid-page .rhid-value-grid h3 { font-size: 1.25rem; margin: 0 0 12px; line-height: 1.2; }
body.rhid-page .rhid-value-grid p { font-size: .95rem; margin: 0 0 22px; line-height: 1.7; }
body.rhid-page .rhid-value-grid a { display: inline-flex; align-items: center; gap: 10px; color: var(--rhid-accent); font-weight: 600; font-size: .88rem; }
body.rhid-page .rhid-support-box { display: grid; grid-template-columns: 1.12fr .88fr; gap: 65px; padding: 54px; background: var(--rhid-navy); color: white; border-radius: 28px; }
body.rhid-page .rhid-support-box h2 { color: white; font-size: clamp(2rem,2.9vw,2.6rem); }
body.rhid-page .rhid-support-box p { color: #c3d3e6; line-height: 1.7; }
body.rhid-page .rhid-support-box .eyebrow { color: #66d6eb; }
body.rhid-page .rhid-support-link { display: inline-flex; gap: 10px; align-items: center; color: white; border-bottom: 1px solid #66788e; padding-bottom: 5px; margin-top: 14px; font-weight: 600; font-size: .91rem; }
body.rhid-page .rhid-support-steps { display: grid; align-content: center; gap: 25px; }
body.rhid-page .rhid-support-steps > div { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding-bottom: 23px; border-bottom: 1px solid #314056; }
body.rhid-page .rhid-support-steps > div:last-child { border: 0; padding-bottom: 0; }
body.rhid-page .rhid-support-steps > div > span { color: #66d6eb; font-size: .8rem; font-weight: 900; padding-top: 4px; }
body.rhid-page .rhid-support-steps h3 { color: white; font-size: 1.05rem; margin: 0 0 6px; }
body.rhid-page .rhid-support-steps p { margin: 0; font-size: .87rem; }
body.rhid-page .rhid-faq-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 76px; }
body.rhid-page .rhid-faq-grid > div > p { font-size: 1rem; line-height: 1.7; }
body.rhid-page .rhid-faq-list { border-top: 1px solid var(--rhid-line); }
body.rhid-page .rhid-faq-list details { border-bottom: 1px solid var(--rhid-line); }
body.rhid-page .rhid-faq-list summary { position: relative; padding: 22px 32px 22px 0; list-style: none; cursor: pointer; font-weight: 600; line-height: 1.5; color: var(--rhid-ink); }
body.rhid-page .rhid-faq-list summary::-webkit-details-marker { display: none; }
body.rhid-page .rhid-faq-list summary::after { content: '+'; position: absolute; right: 0; top: 17px; font-size: 1.5rem; color: var(--rhid-accent); }
body.rhid-page .rhid-faq-list details[open] summary::after { content: '−'; }
body.rhid-page .rhid-faq-list p { margin: 0 0 24px; padding-right: 28px; font-size: .95rem; line-height: 1.7; }
body.rhid-page .rhid-final { text-align: center; }
body.rhid-page .rhid-final h2 { max-width: 740px; margin: 14px auto 18px; }
body.rhid-page .rhid-final .rhid-actions { justify-content: center; margin-top: 30px; }
body.rhid-page .rhid-product-credit { font-size: .73rem; margin: 26px 0 0; }

/* Ampliação acessível: dialog nativo, fechado por Esc e com foco restituído. */
body.rhid-page .rhid-zoom-dialog:not([open]) { display: none; }
body.rhid-page .rhid-zoom-dialog {
  inset: 0; margin: auto; padding: 0; border: 1px solid var(--rhid-line); border-radius: 16px;
  width: min(1600px, calc(100vw - 32px)); max-width: none;
  height: min(1000px, calc(100vh - 32px)); height: min(1000px, calc(100dvh - 32px)); max-height: none;
  background: white; color: var(--rhid-ink); box-shadow: 0 20px 80px #0005; overflow: hidden;
}
body.rhid-page .rhid-zoom-dialog[open] { display: flex; flex-direction: column; }
body.rhid-page .rhid-zoom-dialog::backdrop { background: rgba(3,16,34,.8); }
body.rhid-page .rhid-zoom-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; flex-shrink: 0; }
body.rhid-page .rhid-zoom-heading > div > span { color: var(--rhid-accent); font-size: .61rem; font-weight: 700; letter-spacing: .08em; }
body.rhid-page .rhid-zoom-heading h2 { margin: 2px 0 0; font-size: 1.15rem; line-height: 1.2; color: var(--rhid-ink); }
body.rhid-page .rhid-zoom-actions { display: flex; gap: 12px; align-items: center; }
body.rhid-page .rhid-zoom-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--rhid-line); border-radius: 8px; background: white; color: var(--rhid-ink); font-size: .85rem; }
body.rhid-page .rhid-zoom-actions .rhid-close-dialog { display: grid; place-items: center; padding: 10px; width: 44px; height: 44px; }
body.rhid-page .rhid-zoom-help { margin: 0; padding: 0 22px 13px; color: var(--rhid-muted); font-size: .77rem; flex-shrink: 0; }
body.rhid-page .rhid-zoom-viewport { min-height: 0; flex: 1; display: flex; overflow: auto; background: #edf1f8; padding: 12px; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
body.rhid-page .rhid-zoom-viewport img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
body.rhid-page .rhid-zoom-viewport.rhid-original-size img { width: 1672px; height: 941px; max-width: none; max-height: none; margin: 0; flex-shrink: 0; }

@media (max-width: 1100px) {
  body.rhid-page .rhid-hero-grid { gap: 30px; }
  body.rhid-page .rhid-hero h1 { font-size: clamp(2.5rem,4.8vw,3.4rem); }
  body.rhid-page .rhid-hero .rhid-actions { align-items: stretch; }
  body.rhid-page .rhid-section { padding: 80px 0; }
  body.rhid-page .rhid-support-box { gap: 35px; padding: 38px; }
  body.rhid-page .rhid-faq-grid { gap: 40px; }
  body.rhid-page .rhid-section-heading { gap: 30px; }
}
@media (max-width: 820px) {
  body.rhid-page .rhid-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  body.rhid-page .rhid-hero-copy { max-width: 660px; }
  body.rhid-page .rhid-hero h1 { font-size: clamp(2.65rem,7vw,3.7rem); max-width: 600px; }
  body.rhid-page .rhid-hero-preview { max-width: 660px; padding: 0; }
  body.rhid-page .rhid-breadcrumb { margin-bottom: 34px; }
  body.rhid-page .rhid-section-heading { grid-template-columns: 1fr; gap: 18px; }
  body.rhid-page .rhid-section-heading > p { max-width: 650px; }
  body.rhid-page .rhid-support-box, body.rhid-page .rhid-faq-grid { grid-template-columns: 1fr; }
  body.rhid-page .rhid-value-grid { gap: 14px; }
  body.rhid-page .rhid-value-grid article { padding: 24px 18px; }
  body.rhid-page .rhid-tour-progress { order: -1; width: 100%; justify-content: center; }
}
@media (max-width: 680px) {
  body.rhid-page .rhid-hero { padding: 24px 0 54px; }
  body.rhid-page .rhid-hero h1 { font-size: clamp(2.4rem,10.4vw,3.25rem); }
  body.rhid-page .rhid-hero .lead { font-size: 1.04rem; }
  body.rhid-page .rhid-section { padding: 62px 0; }
  body.rhid-page .rhid-content h2 { font-size: 2.12rem; }
  body.rhid-page .rhid-actions { align-items: stretch; }
  body.rhid-page .rhid-actions > .rhid-btn { width: 100%; }
  body.rhid-page .rhid-smallprint { font-size: .76rem; }
  body.rhid-page .rhid-preview-caption { font-size: .75rem; justify-content: flex-start; text-align: left; }
  body.rhid-page .rhid-preview-label { display: none; }
  body.rhid-page .rhid-window { border-radius: 14px; }
  body.rhid-page .rhid-demo { border-radius: 17px; }
  body.rhid-page .rhid-demo-topbar { padding: 15px; gap: 12px; }
  body.rhid-page .rhid-demo-topbar > div { display: block; }
  body.rhid-page .rhid-demo-topbar > div > span { display: block; padding: 0; border: 0; font-size: .69rem; }
  body.rhid-page .rhid-demo-topbar .rhid-icon-label { padding: 8px; font-size: .74rem !important; white-space: nowrap; }
  body.rhid-page.rhid-ready .rhid-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.rhid-page .rhid-tab { min-height: 54px; font-size: .86rem !important; }
  body.rhid-page .rhid-panel-heading { padding: 22px 16px 16px; display: block; }
  body.rhid-page .rhid-panel-heading h3 { font-size: 1.14rem; }
  body.rhid-page .rhid-panel-heading .rhid-icon-label { margin-top: 14px; }
  body.rhid-page .rhid-screen-figure { padding: 0 12px; }
  body.rhid-page .rhid-screen { border-radius: 6px; }
  body.rhid-page.rhid-ready .rhid-hotspots { display: none; }
  body.rhid-page .rhid-screen-figure figcaption { font-size: .68rem; }
  body.rhid-page .rhid-tour-banner { padding: 12px 16px; align-items: flex-start; }
  body.rhid-page .rhid-tour-banner > div { gap: 3px; flex-direction: column; align-items: flex-start; }
  body.rhid-page .rhid-tour-banner strong { font-size: .75rem; }
  body.rhid-page .rhid-exit { font-size: .70rem !important; white-space: normal; text-align: right; }
  body.rhid-page .rhid-demo-disclaimer { font-size: .72rem; }
  body.rhid-page .rhid-value-grid { grid-template-columns: 1fr; }
  body.rhid-page .rhid-value-grid article { padding: 26px; }
  body.rhid-page .rhid-value-grid article > svg { margin-bottom: 16px; }
  body.rhid-page .rhid-support-box { padding: 32px 24px; gap: 34px; border-radius: 22px; }
  body.rhid-page .rhid-support-box h2 { font-size: 2rem; }
  body.rhid-page .rhid-zoom-dialog { width: calc(100vw - 12px); height: calc(100vh - 12px); height: calc(100dvh - 12px); border-radius: 12px; }
  body.rhid-page .rhid-zoom-heading { padding: 13px; align-items: flex-start; }
  body.rhid-page .rhid-zoom-actions { gap: 5px; }
  body.rhid-page .rhid-zoom-actions button { font-size: .7rem; padding: 8px; }
  body.rhid-page .rhid-zoom-heading h2 { font-size: 1rem; }
  body.rhid-page .rhid-zoom-help { padding: 0 13px 12px; font-size: .73rem; }
  body.rhid-page .rhid-zoom-viewport { padding: 4px; }
}
/* Proteção local contra antigas regras desktop do submenu no CSS compartilhado. */
@media (max-width: 1200px) {
  body.rhid-page .header .submenu-toggle { display: grid !important; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; }
  body.rhid-page .header .nav-links { max-height: calc(100vh - 145px); max-height: calc(100dvh - 145px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  body.rhid-page .header .submenu { display: none !important; position: static !important; width: 100% !important; transform: none !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto; box-shadow: none !important; }
  body.rhid-page .header .nav-dropdown.open .submenu { display: grid !important; }
  body.rhid-page .header .submenu a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  body.rhid-page .rhid-content *, body.rhid-page .rhid-zoom-dialog * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html:has(body.rhid-page) { scroll-behavior: auto; }
}
/* Degradação progressiva: não exibir controles sem JavaScript. */
body.rhid-page:not(.rhid-ready) .rhid-js-only { display: none !important; }

/* =====================================================
   TOUR V2 — EXPLICAÇÕES DENTRO DAS CAPTURAS
   Mesmas telas e textos; sem painel explicativo abaixo.
===================================================== */
body.rhid-page .rhid-screen-canvas { position: relative; width: 100%; }
body.rhid-page .rhid-screen-canvas > img {
  display: block; width: 100%; height: auto; max-width: none;
}
body.rhid-page .rhid-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Sem JS, as explicações permanecem legíveis no fluxo da página. */
body.rhid-page .rhid-note { padding: 18px; margin: 8px 0; }
body.rhid-page .rhid-card-top { display: flex; align-items: center; gap: 8px; }
body.rhid-page .rhid-note-label {
  color: var(--rhid-accent); font-size: .62rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
body.rhid-page .rhid-card-count {
  color: var(--rhid-muted); font-size: .66rem; font-weight: 600;
  white-space: nowrap; margin-left: auto; font-variant-numeric: tabular-nums;
}
body.rhid-page .rhid-note h3 {
  margin: 10px 0 8px; font-size: 1.03rem; line-height: 1.22; letter-spacing: -.015em;
}
body.rhid-page .rhid-note p { margin: 0; font-size: .87rem; line-height: 1.52; }

/* Camada de cards independente da imagem: texto sempre nítido. */
body.rhid-page.rhid-ready .rhid-screen { isolation: isolate; }
body.rhid-page.rhid-ready .rhid-notes {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
}
body.rhid-page.rhid-ready .rhid-screen .rhid-callout {
  position: absolute; z-index: 5; left: 12px; top: 12px;
  width: min(310px, calc(100% - 24px)); max-width: none;
  margin: 0; padding: 16px 18px; pointer-events: auto;
  background: #fff; border: 1px solid #d2dfed; border-top: 3px solid #1685a5;
  border-radius: 14px; text-align: left;
  box-shadow: 0 10px 30px rgba(7,28,53,.17);
  color: var(--rhid-ink);
}
/* Pequeno indicador aponta para a região explicada. */
body.rhid-page.rhid-ready .rhid-note::before {
  content: ''; position: absolute; width: 10px; height: 10px;
  background: #fff; border: solid #d2dfed; border-width: 1px 0 0 1px;
  transform: rotate(45deg); pointer-events: none;
}
body.rhid-page.rhid-ready .rhid-note[data-side="bottom"]::before {
  left: var(--arrow-x,50%); top: -7px; border-color: #1685a5;
}
body.rhid-page.rhid-ready .rhid-note[data-side="top"]::before {
  left: var(--arrow-x,50%); bottom: -6px; transform: rotate(225deg);
}
body.rhid-page.rhid-ready .rhid-note[data-side="right"]::before {
  left: -6px; top: var(--arrow-y,50%); transform: rotate(-45deg);
}
body.rhid-page.rhid-ready .rhid-note[data-side="left"]::before {
  right: -6px; top: var(--arrow-y,50%); transform: rotate(135deg);
}
body.rhid-page.rhid-ready .rhid-note[data-side="none"]::before { display: none; }
body.rhid-page.rhid-ready .rhid-highlight { z-index: 1; }
body.rhid-page.rhid-ready .rhid-hotspots { z-index: 2; }

/* Botões compactos dentro de cada explicação. */
body.rhid-page .rhid-card-close {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 28px; width: 28px; height: 28px; min-height: 0;
  padding: 5px; margin: -4px -6px -4px 0;
  color: var(--rhid-muted); background: transparent; border: 0; border-radius: 6px;
}
body.rhid-page .rhid-card-close svg { width: 15px; height: 15px; }
body.rhid-page .rhid-card-close:hover { background: #f0f4f9; color: var(--rhid-ink); }
body.rhid-page.rhid-ready .rhid-card-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #edf1f6;
}
body.rhid-page .rhid-card-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 7px 11px; border-radius: 8px;
  border: 1px solid transparent; font-size: .76rem; font-weight: 600;
  line-height: 1.2; box-shadow: none; transform: none;
}
body.rhid-page .rhid-card-actions button svg { width: 14px; height: 14px; }
body.rhid-page .rhid-card-prev { background: transparent; color: var(--rhid-muted); }
body.rhid-page .rhid-card-prev:not(:disabled):hover { background: #f1f5fb; color: var(--rhid-ink); }
body.rhid-page .rhid-card-next { background: var(--rhid-accent); color: white; }
body.rhid-page .rhid-card-next:hover { background: var(--rhid-blue); }
body.rhid-page .rhid-card-actions button:focus-visible { outline-offset: 2px; }

/* Progresso curto no topo. Nenhuma navegação do tour fica abaixo da imagem. */
body.rhid-page .rhid-tour-banner { gap: 14px; flex-wrap: wrap; }
body.rhid-page .rhid-tour-banner > div:first-child { gap: 6px; flex-direction: column; align-items: flex-start; }
body.rhid-page .rhid-tour-banner .rhid-tour-progress {
  order: 0; width: auto; margin-left: auto; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 2px;
}
body.rhid-page .rhid-tour-banner .rhid-tour-progress button { width: 30px; height: 36px; }
body.rhid-page .rhid-feature-picker { display: none !important; }

/* A conclusão também aparece sobre a captura, sem empurrar a página. */
body.rhid-page.rhid-ready .rhid-screen .rhid-complete {
  display: grid; gap: 13px; width: min(340px,calc(100% - 24px)); padding: 24px;
  border-top-color: #168558;
}
body.rhid-page .rhid-complete-icon {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 12px; background: #eaf7f1; color: #168558;
}
body.rhid-page .rhid-content .rhid-complete h3 {
  margin: 0 0 8px; font-size: 1.1rem; line-height: 1.25;
}
body.rhid-page .rhid-complete p { margin: 0; font-size: .86rem; line-height: 1.5; }
body.rhid-page .rhid-complete .rhid-btn {
  min-height: 40px; border-radius: 8px; padding: 10px 14px; font-size: .8rem;
}
body.rhid-page .rhid-complete .rhid-text-button {
  padding: 4px 0; justify-self: start; font-size: .8rem;
}
body.rhid-page .rhid-complete-close { position: absolute; right: 13px; top: 13px; }

@media (max-width: 820px) {
  body.rhid-page .rhid-tour-banner .rhid-tour-progress { gap: 0; }
  body.rhid-page .rhid-tour-banner .rhid-tour-progress button { width: 27px; }
}
@media (max-width: 680px) {
  /* A captura ganha uma janela ampliada no celular para comportar o card,
     com enquadramento automático na região ativa, sem distorcer a imagem. */
  body.rhid-page.rhid-ready .rhid-screen {
    height: 460px; height: clamp(420px,70svh,500px);
    border-radius: 10px;
  }
  body.rhid-page.rhid-ready .rhid-screen-canvas {
    position: absolute; top: 0; left: 0; transform-origin: top left;
  }
  body.rhid-page.rhid-ready .rhid-screen .rhid-callout {
    width: min(310px,calc(100% - 24px)); max-height: calc(100% - 24px);
    padding: 15px 16px; border-radius: 12px; overflow: auto;
  }
  body.rhid-page.rhid-ready .rhid-note::before { display: none; }
  body.rhid-page .rhid-note h3 { font-size: 1rem; }
  body.rhid-page .rhid-note p { font-size: .85rem; line-height: 1.48; }
  body.rhid-page .rhid-card-actions { margin-top: 12px; padding-top: 10px; }
  body.rhid-page .rhid-card-actions button { min-height: 44px; }
  body.rhid-page .rhid-card-close { flex-basis: 36px; width: 36px; height: 36px; }
  body.rhid-page.rhid-ready .rhid-feature-picker {
    display: flex !important; position: absolute; z-index: 4;
    top: 10px; right: 10px; gap: 4px; padding: 4px;
    border: 1px solid var(--rhid-line); border-radius: 12px;
    background: rgba(255,255,255,.97); box-shadow: 0 3px 10px #06172c12;
  }
  body.rhid-page.rhid-ready .rhid-demo[data-mode="guided"] .rhid-feature-picker,
  body.rhid-page.rhid-ready .rhid-demo[data-mode="complete"] .rhid-feature-picker { display: none !important; }
  body.rhid-page .rhid-feature-pick {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 8px; background: #f0f4fb;
    color: var(--rhid-accent); font-size: .8rem; font-weight: 700;
  }
  body.rhid-page .rhid-feature-pick[aria-pressed="true"] { background: var(--rhid-accent); color: #fff; }
  body.rhid-page .rhid-tour-banner { gap: 10px; }
  body.rhid-page .rhid-tour-banner .rhid-tour-progress {
    margin-left: 0; flex-basis: 100%; order: 2; justify-content: flex-start;
  }
  body.rhid-page .rhid-tour-banner .rhid-tour-progress button { width: 32px; height: 36px; }
  body.rhid-page .rhid-tour-banner > .rhid-exit { margin-left: auto; }
  body.rhid-page .rhid-content .rhid-complete h3 { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.rhid-page .rhid-screen-canvas { transition: none !important; }
}
