html:root {
  --navy: #102737;
  --navy-2: #0c3046;
  --ink: #142b3c;
  --muted: #536371;
  --paper: #f2f0ec;
  --off-white: #eeeae4;
  --line: #dad8d2;
  --gold: #e3a31f;
  --teal: #146950;
  --teal-dark: #124e41;
  --white: #fff;
  --editorial-shadow: 0 14px 38px #192a3415;
  --editorial-width: min(90%, 1320px);
}

html body { color: var(--ink); background: var(--paper); }
.shell { width: var(--editorial-width); }
.topbar, .topbar.is-scrolled {
  position: sticky;
  top: 0;
  padding: 15px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.editorial-home .topbar { position: fixed; }
.topbar > .nav {
  width: var(--editorial-width);
  min-height: 69px;
  padding: 10px 23px 10px 38px;
  gap: 17px;
  border-radius: 26px;
  background: #fffffff5;
  box-shadow: 0 16px 34px #0b1d2c26;
  backdrop-filter: blur(16px);
}
.topbar .brand { min-width: 0; flex: 0 0 auto; }
.topbar .brand strong { font-size: 1.12rem; font-weight: 850; }
.topbar .brand span span { color: var(--ink); text-transform: none; font-weight: 500; }
.topbar .nav-links { gap: 0; }
.topbar .nav-links > a, .topbar .service-menu > summary {
  position: relative;
  padding: 9px 12px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
}
.topbar .nav-links > a[aria-current="page"] { background: none; }
.topbar .nav-links > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  background: var(--gold);
}
.topbar .icon-btn { width: 44px; height: 42px; background: #ffffffbd; box-shadow: 0 2px 5px #1027370f; }
.btn-gold:not(:disabled), .topbar a.btn-primary {
  color: #0c2234;
  background: linear-gradient(180deg, #f8d78d, #edb443);
  box-shadow: 0 6px 14px #b472131e;
}
.topbar :is(.btn, .link-quote) { min-height: 42px; white-space: nowrap; font-size: .86rem; }
.editorial-home .mobile-panel { top: 91px; border-radius: 8px; width: var(--editorial-width); left: 50%; right: auto; translate: -50% 0; }
.editorial-home :is(#comparar-planos, #sobre, #contato) { scroll-margin-top: 104px; }
.editorial-home .hero {
  min-height: 770px;
  display: grid;
  align-items: end;
  padding: 130px 0 38px;
  color: var(--ink);
  background: linear-gradient(122deg, #e3e1de, var(--paper) 39%, #e8e5e0);
}
.editorial-home .hero::before, .editorial-home .hero::after { content: none; }
.hero-visual { position: absolute; inset: 0 0 0 43%; pointer-events: none; }
.hero-clip { position: absolute; }
.hero-navy {
  position: absolute;
  inset: 0;
  clip-path: polygon(41% 0, 100% 0, 100% 32%, 18% 39%);
  background: linear-gradient(146deg, #143a50, #081b29 73%);
}
.hero-photo { position: absolute; inset: 0; clip-path: url("#editorial-photo-clip"); background: #9fb5c1; }
.hero-photo img {
  position: absolute;
  inset: 12% 0 0;
  width: 100%;
  height: 88%;
  object-fit: cover;
  object-position: 25% center;
}
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-flight {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 28%;
  display: grid;
  place-items: end;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 34% 50%, 66% 20%);
  background: linear-gradient(135deg, #18435b, #071d2c);
}
.hero-flight svg { width: 72%; height: 91%; }
.editorial-home .hero-content { width: 47.5%; max-width: 650px; }
.editorial-home .eyebrow {
  min-height: 34px;
  color: var(--navy);
  border-color: #10273733;
  border-radius: 999px;
  background: #ffffff65;
  font-size: .84rem;
}
.editorial-home .eyebrow::before { background: #138758; box-shadow: none; flex: 0 0 8px; }
.editorial-home .hero h1 {
  max-width: 13ch;
  margin: 24px 0 14px;
  font-size: 3.45rem;
  font-weight: 800;
  line-height: 1.02;
  color: #132838;
}
.editorial-home .hero-lead { max-width: 50ch; margin: 0; color: #102737; font-size: 1.05rem; font-weight: 480; line-height: 1.48; }
.editorial-home .hero-actions { display: flex; gap: 12px; margin: 23px 0 24px; }
.editorial-home .hero-actions .btn { min-height: 49px; padding-inline: 15px; font-size: .85rem; font-weight: 820; }
.editorial-home .btn-ghost { color: var(--navy); background: #ffffff44; border-color: var(--navy); }
.editorial-home .btn-ghost:hover { background: #fff; }
.editorial-home .response-note {
  display: block;
  max-width: 54ch;
  padding-left: 15px;
  margin: 0;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.52;
}
.process-band {
  color: #fff;
  background: linear-gradient(112deg, #0c2535df, #102737 36%), url("./editorial-terminal.webp") left 45% / min(55%, 690px) auto no-repeat, #102737;
  border-radius: 0 0 24px 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 0;
  min-height: 188px;
  padding: 28px 0 28px min(7%, 100px);
  list-style: none;
}
.process-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 22px; padding: 0 22px; }
.process-steps li + li::before { content: ""; position: absolute; inset: 12% auto 12% 0; width: 1px; background: #fff4; }
.process-steps svg { width: 40px; height: 40px; }
.process-number { color: #f7bc43; font-size: 2.16rem; font-weight: 850; line-height: 1; }
.process-steps h2 { margin: 5px 0 4px; font-size: 1.14rem; color: #fff; line-height: 1.17; }
.process-steps p { margin: 0; color: #e0e5ea; font-size: .94rem; line-height: 1.43; }
.benefits-scene { position: relative; display: grid; align-items: center; min-height: 342px; padding: 36px 0; overflow: hidden; }
.benefits-scene > img {
  position: absolute;
  inset: 25px 0 0 auto;
  width: 58%;
  height: calc(100% - 25px);
  object-fit: cover;
  object-position: center 54%;
  clip-path: polygon(27% 0, 100% 0, 100% 100%, 0 100%, 20% 12%);
  border-radius: 44% 0 0 0;
}
.benefits-scene .hero-card {
  position: relative;
  inset: auto;
  width: 45%;
  padding: 24px;
  background: #ffffff80;
  border: 1px solid #10273717;
  border-radius: 8px;
  box-shadow: var(--editorial-shadow);
  animation: none;
}
.hero-card header strong { font-size: 1.36rem; }
.hero-card header small { background: #caece2; }
.hero-card .coverage-line { background: transparent; }
.hero-card .coverage-line i { animation: none; background: linear-gradient(90deg, #123748, #e3a31f); }
.hero-card .check { flex: 0 0 27px; width: 27px; height: 27px; margin: 0; background: #0a8e57; color: white; border: 0; }
.hero-card .check::before { border-color: white; }
.editorial-home .hero-card li { color: var(--ink); font-size: .98rem; }
.editorial-home .hospital-strip { background: #eae6e0; border-color: var(--line); }
.editorial-home .section { background: var(--paper); }
.editorial-home .section.white { background: #faf9f6; }
.editorial-home .section.dark, .footer:is(#contato, footer.footer) { color: white; background: linear-gradient(116deg, #0b2131, #153948); }
.editorial-home .section-head h2 { font-size: 2.5rem; line-height: 1.1; }
.editorial-home :is(.service-card, .quote-card, .blog-card) { background: #faf9f6; border-color: var(--line); border-radius: 8px; box-shadow: var(--editorial-shadow); }
.editorial-home .white :is(.service-card, .quote-card) { background: #fff; }
.editorial-home .quote-card { border-top: 2px solid var(--gold); }
.editorial-home .cta-band, .footer .footer-cta {
  border-radius: 8px;
  border: 1px solid #d4a44475;
  background: linear-gradient(115deg, #163849, #0d2434);
  color: white;
}
.editorial-home .cta-band h3, .editorial-home .cta-band p { color: white; }
.editorial-home .quote-dialog { background: #faf9f6; }
.editorial-home .diagnostic-aside, .editorial-home .diagnostic-bar { background: #102737; }
.editorial-home .diagnostic-aside::after { display: none; }

/* Shared editorial surfaces on the library, articles and intelligence pages. */
body:not(.editorial-home) > main .hero, .blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 68px 0 56px;
  color: var(--ink);
  background: var(--off-white);
}
body:not(.editorial-home) > main .hero::before, .blog-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 59%;
  z-index: -1;
  clip-path: polygon(43% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(110deg, #10273715, #1027376e), url("./editorial-terminal.webp") center / cover;
}
.blog-hero h1, body:not(.editorial-home) > main .hero h1 {
  color: var(--navy);
  max-width: min(17ch, 61%);
  font-size: 3.35rem;
  font-weight: 850;
  line-height: 1.05;
}
.blog-hero .cat, body:not(.editorial-home) > main .hero .eyebrow { color: var(--teal-dark); letter-spacing: 0; }
.blog-hero p, body:not(.editorial-home) > main .hero p { color: var(--ink); max-width: min(48ch, 58%); }
body:not(.editorial-home) .breadcrumb { background: var(--paper); }
body:not(.editorial-home) :is(.article-main, .content, .side-card, .post-card) { border-color: var(--line); box-shadow: var(--editorial-shadow); border-radius: 8px; }
body:not(.editorial-home) :is(.side-card, .editorial-pillars article) { border-top: 2px solid var(--gold); }
body:not(.editorial-home) .article-main { background: #faf9f6; }
body:not(.editorial-home) :is(.article-head h1, .article-body h2, .list-head h2) { letter-spacing: 0; }
body:not(.editorial-home) .article-meta .pill { background: #e0eee8; color: #124e41; }
body:not(.editorial-home) .newsletter { background: #102737; color: white; }
body:not(.editorial-home) .sidebar { top: 104px; }

:focus-visible { outline: 2px solid #a26806; outline-offset: 3px; }

@media (min-width: 1500px) {
  .editorial-home .hero { padding-top: 150px; padding-bottom: 62px; }
  .editorial-home .hero h1 { font-size: 4rem; }
}
@media (max-width: 1120px) {
  .topbar > .nav { padding-inline: 20px; }
  .topbar .nav-links > a, .topbar .service-menu > summary { padding-inline: 8px; }
  .editorial-home .hero h1 { font-size: 2.95rem; }
  .process-steps { padding-inline: 0; }
}
@media (max-width: 1020px) {
  .editorial-home .topbar .nav-actions .btn-phone { display: inline-flex; }
  .editorial-home .topbar .nav-actions .icon-btn { display: none; }
  .process-steps li { gap: 12px; padding-inline: 13px; }
}
@media (max-width: 760px) {
  .editorial-home .hero { min-height: 0; padding: 108px 0 0; align-items: start; }
  .editorial-home .hero > .shell { grid-row: 1; padding-bottom: 28px; }
  .editorial-home .hero-content { width: 100%; }
  .editorial-home .hero h1 { max-width: 14ch; font-size: 2.65rem; }
  .hero-visual { position: relative; inset: auto; height: 330px; width: 100%; }
  .hero-photo { clip-path: polygon(15% 6%, 100% 0, 100% 100%, 0 100%, 0 26%); }
  .hero-photo img { inset: 0; height: 100%; object-position: center 49%; }
  .hero-route { display: none; }
  .hero-navy { clip-path: polygon(16% 0, 100% 0, 100% 25%, 0 45%); }
  .process-steps { grid-template-columns: 1fr; padding-block: 6px; }
  .process-steps li { padding: 16px 4px; }
  .process-steps li + li::before { inset: 0 4px auto; width: auto; height: 1px; }
  .process-number { font-size: 1.58rem; }
  .process-steps svg { width: 28px; height: 28px; }
  .benefits-scene { min-height: 0; padding: 24px 0 0; }
  .benefits-scene .hero-card { width: 100%; padding: 19px; }
  .benefits-scene > img { position: relative; inset: auto; grid-row: 2; width: 100%; height: 215px; margin-top: 22px; border-radius: 0; clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 0 31%); }
  .editorial-home .section-head h2 { font-size: 1.91rem; }
  .blog-hero h1, body:not(.editorial-home) > main .hero h1 { max-width: 100%; font-size: 2.15rem; }
  .blog-hero p, body:not(.editorial-home) > main .hero p { max-width: 100%; }
  .blog-hero::before, body:not(.editorial-home) > main .hero::before { display: none; }
  .blog-hero, body:not(.editorial-home) > main .hero { padding: 44px 0; }
}
@media (max-width: 470px) {
  .topbar { padding-top: 9px; }
  .topbar > .nav { width: 94%; min-height: 58px; padding: 8px 10px; gap: 7px; border-radius: 17px; }
  .topbar .brand strong { font-size: .88rem; }
  .topbar .brand span span { font-size: .68rem; }
  .editorial-home .topbar .nav-actions { gap: 5px; }
  .editorial-home .topbar .nav-actions .btn-phone, .topbar a.btn-primary { min-height: 38px; gap: 4px; padding: 0 7px; font-size: .71rem; }
  .editorial-home .topbar .btn-phone svg { width: 13px; height: 13px; }
  .editorial-home .topbar .menu-btn { width: 35px; height: 38px; }
  .editorial-home .hero { padding-top: 89px; }
  .editorial-home .hero h1 { font-size: 2.18rem; }
  .editorial-home .hero-lead { font-size: .99rem; }
  .editorial-home .hero-actions { display: grid; }
  .editorial-home .mobile-panel { top: 75px; }
  .hero-visual { height: 270px; }
  .hero-card header strong { font-size: 1.1rem; }
}
@media (max-width: 350px) {
  .topbar .brand strong { max-width: 12ch; }
  .editorial-home .hero h1 { font-size: 1.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar .btn, .post-card { transition: none; }
}

.editorial-nav-actions { display: flex; align-items: center; gap: 9px; }
.editorial-nav-actions .link-quote { display: inline-flex; align-items: center; gap: 7px; }
.editorial-mail, .editorial-menu > summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  border: 1px solid var(--line);
  background: #fff9;
  border-radius: 8px;
  cursor: pointer;
}
.editorial-menu { display: none; }
.editorial-menu summary::-webkit-details-marker { display: none; }
.editorial-menu-services { border-top: 1px solid var(--line); }
.editorial-links { color-scheme: light; }
html body.editorial-links { color: var(--navy); background: var(--paper); }
.editorial-links .link-card { border-radius: 8px; border-color: #dad8d2; box-shadow: var(--editorial-shadow); }
.editorial-links .link-card.primary { background: linear-gradient(180deg, #f8d78d, #edb443); }
.editorial-links .phone-shell { border-color: #dad8d2; border-radius: 8px; box-shadow: var(--editorial-shadow); }
.editorial-links :is(.profile p, .footer) { color: #536371; }

@media (max-width: 1020px) {
  .editorial-header .nav-links { display: none; }
  .editorial-menu { display: block; }
  .editorial-mail { display: none; }
  .editorial-menu .service-menu-panel { min-width: 230px; right: 0; max-height: 70dvh; overflow: auto; }
}
@media (max-width: 470px) {
  .editorial-nav-actions { gap: 5px; }
  .editorial-menu > summary { width: 34px; height: 38px; }
  .editorial-nav-actions .link-quote { min-height: 38px; gap: 4px; padding: 0 7px; font-size: .71rem; }
  .editorial-nav-actions .link-quote svg { width: 13px; }
}
