:root {
  --night: #000C1E;
  --navy: #071530;
  --navy-2: #0D2148;
  --ink: #0A1433;
  --text: #39445C;
  --muted: #5A6377;
  --paper: #FDFAF7;
  --ivory: #F7F4EC;
  --gold: #E5C372;
  --gold-deep: #866418;
  --on-dark: #F7F4EC;
  --on-dark-2: #B8C2D4;
  --line: rgba(10, 20, 51, .13);
  --line-d: rgba(247, 244, 236, .13);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --label: Montserrat, var(--sans);
  --bar-inset: 8px;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-400-normal-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-400-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('fonts/montserrat-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
svg[hidden], button[hidden] { display: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; font: 400 1em/1.08 var(--serif); text-wrap: balance; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.site-topbar:not(.is-solid) :focus-visible,
.site-menu :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 50;
  inset: max(12px, env(safe-area-inset-top)) auto auto 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--paper);
}

.site-scroll-sentinel {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 9px;
  pointer-events: none;
}

.site-brand {
  --brand-mark: 36px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--brand-mark) * .27);
  flex: none;
  text-decoration: none;
}

.site-brand img:first-child { width: var(--brand-mark); height: auto; }
.site-brand img + img { width: calc(var(--brand-mark) * 2.65); height: auto; }
.site-brand--navy { display: none; }

/* Marca com o nome em texto fino (Montserrat 300), como nas páginas dos estudantes e dos médicos.
   Símbolo = 1,35 × o corpo do nome; espaço = 0,4 × o símbolo. */
.site-brand:has(.site-brand__name) { gap: calc(var(--brand-mark) * .4); }
.site-brand__name {
  display: block;
  padding-top: .06em;
  font: 300 calc(var(--brand-mark) / 1.35)/1 var(--label);
  letter-spacing: -.035em;
  white-space: nowrap;
}
a:has(> .site-brand) { text-decoration: none; }
.site-brand--white .site-brand__name { color: #fff; }
.site-brand--navy .site-brand__name { color: var(--navy); }

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 4px 5px 4px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--navy);
  color: var(--on-dark);
  font: 650 .875rem/1.2 var(--sans);
  text-decoration: none;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}

.site-btn__arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 37px;
  height: 36px;
  border-radius: 13px;
  background: var(--navy-2);
}

.site-btn--gold { color: var(--navy); background: var(--gold); }
.site-btn--gold:hover { background: #f0d38c; }
.site-btn--gold .site-btn__arrow { background: rgba(7, 21, 48, .09); }
.site-btn--glass { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .14); backdrop-filter: blur(14px); }
.site-btn--glass:hover { background: rgba(255, 255, 255, .2); }
.site-btn--glass .site-btn__arrow { background: rgba(255, 255, 255, .15); }
.site-btn svg, .site-nav svg, .site-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-topbar {
  position: fixed;
  z-index: 30;
  inset: max(var(--bar-inset), env(safe-area-inset-top)) var(--bar-inset) auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  height: 76px;
  padding-inline: 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--on-dark);
  transition: background-color .5s var(--ease), border-color .5s var(--ease),
    box-shadow .5s var(--ease), backdrop-filter .5s var(--ease), color .5s var(--ease);
}

.site-topbar.is-solid {
  color: var(--navy);
  background: rgba(253, 250, 247, .72);
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 8px 24px rgba(7, 21, 48, .08);
  backdrop-filter: blur(24px);
}

.site-topbar.is-solid .site-brand--white { display: none; }
.site-topbar.is-solid .site-brand--navy { display: inline-flex; }
.site-topbar__home { justify-self: start; display: inline-flex; border-radius: 4px; }
.site-nav, .site-topbar__actions > .site-btn { display: none; }
.site-topbar__actions { display: flex; align-items: center; gap: 8px; }
.site-topbar__login { padding: 10px 6px; font-weight: 650; text-decoration: none; }
.site-topbar__login:hover { text-decoration: underline; }
.site-menu-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
}
.site-menu-toggle:hover { background: var(--line); }
.no-js .site-menu-toggle { display: none; }

.site-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  overflow: auto;
  border: 0;
  background: var(--night);
  color: var(--on-dark);
}

html:has(.site-menu[open]) { overflow: hidden; }
.site-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.site-menu nav { display: grid; justify-items: start; gap: 18px; margin-bottom: 32px; }
.site-menu nav a { font: 400 2.5rem/1.1 var(--serif); text-decoration: none; }
.site-menu nav a:hover { text-decoration: underline; }
.site-menu .store-badges { margin-top: 32px; }
.site-menu__stores { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 36px 0 0; padding: 0; list-style: none; }
.site-menu__stores a { color: var(--on-dark-2); font: 500 .8125rem/24px var(--label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.site-menu__stores a:hover { color: var(--gold); }

.site-footer { border-top: 1px solid var(--line-d); background: var(--night); color: var(--on-dark); }
.site-footer__inner { width: 100%; max-width: 1512px; margin-inline: auto; padding: 64px 24px; }
.site-footer__main { display: flex; flex-direction: column; gap: 48px; }
.site-footer__brand .site-brand { --brand-mark: 60px; }
.site-footer__brand p { margin: 24px 0 0; color: var(--on-dark-2); }
.site-footer__links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.site-footer__links h2 {
  margin: 0 0 36px;
  color: var(--gold);
  font: 600 .75rem/24px var(--label);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.site-footer__links ul { display: grid; gap: 24px; padding: 0; margin: 0; list-style: none; }
.site-footer__links a, .site-footer__links button { text-decoration: none; overflow-wrap: anywhere; }
.site-footer__links button { padding: 0; border: 0; background: transparent; text-align: start; }
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--gold); text-decoration: underline; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badges img { width: auto; height: 40px; }
.site-footer__links .store-badges { display: grid; justify-items: start; }
.site-footer__note { margin: 56px 0 0; padding-top: 40px; border-top: 1px solid var(--line-d); color: var(--on-dark-2); font-size: .75rem; }

/* Rodapé no molde da referência: marca grande, linha, cápsula dourada, redes; três colunas; fio e links legais. */
.site-footer:has(.site-footer__aside) .site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.site-footer__home { display: inline-flex; border-radius: 4px; }
.site-footer__brand { --foot-mark: 52px; }
.site-footer__brand .site-footer__home .site-brand { --brand-mark: var(--foot-mark); }
.site-footer__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.site-footer__brand .site-footer__line { margin: 0; color: var(--on-dark-2); font-size: .9375rem; line-height: 1.5; }
.site-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font: 700 .875rem/20px var(--label);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s cubic-bezier(.4, 0, .2, 1), background-color .3s var(--ease);
}
.site-footer__cta:hover { background: #f0d38c; transform: scale(1.03); }
.site-footer__social { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-footer__social a { display: grid; place-items: center; width: 32px; height: 32px; margin: -5px; color: var(--on-dark-2); transition: color .15s cubic-bezier(.4, 0, .2, 1); }
.site-footer__social a:hover { color: var(--gold); }
.site-footer__social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.site-footer:has(.site-footer__aside) .site-footer__links h2 {
  margin: 0 0 36px;
  color: rgba(247, 244, 236, .52);
  font: 500 .8125rem/24px var(--label);
  letter-spacing: .16em;
}
.site-footer:has(.site-footer__aside) .site-footer__links a { color: rgba(247, 244, 236, .74); }
.site-footer:has(.site-footer__aside) .site-footer__links a:hover { color: var(--gold); text-decoration: none; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line-d);
}
.site-footer__bottom .site-footer__note { margin: 0; padding: 0; border: 0; color: rgba(247, 244, 236, .6); font-size: .75rem; line-height: 16px; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.site-footer__legal li { display: flex; align-items: center; }
.site-footer__legal li + li::before { content: '|'; margin-inline: 8px; color: rgba(247, 244, 236, .35); font-size: .75rem; }
.site-footer__legal :is(a, button) {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(247, 244, 236, .6);
  font: 400 .75rem/16px var(--sans);
  text-decoration: none;
}
.site-footer__legal :is(a, button):hover { color: var(--gold); }

@media (min-width: 640px) {
  .site-topbar { padding-inline: 24px; }
  .site-footer__inner { padding-inline: 40px; }
  .site-footer__brand .site-brand { --brand-mark: 75px; }
  .site-footer__links { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; }
  .site-footer__brand { --foot-mark: 64px; }
}

@media (min-width: 1024px) {
  :root { --bar-inset: 16px; }
  .site-topbar { grid-template-columns: 1fr auto 1fr; padding-inline: 16px; }
  .site-topbar__actions { justify-self: end; }
  .site-topbar__actions > .site-btn, .site-nav { display: flex; }
  .site-nav { gap: 8px; align-items: center; }
  .site-nav a { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 18px; text-decoration: none; font-size: .875rem; font-weight: 650; }
  .site-nav__icon { display: grid; place-items: center; width: 40px; height: 37px; border-radius: 13px; }
  .site-nav :is(a:hover, [aria-current='page']) { background: rgba(255, 255, 255, .14); }
  .site-nav [aria-current='page'] .site-nav__icon { background: rgba(255, 255, 255, .18); }
  .is-solid .site-nav :is(a:hover, [aria-current='page']), .is-solid .site-nav [aria-current='page'] .site-nav__icon { background: var(--line); }
  .site-topbar .site-menu-toggle { display: none; }
  .site-footer__inner { padding: 70px 112px; }
}

@media (min-width: 1280px) {
  .site-topbar { padding-inline: 32px; }
  .site-topbar__actions, .site-nav { gap: 12px; }
  .site-nav a { gap: 16px; padding-right: 16px; font-size: 1rem; }
  .site-nav__icon { width: 48px; }
  .site-footer__inner { padding-inline: 173px; }
  .site-footer__main { flex-direction: row; justify-content: space-between; gap: 64px; }
  .site-footer__brand .site-brand { --brand-mark: 90px; }
  .site-footer__links { gap: clamp(28px, 4vw, 64px); }
  /* Como na referência: a linha, a cápsula e as redes alinham com o nome, não com o símbolo. */
  .site-footer__brand { --foot-mark: 78px; }
  .site-footer:has(.site-footer__aside) .site-footer__brand { gap: 20px; margin-top: -9px; }
  .site-footer__aside { margin-left: calc(var(--foot-mark) * 1.4); gap: 0; }
  .site-footer__aside .site-footer__cta { margin-top: 22px; }
  .site-footer__aside .site-footer__social { margin-top: 40px; }
  .site-footer:has(.site-footer__aside) .site-footer__links { display: flex; gap: 64px; }
}

.js [data-reveal].will-reveal { opacity: .88; translate: 0 16px; }
.js [data-reveal] { transition: opacity .5s var(--ease), translate .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .site-topbar, .site-btn, .js [data-reveal] { transition: none; }
  .js [data-reveal].will-reveal { opacity: 1; translate: none; }
}

[data-save-data] :is(.site-topbar, .site-btn, [data-reveal]) { transition: none; }
[data-save-data] [data-reveal].will-reveal { opacity: 1; translate: none; }
