/* Endoscopia+ — landing page. Desenvolvido por charset404 (https://github.com/charset404) */

:root {
  --blue-950: #061722;
  --blue-900: #0b2942;
  --blue-700: #124a73;
  --blue-500: #1c77ad;
  --blue-100: #eaf3f9;

  --white: #ffffff;
  --gray-50: #f7f9fa;
  --gray-200: #e4e9ec;

  --text-dark: #14212c;
  --text-muted: #55636d;
  --text-on-dark: #e9f0f5;
  --text-on-dark-muted: #9fb4c4;

  --accent: #f2971a;
  --accent-dark: #c9750b;

  --wa-green: #25d366;
  --wa-green-dark: #1da851;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container-w: 1160px;
  --radius: 14px;
  --header-h: 76px;
  --shadow-soft: 0 20px 45px -25px rgba(6, 23, 34, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
[id] {
  scroll-margin-top: var(--header-h);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
  vertical-align: -0.15em;
}
.icon--brand {
  fill: currentColor;
  stroke: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  background: var(--blue-900);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 4.5vw + 1rem, 3.4rem);
  line-height: 1.12;
}
h2 {
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.4rem);
  line-height: 1.2;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 12px;
}

.section__lead {
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}
.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.btn--accent {
  background: var(--accent);
  color: var(--blue-950);
  padding: 14px 26px;
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--small {
  padding: 9px 18px;
  font-size: 0.9rem;
}
.btn--large {
  padding: 17px 32px;
  font-size: 1.02rem;
  box-shadow: var(--shadow-soft);
}

.btn--outline {
  border: 1px solid rgba(233, 240, 245, 0.35);
  color: var(--text-on-dark);
  padding: 12px 22px;
}
.btn--outline:hover {
  background: rgba(233, 240, 245, 0.08);
}

.btn--whatsapp {
  background: var(--wa-green);
  color: var(--blue-950);
}
.btn--whatsapp:hover {
  background: var(--wa-green-dark);
  transform: translateY(-1px);
}

.btn--block {
  display: flex;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-950);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.site-header__logo img {
  height: 35px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: var(--text-on-dark-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover {
  color: var(--white);
}

@media (max-width: 780px) {
  .site-nav {
    display: none;
  }
}

.hero {
  background: radial-gradient(
    120% 140% at 15% 0%,
    var(--blue-700) 0%,
    var(--blue-900) 45%,
    var(--blue-950) 100%
  );
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-block: 56px 48px;
}
.hero .eyebrow {
  color: var(--accent);
}
.hero h1 {
  color: var(--white);
}
.hero__subtitle {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--text-on-dark-muted);
  max-width: 46ch;
}
.hero__actions {
  margin-top: 32px;
}
.hero__microcopy {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--text-on-dark-muted);
}

.hero__media {
  position: relative;
}
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue-700), var(--blue-950));
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__fallback-label {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: var(--text-on-dark-muted);
  border: 1px dashed rgba(233, 240, 245, 0.25);
  border-radius: var(--radius);
}
.media-frame__fallback-label .icon {
  width: 26px;
  height: 26px;
  opacity: 0.8;
}
.media-frame__fallback-label strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-dark);
}
.media-frame__fallback-label small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-muted);
}
.media-frame.is-empty .media-frame__fallback-label {
  display: flex;
}
.media-frame.is-empty {
  background: linear-gradient(155deg, var(--blue-700), var(--blue-950));
}

.media-frame--hero {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.media-frame--hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 20px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 20px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 20px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 20px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 20px 2px
      no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 20px
      no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 20px 2px
      no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 20px
      no-repeat;
}

.media-frame__status {
  position: absolute;
  top: 23px;
  left: 23px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(6, 23, 34, 0.55);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-on-dark);
}
.media-frame__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(242, 151, 26, 0.55);
  animation: status-pulse 2.2s ease-out infinite;
}
@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 151, 26, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(242, 151, 26, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 151, 26, 0);
  }
}

.hero__trustbar {
  border-top: 1px solid rgba(233, 240, 245, 0.12);
  margin-top: 8px;
}
.hero__trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-block: 18px;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}
.hero__trustbar-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trustbar-inner span .icon {
  color: var(--accent);
  width: 1em;
  height: 1em;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px 32px;
  }
  .hero__media {
    order: -1;
  }
  .media-frame--hero {
    aspect-ratio: 4 / 3;
  }
  h1 {
    max-width: 22ch;
  }
}

.section {
  padding-block: 88px;
}
.section--alt {
  background: var(--gray-50);
}
.section--dark {
  background: var(--blue-950);
  color: var(--text-on-dark);
}
.section--dark h2 {
  color: var(--white);
}
.section--dark .eyebrow {
  color: var(--accent);
}
.section--dark .text-muted {
  color: var(--text-on-dark-muted);
}

@media (max-width: 700px) {
  .section {
    padding-block: 56px;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
  counter-reset: step;
}
.steps__item {
  padding: 32px 26px 34px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}
.steps__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-500);
  margin-bottom: 20px;
}
.steps__icon .icon {
  width: 22px;
  height: 22px;
}
.steps__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-500);
  opacity: 0.6;
  margin-bottom: 12px;
}
.steps__item h3 {
  margin-bottom: 10px;
}
.steps__item p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.steps__item--final {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-color: var(--accent);
  background: var(--blue-100);
}
.steps__item--final .steps__icon {
  grid-row: 1 / span 3;
  margin-bottom: 0;
  background: rgba(242, 151, 26, 0.16);
  color: var(--accent-dark);
}
.steps__item--final .steps__number {
  grid-column: 2;
  margin-bottom: 4px;
  color: var(--accent-dark);
  opacity: 0.8;
}
.steps__item--final h3 {
  grid-column: 2;
  margin-bottom: 4px;
}
.steps__item--final p {
  grid-column: 2;
  max-width: 640px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps__item--final {
    grid-template-columns: 1fr;
  }
  .steps__item--final .steps__icon {
    grid-row: auto;
    margin-bottom: 20px;
  }
  .steps__item--final .steps__number,
  .steps__item--final h3,
  .steps__item--final p {
    grid-column: 1;
  }
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.compare__col h3 {
  margin-top: 20px;
  margin-bottom: 8px;
}
.compare__col p {
  color: var(--text-muted);
}
.media-frame--compare {
  aspect-ratio: 4 / 3;
}

.compare--featured {
  align-items: start;
}
.compare__col--muted {
  opacity: 0.72;
}
.compare__col--muted .media-frame {
  filter: grayscale(0.25);
}
.compare__col--featured {
  position: relative;
  padding: 24px 24px 28px;
  border-radius: var(--radius);
  background: var(--blue-100);
  box-shadow: var(--shadow-soft);
}
.compare__col--featured .media-frame {
  box-shadow: none;
}
.compare__col--featured h3 {
  color: var(--blue-900);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--blue-950);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.badge .icon {
  width: 14px;
  height: 14px;
}

.check-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--blue-900);
}
.check-list .icon {
  color: var(--accent-dark);
  margin-top: 2px;
}

@media (min-width: 761px) {
  .compare--featured {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.media-frame--scan {
  position: relative;
}
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  top: 0;
  opacity: 0;
}
.reveal.is-visible .scan-line {
  animation: scan 2.6s var(--ease) 0.6s infinite;
}

@keyframes scan {
  0% {
    top: 6%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    top: 92%;
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    top: 92%;
    opacity: 0;
  }
}

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

.interface {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.media-frame--wide {
  aspect-ratio: 16 / 11;
}
.interface__copy p {
  margin-top: 16px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .interface {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .interface__media {
    order: -1;
  }
}

.clinic {
  display: grid;
  grid-template-columns: 0.7fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.clinic__copy p {
  margin-top: 16px;
  color: var(--text-on-dark-muted);
  max-width: 52ch;
}
.value-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.value-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-on-dark);
}
.value-list li .icon {
  color: var(--accent);
}
.media-frame--tall {
  aspect-ratio: 3 / 3;
}

@media (max-width: 900px) {
  .clinic {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .clinic__media {
    order: -1;
  }
}

.video-embla {
  position: relative;
  margin-top: 40px;
}
.video-embla .embla__viewport {
  overflow: hidden;
  cursor: grab;
}
.video-embla .embla__viewport.is-dragging {
  cursor: grabbing;
}
.video-embla .embla__container {
  display: flex;
  gap: 24px;
}
.video-card {
  flex: 0 0 auto;
  width: min(320px, 78vw);
  min-width: 0;
}
.video-carousel__btn {
  display: none;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-950);
  box-shadow: var(--shadow-soft);
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.video-carousel__btn:hover {
  background: var(--blue-100);
}
.video-carousel__btn--prev {
  left: -8px;
}
.video-carousel__btn--next {
  right: -8px;
}
.video-carousel__btn--prev .icon {
  transform: rotate(180deg);
}
@media (min-width: 761px) {
  .video-carousel__btn {
    display: flex;
  }
}
.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue-700), var(--blue-950));
  user-select: none;
  -webkit-user-drag: none;
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 23, 34, 0.35);
  transition: background 0.2s var(--ease);
}
.video-card__play .icon {
  width: 44px;
  height: 44px;
  color: var(--white);
}
.video-card__thumb:hover .video-card__play {
  background: rgba(6, 23, 34, 0.5);
}
.video-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.faq-list {
  margin-top: 40px;
  width: 100%;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue-900);
  transition: transform 0.25s var(--ease);
}
.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-item__answer > p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  max-width: 680px;
  padding-right: 40px;
  padding-bottom: 0;
  color: var(--text-muted);
}
.faq-item__question[aria-expanded="true"] + .faq-item__answer {
  grid-template-rows: 1fr;
}
.faq-item__question[aria-expanded="true"] + .faq-item__answer > p {
  padding-bottom: 22px;
}

.cta-final {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-950));
  color: var(--white);
  text-align: center;
}
.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta-final h2 {
  color: var(--white);
}
.cta-final p {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}
.cta-final .btn {
  margin-top: 8px;
}

.site-footer {
  background: var(--blue-950);
  color: var(--text-on-dark-muted);
  padding-block: 48px 32px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer__logo {
  height: 40px;
  width: auto;
}
.site-footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__nav a {
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.site-footer__nav a:hover {
  color: var(--white);
}
.site-footer__disclaimer {
  font-size: 0.82rem;
  max-width: 68ch;
  line-height: 1.6;
  padding-top: 24px;
  border-top: 1px solid rgba(233, 240, 245, 0.12);
}
.site-footer__copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .site-footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(6, 23, 34, 0.94);
  backdrop-filter: blur(6px);
  transform: translateY(120%);
  transition: transform 0.3s var(--ease);
  display: none;
}
.mobile-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-cta__text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-on-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-cta.is-visible {
  transform: translateY(0);
}

@media (max-width: 780px) {
  .mobile-cta {
    display: block;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.steps__item.reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.steps__item.reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.steps__item.reveal:nth-child(4) {
  transition-delay: 0.18s;
}
.steps__item.reveal:nth-child(5) {
  transition-delay: 0.24s;
}
