/* =========================================================
   EMAGRECIMENTO · conceito "Jornada"
   Uma linha fina vertical atravessa a página (centro no desktop,
   esquerda no celular) com os marcos da jornada do paciente.
   ========================================================= */
:root {
  --emag-axis-line: rgba(20, 18, 16, .3);
  --emag-axis-x: 50%;
}
@media (max-width: 899px) {
  /* No celular a linha vai para a esquerda, dentro da margem do .wrap */
  :root { --emag-axis-x: calc(var(--gutter) + 20px); }
}

/* ---------- Topbar ---------- */
.pg-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.pg-topbar .brand, .footer .brand { font-weight: 700; text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.pg-topbar .brand, .pg-topbar__cta { min-height: 44px; display: inline-flex; align-items: center; }
.pg-topbar__cta { text-decoration: none; font-weight: 600; }
.pg-topbar__cta:hover { color: var(--accent-text); }
@media (max-width: 760px) { .pg-topbar__mid { display: none; } }

/* ---------- Hero ---------- */
.emag-hero { padding-top: 18px; position: relative; }
.emag-hero__body {
  max-width: 1120px; margin-inline: auto; text-align: center;
  padding-top: clamp(48px, 8vw, 112px);
}
.emag-hero__eyebrow { margin-bottom: 26px; }
.emag-hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(46px, 7.6vw, 122px);
  line-height: .9; letter-spacing: -.03em;
  text-wrap: balance;
}
.emag-hero__title .w { display: inline-block; }
.emag-hero__sub {
  font-size: clamp(17px, 1.1vw + 11px, 21px); color: var(--ink-2);
  max-width: 60ch; margin: 30px auto 0;
}
.emag-hero__actions { display: flex; justify-content: center; align-items: center; gap: 18px 28px; flex-wrap: wrap; margin-top: 36px; }
.emag-hero__actions .link-arrow { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
.emag-hero__fine { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* Trilho resumido das 6 etapas */
.emag-route {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.emag-route li {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 16px 10px; text-align: center; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.emag-route li:last-child { border-right: 0; }
.emag-route span { color: var(--accent-text); font-weight: 700; }
@media (max-width: 760px) {
  .emag-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .emag-route li:nth-child(3) { border-right: 0; }
  .emag-route li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .emag-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emag-route li { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .emag-route li:nth-child(2n) { border-right: 0 !important; }
  .emag-route li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Começo da linha */
.emag-hero__start {
  position: relative; height: clamp(72px, 9vw, 120px);
}
.emag-hero__start::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--emag-axis-x);
  width: 1px; background: var(--emag-axis-line);
}
.emag-hero__start span {
  position: absolute; left: var(--emag-axis-x); top: 50%; transform: translate(-50%, -50%);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 899px) {
  .emag-hero__start span { transform: translate(-14px, -50%); }
}

/* ---------- Linha contínua atrás das seções da jornada ---------- */
.emag-pain, .emag-journey { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 110px); }
.emag-pain::before, .emag-journey::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--emag-axis-x);
  width: 1px; background: var(--emag-axis-line); z-index: 0;
}
.emag-journey::before { bottom: clamp(64px, 8vw, 110px); }
.emag-pain > .wrap, .emag-journey > .wrap { position: relative; z-index: 1; }
.emag-center {
  margin-inline: auto; text-align: center; background: var(--paper);
  padding-block: 20px;
}
.emag-center .lead { margin-inline: auto; }
@media (max-width: 899px) {
  .emag-center { text-align: left; padding-left: 44px; background: transparent; }
  .emag-center .lead { margin-inline: 0; }
}

/* ---------- Dores: a linha quebrada ---------- */
.emag-breaks { position: relative; padding-block: 8px; }
.emag-breaks::before {
  /* trecho tracejado: a jornada quebra aqui */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-.5px);
  background: repeating-linear-gradient(to bottom, var(--paper) 0 8px, transparent 8px 16px);
}
.emag-break { position: relative; width: 50%; padding: 0 clamp(40px, 5vw, 76px) 0 0; margin-bottom: clamp(28px, 3vw, 44px); text-align: right; }
.emag-break:nth-child(even) { margin-left: 50%; padding: 0 0 0 clamp(40px, 5vw, 76px); text-align: left; margin-top: clamp(-90px, -6vw, -40px); }
.emag-break p:last-child { color: var(--ink-2); max-width: 44ch; margin-left: auto; }
.emag-break:nth-child(even) p:last-child { margin-left: 0; }
.emag-break__node {
  position: absolute; top: 3px; right: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--accent-text);
}
.emag-break__node::after {
  /* marca de "interrompido" */
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, var(--accent-text) 0 1.5px, transparent 1.5px 4px);
}
.emag-break:nth-child(even) .emag-break__node { right: auto; left: -8px; }
.emag-break__when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.emag-break h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -.02em;
  margin: 10px 0 12px;
}
@media (max-width: 899px) {
  .emag-breaks { padding-left: 44px; }
  .emag-breaks::before { left: 20px; }
  .emag-break, .emag-break:nth-child(even) { width: auto; margin: 0 0 36px; padding: 0; text-align: left; }
  .emag-break p:last-child { margin-left: 0; }
  .emag-break__node, .emag-break:nth-child(even) .emag-break__node { right: auto; left: -32px; }
}

.emag-pull {
  max-width: 1000px; margin: clamp(56px, 7vw, 100px) auto 0; text-align: center;
  background: var(--paper); padding-block: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.emag-pull p { font-family: var(--f-display); font-size: clamp(30px, 3.8vw, 56px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.emag-pull em { font-style: italic; color: var(--accent); }
@media (max-width: 899px) {
  .emag-pull { text-align: left; margin-left: 44px; }
}

/* ---------- Jornada: linha do tempo ---------- */
.emag-journey .section__head { margin-bottom: clamp(56px, 7vw, 100px); }
.emag-tl { position: relative; }
.emag-tl__rail {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px);
  background: var(--emag-axis-line); background-clip: content-box; padding-inline: .5px;
}
.emag-tl__fill {
  position: absolute; inset: 0; background: var(--accent-text);
  transform-origin: top center;
}
.emag-mark {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: start;
  margin-bottom: clamp(72px, 9vw, 140px);
}
.emag-mark__node {
  grid-column: 2; grid-row: 1; justify-self: center;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 14px; font-weight: 700; letter-spacing: .04em;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  position: relative; z-index: 1;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.emag-mark__text { grid-column: 1; grid-row: 1; text-align: right; padding-top: 6px; }
.emag-mark__art { grid-column: 3; grid-row: 1; }
.emag-mark:nth-child(even) .emag-mark__text { grid-column: 3; text-align: left; }
.emag-mark:nth-child(even) .emag-mark__art { grid-column: 1; justify-self: end; }
.emag-mark__text > p:last-child { color: var(--ink-2); max-width: 46ch; margin-left: auto; }
.emag-mark:nth-child(even) .emag-mark__text > p:last-child { margin-left: 0; }
.emag-mark__when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.emag-mark__when b { color: var(--accent-text); }
.emag-mark h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 66px); line-height: .95; letter-spacing: -.025em;
  margin: 12px 0 16px;
}
.emag-mark__art { width: 100%; max-width: 440px; }

/* estado "vivo" (só com JS de motion): marco acende quando a linha chega */
.emag-tl.is-live .emag-mark__node { background: var(--paper); color: var(--ink); }
.emag-tl.is-live .emag-mark.is-on .emag-mark__node { background: var(--ink); color: var(--paper); transform: scale(1.06); }

.emag-tl__end {
  position: relative; z-index: 1; text-align: center;
  font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.01em;
  background: var(--paper); padding-top: 8px; max-width: 38ch; margin-inline: auto;
}
.emag-tl__end span {
  display: table; margin: 0 auto 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-text); color: var(--paper); padding: 6px 10px; border-radius: 999px;
}

@media (max-width: 899px) {
  .emag-tl { padding-bottom: 4px; }
  .emag-tl__rail { left: 20px; }
  .emag-mark, .emag-mark:nth-child(even) {
    grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 22px;
    margin-bottom: 64px;
  }
  .emag-mark__node { grid-column: 1; width: 40px; height: 40px; font-size: 12px; }
  .emag-mark__text, .emag-mark:nth-child(even) .emag-mark__text { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; }
  .emag-mark__art, .emag-mark:nth-child(even) .emag-mark__art { grid-column: 2; grid-row: 2; justify-self: start; }
  .emag-mark__text > p:last-child { margin-left: 0; }
  .emag-tl__end { text-align: left; margin: 0; padding-left: 56px; max-width: none; background: transparent; }
  .emag-tl__end::before { content: ""; position: absolute; left: 0; width: 44px; top: 26px; bottom: -8px; background: var(--paper); }
  .emag-tl__end span { margin: 0 0 12px; }
}

/* ---------- Peças visuais dos marcos ---------- */
.emag-art__note { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 14px; letter-spacing: .02em; }

/* 01 anúncio */
.emag-ad { background: #FBF8F3; border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; }
.emag-ad__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--paper-2); font-size: 15px; line-height: 1.2; }
.emag-ad__head small { display: block; font-size: 12px; color: var(--muted); }
.emag-ad__logo {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ink); color: var(--paper);
  font-family: var(--f-display); font-size: 20px;
}
.emag-ad__copy {
  padding: 22px 16px; font-family: var(--f-display); font-size: clamp(24px, 2vw, 30px); line-height: 1.08; letter-spacing: -.01em;
  background: var(--paper-2);
}
.emag-ad__cta { padding: 13px 16px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; border-top: 1px solid var(--ink); }

/* 02 e 04 conversa */
.emag-chat {
  background: var(--ink); color: var(--paper);
  border-radius: 18px; padding: 18px;
  font-size: 15px; line-height: 1.42;
  box-shadow: 10px 10px 0 var(--accent);
}
.emag-mark:nth-child(even) .emag-chat { box-shadow: -10px 10px 0 var(--accent); }
.emag-chat__head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted-dark);
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--panel-line);
}
.emag-chat__head b { color: var(--paper); }
.emag-chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
.emag-chat__msg { padding: 10px 13px; border-radius: 14px; margin-bottom: 8px; max-width: 90%; }
.emag-chat__msg--in { background: #2A2622; border-bottom-left-radius: 4px; }
.emag-chat__msg--out { background: var(--paper); color: var(--ink); margin-left: auto; border-bottom-right-radius: 4px; }
.emag-chat__who { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 3px; }
.emag-chat__done {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--accent-dark); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
}

/* 03 resumo */
.emag-card { border: 1px solid var(--ink); border-radius: 14px; background: #FBF8F3; overflow: hidden; }
.emag-card > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 13px 16px; border-top: 1px solid var(--paper-2); align-items: baseline; }
.emag-card > .emag-card__top {
  display: flex; justify-content: space-between; border-top: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.emag-card .emag-card__top dt, .emag-card .emag-card__top dd { font: inherit; color: var(--paper); margin: 0; }
.emag-card .emag-card__top dd { color: var(--muted-dark); }
.emag-card dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.emag-card dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
@media (max-width: 420px) { .emag-card > div { grid-template-columns: 1fr; gap: 2px; } }

/* 05 reativação */
.emag-log { border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; background: #FBF8F3; }
.emag-log li {
  display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 14px 16px; border-top: 1px solid var(--paper-2); font-size: 15px; line-height: 1.35;
}
.emag-log li:first-child { border-top: 0; }
.emag-log span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.emag-log li.is-done { background: var(--ink); color: var(--paper); font-weight: 700; }
.emag-log li.is-done span { color: var(--accent-dark); }

/* 06 valor ao longo dos meses */
.emag-ltv { border: 1px solid var(--ink); border-radius: 14px; background: #FBF8F3; padding: 16px; }
.emag-ltv figcaption { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.emag-ltv figcaption span:last-child { color: var(--muted); }
.emag-ltv__bars {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
  height: 180px; margin-top: 18px; padding-bottom: 24px; position: relative;
  border-bottom: 1px solid var(--ink);
}
.emag-ltv__bars li { position: relative; height: 100%; }
.emag-ltv__bars i {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--h);
  background: var(--ink); border-radius: 4px 4px 0 0; transform-origin: bottom;
}
.emag-ltv__bars li.is-hot i { background: var(--accent); }
.emag-ltv__bars span {
  position: absolute; left: 0; right: 0; bottom: -24px; text-align: center;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}
.emag-ltv__bars { padding-bottom: 0; margin-bottom: 30px; }
.emag-ltv__legend { font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Método ---------- */
.emag-method { border-top: 1px solid var(--line); }
.emag-pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.emag-pillar { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.emag-pillar:first-child { padding-left: 0; }
.emag-pillar:last-child { border-right: 0; padding-right: 0; }
.emag-pillar__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.emag-pillar h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(32px, 3vw, 46px); line-height: 1; letter-spacing: -.02em;
  margin: 18px 0 16px;
}
.emag-pillar > p:not(.emag-pillar__num) { color: var(--ink-2); }
.emag-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 26px; }
.emag-tags li {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  border: 1px solid var(--ink); border-radius: 999px; padding: 6px 11px;
}
.emag-method__note { margin-top: 28px; font-size: 15px; color: var(--muted); max-width: 70ch; }
@media (max-width: 900px) {
  .emag-pillars { grid-template-columns: 1fr; }
  .emag-pillar, .emag-pillar:first-child, .emag-pillar:last-child { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .emag-pillar:last-child { border-bottom: 0; }
}

/* ---------- Prova ---------- */
.emag-proof { background: var(--ink); color: var(--paper); }
.emag-proof .lead { color: #D9D1C5; }
.emag-proof .h2 em { color: var(--accent-dark); }
.emag-proof__head { max-width: 900px; margin-bottom: clamp(44px, 6vw, 80px); }
.emag-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--panel-line);
}
.emag-stat {
  padding: 28px 24px 30px; border-bottom: 1px solid var(--panel-line); border-right: 1px solid var(--panel-line);
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px;
}
.emag-stat--big { grid-column: span 2; }
/* ordem: 1 grande, 2 ROAS, 3 conversa, 4 ROI, 5 geridos */
.emag-stat:nth-child(2), .emag-stat:nth-child(5) { border-right: 0; }
.emag-stat:nth-child(1), .emag-stat:nth-child(3) { padding-left: 0; }
.emag-stat dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.emag-stat dd {
  margin: 0; font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 66px);
  line-height: .95; letter-spacing: -.02em; white-space: nowrap;
}
.emag-stat dd.is-hot { color: var(--accent-dark); }
.emag-stat--big dd { font-size: clamp(52px, 7vw, 112px); color: var(--accent-dark); }
.emag-stat--big dd small { font-size: .45em; color: var(--muted-dark); }
.emag-stat dd.emag-stat__roi { font-size: clamp(28px, 2.5vw, 38px); white-space: normal; line-height: 1.1; }
.emag-proof__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 28px; }
.emag-proof .mono-label { color: var(--muted-dark); }
.emag-proof .link-arrow { color: var(--paper); min-height: 44px; display: inline-flex; align-items: center; border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
.emag-proof .link-arrow:hover { color: var(--accent-dark); }
@media (max-width: 900px) {
  .emag-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emag-stat { border-right: 0 !important; padding: 24px 0 26px 20px !important; }
  .emag-stat:nth-child(1), .emag-stat:nth-child(2), .emag-stat:nth-child(4) { padding-left: 0 !important; padding-right: 16px !important; }
  .emag-stat:nth-child(2), .emag-stat:nth-child(4) { border-right: 1px solid var(--panel-line) !important; }
}
@media (max-width: 480px) {
  .emag-stats { grid-template-columns: 1fr; }
  .emag-stats > .emag-stat { border-right: 0 !important; padding: 22px 0 !important; }
  .emag-stat--big { grid-column: auto; }
  .emag-stat--big dd { font-size: clamp(44px, 13vw, 56px); }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .emag-mark__node { transition: none; }
}
