/* ============================================================================
   Duo Prime · saude.css
   Estilos específicos da página /saude/.
   Depende de global.css (tokens, reset, botões, nav) + components.css.
   ========================================================================== */

/* ---- keyframes da página ---- */
@keyframes sdFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sdFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sdScanMove {
  0%   { transform: translateY(0);     opacity: 0; }
  8%   { opacity: 0.65; }
  88%  { opacity: 0.65;                transform: translateY(248px); }
  100% { transform: translateY(248px); opacity: 0; }
}
@keyframes sdProgressGrow {
  0%   { height: 0; }
  100% { height: 248px; }
}

/* ---- utilidade de reveal via IntersectionObserver ---- */
.sd-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.sd-reveal.is-visible         { opacity: 1; transform: translateY(0); }
.sd-reveal--delay-1.is-visible { transition-delay: .12s; }
.sd-reveal--delay-2.is-visible { transition-delay: .24s; }
.sd-reveal--delay-3.is-visible { transition-delay: .36s; }
.sd-reveal--delay-4.is-visible { transition-delay: .48s; }

/* ============================================================================
   BLOCO 1 — HERO
   ========================================================================== */
.sd-hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
}
.sd-hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 56% 44%;
  gap: 6vw;
  align-items: center;
  padding-top: calc(var(--nav-h) + 7vh);
  padding-bottom: 8vh;
}

/* coluna esquerda */
.sd-hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  animation: sdFadeUp .8s .2s ease-out both;
}
.sd-hero__headline {
  font-size: clamp(26px, 2.9vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin-bottom: 26px;
  animation: sdFadeUp .9s .35s ease-out both;
}
.sd-hero__headline em {
  font-style: normal;
  color: var(--accent);
}
.sd-hero__sub {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 42px;
  animation: sdFadeUp .9s .5s ease-out both;
}
.sd-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: sdFadeUp .9s .65s ease-out both;
}
.sd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  animation: sdFadeUp 1s .8s ease-out both;
}
.sd-hero__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .55;
}

/* coluna direita — visual SVG */
.sd-hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sdFadeIn 1.4s .55s ease-out both;
}
.sd-hero__visual {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 480 / 520;
  display: block;
}

/* scan line animada */
.sd-scan-group {
  animation: sdScanMove 9s cubic-bezier(.4,0,.6,1) infinite;
  opacity: 0;
  will-change: transform, opacity;
}
.sd-progress-bar {
  animation: sdProgressGrow 9s cubic-bezier(.4,0,.6,1) infinite;
  transform-origin: 0 0;
}

/* ============================================================================
   BLOCO 2 — SINTOMAS
   ========================================================================== */
.sd-sintomas {
  padding-top: 96px;
  padding-bottom: 96px;
}
.sd-sintomas__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sd-sintomas .section-head {
  margin-bottom: 64px;
}
.sd-sintomas .section-head h2 {
  max-width: 22ch;
}

.sd-sintomas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

/* card numerado */
.sd-card-num {
  background: var(--bg);
  padding: 48px 40px 48px 44px;
  position: relative;
  transition: background-color .3s ease;
}
.sd-card-num:hover { background: color-mix(in srgb, var(--bg) 88%, var(--accent)); }

.sd-card-num__index {
  display: block;
  font-family: var(--serif);
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 18px;
  transition: opacity .3s ease;
}
.sd-card-num:hover .sd-card-num__index { opacity: 0.55; }

.sd-card-num__body {}
.sd-card-num__text {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

/* ============================================================================
   BLOCO 3 — COMO ATUAMOS (MÉTODO)
   ========================================================================== */
.sd-metodo {
  padding-top: 96px;
  padding-bottom: 96px;
}
.sd-metodo__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sd-metodo__header {
  margin-bottom: 72px;
}
.sd-metodo__header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.sd-metodo__header-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
}
.sd-metodo__header h2 {
  font-size: clamp(32px, 3vw, 48px);
  text-wrap: balance;
}
.sd-metodo__lead {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 50ch;
  padding-top: 6px;
}

/* os 3 passos */
.sd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* trilha de conexão entre os steps */
.sd-steps__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px; /* alinha ao centro do nó */
  height: 1px;
  background: linear-gradient(
    to right,
    var(--rule-accent) 0%,
    var(--rule-accent) 66%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.sd-step {
  padding: 0 40px 0 0;
  position: relative;
  z-index: 1;
  transition: transform .3s var(--ease);
}
.sd-step:last-child { padding-right: 0; }

.sd-step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.sd-step__seq {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
/* nó circular sobre a trilha */
.sd-step__node {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
  transition: background-color .3s ease, transform .3s ease;
}
.sd-step:hover .sd-step__node {
  background: var(--accent);
  transform: scale(1.3);
}

.sd-step__verb {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.15;
}
.sd-step__desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* hover sutil no step */
.sd-step:hover { transform: translateY(-3px); }

/* separador visual entre steps (borda direita) */
.sd-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 0;
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}

/* ============================================================================
   BLOCO 4 — PARA QUEM FAZ SENTIDO
   ========================================================================== */
.sd-publico {
  padding-top: 96px;
  padding-bottom: 96px;
}
.sd-publico__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sd-publico .section-head {
  margin-bottom: 64px;
}
.sd-publico .section-head h2 {
  max-width: 22ch;
}

.sd-publico__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.sd-profile {
  background: var(--bg);
  padding: 36px 32px 40px;
  position: relative;
  overflow: hidden;
  transition: background-color .3s ease;
}
.sd-profile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height .35s var(--ease);
}
.sd-profile:hover { background: color-mix(in srgb, var(--bg) 90%, var(--accent)); }
.sd-profile:hover::before { height: 100%; }

.sd-profile__tag {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}
.sd-profile__text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================================
   BLOCO 5 — O QUE ESTÁ EM JOGO
   ========================================================================== */
.sd-jogo {
  padding-top: 96px;
  padding-bottom: 96px;
}
.sd-jogo__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sd-jogo__header {
  margin-bottom: 72px;
  max-width: 72ch;
}
.sd-jogo__header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.sd-jogo__header h2 {
  font-size: clamp(32px, 3.2vw, 50px);
  text-wrap: balance;
  margin-bottom: 22px;
}
.sd-jogo__lead {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 64ch;
}

.sd-jogo__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.sd-impact {
  background: var(--bg);
  padding: 52px 44px;
  position: relative;
  transition: background-color .3s ease;
}
.sd-impact:hover {
  background: color-mix(in srgb, var(--bg) 80%, rgba(193,147,95,0.08));
}

.sd-impact__label {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text);
  text-wrap: balance;
  max-width: 18ch;
}
/* linha accent sutil antes do label */
.sd-impact__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 20px;
}
.sd-impact__text {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================================
   BLOCO 6 — DIFERENCIAIS
   ========================================================================== */
.sd-diferenciais {
  padding-top: 96px;
  padding-bottom: 96px;
}
.sd-diferenciais__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sd-diferenciais .section-head {
  margin-bottom: 64px;
}
.sd-diferenciais .section-head h2 {
  max-width: 26ch;
}

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

.sd-dif {
  border-top: 1px solid var(--rule);
  transition: border-color .3s ease;
}
.sd-dif:last-child { border-bottom: 1px solid var(--rule); }
.sd-dif:hover { border-color: var(--rule-accent); }

.sd-dif__inner {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  transition: transform .25s var(--ease);
}
.sd-dif:hover .sd-dif__inner { transform: translateX(4px); }

.sd-dif__num {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: 3px;
  flex-shrink: 0;
}
.sd-dif__content { display: flex; flex-direction: column; gap: 8px; }
.sd-dif__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.sd-dif__text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================================
   BLOCO 7 — CTA PRINCIPAL
   ========================================================================== */
.sd-cta {
  padding-top: 112px;
  padding-bottom: 112px;
}
.sd-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.sd-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
}
.sd-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  justify-content: center;
}
.sd-cta__headline {
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin-bottom: 22px;
}
.sd-cta__support {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 44px;
}
.sd-cta__btn {
  font-size: 16px;
  padding: 20px 36px;
}
.sd-cta__micro {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}

/* ============================================================================
   BLOCO 8 — CONEXÕES
   ========================================================================== */
.sd-conexoes {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--rule);
}
.sd-conexoes__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sd-conexoes__header {
  margin-bottom: 52px;
}
.sd-conexoes__header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.sd-conexoes__header h2 {
  font-size: clamp(26px, 2.4vw, 38px);
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: 14px;
}
.sd-conexoes__lead {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.sd-conexoes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.sd-link-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: background-color .3s ease;
}
.sd-link-card:hover {
  background: color-mix(in srgb, var(--bg) 88%, var(--accent));
}
.sd-link-card__area {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}
.sd-link-card__text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.sd-link-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .25s ease, gap .25s var(--ease);
  align-self: flex-start;
  margin-top: auto;
}
.sd-link-card__link:hover {
  border-bottom-color: var(--rule-accent);
  gap: 16px;
}

/* ============================================================================
   RESPONSIVIDADE
   ========================================================================== */

/* ---- Tablet largo (1024px ↓) ---- */
@media (max-width: 1024px) {
  .sd-metodo__header-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sd-steps { gap: 32px; }
  .sd-step:not(:last-child)::after { display: none; }
  .sd-steps__rail { display: none; }
  .sd-step { padding-right: 0; }
}

/* ---- Tablet (960px ↓) ---- */
@media (max-width: 960px) {
  .sd-hero__inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 5vh);
    padding-bottom: 6vh;
  }
  .sd-hero__right {
    display: flex;
    justify-content: center;
    max-height: 40vh;
  }
  .sd-hero__visual {
    max-width: 360px;
  }

  .sd-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sd-steps__rail { display: none; }
  .sd-step { padding-right: 0; }
  .sd-step:not(:last-child)::after { display: none; }

  .sd-publico__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Tablet pequeno / mobile largo (720px ↓) ---- */
@media (max-width: 720px) {
  .sd-sintomas { padding-top: 72px; padding-bottom: 72px; }
  .sd-metodo   { padding-top: 72px; padding-bottom: 72px; }
  .sd-publico  { padding-top: 72px; padding-bottom: 72px; }
  .sd-jogo     { padding-top: 72px; padding-bottom: 72px; }
  .sd-diferenciais { padding-top: 72px; padding-bottom: 72px; }
  .sd-cta      { padding-top: 80px; padding-bottom: 80px; }
  .sd-conexoes { padding-top: 64px; padding-bottom: 64px; }

  .sd-sintomas__grid {
    grid-template-columns: 1fr;
  }
  .sd-jogo__grid {
    grid-template-columns: 1fr;
  }
  .sd-conexoes__grid {
    grid-template-columns: 1fr;
  }
  .sd-card-num { padding: 36px 28px 36px 32px; }
  .sd-impact   { padding: 40px 32px; }
}

/* ---- Mobile (540px ↓) ---- */
@media (max-width: 540px) {
  .sd-hero__right { display: none; }
  .sd-hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  .sd-hero__ctas .cta-primary,
  .sd-hero__ctas .cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .sd-publico__grid {
    grid-template-columns: 1fr;
  }

  .sd-dif__inner {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }

  .sd-sintomas { padding-top: 56px; padding-bottom: 56px; }
  .sd-metodo   { padding-top: 56px; padding-bottom: 56px; }
  .sd-publico  { padding-top: 56px; padding-bottom: 56px; }
  .sd-jogo     { padding-top: 56px; padding-bottom: 56px; }
  .sd-diferenciais { padding-top: 56px; padding-bottom: 56px; }
  .sd-cta      { padding-top: 64px; padding-bottom: 64px; }
  .sd-conexoes { padding-top: 52px; padding-bottom: 52px; }

  .sd-sintomas .section-head { margin-bottom: 44px; }
  .sd-metodo__header          { margin-bottom: 48px; }
  .sd-publico .section-head   { margin-bottom: 44px; }
  .sd-jogo__header            { margin-bottom: 44px; }
  .sd-diferenciais .section-head { margin-bottom: 44px; }
  .sd-conexoes__header        { margin-bottom: 36px; }
}

/* ---- Redução de movimento (respeito global já em global.css) ---- */
@media (prefers-reduced-motion: reduce) {
  .sd-scan-group,
  .sd-progress-bar { animation: none !important; }
}
