:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  background: #072b2d;
  color: #07373a;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }

.landing {
  max-width: 580px;
  margin-inline: auto;
  container-type: inline-size;
  background: #f5ecdf;
}

.art { position: relative; }
.art img { display: block; width: 100%; height: auto; }

/* The first artwork reserves a vertical frame immediately below the headline. */
.hero-vsl {
  position: absolute;
  z-index: 2;
  top: 26.3456%;
  left: 14.0292%;
  width: 71.9416%;
  height: 61.8130%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #041e21;
}

.hero-vsl-inner {
  width: 95.8%;
  max-width: 400px;
}

/* Videos occupy the three printed portrait cards without changing the artwork's layout. */
.testimonial-carousel {
  position: absolute;
  z-index: 2;
  inset: 39.2% 0 auto;
  height: 45%;
  overflow: hidden;
  touch-action: pan-y;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 16.15%;
  width: 67.7%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #b0a18b;
  border-radius: 6%;
  background: #07191a;
  box-shadow: 0 8px 20px #001d1b66;
}

.testimonial-card[data-position="center"] { z-index: 3; transform: translateX(0) scale(1); }
.testimonial-card[data-position="left"] { z-index: 2; transform: translateX(-98%) scale(.84); }
.testimonial-card[data-position="right"] { z-index: 2; transform: translateX(98%) scale(.84); }

.testimonial-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07191a;
}

.testimonial-select,
.testimonial-play {
  position: absolute;
  border: 0;
  cursor: pointer;
}

.testimonial-select {
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.testimonial-card[data-position="center"] .testimonial-select,
.testimonial-card:not([data-position="center"]) .testimonial-play,
.testimonial-card.is-playing .testimonial-play { display: none; }

.testimonial-play {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(38px, 13cqw, 64px);
  aspect-ratio: 1;
  padding: 0 0 0 .15em;
  border-radius: 50%;
  color: #063034;
  background: #faf3e7;
  box-shadow: 0 2px 12px #0007;
  font-size: clamp(17px, 5cqw, 24px);
  transform: translate(-50%, -50%);
}

.testimonial-dots {
  position: absolute;
  z-index: 3;
  top: 85.55%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 74px;
  height: 22px;
  border-radius: 12px;
  background: #092d2f;
  transform: translateX(-50%);
}

.testimonial-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #758588;
  cursor: pointer;
}

.testimonial-dots button[aria-current="true"] { background: #f4a58c; }
.testimonial-select:focus-visible,
.testimonial-play:focus-visible,
.testimonial-dots button:focus-visible {
  outline: 3px solid #f4a58c;
  outline-offset: -4px;
}

/* The artwork supplies the frames; each screenshot is fully contained inside one. */
#mensagens .testimonial-image {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #003538;
  cursor: zoom-in;
}

#mensagens .testimonial-image--large {
  left: 5.87%;
  top: 34.67%;
  width: 50.47%;
  height: 27.09%;
}

#mensagens .testimonial-image--top {
  left: 58.45%;
  top: 34.67%;
  width: 35.68%;
  height: 13%;
}

#mensagens .testimonial-image--bottom {
  left: 58.45%;
  top: 48.65%;
  width: 35.68%;
  height: 13.11%;
}

#mensagens .testimonial-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#mensagens .testimonial-image:focus-visible {
  outline: 3px solid #f4a58c;
  outline-offset: 2px;
}

.image-dialog {
  position: fixed;
  width: max-content;
  max-width: min(96vw, 900px);
  max-height: 94vh;
  padding: 48px 12px 12px;
  border: 1px solid #eea68e;
  border-radius: 12px;
  background: #062f32;
  box-shadow: 0 18px 48px #0009;
}

.image-dialog::backdrop { background: #001d1ed9; }

.image-dialog > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(94vh - 60px);
  margin: auto;
  object-fit: contain;
}

.image-dialog-close {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: #f5ecdf;
  color: #062f32;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.image-dialog-close:focus-visible { outline: 3px solid #f4a58c; }

.hotspot {
  position: absolute;
  inset: var(--y) auto auto var(--x);
  width: var(--w);
  height: var(--h);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.hotspot:focus-visible, summary:focus-visible {
  z-index: 1;
  outline: 3px solid #ee9f87;
  outline-offset: -3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.faq-art {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio);
  background: url("assets/section-15.webp") no-repeat;
  background-size: 100% auto;
  background-position: 0 calc(var(--offset) * -1cqw);
}

.faq-row summary {
  position: relative;
  cursor: pointer;
  list-style: none;
}

.faq-row summary::-webkit-details-marker { display: none; }

.faq-row[open] summary::after {
  content: "−";
  position: absolute;
  top: 50%;
  right: 5.1%;
  transform: translateY(-50%);
  width: 5%;
  line-height: 1;
  font-size: clamp(18px, 4.7cqw, 27px);
  text-align: center;
  background: #f5ecdf;
}

.answer {
  margin: 0;
  padding: 9px 5.4% 16px;
  background: #f5ecdf;
  font-size: clamp(14px, 3.4cqw, 18px);
  line-height: 1.48;
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial-card { transition: transform 260ms cubic-bezier(.2,.7,.3,1); }
  .testimonial-play { transition: background-color 160ms cubic-bezier(.2,.7,.3,1); }
  .testimonial-play:hover { background: #fff; }
}



/* Match the paper and wine tones at the edges of each composition. */
.landing {
  --paper: #f5ecdf;
  --deep: #062f32;
  background: var(--deep);
}

.landing > section {
  --top-tone: var(--deep);
  --bottom-tone: var(--deep);
  --edge-depth: clamp(9px, 3.8cqw, 22px);
  isolation: isolate;
  background-color: var(--top-tone);
}

#abertura, #tentativa-e-erro, #garantia-de-7-dias, #perguntas-frequentes {
  --top-tone: var(--paper);
  --bottom-tone: var(--paper);
}

#depoimentos-em-video { --top-tone: var(--paper); }
#protocolo { --bottom-tone: var(--paper); }
#voce-recebe { --edge-depth: 1.4cqw; }

/* A light wash ties the photographic stock to the same two base colours. */

.landing > section::before, .landing > section::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  height: var(--edge-depth);
  pointer-events: none;
}
.landing > section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--top-tone), transparent);
}
.landing > section::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bottom-tone), transparent);
}
.landing > section:first-child::before, .landing > section:last-child::after {
  display: none;
}

#tentativa-e-erro::before, #caminho-claro::before,
#entregaveis::before, #garantia-de-7-dias::before,
#garantia-rota-segura::before, #perguntas-frequentes::before {
  box-shadow: inset 0 1px 0 #e5a28ca6;
}

body {
  background: radial-gradient(ellipse at 50% 0%, #0a3d40, #041c1e 70%) fixed;
}

@media (prefers-reduced-motion: no-preference) {
  .entry-pending {
    opacity: .89;
    transform: translateY(6px);
  }
  .entry-ready {
    transition: opacity 460ms ease-out, transform 460ms cubic-bezier(.2,.7,.3,1);
  }
  .faq-row[open] .answer { animation: answer-in 180ms ease-out; }
  @keyframes answer-in {
    from { opacity: .8; transform: translateY(-2px); }
    to { opacity: 1; transform: none; }
  }
}
@media print {
  .landing > section { opacity: 1; transform: none; }
}


@media (max-width: 360px) { .answer { font-size: 14px; } }
