@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bone: #f5f1ea;
  --paper: #fcfaf6;
  --ink: #1b1714;
  --night: #181410;
  --night-soft: #211c18;
  --night-line: #352e28;
  --muted: #9c9287;
  --clay: #c24324;
  --clay-light: #f06b43;
  --clay-pale: #e7c4ad;
  --educa: #2563eb;
  --educa-pale: #dfe8ff;
  --beauty: #526d8d;
  --page-pad: clamp(1.25rem, 4vw, 4.75rem);
  --max-width: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--bone);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--clay-light);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  /* A linha inferior cruza toda a largura; o conteúdo segue alinhado à coluna de --max-width. */
  width: 100%;
  padding: 1.6rem
    max(var(--page-pad), calc((100% - var(--max-width)) / 2 + var(--page-pad)));
  border-bottom: 1px solid var(--night-line);
}

.suite-mark {
  display: inline-flex;
  width: 7.5rem;
  align-items: center;
}

.suite-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.suite-mark-footer {
  width: 8rem;
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.suite-mark-footer:hover {
  opacity: 1;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #c7beb3;
  font-size: 0.78rem;
  font-weight: 500;
}

.site-header nav a,
.footer-links a {
  transition: color 180ms ease;
}

.site-header nav a:hover,
.footer-links a:hover {
  color: var(--bone);
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 1.4rem;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #76695d;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.header-action:hover {
  border-color: var(--clay-light);
  color: var(--clay-light);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(30rem, 0.95fr);
  gap: clamp(3rem, 8vw, 8rem);
  min-height: 760px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8.5rem) var(--page-pad) clamp(5rem, 9vw, 9rem);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(245, 241, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 234, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent 2%, black 45%, black 100%);
}

.hero::after {
  position: absolute;
  top: 9%;
  left: -9rem;
  z-index: -1;
  width: 19rem;
  aspect-ratio: 1;
  border: 1px solid rgba(194, 67, 36, 0.34);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.7rem;
  color: var(--clay-pale);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(3.7rem, 5.55vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.93;
}

.hero h1 > span {
  display: block;
}

.hero-title-main {
  white-space: nowrap;
}

.hero h1 .hero-title-accent {
  color: var(--clay-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 40rem;
  margin: 2.4rem 0 0;
  color: #b9afa5;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.hero-actions p {
  max-width: 15rem;
  margin: 0;
  color: #82776d;
  font-size: 0.72rem;
  line-height: 1.6;
}

.hero-actions strong {
  color: #c7beb3;
  font-weight: 500;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem 1.35rem;
  border-radius: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--clay);
  color: #fff8f3;
}

.button-primary:hover {
  background: var(--clay-light);
  color: var(--ink);
}

.flow-map {
  position: relative;
  align-self: center;
  min-height: 540px;
  border: 1px solid var(--night-line);
  border-radius: 50%;
}

.flow-map-grid {
  position: absolute;
  inset: 10%;
  opacity: 0.25;
  border-radius: 50%;
  background-image: radial-gradient(circle, #9c9287 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle, black 35%, transparent 75%);
}

.flow-orbit {
  position: absolute;
  border-radius: 50%;
}

.flow-orbit-inner {
  inset: 18%;
  border: 1px dashed #5a4f46;
}

.flow-orbit-outer {
  inset: 5.5%;
  border: 1px solid rgba(156, 146, 135, 0.18);
}

.flow-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 11.5rem;
  aspect-ratio: 1;
  place-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--clay);
  color: #fff5ef;
  text-align: center;
  box-shadow: 0 0 0 1.5rem rgba(194, 67, 36, 0.09);
}

.flow-core span,
.flow-core strong {
  display: block;
}

.flow-core span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-core strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
}

.flow-system {
  --planet-accent: var(--clay-light);
  --planet-size: 7.25rem;
  --planet-surface: #321b13;
  --orbit-duration: 32s;
  --orbit-size: 76%;
  --orbit-start: 45deg;
  --orbit-start-negative: -45deg;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: var(--orbit-size);
  aspect-ratio: 1;
  pointer-events: none;
  animation: planet-orbit var(--orbit-duration) linear infinite;
}

.flow-planet {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: var(--planet-size);
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid color-mix(in srgb, var(--planet-accent) 58%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 34% 28%,
      color-mix(in srgb, var(--planet-accent) 32%, transparent),
      transparent 28%
    ),
    radial-gradient(circle at 58% 62%, var(--planet-surface), #171310 74%);
  color: var(--bone);
  text-align: center;
  box-shadow:
    inset -1.2rem -1.4rem 2.5rem rgba(0, 0, 0, 0.3),
    0 0 0 0.55rem color-mix(in srgb, var(--planet-accent) 6%, transparent),
    0 1.25rem 3.2rem rgba(0, 0, 0, 0.34);
  cursor: pointer;
  pointer-events: auto;
  transition:
    border-color 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
  animation: planet-counter-orbit var(--orbit-duration) linear infinite;
}

.flow-planet:hover,
.flow-planet:focus-visible {
  border-color: var(--planet-accent);
  filter: brightness(1.18);
  box-shadow:
    inset -1.2rem -1.4rem 2.5rem rgba(0, 0, 0, 0.24),
    0 0 0 0.75rem color-mix(in srgb, var(--planet-accent) 11%, transparent),
    0 1.5rem 3.7rem rgba(0, 0, 0, 0.38);
}

.flow-planet::before {
  position: absolute;
  inset: -12%;
  border: 1px solid color-mix(in srgb, var(--planet-accent) 22%, transparent);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg) scaleY(0.34);
}

.flow-planet strong,
.flow-planet small {
  position: relative;
  z-index: 1;
}

.flow-planet strong {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.flow-planet strong span {
  color: var(--planet-accent);
}

.flow-planet small {
  margin-bottom: 0.32rem;
  color: color-mix(in srgb, var(--planet-accent) 68%, var(--bone));
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flow-system-imob {
  --planet-size: 7.25rem;
  --orbit-size: 76%;
  --orbit-start: 288deg;
  --orbit-start-negative: -288deg;
}

/* Posições iniciais iguais ao símbolo da marca: Imob 288°, Educa 22°, Beauty 148° e Clinical 232°
   (sentido horário a partir do topo). Educa fica entre a órbita interna (Clinical) e a externa. */
.flow-system-educa {
  --planet-accent: #7ca1ff;
  --planet-size: 6.25rem;
  --planet-surface: #18233d;
  --orbit-size: 68%;
  --orbit-start: 22deg;
  --orbit-start-negative: -22deg;
}

.flow-system-beauty {
  --planet-accent: #9db9d7;
  --planet-size: 6.65rem;
  --planet-surface: #192531;
  --orbit-size: 75%;
  --orbit-start: 148deg;
  --orbit-start-negative: -148deg;
}

.flow-system-clinical {
  --planet-accent: #67a9b7;
  --planet-size: 6.25rem;
  --planet-surface: #142a2e;
  --orbit-size: 60%;
  --orbit-start: 232deg;
  --orbit-start-negative: -232deg;
}

/* AtendeFlow (chatbot e API de WhatsApp): serviço comum aos produtos, à direita da órbita externa. */
.flow-system-atende {
  --planet-accent: #4fbf7f;
  --planet-size: 6.25rem;
  --planet-surface: #15291e;
  --orbit-size: 80%;
  --orbit-start: 85deg;
  --orbit-start-negative: -85deg;
}

.flow-system-atende .flow-planet {
  cursor: default;
}

.statement {
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad);
  background: var(--clay);
  color: #fff7f2;
}

.statement p {
  width: min(100%, 1150px);
  margin: 0 auto;
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.05;
}

.statement span {
  display: block;
  color: #5d1f10;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.products {
  padding: clamp(6rem, 10vw, 10rem) var(--page-pad);
  background: var(--bone);
  color: var(--ink);
}

.products > * {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--clay);
}

.section-heading h2,
.principles h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.section-heading > p:last-child,
.principles-intro > p:last-child {
  max-width: 35rem;
  margin: 0;
  color: #6c625a;
  font-size: 0.94rem;
  line-height: 1.75;
}

.product {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.product-index {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.product-status {
  padding: 0.45rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product h3 {
  margin: 1.8rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.product p:not(.product-wordmark) {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.75;
}

.product-imob {
  display: grid;
  grid-template-columns: minmax(19rem, 0.68fr) minmax(0, 1.32fr);
  min-height: 670px;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: var(--night-soft);
  color: var(--bone);
}

.product-imob::before {
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 34rem;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 107, 67, 0.25);
  border-radius: 50%;
  content: "";
}

.product-imob .product-copy {
  position: relative;
  z-index: 2;
  padding-right: clamp(1rem, 5vw, 5rem);
}

.product-imob .product-meta {
  color: var(--clay-pale);
}

.imobflow-logo {
  width: min(100%, 17rem);
  height: auto;
}

.product-imob h3 {
  max-width: 11ch;
}

.product-imob p {
  max-width: 32rem;
  color: #b9afa5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.tag-list li {
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: #c8bdb2;
  font-size: 0.63rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 600;
  transition:
    gap 180ms ease,
    opacity 180ms ease;
}

.product-link:hover {
  gap: 1.15rem;
  opacity: 0.75;
}

.product-link-disabled {
  width: fit-content;
  border-bottom-color: transparent;
  cursor: default;
  opacity: 0.58;
}

.product-link-disabled:hover {
  gap: 0.8rem;
  opacity: 0.58;
}

.imob-preview {
  position: absolute;
  top: 8rem;
  right: -5rem;
  width: min(65%, 57rem);
  transform: rotate(-2deg);
  transform-origin: center;
}

.imob-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, var(--night-soft) 104%);
  content: "";
  pointer-events: none;
}

.imob-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #453c35;
  border-radius: 0.8rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.55);
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem 1rem;
  color: #9c9287;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay-light);
  box-shadow: 0 0 0 5px rgba(240, 107, 67, 0.12);
}

.product-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.product-pair .product {
  display: flex;
  min-height: 710px;
  flex-direction: column;
  padding: clamp(1.6rem, 3.5vw, 3.5rem);
}

.product-wordmark {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.065em;
}

.product-wordmark span {
  color: var(--educa);
}

.product-educa {
  background: var(--educa-pale);
  color: #0f275f;
}

.product-educa .product-status {
  color: #1749ba;
}

.product-educa > p:not(.product-wordmark) {
  max-width: 34rem;
  color: #43557d;
}

.educa-board {
  display: grid;
  gap: 0.65rem;
  margin: auto 0 0;
  padding: 1.2rem;
  transform: rotate(1.5deg);
  border: 1px solid #abc0f2;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1.5rem 4rem rgba(37, 99, 235, 0.12);
}

.educa-board-head,
.lesson {
  display: grid;
  grid-template-columns: 1fr minmax(3rem, 0.9fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.educa-board-head {
  display: flex;
  justify-content: space-between;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid #b9c9ee;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
}

.educa-board-head i {
  color: var(--educa);
  font-style: normal;
}

.lesson {
  min-height: 2.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.72);
}

.lesson b,
.lesson small {
  font-size: 0.58rem;
  font-weight: 500;
}

.lesson small {
  color: #5a6c95;
}

.lesson span {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #d4def4;
}

.lesson span::after {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: var(--educa);
  content: "";
}

.lesson-two span::after {
  width: 43%;
  background: #f59e0b;
}

.lesson-three span::after {
  width: 62%;
}

.product-educa .product-link {
  margin-top: 2.2rem;
}

.product-beauty {
  background: #1c2732;
  color: #edf2f7;
}

.product-beauty::before {
  position: absolute;
  right: -15%;
  bottom: 12%;
  width: 45%;
  aspect-ratio: 1;
  border: 1px solid rgba(220, 229, 239, 0.12);
  border-radius: 50%;
  content: "";
}

.product-beauty .product-status,
.beauty-wordmark span {
  color: #9fb9d7;
}

.product-beauty > p:not(.product-wordmark) {
  max-width: 34rem;
  color: #aebbc8;
}

.beauty-orbit {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1.8;
  margin: auto auto 0;
  border: 1px solid rgba(159, 185, 215, 0.25);
  border-radius: 50%;
}

.beauty-orbit::before {
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(159, 185, 215, 0.25);
  border-radius: 50%;
  content: "";
}

.beauty-center,
.beauty-chip {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 500;
}

.beauty-center {
  top: 50%;
  left: 50%;
  width: 6rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--beauty);
  color: #fff;
}

.beauty-chip {
  padding: 0.5rem 0.75rem;
  border: 1px solid #455a70;
  background: #263646;
  color: #dce5ef;
}

.chip-agenda {
  top: -1rem;
  left: 20%;
}

.chip-clients {
  top: 22%;
  right: -1.2rem;
}

.chip-finance {
  right: 18%;
  bottom: -1rem;
}

.chip-stock {
  bottom: 12%;
  left: -1rem;
}

/* ClinicalFlow e AtendeFlow: cartões escuros com a cor de cada planeta do mapa animado. */
.product-pair-compact .product {
  min-height: 0;
}

.product-dark {
  border: 1px solid var(--night-line);
  background: var(--night-soft);
  color: var(--bone);
}

.product-dark .product-wordmark span,
.product-dark .product-status {
  color: var(--product-accent);
}

.product-dark > p:not(.product-wordmark) {
  max-width: 32rem;
  color: #b9afa5;
}

.product-dark .product-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 2.7rem;
  color: var(--product-accent);
}

.product-clinical {
  --product-accent: #67a9b7;
}

.product-atende {
  --product-accent: #4fbf7f;
}

.product-beauty .product-link {
  position: relative;
  z-index: 2;
  margin-top: 2.2rem;
}

.principles {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(4rem, 9vw, 10rem);
  padding: clamp(6rem, 10vw, 10rem) var(--page-pad);
  background: var(--paper);
  color: var(--ink);
}

.principles > * {
  width: 100%;
  max-width: 680px;
}

.principles-intro {
  justify-self: end;
}

.principles .eyebrow {
  color: var(--clay);
}

.principles h2 {
  margin-bottom: 2rem;
}

.principle-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.principle-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid #d9d0c5;
}

.principle-list li:last-child {
  border-bottom: 1px solid #d9d0c5;
}

.principle-list > li > span {
  color: var(--clay);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.principle-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.principle-list p {
  margin: 0;
  color: #746a62;
  font-size: 0.8rem;
  line-height: 1.6;
}

.closing {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  background: var(--clay);
  color: #fff8f3;
}

.closing .eyebrow {
  color: #642411;
}

.closing h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.button-light {
  flex: 0 0 auto;
  background: var(--bone);
  color: var(--ink);
}

.button-light:hover {
  background: var(--night);
  color: var(--bone);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem var(--page-pad);
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: #83786e;
}

.site-footer p {
  margin: 0;
  font-size: 0.68rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-self: end;
  gap: 1.4rem;
  color: #afa49a;
  font-size: 0.67rem;
}

.footer-links span {
  color: #756b62;
}

.whatsapp-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  width: 3.65rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 0 0 0.5rem rgba(37, 211, 102, 0.08),
    0 1rem 2.5rem rgba(0, 0, 0, 0.34);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.04);
  background: #20bd5a;
  box-shadow:
    0 0 0 0.65rem rgba(37, 211, 102, 0.11),
    0 1.2rem 3rem rgba(0, 0, 0, 0.4);
}

.whatsapp-fab svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.scroll-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 49;
  display: grid;
  width: 3.15rem;
  aspect-ratio: 1;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.7rem) scale(0.92);
  border: 1px solid rgba(245, 241, 234, 0.3);
  border-radius: 50%;
  background: rgba(24, 20, 16, 0.88);
  color: var(--clay-light);
  font-size: 1.15rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.has-whatsapp .scroll-top {
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 4.8rem);
}

.scroll-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  border-color: var(--clay-light);
  background: var(--clay);
  color: #fff;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.hero .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.hero .reveal:nth-child(4) {
  transition-delay: 270ms;
}

@keyframes planet-orbit {
  from {
    transform: translate(-50%, -50%) rotate(var(--orbit-start));
  }

  to {
    transform: translate(-50%, -50%)
      rotate(calc(var(--orbit-start) + 360deg));
  }
}

@keyframes planet-counter-orbit {
  from {
    transform: translate(-50%, -50%) rotate(var(--orbit-start-negative));
  }

  to {
    transform: translate(-50%, -50%)
      rotate(calc(var(--orbit-start-negative) - 360deg));
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 50rem;
  }

  .flow-map {
    width: min(100%, 650px);
    margin: 0 auto;
  }

  .product-imob {
    grid-template-columns: 1fr;
    min-height: 920px;
  }

  .product-imob .product-copy {
    padding-right: 0;
  }

  .imob-preview {
    top: auto;
    right: -2rem;
    bottom: -1rem;
    width: 90%;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    gap: 4rem;
    padding-top: 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 11.5vw, 4.8rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-map {
    min-height: 390px;
  }

  .flow-core {
    width: 8.5rem;
  }

  .flow-core strong {
    font-size: 1.25rem;
  }

  .flow-system-imob {
    --planet-size: 6.2rem;
    --orbit-size: 75%;
  }

  .flow-system-educa {
    --planet-size: 5.45rem;
    --orbit-size: 72%;
  }

  .flow-system-beauty {
    --planet-size: 5.8rem;
    --orbit-size: 74%;
  }

  .flow-system-clinical {
    --planet-size: 5.45rem;
    --orbit-size: 70%;
  }

  .flow-system-atende {
    --planet-size: 5.8rem;
    --orbit-size: 78%;
  }

  .section-heading,
  .product-pair,
  .principles {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 2rem;
  }

  .product-imob {
    min-height: 760px;
  }

  .product-pair .product {
    min-height: 650px;
  }

  .principles-intro,
  .principles > * {
    max-width: none;
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }

  .footer-links {
    justify-self: start;
    flex-wrap: wrap;
  }
}

/* Cinco produtos no topo: links mais compactos antes de faltar largura. */
@media (max-width: 900px) {
  .header-actions {
    gap: 0.85rem;
  }

  .header-action {
    gap: 0.35rem;
    font-size: 0.66rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    row-gap: 1.1rem;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-self: stretch;
    justify-content: flex-start;
    row-gap: 0.75rem;
  }
}

@media (max-width: 460px) {
  .header-actions {
    gap: 0.65rem;
  }

  .header-action {
    gap: 0.3rem;
    font-size: 0.62rem;
  }

  .header-action > span[aria-hidden="true"] {
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .whatsapp-fab {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 3.35rem;
  }

  .scroll-top {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .has-whatsapp .scroll-top {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.5rem);
  }

  .flow-map {
    min-height: 330px;
  }

  .flow-system-imob {
    --planet-size: 5.6rem;
  }

  .flow-system-educa {
    --planet-size: 4.9rem;
  }

  .flow-system-beauty {
    --planet-size: 5.2rem;
  }

  .flow-system-clinical {
    --planet-size: 4.9rem;
  }

  .flow-system-atende {
    --planet-size: 5.2rem;
  }

  .flow-planet strong {
    font-size: 0.72rem;
  }

  .flow-planet small {
    font-size: 0.43rem;
  }

  .product-imob,
  .product-pair .product {
    border-radius: 1.1rem;
  }

  .product-imob {
    min-height: 700px;
  }

  .imob-preview {
    right: -3rem;
    width: 115%;
  }

  .educa-board {
    padding: 0.8rem;
  }

  .lesson {
    grid-template-columns: 1fr 0.8fr;
  }

  .lesson small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
