:root {
  --rg-blue:#010e6d; --rg-yellow:#facf08; --ink:#12182d; --muted:#465268; --line:#cbd1df;
  --paper:#fff; --dark:#080e22; --max:1240px; --display:system-ui,sans-serif;
  font:16px/1.6 system-ui,sans-serif; color:var(--ink); background:var(--paper);
}
* {box-sizing:border-box;}
body {margin:0; background:var(--paper);}
[hidden] {display:none!important;}
img {display:block; max-width:100%; height:auto;}
figure,p,h1,h2,h3,ol,ul,dl {margin:0;}
p+p {margin-top:1rem;}
a {color:inherit;}
button,input,textarea {font:inherit;}
button {cursor:pointer;}
:focus-visible {outline:3px solid #4763d8; outline-offset:4px;}
.wrap {width:min(var(--max),calc(100% - 112px)); margin-inline:auto;}
.skip {position:fixed; top:10px; left:10px; z-index:10; transform:translateY(-150%); padding:10px; background:var(--rg-yellow); color:var(--ink);}
.skip:focus {transform:none;}
.review-bar {background:#080e22; color:white; position:relative; z-index:4; font-size:.72rem;}
.review-bar .wrap {min-height:36px; display:flex; align-items:center; justify-content:space-between; gap:8px;}
.review-bar .wrap>span {letter-spacing:.13em; font-weight:750;}
.review-bar details {position:relative;}
.review-bar summary {cursor:pointer;}
.review-bar nav {position:absolute; right:0; width:175px; display:grid; background:var(--dark); padding:8px; box-shadow:0 8px 22px #0005;}
.review-bar nav a {padding:9px;}
.review-bar nav [aria-current] {color:var(--rg-yellow);}
.masthead {background:var(--paper); color:var(--ink); position:relative; z-index:3; border-bottom:1px solid #0002;}
.mast-row {display:flex; gap:24px; align-items:center; min-height:80px;}
.logo {display:inline-block; flex:none;}
.logo img {width:67px; aspect-ratio:1; object-fit:contain;}
.site-nav {display:flex; gap:clamp(14px,2.1vw,32px); margin-left:auto; align-items:center;}
.site-nav a,.footer nav a {text-decoration:none; font-weight:650; font-size:.88rem;}
.site-nav a:hover,.footer nav a:hover {text-decoration:underline; text-underline-offset:5px;}
.menu-button {display:none;}
.mast-action .button {min-height:42px; padding:8px 15px;}
.button {display:inline-flex; align-items:center; justify-content:center; gap:8px; width:fit-content; min-height:48px; padding:11px 18px; border:1px solid transparent; text-decoration:none; font-size:.9rem; font-weight:750; line-height:1.25;}
.button:hover {text-decoration:underline; text-underline-offset:4px;}
.primary {background:var(--rg-yellow); color:#131a32; border-color:var(--rg-yellow);}
.secondary {background:transparent; color:inherit; border-color:currentColor;}
.text-link {font-size:.88rem; font-weight:750; text-underline-offset:.22em;}
.actions {display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px;}
.kicker {font-weight:800; font-size:.72rem; line-height:1.45; letter-spacing:.16em; margin-bottom:14px;}
.kicker span {display:inline-block; width:17px; height:1px; background:currentColor; margin:0 7px 3px;}
h1,h2 {font-family:var(--display); font-weight:780; letter-spacing:-.065em; line-height:1.02; text-wrap:balance;}
h1 {font-size:clamp(2.75rem,6.1vw,6.3rem);}
h2 {font-size:clamp(2rem,4vw,3.9rem);}
h3 {line-height:1.25;}
h1 em {font-style:normal;}
.lead {font-size:clamp(1.02rem,1.55vw,1.25rem); line-height:1.5;}
.hero {position:relative; isolation:isolate; overflow:hidden;}
.hero-main {position:relative; z-index:1; display:flex; align-items:center;}
.hero-copy {max-width:780px;}
.hero-copy .lead {margin:21px 0 24px; max-width:46ch;}
.hero-photo img {height:100%; width:100%; object-fit:cover;}
.position .wrap {display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:62px; padding-block:13px;}
.position strong {line-height:1.3;}
.position a {font-weight:750; font-size:.83rem; white-space:nowrap;}
.section {padding:clamp(48px,7vw,105px) 0;}
.section h2,.sub-hero h1 {margin-bottom:18px;}
.section .lead,.section h2+p {margin-bottom:20px;}
.section p+.button,.section p+.actions {margin-top:20px;}
.editor-grid,.history-grid,.offer-grid {display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center; gap:clamp(28px,6vw,92px);}
.service-list {list-style:none; padding:0; border-top:1px solid var(--line);}
.service-list li {border-bottom:1px solid var(--line);}
.service-list a {display:grid; grid-template-columns:34px 1fr 26px; gap:13px; align-items:center; min-height:68px; padding:13px 2px; text-decoration:none;}
.service-list a:hover strong {text-decoration:underline; text-underline-offset:4px;}
.service-list strong {display:block; font-size:clamp(1rem,2vw,1.22rem); line-height:1.25;}
.service-list small {display:block; margin-top:2px; opacity:.86;}
.service-list .row-index {font-size:.74rem; font-weight:760; letter-spacing:.08em;}
.arrow {font-size:1.35rem; text-align:right;}
.offer {background:#f2f3f7;}
.offer-grid {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);}
.offer figure {background:#fff; min-height:280px; display:grid; place-items:center; padding:18px;}
.offer figure img {width:min(100%,310px); height:300px; object-fit:contain;}
.offer-copy .lead {margin-bottom:11px;}
.history figure {overflow:hidden; background:#1d284c;}
.history img {width:100%; height:clamp(280px,38vw,510px); object-fit:cover; object-position:50% 48%; filter:saturate(.85) contrast(1.05);}
.history .closing {font-weight:800; border-left:4px solid var(--rg-yellow); padding-left:15px;}
.route-band {background:var(--rg-blue); color:white;}
.route-band .kicker {color:var(--rg-yellow);}
.route-widget {display:grid; grid-template-columns:16px minmax(0,1fr); gap:14px 16px; border:1px solid #ffffff60; padding:24px;}
.route-widget small {display:block; opacity:.9;}
.route-widget .actions {grid-column:2;}
.route-path {grid-row:span 2; margin:8px 6px; border-left:2px dashed var(--rg-yellow); position:relative;}
.route-path::before,.route-path::after {content:''; width:9px; height:9px; border-radius:50%; background:var(--rg-yellow); position:absolute; left:-6px;}
.route-path::after {bottom:0;}
.review-panel {border-block:1px solid var(--line); padding-block:20px;}
.review-state {display:flex; gap:14px; align-items:center; margin-bottom:14px;}
.review-state>span {display:grid; place-items:center; width:46px; height:46px; flex:none; border:1px solid var(--line); color:var(--rg-blue); font-weight:850; font-size:1.4rem;}
.review-state p {margin-top:2px;}
.feedback {background:#f3f5fa;}
form {display:grid; gap:12px;}
form label:not(.opinion) {display:grid; gap:4px; font-size:.86rem; font-weight:720;}
form fieldset {padding:10px 12px; margin:0; border:1px solid var(--line); display:flex; flex-wrap:wrap; gap:10px 16px;}
form legend {padding:0 6px; font-weight:720;}
input:not([type=radio]),textarea {width:100%; min-width:0; border:1px solid #8390aa; padding:10px; background:white; color:#161d30;}
textarea {resize:vertical;}
.form-note,.reference,figcaption {font-size:.85rem;}
form [role=status],output {font-weight:700;}
.contact address,.route-form {border-left:4px solid var(--rg-yellow); padding:16px 22px; font-style:normal;}
address {font-style:normal;}
.contact .actions {margin-top:12px;}
.footer {background:var(--dark); color:#fff; padding:36px 0;}
.foot-row {display:grid; grid-template-columns:1fr 1fr 1fr; gap:25px; align-items:start;}
.footer .logo img {width:56px; margin-bottom:10px;}
.footer p {font-size:.86rem;}
.footer nav {display:grid; grid-template-columns:1fr 1fr; gap:10px 15px;}
.sub-hero {padding:clamp(32px,6vw,78px) 0; background:var(--rg-blue); color:white;}
.sub-hero .kicker {color:var(--rg-yellow); margin-top:18px;}
.sub-hero .lead {max-width:54ch; margin:0 0 22px;}
.sub-hero h1 {font-size:clamp(2.5rem,5vw,5rem);}
.sub-hero figure {position:relative;}
.sub-hero img {width:100%; height:clamp(240px,29vw,380px); object-fit:cover; object-position:center 54%; filter:contrast(1.06) saturate(.84);}
.sub-hero figcaption {padding-top:5px;}
.article-nav {border-bottom:1px solid var(--line);}
.article-nav .wrap {display:flex; flex-wrap:wrap; gap:8px 20px; padding:14px 0;}
.article-nav a {font-size:.86rem; font-weight:700; text-underline-offset:3px;}
.guide-body {max-width:900px;}
.guide-body>section {padding:38px 0; border-bottom:1px solid var(--line); scroll-margin-top:14px;}
.guide-body h2 {margin:0 0 14px; font-size:clamp(1.9rem,4vw,3.35rem);}
.diagram {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:var(--rg-blue); color:#fff; align-items:center; margin:20px 0 24px;}
.diagram svg {display:block; width:100%; max-height:260px; background:repeating-linear-gradient(90deg,#ffffff10 0 1px,transparent 1px 20px);}
.diagram .highlight {color:var(--rg-yellow);}
.diagram>div {padding:18px;}
.diagram ol {padding:0; list-style:none;}
.diagram li {padding:5px 0; border-top:1px solid #ffffff60;}
.diagram li span {margin-right:8px; color:var(--rg-yellow); font-weight:800;}
.diagram figcaption {margin-bottom:8px;}
.parts {display:grid; grid-template-columns:minmax(125px,1fr) minmax(0,2.5fr); gap:0 12px;}
.parts dt,.parts dd {padding:10px 0; border-bottom:1px solid var(--line);}
.parts dt {font-weight:800;}
.parts dd {margin:0;}
.signal-list,.service-steps {padding-left:22px; margin:0 0 12px;}
.signal-list li,.service-steps li {margin-bottom:7px;}
.decisions {padding:0; list-style:none;}
.decisions li {border-left:3px solid var(--rg-blue); padding:6px 14px; margin-bottom:10px;}
.decisions li:last-child {border-color:var(--rg-yellow); background:#fff5ca; color:#171b32;}
.guide-body details {border-top:1px solid var(--line); padding:12px 0;}
.guide-body summary {font-weight:750; cursor:pointer;}
.guide-body details p {margin:8px 0 0;}
.reference {margin-top:15px;}
.article-cta .text-link {display:inline-block; margin:12px 0 0 12px;}
.route-form {background:#f4f6fb;}
.form-grid {display:grid; grid-template-columns:1fr 1fr; gap:10px 12px;}
.route-form output {display:block; white-space:pre-line;}
.chooser {max-width:880px; padding-block:70px;}
.chooser h1 {font-size:clamp(2.5rem,6vw,5rem); margin-bottom:28px;}

/* A. Plano cinematográfico, texto sobre a imagem e contraste de capítulos. */
.theme-a .masthead,.theme-a .hero {background:var(--dark); color:#fff;}
.theme-a .hero-main {min-height:clamp(540px,49vw,730px); padding-block:55px;}
.theme-a .hero-photo {position:absolute; inset:0;}
.theme-a .hero-photo img {object-position:53% 62%; filter:saturate(.72) contrast(1.07);}
.theme-a .hero-photo::after {content:''; position:absolute; inset:0; background:linear-gradient(90deg,#080d23f7 2%,#090f29ee 26%,#0a143897 57%,#0b16372d 100%);}
.theme-a .hero .kicker {color:var(--rg-yellow);}
.theme-a .position {background:var(--rg-blue); color:white; border-bottom:2px solid var(--rg-yellow);}
.theme-a .guide-strip {background:var(--dark); color:white; --line:#ffffff59;}
.theme-a .guide-strip .kicker,.theme-a .guide-strip .row-index {color:var(--rg-yellow);}
.theme-a .history img {filter:saturate(.72) contrast(1.1);}
.theme-a .sub-hero {background:var(--dark); border-bottom:3px solid var(--rg-yellow);}
.theme-a .diagram {background:var(--dark);}

/* B. Página clara, serifas editoriais e fotografia tratada como capa. */
.theme-b {--paper:#f8f6f0; --display:Georgia,serif; --line:#c9c6bd;}
.theme-b h1,.theme-b h2 {font-weight:500; letter-spacing:-.055em;}
.theme-b .hero {min-height:565px;}
.theme-b .hero-main {min-height:565px; padding-block:46px;}
.theme-b .hero-copy {width:53%; padding-right:20px;}
.theme-b .hero h1 {font-size:clamp(2.75rem,5.25vw,5.35rem);}
.theme-b .hero h1 em {color:var(--rg-blue); font-style:italic;}
.theme-b .hero-photo {position:absolute; inset:24px 0 24px auto; width:42%; border-left:8px solid var(--rg-yellow);}
.theme-b .hero-photo img {object-position:49% 48%; filter:saturate(.84) brightness(1.03);}
.theme-b .position {background:#eee9db; border-block:1px solid #c9c6bd;}
.theme-b .guide-strip,.theme-b .reputation {background:#fff;}
.theme-b .offer {background:#ece8db;}
.theme-b .offer figure {order:2;}
.theme-b .history figure {border:9px solid white;}
.theme-b .route-band {background:#efebde; color:var(--ink);}
.theme-b .route-band .kicker {color:var(--rg-blue);}
.theme-b .route-widget {border-color:#767b8c;}
.theme-b .route-path {border-color:var(--rg-blue);}
.theme-b .route-path::before,.theme-b .route-path::after {background:var(--rg-blue);}
.theme-b .sub-hero {background:#efebde; color:var(--ink); border-bottom:1px solid var(--line);}
.theme-b .sub-hero .kicker {color:var(--rg-blue);}

/* C. Abertura de alto contraste, produto em destaque e ritmo claro/escuro. */
.theme-c .hero {background:var(--rg-blue); color:white; min-height:560px;}
.theme-c .hero-main {min-height:560px; padding-block:48px;}
.theme-c .hero-copy {width:58%; padding-right:28px;}
.theme-c .hero h1 {font-size:clamp(2.7rem,5.15vw,5.45rem);}
.theme-c .hero h1 em,.theme-c .hero .kicker {color:var(--rg-yellow);}
.theme-c .hero-photo {position:absolute; inset:0 0 0 auto; width:42%; border-left:6px solid var(--rg-yellow);}
.theme-c .hero-photo img {object-position:48% 53%; filter:saturate(.88) contrast(1.07);}
.theme-c .position {background:var(--rg-yellow); color:#11182d;}
.theme-c .offer {padding:32px 0; background:#eef0f8;}
.theme-c .offer-grid {grid-template-columns:minmax(0,.55fr) minmax(0,1.45fr); gap:28px;}
.theme-c .offer figure {min-height:220px; padding:13px; border-left:5px solid var(--rg-yellow);}
.theme-c .offer figure img {height:205px;}
.theme-c .offer h2 {font-size:clamp(1.8rem,3.5vw,3.1rem);}
.theme-c .history {background:var(--dark); color:white;}
.theme-c .history .kicker {color:var(--rg-yellow);}
.theme-c .route-band {background:#eef0f8; color:var(--ink);}
.theme-c .route-band .kicker {color:var(--rg-blue);}
.theme-c .route-widget {background:var(--rg-blue); color:white;}
.theme-c .sub-hero figure {border-left:5px solid var(--rg-yellow); padding-left:9px;}

@media (max-width:1080px) {
  .wrap {width:calc(100% - 72px);}
  .mast-row {gap:15px;}
  .site-nav {gap:12px;}
  .site-nav a {font-size:.81rem;}
}
@media (max-width:820px) {
  .wrap {width:calc(100% - 36px);}
  .mast-row {min-height:63px; justify-content:space-between;}
  .logo img {width:53px;}
  .menu-button {display:inline-flex; gap:8px; align-items:center; min-height:44px; padding:5px 12px; border:1px solid currentColor; color:inherit; background:none;}
  .mast-action {display:none;}
  .site-nav {display:none;}
  .site-nav.open {position:absolute; inset:100% 0 auto; display:grid; gap:0; padding:10px 18px; background:var(--paper); color:var(--ink); box-shadow:0 8px 18px #0003;}
  .site-nav a {padding:11px 5px; border-bottom:1px solid var(--line); font-size:.92rem;}
  .editor-grid,.history-grid,.offer-grid,.theme-c .offer-grid {grid-template-columns:1fr;}
  .hero-copy,.theme-b .hero-copy,.theme-c .hero-copy {width:100%; padding:0;}
  .hero-main,.theme-a .hero-main,.theme-b .hero-main,.theme-c .hero-main {min-height:0; padding-block:35px;}
  .hero h1,.theme-b .hero h1,.theme-c .hero h1 {font-size:clamp(2.45rem,8vw,4.2rem);}
  .hero,.theme-b .hero,.theme-c .hero {display:flex; flex-direction:column; min-height:0;}
  .theme-a .hero-photo,.theme-b .hero-photo,.theme-c .hero-photo {position:relative; inset:auto; order:2; width:100%; height:clamp(195px,45vw,330px); border-left:0;}
  .theme-a .hero-photo::after {background:linear-gradient(180deg,#080d23b9,transparent 50%);}
  .theme-b .hero-photo {width:calc(100% - 36px); margin:0 auto 18px; border-left:5px solid var(--rg-yellow);}
  .theme-c .hero-photo {border-top:3px solid var(--rg-yellow);}
  .theme-c .offer-grid {gap:18px;}
  .theme-c .offer figure {order:2;}
  .foot-row {grid-template-columns:1fr 1fr;}
  .position .wrap {align-items:start; flex-direction:column; gap:7px;}
}
@media (max-width:420px) {
  .review-bar .wrap>span {letter-spacing:.05em;}
  .hero .actions .button {min-height:44px; padding:9px 11px; font-size:.83rem;}
  .diagram,.parts,.form-grid,.foot-row {grid-template-columns:1fr;}
  .diagram svg {max-height:155px;}
  .parts dt {border-bottom:0; padding-bottom:0;}
  .parts dd {padding-top:2px;}
  .route-widget {padding:16px;}
}
