/* Public product pages and static sample viewers only. No account/app styles. */
body[data-product-page="r04"] .product-detail,
body[data-product-page="r04"] .product-detail * {box-sizing:border-box;}
body[data-product-page="r04"] .product-detail > * {min-width:0;}
/* Correct the two copied niche identifiers; tokens come from the official palette. */
body[data-product-page="r04"][data-product-id="estudos"] {
  --product-dark:#004F46;--product-base:#00796B;--product-light:#D4F1EC;
  --offer-bg:#fff;--offer-heading:#004F46;--offer-ink:#000;--offer-price:#004F46;
  --offer-mat:#004F46;--offer-cta:#193A8A;--offer-cta-ink:#fff;--offer-focus:#193A8A;
}
body[data-product-page="r04"][data-product-id="whatsapp"] {
  --product-dark:#58205F;--product-base:#8F3F97;--product-light:#F2DDF4;
  --offer-bg:#fff;--offer-heading:#58205F;--offer-ink:#000;--offer-price:#58205F;
  --offer-mat:#58205F;--offer-cta:#193A8A;--offer-cta-ink:#fff;--offer-focus:#193A8A;
}
body[data-product-page="r04"][data-offer-finish="r01"] .new-offer-detail .detail-cover {padding:4px;}
body[data-product-page="r04"][data-offer-finish="r01"] .new-offer-detail .detail-opening {
  background:#fff;border:1px solid #D8D6CF;
}
body[data-product-page="r04"][data-offer-finish="r01"] .detail-cover > .new-approved-cover {
  border-radius:14px;overflow:hidden;display:block;object-fit:contain;
}
body[data-product-page="r04"] .product-receipt,
body[data-product-page="r04"] .product-access {
  padding:clamp(20px,4vw,64px);margin:0 0 32px;border-radius:24px;background:#fff;
}
body[data-product-page="r04"] .product-access {background:#F6F3ED;border-top:1px solid #D8D6CF;}
body[data-product-page="r04"] .product-receipt h2,
body[data-product-page="r04"] .product-access h2 {margin:0 0 24px;line-height:1.2;}
body[data-product-page="r04"] .receipt-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,4vw,64px);}
body[data-product-page="r04"] .receipt-grid h3 {margin:0 0 12px;line-height:1.3;}
body[data-product-page="r04"] .receipt-grid p {margin:0;max-width:60ch;}
body[data-product-page="r04"] .product-access p {max-width:70ch;margin:0 0 20px;}
body[data-product-page="r04"] .product-access p:last-child {margin-bottom:0;}
/* Show the complete existing sample through normal page scrolling, without nested controls. */
body[data-product-page="r04"] .product-showcase,
body[data-product-page="r04"] .app-showcase {align-items:start;}
body[data-product-page="r04"] .real-preview {width:100%;max-width:32rem;margin:0;min-width:0;}
body[data-product-page="r04"] .real-preview .device-frame {
  width:100%;max-width:100%;min-width:0;border:1px solid #BCC8C5;border-radius:16px;background:#fff;
}
body[data-product-page="r04"] .real-preview .device-label {
  padding:12px 16px;background:#FFF0C9;color:#573E0B;text-align:left;
}
body[data-product-page="r04"] .real-preview .screen-scroll {
  width:100%;max-width:100%;max-height:none;height:auto;overflow:visible;
  scrollbar-gutter:auto;overscroll-behavior:auto;touch-action:auto;
}
body[data-product-page="r04"] .real-preview .screen-scroll img {
  display:block;width:100%;max-width:100%;height:auto;object-fit:contain;
}
body[data-product-page="r04"] .preview-help {margin:0 0 16px;max-width:60ch;}
body[data-product-page="r04"] .real-preview figcaption {margin-top:16px;}
body[data-product-page="r04"] .real-preview figcaption a {min-height:44px;}
body[data-product-page="r04"] .real-preview .screen-scroll:focus-visible {outline:3px solid #193A8A;outline-offset:-3px;}
@media(max-width:700px) {
  body[data-product-page="r04"] .receipt-grid {grid-template-columns:minmax(0,1fr);}
  body[data-product-page="r04"] .real-preview {max-width:100%;}
}
/* Full-image route: the image is complete, fluid, and uses normal page scrolling. */
body.vima-full-preview {margin:0;background:#F6F3ED;color:#192421;font:16px/1.6 system-ui,sans-serif;}
.vima-full-preview main {max-width:1200px;margin:auto;padding:clamp(16px,3vw,32px);}
.vima-full-preview h1 {font-size:clamp(22px,4vw,32px);line-height:1.25;margin:0 0 16px;color:#193A8A;}
.vima-full-preview p {max-width:70ch;margin:0 0 24px;}
.vima-full-preview a {display:inline-flex;align-items:center;min-height:44px;color:#193A8A;font-weight:700;}
.vima-full-preview a:focus-visible {outline:3px solid #193A8A;outline-offset:4px;}
.vima-full-preview figure {margin:0;}
.vima-full-preview img {display:block;width:auto;height:auto;max-width:100%;margin-inline:auto;}
@media print {body[data-product-page="r04"] .real-preview .screen-scroll {max-height:none;overflow:visible;}}

/* R203: four bounded native opening samples, added only to the two new public pages. */
body[data-product-page="r04"] .new-offer-detail .real-preview {margin:0;max-width:390px;}
body[data-product-page="r04"] .new-offer-detail .device-label {background:var(--product-light);color:var(--product-dark);}
body[data-product-page="r04"] .new-offer-detail #guia-real,
body[data-product-page="r04"] .new-offer-detail #app-real {scroll-margin-top:12rem;}
