/* =========================================================
   NIDDS — Landing V2
   Mesma identidade (navy + dourado, serifada), mecânicas novas.
   Isolado: nao depende de main.css / components.css / responsive.css.
   ========================================================= */

:root {
  --navy: #0a1f3d;
  --navy-deep: #06111f;
  --navy-light: #17335c;
  --gold: #c9a24b;
  --gold-bright: #e3c27e;
  --ivory: #f7f4ec;
  --ivory-2: #efeade;
  --line: #e0d6bf;
  --line-dark: rgba(201, 162, 75, 0.22);
  --ink: #0f1a2b;
  --ink-soft: #4a5468;
  --cream: #f2ede0;

  --font-display: "Playfair Display", Georgia, serif;
  --font-logo: "Cinzel", "Playfair Display", serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --rail-w: 150px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.landing {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- primitivos ---------- */

.wrap {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.eyebrow.is-centered {
  justify-content: center;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.display em {
  font-style: italic;
  color: var(--gold);
}

h2.display {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
}

.lead {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 54ch;
}

.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 6vw, 92px);
}

/* botoes: retos, hairline — ruptura deliberada com os pills atuais */

.btn {
  --btn-fg: var(--ivory);
  --btn-bg: var(--navy);
  --btn-bd: var(--navy);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  overflow: hidden;
  transition:
    color 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.btn > span {
  position: relative;
  z-index: 1;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}

.btn:hover::after {
  transform: scaleY(1);
}

.btn:hover {
  color: var(--navy);
  border-color: var(--gold);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-bd: rgba(15, 26, 43, 0.35);
}

.on-navy .btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  --btn-bd: var(--gold);
}

.on-navy .btn::after {
  background: var(--cream);
}

.on-navy .btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: rgba(242, 237, 224, 0.32);
}

.on-navy .btn-ghost::after {
  background: var(--cream);
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* reveal por mascara, nao por fade+translate */

/* mascara em vez de clip-path: clip-path zera a area de intersecao
   e trava o IntersectionObserver que dispara o proprio reveal. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 50%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 50%);
  -webkit-mask-size: 100% 200%;
  mask-size: 100% 200%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transition:
    -webkit-mask-position 1s var(--ease),
    mask-position 1s var(--ease),
    opacity 0.9s var(--ease),
    transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

/* ---------- header ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 22px 0;
  transition:
    padding 0.5s var(--ease),
    background-color 0.5s var(--ease),
    border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  padding: 12px 0;
  background: rgba(6, 17, 31, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 52px;
  width: auto;
  transition: height 0.5s var(--ease);
}

.nav.is-stuck .brand img {
  height: 40px;
}

.brand-name {
  font-family: var(--font-logo);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--cream);
  line-height: 1.1;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-top: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition:
    width 0.45s var(--ease),
    left 0.45s var(--ease);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-actions .btn {
  padding: 13px 24px;
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: rgba(242, 237, 224, 0.35);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(242, 237, 224, 0.3);
  border-radius: 2px;
  color: var(--cream);
  align-items: center;
  justify-content: center;
}

/* avatar (sessao logada) */

.user-menu {
  position: relative;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 210px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
  box-shadow: 0 24px 60px rgba(6, 17, 31, 0.25);
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.user-dropdown a {
  display: block;
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 2px;
}

.user-dropdown a:hover {
  background: var(--ivory-2);
  color: var(--gold);
}

/* ---------- drawer mobile ---------- */

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 88vw);
  background: var(--navy-deep);
  z-index: 1000;
  padding: 32px var(--pad);
  transform: translateX(100%);
  transition: transform 0.7s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 34px;
  overflow-y: auto;
}

.drawer.is-open {
  transform: none;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer nav {
  display: grid;
  gap: 4px;
}

.drawer nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(242, 237, 224, 0.08);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
}

.drawer nav a i {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.drawer-actions {
  display: grid;
  gap: 12px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 17, 31, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease);
  z-index: 999;
}

.scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- rail de leitura ---------- */

.rail {
  position: fixed;
  top: 50%;
  left: 26px;
  transform: translateY(-50%);
  z-index: 800;
  display: grid;
  gap: 2px;
  mix-blend-mode: difference;
}

.rail a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 237, 224, 0.45);
  transition: color 0.4s var(--ease);
}

.rail a i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.rail a b {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease);
}

.rail a span {
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.5s var(--ease);
  font-weight: 500;
}

.rail a:hover span {
  opacity: 1;
  transform: none;
}

.rail a:hover,
.rail a.is-active {
  color: var(--gold-bright);
}

.rail a.is-active b {
  width: 42px;
}

/* ---------- 01 hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  overflow: hidden;
}

.hero-rules {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--pad);
  pointer-events: none;
  opacity: 0.5;
}

.hero-rules span {
  border-right: 1px solid rgba(242, 237, 224, 0.06);
}

.hero-rules span:first-child {
  border-left: 1px solid rgba(242, 237, 224, 0.06);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(34px, 4vw, 58px);
  flex: 1;
}

.hero-copy {
  padding-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 24px 0 26px;
}

.hero-title .ln {
  display: block;
  overflow: hidden;
}

.hero-title .ln > span {
  display: block;
  transform: translateY(102%);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.hero.is-ready .hero-title .ln > span {
  transform: none;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-copy .lead {
  color: rgba(242, 237, 224, 0.72);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 58svh;
  margin-left: auto;
  overflow: hidden;
  border-radius: 2px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.75) contrast(1.06) brightness(0.92);
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}

.hero-visual:hover img {
  transform: scale(1);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(10, 31, 61, 0.62),
    rgba(201, 162, 75, 0.28)
  );
  mix-blend-mode: multiply;
}

.hero-visual figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 24px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(to top, rgba(6, 17, 31, 0.85), transparent);
  width: 100%;
}

.hero-mark {
  position: absolute;
  right: -14%;
  top: 46%;
  width: 780px;
  max-width: 70vw;
  transform: translateY(-50%);
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

/* ticker de provas */

.ticker {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  display: flex;
  background: rgba(6, 17, 31, 0.35);
}

.ticker-row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 56px;
  padding: 18px 28px 18px 0;
  animation: slide 34s linear infinite;
}

.ticker:hover .ticker-row {
  animation-play-state: paused;
}

.ticker-row span {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 237, 224, 0.78);
}

.ticker-row span .icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

@keyframes slide {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- 02 split de escolha ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92svh;
  background: var(--navy-deep);
}

.split-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(36px, 4.6vw, 76px);
  overflow: hidden;
  color: var(--cream);
  border-right: 1px solid rgba(242, 237, 224, 0.08);
  transition: flex-grow 0.8s var(--ease);
}

.split-panel:last-child {
  border-right: none;
}

.split-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.5);
  transform: scale(1.08);
  transition:
    transform 1.4s var(--ease),
    filter 0.9s var(--ease);
}

.split-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 17, 31, 0.94) 12%,
    rgba(10, 31, 61, 0.72) 55%,
    rgba(10, 31, 61, 0.5)
  );
  transition: background 0.9s var(--ease);
}

.split-panel[data-side="pro"]::before {
  background-image: url("../img/odontologia.webp");
}

.split-panel[data-side="client"]::before {
  background-image: url("../img/Cuidador.webp");
}

.split-panel:hover::before {
  transform: scale(1);
  filter: grayscale(0.35) brightness(0.62);
}

.split-panel:hover::after {
  background: linear-gradient(
    to top,
    rgba(6, 17, 31, 0.92) 8%,
    rgba(10, 31, 61, 0.45) 62%,
    rgba(201, 162, 75, 0.16)
  );
}

.split-body {
  position: relative;
  z-index: 2;
  max-width: 30rem;
}

.split-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.split-body h3 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  margin-bottom: 18px;
}

.split-body p {
  font-weight: 300;
  color: rgba(242, 237, 224, 0.7);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.8s var(--ease),
    opacity 0.6s var(--ease),
    margin 0.8s var(--ease);
}

.split-panel:hover .split-body p,
.split-panel:focus-within .split-body p {
  max-height: 240px;
  opacity: 1;
  margin-bottom: 30px;
}

.split-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.4);
  transition: gap 0.5s var(--ease);
}

.split-panel:hover .split-cta {
  gap: 22px;
}

@media (hover: hover) and (min-width: 900px) {
  .split-panel:hover {
    flex-grow: 1.35;
  }
  .split {
    display: flex;
  }
  .split-panel {
    flex: 1 1 0;
  }
}

/* ---------- 03 como funciona (sticky) ---------- */

.how {
  padding: clamp(90px, 10vw, 160px) 0;
  background: var(--ivory);
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.how-sticky {
  position: sticky;
  top: 22vh;
}

.how-count {
  font-family: var(--font-display);
  font-size: clamp(6rem, 13vw, 13rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  margin-top: 34px;
  font-variant-numeric: tabular-nums;
  position: relative;
  height: 0.82em;
  overflow: hidden;
}

.how-count span {
  position: absolute;
  inset: 0;
  transition:
    transform 0.7s var(--ease),
    opacity 0.5s var(--ease);
  transform: translateY(100%);
  opacity: 0;
}

.how-count span.is-active {
  transform: none;
  opacity: 1;
}

.how-count span.is-out {
  transform: translateY(-100%);
  opacity: 0;
}

.how-steps {
  display: grid;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 26px;
  padding: clamp(30px, 3.4vw, 46px) 0;
  border-top: 1px solid var(--line);
  opacity: 0.42;
  transition: opacity 0.6s var(--ease);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step.is-active {
  opacity: 1;
}

.step-mark {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition:
    background-color 0.6s var(--ease),
    color 0.6s var(--ease),
    border-color 0.6s var(--ease);
}

.step.is-active .step-mark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

.step h3 {
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  margin-bottom: 10px;
}

.step p {
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- 04 servicos (indice + painel) ---------- */

.services {
  padding: clamp(90px, 10vw, 160px) 0;
  background: var(--ivory-2);
  border-top: 1px solid var(--line);
}

.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.svc-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.svc-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: clamp(20px, 2.4vw, 30px) 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.6s var(--ease);
}

.svc-item i {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  flex: none;
  font-variant-numeric: tabular-nums;
}

.svc-item em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.1vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  transition: color 0.5s var(--ease);
}

.svc-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}

.svc-item:hover,
.svc-item.is-active {
  padding-left: 22px;
}

.svc-item:hover::before,
.svc-item.is-active::before {
  transform: scaleY(1);
}

.svc-item.is-active em {
  color: var(--navy);
  font-style: italic;
}

.svc-panel {
  position: sticky;
  top: 96px;
}

/* o fundo vive no painel de conteudo, nao no container:
   assim ele continua legivel quando vira acordeao no mobile. */
.svc-pane {
  --pane-pad: clamp(30px, 3.4vw, 46px);
  display: none;
  padding: var(--pane-pad);
  background: var(--navy);
  color: var(--cream);
  border-radius: 2px;
  overflow: hidden;
  animation: paneIn 0.7s var(--ease);
}

.svc-pane.is-active {
  display: block;
}

@keyframes paneIn {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* a foto sangra ate a borda do painel, o texto mantem o respiro */
.svc-shot {
  position: relative;
  margin: calc(var(--pane-pad) * -1) calc(var(--pane-pad) * -1) 30px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.svc-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) contrast(1.05) brightness(0.9);
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}

.svc-pane.is-active .svc-shot img {
  transform: scale(1);
}

.svc-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    205deg,
    rgba(10, 31, 61, 0.55),
    rgba(201, 162, 75, 0.3)
  );
  mix-blend-mode: multiply;
}

.svc-pane h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin: 18px 0 14px;
}

.svc-pane p {
  font-weight: 300;
  color: rgba(242, 237, 224, 0.72);
  margin-bottom: 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
}

.chips span {
  padding: 9px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(242, 237, 224, 0.86);
}

/* ---------- 05 para quem oferece (navy + snap) ---------- */

.offer {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(90px, 10vw, 150px) 0 clamp(70px, 8vw, 120px);
  overflow: hidden;
}

.offer .lead {
  color: rgba(242, 237, 224, 0.68);
}

.offer-manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: end;
  margin-bottom: clamp(52px, 6vw, 88px);
}

.pillars {
  display: grid;
  gap: 2px;
}

.pillar {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(242, 237, 224, 0.12);
}

.pillar .icon {
  color: var(--gold);
  width: 24px;
  height: 24px;
}

.pillar h4 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.pillar p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(242, 237, 224, 0.66);
}

.perks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 32%);
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  margin-right: calc(var(--pad) * -1);
  scrollbar-width: none;
  cursor: grab;
}

.perks::-webkit-scrollbar {
  display: none;
}

.perks.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.perk {
  scroll-snap-align: start;
  border: 1px solid rgba(242, 237, 224, 0.13);
  padding: 34px 30px 38px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    background-color 0.6s var(--ease),
    border-color 0.6s var(--ease);
}

.perk:hover {
  background: rgba(201, 162, 75, 0.07);
  border-color: var(--line-dark);
}

.perk i {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.perk h4 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 40px 0 12px;
}

.perk p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(242, 237, 224, 0.66);
}

.perks-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 237, 224, 0.4);
}

/* ---------- 06 planos + calculadora ---------- */

.plan {
  padding: clamp(90px, 10vw, 160px) 0;
  background: var(--ivory);
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: stretch;
}

.plan-card {
  border: 1px solid var(--navy);
  border-radius: 2px;
  padding: clamp(32px, 3.6vw, 50px);
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
}

.plan-price {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 1;
  margin: 24px 0 6px;
}

.plan-price small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.plan-list {
  list-style: none;
  margin: 34px 0;
  display: grid;
  gap: 1px;
  flex: 1;
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(242, 237, 224, 0.12);
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(242, 237, 224, 0.84);
}

.plan-list li .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: none;
}

.calc {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(32px, 3.6vw, 50px);
  background: var(--ivory-2);
  display: flex;
  flex-direction: column;
}

.calc h3 {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  margin: 16px 0 10px;
}

.calc > p {
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 34px;
  max-width: 44ch;
}

.calc-field {
  margin-bottom: 26px;
}

.calc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.calc-label span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.calc-label b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  background: var(--line);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  cursor: pointer;
}

.calc-rates {
  display: flex;
  gap: 8px;
}

.rate {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: all 0.4s var(--ease);
}

.rate.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

.calc-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 12px 0 22px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.calc-out div span {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.calc-out div b {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.calc-out .is-bad b {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(201, 162, 75, 0.6);
}

.calc-out .is-good b {
  color: var(--navy);
}

.calc-note {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--ink-soft);
  border-left: 1px solid var(--gold);
  padding-left: 14px;
  margin-top: auto;
}

.calc-note strong {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- 07 faq ---------- */

.faq {
  padding: clamp(90px, 10vw, 160px) 0;
  background: var(--ivory-2);
  border-top: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 24px;
  text-align: left;
  padding: clamp(24px, 2.6vw, 34px) 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

.faq-q:hover {
  color: var(--gold);
}

.faq-sign {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.faq-sign::before {
  inset: 50% 0 auto 0;
  height: 1px;
}

.faq-sign::after {
  inset: 0 50% 0 auto;
  width: 1px;
}

.faq-item.is-open .faq-sign::after {
  transform: scaleY(0);
}

.faq-item.is-open .faq-q {
  color: var(--gold);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--ease);
}

.faq-a p {
  padding: 0 20% 34px 0;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- cta + footer ---------- */

.closing {
  background:
    linear-gradient(rgba(6, 17, 31, 0.93), rgba(6, 17, 31, 0.95)),
    url("../img/enfermagem.webp") center / cover no-repeat;
  color: var(--cream);
  padding: clamp(100px, 12vw, 180px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  max-width: 120vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(201, 162, 75, 0.14),
    transparent 62%
  );
}

.closing-body {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 26px;
}

.closing h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 16ch;
}

.closing .lead {
  color: rgba(242, 237, 224, 0.7);
  text-align: center;
}

.closing .hero-actions {
  justify-content: center;
}

footer {
  background: var(--navy-deep);
  color: rgba(242, 237, 224, 0.68);
  padding: clamp(60px, 7vw, 96px) 0 34px;
  border-top: 1px solid rgba(242, 237, 224, 0.1);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 54px;
}

.foot-grid h5 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.foot-grid ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.foot-grid a,
.foot-grid p {
  font-size: 0.88rem;
  font-weight: 300;
}

.foot-grid a {
  transition: color 0.4s var(--ease);
}

.foot-grid a:hover {
  color: var(--gold);
}

.foot-about p {
  max-width: 38ch;
  margin-top: 20px;
}

.foot-bottom {
  border-top: 1px solid rgba(242, 237, 224, 0.1);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 300;
  color: rgba(242, 237, 224, 0.45);
}

/* ---------- responsivo ---------- */

/* o rail so entra quando ha margem lateral para ele */
@media (max-width: 1400px) {
  .rail {
    display: none;
  }
}

@media (min-width: 1401px) {
  .wrap {
    padding-left: calc(var(--pad) + 62px);
  }

  .rail a span {
    position: absolute;
    left: 78px;
    white-space: nowrap;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .how-grid,
  .svc-grid,
  .plan-grid,
  .offer-manifesto {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-visual {
    aspect-ratio: 16 / 10;
  }

  .how-sticky,
  .svc-panel {
    position: static;
  }

  .how-count {
    display: none;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-panel {
    min-height: 62svh;
    border-right: none;
    border-bottom: 1px solid rgba(242, 237, 224, 0.08);
  }

  .split-body p {
    max-height: 240px;
    opacity: 1;
    margin-bottom: 26px;
  }

  /* no mobile o painel vira acordeao sob cada linha */
  .svc-pane {
    margin: 2px 0 10px;
  }

  .perks {
    grid-auto-columns: 82%;
  }

  .calc-out {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .faq-a p {
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .brand-name {
    font-size: 1.05rem;
    letter-spacing: 0.24em;
  }

  .brand img {
    height: 42px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .closing .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-title .ln > span {
    transform: none;
  }
}

/* =========================================================
   DOURADO EM TEXTO SOBRE FUNDO CLARO
   ---------------------------------------------------------
   O dourado de marca (#c9a24b) mede 2,18:1 sobre o marfim. Serve para
   linha, ícone e preenchimento; como TEXTO reprova (AA pede 4,5:1, ou
   3:1 em título grande). Nas seções de fundo claro o texto dourado usa
   o mesmo matiz escurecido:
     - texto pequeno (sobretítulo, numeração): #7d6220 — 5,25:1
     - título grande em itálico: #8f6f26 — 4,27:1 no marfim, 3,91:1 no
       marfim escuro
   As seções navy continuam com o dourado de marca.
   ========================================================= */
.how,
.services,
.plan,
.calc,
.faq {
  --gold-ink: #7d6220;
  --gold-ink-large: #8f6f26;
}

:is(.how, .services, .plan, .calc, .faq) .eyebrow {
  color: var(--gold-ink);
}

:is(.how, .services, .plan, .calc, .faq) :is(h1, h2, h3) em {
  color: var(--gold-ink-large);
}

:is(.how, .services, .plan, .calc, .faq) i:not([class*="fa-"]) {
  color: var(--gold-ink);
}

/* O painel de serviços e o cartão do plano são navy dentro de seção
   clara: ali o dourado de marca volta a valer. */
:is(.svc-pane, .plan-card) .eyebrow,
:is(.svc-pane, .plan-card) :is(h1, h2, h3) em,
:is(.svc-pane, .plan-card) i:not([class*="fa-"]) {
  color: var(--gold);
}

/* Texto de apoio sobre navy: 0,40–0,45 de opacidade media 3,3–4,0:1. */
.foot-bottom,
.perks-hint {
  color: rgba(242, 237, 224, 0.7);
}

/* Índice lateral: com mix-blend-mode: difference, 0,45 virava um cinza
   quase invisível sobre o marfim. */
.rail a {
  color: rgba(242, 237, 224, 0.72);
}

.rail a:hover,
.rail a.is-active {
  color: var(--gold-bright);
}
