.agency-page .agency-main,
.agency-page .agency-footer {
  position: relative;
  z-index: 1;
}

.agency-page .agency-header {
  gap: 24px;
}

.agency-page .agency-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 270px);
  gap: clamp(32px, 6vw, 100px);
  align-items: end;
  min-height: min(720px, calc(100svh - 84px));
  padding-top: clamp(72px, 12vw, 150px);
  padding-bottom: clamp(80px, 11vw, 145px);
}

.agency-page .agency-hero h1,
.agency-page .agency-heading h2,
.agency-page .agency-demo h2,
.agency-page .agency-contact h2 {
  font-size: clamp(44px, 7vw, 104px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 900;
}

.agency-page .agency-hero h1 {
  margin: 20px 0 30px;
  max-width: 1000px;
}

.agency-page h1 em,
.agency-page h2 em {
  color: var(--coral);
  font-style: normal;
}

.agency-page .agency-hero-copy > p,
.agency-page .agency-demo-copy > p,
.agency-page .agency-heading > p,
.agency-page .agency-contact-card p {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.agency-page .agency-actions,
.agency-page .agency-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.agency-page .agency-hero-aside {
  display: grid;
  gap: 0;
  align-self: end;
  padding-bottom: 8px;
  border-top: 2px solid var(--ink);
}

.agency-page .agency-hero-aside span {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}

.agency-page .agency-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 420px);
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
  padding-top: clamp(88px, 10vw, 148px);
  padding-bottom: clamp(88px, 10vw, 148px);
  background: var(--ink);
  color: var(--bg-soft);
}

.agency-page .agency-demo .eyebrow {
  color: var(--yellow);
}

.agency-page .agency-demo h2 {
  font-size: clamp(42px, 5.5vw, 78px);
  margin: 18px 0 32px;
}

.agency-page .agency-demo h2 em {
  color: var(--yellow);
}

.agency-page .agency-demo-copy > p {
  color: rgba(255, 250, 243, .78);
}

.agency-page .agency-video {
  margin: 0;
  padding: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
}

.agency-page .agency-video video {
  display: block;
  width: 100%;
  max-height: 680px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #10152d;
  border-radius: 18px;
}

.agency-page .agency-video figcaption {
  padding: 14px 6px 4px;
  color: rgba(255, 250, 243, .7);
  font-size: 12px;
  line-height: 1.4;
}

.agency-page .agency-process,
.agency-page .agency-cases {
  padding-top: clamp(88px, 10vw, 148px);
  padding-bottom: clamp(88px, 10vw, 148px);
}

.agency-page .agency-heading h2 {
  font-size: clamp(42px, 6vw, 78px);
  margin: 18px 0 24px;
}

.agency-page .agency-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
  padding: 0;
  margin: 54px 0 0;
  list-style: none;
}

.agency-page .agency-steps li {
  border-top: 3px solid var(--coral);
  padding-top: 18px;
}

.agency-page .agency-steps li > span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.agency-page .agency-steps h3 {
  margin: 32px 0 12px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.agency-page .agency-steps p,
.agency-page .agency-case > p:last-child {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.agency-page .agency-cases {
  background: rgba(255, 255, 255, .5);
}

.agency-page .agency-case-list {
  margin-top: 54px;
  border-top: 2px solid var(--ink);
}

.agency-page .agency-case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(155px, .55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 65px);
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.agency-page .agency-case-type {
  display: block;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.agency-page .agency-case h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.agency-page .agency-case-number {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.agency-page .agency-case > p:last-child {
  margin: 0;
}

.agency-page .agency-contact {
  padding-top: clamp(80px, 9vw, 130px);
  padding-bottom: clamp(80px, 9vw, 130px);
}

.agency-page .agency-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: clamp(28px, 5vw, 70px);
  border-radius: 34px;
  background: linear-gradient(120deg, var(--yellow), #ffe898);
}

.agency-page .agency-contact h2 {
  max-width: 720px;
  margin: 16px 0 22px;
  font-size: clamp(40px, 5vw, 68px);
}

.agency-page .agency-contact .eyebrow {
  color: #8d3340;
}

.agency-page .agency-contact-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 17px;
}

.agency-page .agency-contact-actions {
  flex-direction: column;
  align-items: stretch;
  min-width: 238px;
}

.agency-page .agency-contact .btn.secondary {
  background: rgba(255, 255, 255, .68);
}

.agency-page :is(#processo, #cases, #contato) {
  scroll-margin-top: 110px;
}

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

  .agency-page .agency-hero-aside {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .agency-page .agency-demo {
    gap: 40px;
  }

  .agency-page .agency-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-page .agency-case {
    grid-template-columns: 1fr 1fr;
  }

  .agency-page .agency-case > p:last-child {
    grid-column: 1 / -1;
  }

  .agency-page .agency-contact-card {
    grid-template-columns: 1fr;
  }

  .agency-page .agency-contact-actions {
    flex-direction: row;
  }
}

@media (max-width: 760px) {
  .agency-page .agency-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .agency-page .agency-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .agency-page .agency-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .agency-page .agency-demo {
    grid-template-columns: 1fr;
  }

  .agency-page .agency-video {
    max-width: 420px;
    width: 100%;
    justify-self: center;
  }

  .agency-page .agency-hero-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-page :is(#processo, #cases, #contato) {
    scroll-margin-top: 140px;
  }
}

@media (max-width: 560px) {
  .agency-page .agency-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }

  .agency-page .agency-nav .nav-cta {
    padding: 10px 12px;
  }

  .agency-page .agency-hero {
    padding-top: 76px;
  }

  .agency-page .agency-hero h1 {
    font-size: clamp(42px, 12vw, 66px);
  }

  .agency-page .agency-hero-aside {
    display: none;
  }

  .agency-page .agency-steps,
  .agency-page .agency-case {
    grid-template-columns: 1fr;
  }

  .agency-page .agency-steps {
    gap: 30px;
  }

  .agency-page .agency-steps h3 {
    margin-top: 18px;
  }

  .agency-page .agency-case {
    gap: 16px;
  }

  .agency-page .agency-case > p:last-child {
    grid-column: auto;
  }

  .agency-page .agency-contact-actions {
    flex-direction: column;
  }

  .agency-page .agency-footer {
    padding-bottom: 36px;
  }
}

/* Ganho de tempo: comparativo antes/agora */
.agency-page .gain-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.agency-page .gain-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agency-page .gain-legend i {
  width: 14px;
  height: 14px;
  border-radius: 5px;
}

.agency-page .gain-create { background: var(--orange); color: var(--ink); }
.agency-page .gain-unfold { background: #6b7087; color: #fff; }
.agency-page .gain-review { background: #4f5bd5; color: #fff; }
.agency-page .gain-gain {
  background: transparent;
  color: var(--ink-soft);
  border: 2px dashed #6b7087;
}

.agency-page .gain-legend + .agency-case-list {
  margin-top: 26px;
}

.agency-page .agency-gain {
  grid-template-columns: minmax(0, 1fr) minmax(150px, .5fr) minmax(0, 1.25fr);
}

.agency-page .agency-gain h3 {
  font-size: clamp(22px, 2.5vw, 34px);
  text-wrap: balance;
}

.agency-page .agency-case-number small {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: normal;
}

.agency-page .gain-bars {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.agency-page .gain-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
}

.agency-page .gain-bar-head span {
  color: var(--ink-soft);
}

.agency-page .gain-bar {
  display: flex;
  gap: 4px;
  height: 40px;
}

.agency-page .gain-seg {
  flex: var(--v) 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}

.agency-page .gain-seg.is-tiny b {
  display: none;
}

.agency-page .agency-gain .gain-caption {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.agency-page .gain-note {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .agency-page .agency-gain {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .agency-page .agency-gain .gain-bars {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .agency-page .agency-gain {
    grid-template-columns: 1fr;
  }

  .agency-page .gain-seg.gain-gain b {
    font-size: 12px;
  }
}

/* Animação do comparativo (só com JS e sem preferência por movimento reduzido) */
.agency-page .gain-count {
  display: inline-block;
  min-width: 3.2ch;
  font-variant-numeric: tabular-nums;
}

.js-gain .agency-gain .gain-bar {
  clip-path: inset(0 100% 0 0 round 10px);
  transition: clip-path 1s cubic-bezier(.2, .7, .2, 1);
}

.js-gain .agency-gain .gain-bar-row + .gain-bar-row .gain-bar {
  transition-delay: .55s;
}

.js-gain .agency-gain .gain-bar-head,
.js-gain .agency-gain .gain-caption,
.js-gain .agency-gain .agency-case-number small {
  opacity: 0;
  transition: opacity .5s ease;
}

.js-gain .agency-gain .gain-bar-row + .gain-bar-row .gain-bar-head {
  transition-delay: .55s;
}

.js-gain .agency-gain .gain-seg.gain-gain {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .45s ease 1.5s, transform .6s cubic-bezier(.3, 1.6, .5, 1) 1.5s;
}

.js-gain .agency-gain .gain-caption,
.js-gain .agency-gain .agency-case-number small {
  transition-delay: 1.7s;
}

.js-gain .agency-gain.is-in .gain-bar {
  clip-path: inset(0 0 0 0 round 10px);
}

.js-gain .agency-gain.is-in .gain-bar-head,
.js-gain .agency-gain.is-in .gain-caption,
.js-gain .agency-gain.is-in .agency-case-number small,
.js-gain .agency-gain.is-in .gain-seg.gain-gain {
  opacity: 1;
  transform: none;
}

/* Hero: ilustração peça-mãe → desdobramentos */
.agency-page .agency-hero {
  grid-template-columns: minmax(0, 1fr) clamp(250px, 26vw, 460px);
  gap: clamp(32px, 4vw, 80px);
}

.agency-page .agency-hero h1 {
  font-size: clamp(44px, 6.2vw, 104px);
}

.agency-page .agency-hero-side {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  align-self: end;
  min-width: 0;
}

.agency-page .agency-fan {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 22px rgba(32, 40, 84, .14));
}

.agency-page .agency-fan text {
  fill: rgba(28, 33, 64, .7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.agency-page .agency-fan .fan-label {
  fill: var(--coral);
  letter-spacing: .14em;
}

.agency-page .agency-fan :is(.fan-card, .fan-float, .fan-mother) {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .agency-page .fan-mother {
    animation: fan-pop .6s cubic-bezier(.3, 1.4, .5, 1) both;
  }

  .agency-page .fan-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: fan-draw .7s ease-out both;
    animation-delay: calc(.45s + var(--i) * .16s);
  }

  .agency-page .fan-card {
    animation: fan-out .7s cubic-bezier(.3, 1.3, .5, 1) both;
    animation-delay: calc(.75s + var(--i) * .16s);
  }

  .agency-page .fan-float {
    animation: fan-float 5s ease-in-out infinite alternate;
    animation-delay: calc(var(--i, 0) * -1.3s);
  }
}

@keyframes fan-pop {
  from { opacity: 0; transform: scale(.8); }
}

@keyframes fan-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fan-out {
  from { opacity: 0; transform: translateX(-70px) scale(.55); }
}

@keyframes fan-float {
  from { transform: translateY(-4px); }
  to { transform: translateY(5px); }
}

@media (max-width: 1000px) {
  .agency-page .agency-fan {
    display: none;
  }
}

/* ───── Revisão de UX/UI: caminho da página ───── */

/* Barra de progresso de leitura e item ativo no menu */
.agency-page .agency-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--coral);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

.agency-page .agency-nav a:not(.nav-cta) {
  position: relative;
  padding: 8px 0;
  transition: color .2s ease;
}

.agency-page .agency-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.agency-page .agency-nav a[aria-current="true"]:not(.nav-cta) {
  color: var(--ink);
}

.agency-page .agency-nav a[aria-current="true"]:not(.nav-cta)::after,
.agency-page .agency-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.agency-page .agency-nav .nav-cta[aria-current="true"] {
  background: var(--coral);
}

/* Numeração das seções */
.agency-page .eyebrow b {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-soft);
  font-weight: 800;
  letter-spacing: .08em;
}

.agency-page .agency-demo .eyebrow b {
  background: var(--yellow);
  color: var(--ink);
}

.agency-page .agency-contact .eyebrow b {
  background: #8d3340;
  color: #fff;
}

/* Roteiro da página no hero */
.agency-page .agency-roadmap {
  display: grid;
  border-top: 2px solid var(--ink);
}

.agency-page .agency-roadmap a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, padding .2s ease;
}

.agency-page .roadmap-num {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.agency-page .agency-roadmap i {
  font-style: normal;
  opacity: .45;
  transition: transform .2s ease, opacity .2s ease;
}

.agency-page .agency-roadmap a:hover,
.agency-page .agency-roadmap a:focus-visible {
  color: var(--ink);
  padding-left: 8px;
}

.agency-page .agency-roadmap a:hover i,
.agency-page .agency-roadmap a:focus-visible i {
  opacity: 1;
  transform: translateY(3px);
}

/* Link "A seguir" ao fim de cada seção */
.agency-page .agency-next {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  justify-self: start;
  width: fit-content;
  margin-top: clamp(48px, 6vw, 72px);
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.agency-page .agency-next small {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.agency-page .agency-next span {
  grid-column: 1;
}

.agency-page .agency-next i {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.agency-page .agency-next:hover i,
.agency-page .agency-next:focus-visible i {
  transform: translateY(4px);
  background: var(--ink);
  color: var(--bg-soft);
}

.agency-page .agency-demo .agency-next {
  grid-column: 1 / -1;
  margin-top: 0;
  color: var(--bg-soft);
}

.agency-page .agency-demo .agency-next small {
  color: rgba(255, 250, 243, .7);
}

.agency-page .agency-demo .agency-next:hover i,
.agency-page .agency-demo .agency-next:focus-visible i {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* Pontos-chave ao lado do vídeo */
.agency-page .agency-points {
  display: grid;
  gap: 0;
  max-width: 68ch;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.agency-page .agency-points li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 250, 243, .78);
  font-size: 16px;
  line-height: 1.5;
}

.agency-page .agency-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.agency-page .agency-points strong {
  color: var(--bg-soft);
}

/* Etiquetas */
.agency-page .agency-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agency-page .agency-chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.agency-page .agency-chips-ink {
  margin-top: 20px;
}

.agency-page .agency-chips-ink li {
  border-color: rgba(28, 33, 64, .22);
  background: rgba(255, 255, 255, .5);
}

/* Etapas do processo */
.agency-page .agency-steps {
  gap: clamp(18px, 3vw, 44px);
}

.agency-page .agency-steps li.agency-step {
  border-top: 3px solid var(--coral);
  padding-top: 0;
}

.agency-page .agency-steps .step-head {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
}

.agency-page .step-tab {
  display: grid;
  gap: 24px;
  width: 100%;
  padding: 18px 0 12px;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: default;
}

.agency-page .step-num {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.agency-page .step-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.agency-page .step-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.agency-page .step-lead,
.agency-page .step-detail-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.agency-page .step-lead {
  color: var(--coral);
}

.agency-page .step-detail {
  margin-top: 20px;
}

.agency-page .step-next {
  display: none;
}

/* Com JavaScript: etapas viram um seletor com um painel por vez */
.js-agency .agency-steps {
  gap: 0;
}

.js-agency .agency-steps li.agency-step {
  display: contents;
}

.js-agency .step-head {
  grid-row: 1;
  border-top: 3px solid var(--line);
  transition: border-color .3s ease;
}

.js-agency .agency-step:is(.is-active, .is-done) .step-head {
  border-top-color: var(--coral);
}

.js-agency .step-tab {
  padding: 18px 16px 28px 0;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease;
}

.js-agency .step-tab:hover,
.js-agency .step-tab:focus-visible,
.js-agency .agency-step.is-active .step-tab {
  opacity: 1;
}

.js-agency .agency-step.is-active .step-num::after {
  content: " · etapa atual";
  letter-spacing: .08em;
}

.js-agency .step-panel {
  grid-row: 2;
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(32, 40, 84, .05), 0 12px 32px rgba(32, 40, 84, .08);
}

.js-agency .agency-step.is-active .step-panel {
  display: grid;
}

.js-agency .step-panel p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.js-agency .step-detail {
  margin-top: 0;
}

.js-agency .step-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.js-agency .step-next:hover,
.js-agency .step-next:focus-visible {
  background: var(--ink);
  color: var(--bg-soft);
}

/* Legenda do comparativo como filtro de destaque */
.agency-page .gain-legend {
  align-items: center;
  gap: 8px;
}

.agency-page .gain-legend-hint {
  margin-right: 6px;
  color: var(--ink-soft);
  font-weight: 600;
}

.agency-page .gain-legend button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.agency-page .gain-legend button:hover {
  border-color: var(--ink);
}

.agency-page .gain-legend button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg-soft);
}

.agency-page .gain-legend button[aria-pressed="true"] .gain-gain {
  border-color: var(--bg-soft);
}

.agency-page .gain-seg {
  transition: opacity .25s ease, filter .25s ease;
}

.agency-page .agency-cases[data-focus="create"] .agency-gain .gain-seg:not(.gain-create),
.agency-page .agency-cases[data-focus="unfold"] .agency-gain .gain-seg:not(.gain-unfold),
.agency-page .agency-cases[data-focus="review"] .agency-gain .gain-seg:not(.gain-review),
.agency-page .agency-cases[data-focus="gain"] .agency-gain .gain-seg:not(.gain-gain) {
  opacity: .22;
  filter: saturate(.4);
}

.agency-page .agency-cases[data-focus] .gain-seg.is-tiny b {
  display: none;
}

/* Revelação ao rolar */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.agency-page :is(#demo, #processo, #cases, #contato) {
  scroll-margin-top: 84px;
}

@media (max-width: 1000px) {
  .agency-page .agency-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 760px) {
  .agency-page :is(#demo, #processo, #cases, #contato) {
    scroll-margin-top: 140px;
  }

  .js-agency .agency-steps {
    grid-template-columns: 1fr;
  }

  .js-agency .agency-steps li.agency-step {
    display: block;
  }

  .js-agency .step-tab {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 14px 0;
  }

  .js-agency .step-tab::after {
    content: "+";
    color: var(--coral);
    font-size: 22px;
    font-weight: 700;
  }

  .js-agency .agency-step.is-active .step-tab::after {
    content: "–";
  }

  .js-agency .agency-step.is-active .step-num::after {
    content: none;
  }

  .js-agency .step-panel {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }
}

@media (max-width: 560px) {
  .agency-page .agency-nav .nav-home {
    display: none;
  }

  .agency-page .agency-roadmap {
    grid-template-columns: 1fr;
  }

  .agency-page .agency-next {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-page *,
  .agency-page *::after {
    transition-duration: .01ms !important;
  }
}

.agency-page .btn > span[aria-hidden] {
  margin-left: 8px;
}

/* Correções responsivas: valem por último */
@media (max-width: 1000px) {
  .agency-page .agency-hero {
    grid-template-columns: 1fr;
  }

  .agency-page .agency-hero h1 {
    font-size: clamp(42px, 9vw, 84px);
  }
}

@media (max-width: 760px) {
  .js-agency .agency-steps li.agency-step {
    border-top: 0;
  }
}

.agency-page .agency-nav a,
.agency-page .agency-header .brand small {
  white-space: nowrap;
}

@media (min-width: 761px) and (max-width: 1000px) {
  .agency-page .agency-nav {
    gap: 18px;
    font-size: 13px;
  }
}

/* ───── Moldura do vídeo ───── */
.agency-page .agency-video {
  --frame-pad: 10px;
  --frame-radius: 40px;
  position: relative;
  justify-self: center;
  /* a largura segue a altura disponível, para a moldura 9:16 caber inteira na tela */
  width: min(100%, 420px, calc((100svh - 200px) * 9 / 16));
  min-width: 240px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.agency-page .agency-video::before {
  content: "";
  position: absolute;
  inset: 8% -14% 14%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 216, 90, .28), rgba(255, 140, 90, .12) 60%, transparent);
  filter: blur(24px);
  pointer-events: none;
}

.agency-page .agency-video-frame {
  position: relative;
  z-index: 1;
  padding: var(--frame-pad);
  border-radius: var(--frame-radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 2px 4px rgba(0, 0, 0, .2),
    0 28px 60px rgba(6, 9, 28, .55);
}

.agency-page .agency-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: calc(var(--frame-radius) - var(--frame-pad));
  background: #fff7ea;
}

.agency-page .agency-play {
  position: absolute;
  inset: var(--frame-pad);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: calc(var(--frame-radius) - var(--frame-pad));
  background: linear-gradient(180deg, rgba(28, 33, 64, 0) 35%, rgba(28, 33, 64, .5));
  color: var(--ink);
  cursor: pointer;
}

.agency-page .agency-play[hidden] {
  display: none;
}

.agency-page .agency-play-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 10px rgba(255, 216, 90, .28), 0 14px 30px rgba(6, 9, 28, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.agency-page .agency-play-label {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.agency-page .agency-play:hover .agency-play-icon,
.agency-page .agency-play:focus-visible .agency-play-icon {
  transform: scale(1.08);
  box-shadow: 0 0 0 16px rgba(255, 216, 90, .22), 0 14px 30px rgba(6, 9, 28, .35);
}

.agency-page .agency-play:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.agency-page .agency-video figcaption {
  position: relative;
  z-index: 1;
  padding: 16px 0 0;
  text-align: center;
  font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  .agency-page .agency-play-icon {
    animation: play-pulse 2.4s ease-out infinite;
  }

  .agency-page .agency-play:hover .agency-play-icon,
  .agency-page .agency-play:focus-visible .agency-play-icon {
    animation: none;
  }
}

@keyframes play-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 216, 90, .5), 0 14px 30px rgba(6, 9, 28, .35); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(255, 216, 90, 0), 0 14px 30px rgba(6, 9, 28, .35); }
}

@media (max-width: 760px) {
  .agency-page .agency-video {
    width: min(100%, 360px, calc((100svh - 220px) * 9 / 16));
    max-width: none;
  }
}

/* Botão de play: ícone no centro exato da máscara, rótulo logo abaixo */
.agency-page .agency-play {
  display: block;
}

.agency-page .agency-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -42px 0 0 -42px;
  padding: 0;
}

.agency-page .agency-play-icon svg {
  display: block;
  /* o triângulo do desenho já vem deslocado; isto o deixa no centro óptico do círculo */
  transform: translateX(-1px);
}

.agency-page .agency-play-label {
  position: absolute;
  top: calc(50% + 62px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.agency-page .agency-play.is-loading {
  cursor: progress;
}

.agency-page .agency-play.is-loading .agency-play-icon {
  animation: none;
}

.agency-page .agency-play.is-loading .agency-play-icon svg {
  display: none;
}

.agency-page .agency-play.is-loading .agency-play-icon::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 4px solid rgba(28, 33, 64, .25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: play-spin .8s linear infinite;
}

@keyframes play-spin {
  to { transform: rotate(360deg); }
}

/* Rótulos e dica dos blocos do comparativo */
.agency-page .gain-bar {
  height: 52px;
}

.agency-page .gain-seg {
  container-type: inline-size;
  align-content: center;
  gap: 1px;
  line-height: 1.15;
  cursor: help;
  transition: opacity .25s ease, filter .25s ease, box-shadow .2s ease;
}

.agency-page .gain-seg .seg-name {
  display: none;
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .92;
}

.agency-page .gain-seg.gain-gain {
  color: var(--ink);
}

@container (min-width: 64px) {
  .agency-page .gain-review .seg-name { display: block; }
}

@container (min-width: 96px) {
  .agency-page .gain-create .seg-name,
  .agency-page .gain-gain .seg-name { display: block; }
}

@container (min-width: 116px) {
  .agency-page .gain-unfold .seg-name { display: block; }
}

.agency-page .gain-bar:has(.is-tipped) .gain-seg:not(.is-tipped) {
  opacity: .45;
}

.agency-page .gain-seg:hover,
.agency-page .gain-seg.is-tipped {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.agency-page .gain-seg:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.gain-tip {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  max-width: min(260px, calc(100vw - 24px));
  padding: 10px 12px 11px;
  border-radius: 12px;
  background: #16182a;
  color: #fff;
  font: 500 13px/1.4 Inter, system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(16, 18, 40, .28);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}

.gain-tip.is-on {
  opacity: 1;
  transform: none;
}

.gain-tip strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.gain-tip strong i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.gain-tip strong em {
  margin-left: auto;
  padding-left: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.gain-tip span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .78);
}

.gain-tip i.gain-create { background: #ff7f4d; }
.gain-tip i.gain-unfold { background: #8a8fa6; }
.gain-tip i.gain-review { background: #6f7bf0; }
.gain-tip i.gain-gain { background: transparent; border: 2px dashed #c9ccdb; }

@media (prefers-reduced-motion: reduce) {
  .gain-tip { transition: none; }
}

@container (min-width: 38px) {
  .agency-page .agency-cases .gain-seg.is-tiny b,
  .agency-page .agency-cases[data-focus] .gain-seg.is-tiny b { display: block; }
}

/* Contato: botão que copia o e-mail */
.agency-page .agency-contact .agency-mail {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  user-select: all;
  overflow-wrap: anywhere;
}

.agency-page .agency-contact .btn.secondary.agency-copy.is-copied {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
