/* ============================================================
   COMPONENTS — Reusable UI building blocks
   ============================================================ */

/* ── Buttons ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--fg);
  text-align: center;
  text-decoration: none;
  font-size: var(--text-lg);
  font-weight: 700;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) var(--ease-out-expo);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: -115% 0;
  background: linear-gradient(100deg, transparent, color-mix(in oklch, var(--surface) 42%, transparent), transparent);
  transition: translate 0.6s var(--ease-out-expo);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px var(--lift);
  border-color: var(--accent);
}

.btn:hover::before {
  translate: 115% 0;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
  animation: pulse 4s ease-in-out infinite;
}

.btn-dark {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}

/* ── Top Navigation ── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--surface) 90%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 84%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 12px 45px color-mix(in oklch, var(--fg) 7%, transparent);
}

.topnav .container {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-text-1 {
  color: var(--fg);
}

.logo-text-2 {
  color: var(--accent);
  margin-left: 2px;
}

/* ── Menu Toggle (Mobile) ── */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) var(--ease-out-expo);
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

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

.menu-toggle-lines {
  display: grid;
  gap: 5px;
  place-items: center;
}

.menu-toggle-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-full);
  background: currentColor;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              opacity var(--duration-fast) var(--ease-out-expo);
}

.topnav.menu-open .menu-toggle-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topnav.menu-open .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.topnav.menu-open .menu-toggle-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Navigation Links ── */
.navlinks {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.navlinks::-webkit-scrollbar {
  display: none;
}

.navlinks a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1;
  text-decoration: none;
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo);
}

.navlinks a:hover {
  color: var(--fg);
}

.navlinks a[aria-current="true"] {
  color: var(--fg);
  background: color-mix(in oklch, var(--accent) 10%, var(--surface));
}

.navlinks a.btn-primary,
.navlinks a.btn-primary:hover,
.navlinks a.btn-primary[aria-current="true"] {
  min-height: 40px;
  padding: 12px 18px;
  background: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 82%, var(--fg));
  color: var(--surface);
  box-shadow: var(--shadow-accent);
}

.navlinks a.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent-hover);
}

/* ── Glass Card ── */
.glass-card,
.alert,
.product-card,
.quote-card {
  border: 1px solid color-mix(in oklch, var(--surface) 72%, transparent);
  border-radius: var(--radius-3xl);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-xl);
}

.glass-card {
  padding: clamp(24px, 3vw, 34px);
}

/* ── Alert Box ── */
.alert {
  padding: clamp(24px, 3vw, 34px);
  border-style: dashed;
  background-image: linear-gradient(135deg, color-mix(in oklch, var(--soft) 85%, transparent), transparent);
}

.alert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ── Seal Card ── */
.seal-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo);
}

.seal-card:hover,
.seal-card.active {
  transform: translateY(-4px);
  background: var(--soft);
}

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

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 4px 4px 0;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: var(--soft);
  color: var(--link);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 26px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in oklch, var(--surface) 36%, transparent);
  background: color-mix(in oklch, var(--surface) 18%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--surface);
  box-shadow: 0 28px 110px color-mix(in oklch, var(--black) 50%, transparent);
  font-size: var(--text-md);
}

/* ── Hero Actions ── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-3xl);
}

/* ── Stars ── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--link);
  vertical-align: middle;
}

/* ── Report Card (Hero aside) ── */
.report-card {
  border: 1px solid color-mix(in oklch, var(--surface) 22%, transparent);
  border-radius: var(--radius-5xl);
  padding: clamp(24px, 4vw, 38px);
  background: var(--glass-dark);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-hero);
}

.disclosure {
  border-left: 2px solid color-mix(in oklch, var(--accent) 65%, var(--surface));
  padding-left: var(--space-lg);
  color: color-mix(in oklch, var(--surface) 90%, transparent);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.mini {
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--surface) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--surface) 16%, transparent);
}

.mini strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.mini span {
  color: color-mix(in oklch, var(--surface) 84%, transparent);
  font-size: var(--text-md);
}

/* ── Protocol List ── */
.protocol {
  counter-reset: protocol;
  display: grid;
  gap: 12px;
}

.protocol li {
  list-style: none;
  position: relative;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 66px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.protocol li::before {
  counter-increment: protocol;
  content: counter(protocol);
  position: absolute;
  left: var(--space-lg);
  top: var(--space-lg);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--link);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ── Comparison Table ── */
.comparison-wrap {
  overflow-x: auto;
  padding: 8px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

th, td {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td:nth-child(2),
th:nth-child(2) {
  background: color-mix(in oklch, var(--accent) 7%, var(--surface));
  border-left: 1px solid var(--soft-strong);
  border-right: 1px solid var(--soft-strong);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 18%, transparent);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: var(--space-lg);
  bottom: var(--space-lg);
  width: 2px;
  background: color-mix(in oklch, var(--accent) 36%, transparent);
}

.time-item {
  position: relative;
  padding: 24px 24px 24px 72px;
  border: 1px solid color-mix(in oklch, var(--surface) 24%, transparent);
  border-radius: var(--radius-2xl);
  background: color-mix(in oklch, var(--surface) 13%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

.time-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in oklch, var(--accent) 18%, transparent);
}

.time-item.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Ingredient Cards ── */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  perspective: 1200px;
}

.ingredient {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid color-mix(in oklch, var(--surface) 84%, var(--accent));
  border-radius: var(--radius-3xl);
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 24px 90px color-mix(in oklch, var(--black) 28%, transparent);
  transform-style: preserve-3d;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo);
}

.ingredient:hover {
  transform: rotateX(5deg) rotateY(-7deg) translateY(-8px);
  box-shadow: 0 34px 100px var(--lift);
}

.ingredient h3 {
  font-size: var(--text-3xl);
  letter-spacing: -0.035em;
}

.ingredient p {
  margin: 0;
  color: #424245;
  font-size: var(--text-xl);
  line-height: 1.5;
  transition: color var(--duration-normal) var(--ease-out-expo);
}

.ingredient:hover,
.ingredient:focus-within {
  border-color: color-mix(in oklch, var(--accent) 42%, var(--border));
  box-shadow: 0 34px 110px color-mix(in oklch, var(--black) 34%, transparent);
}

.ingredient:hover p,
.ingredient:focus-within p {
  color: var(--fg);
}

.ingredient-visual {
  position: relative;
  min-height: 128px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #eef6fb, #ffffff 46%, color-mix(in oklch, var(--accent) 12%, #ffffff));
  border: 1px solid color-mix(in oklch, var(--border) 74%, transparent);
}

.ingredient-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: var(--radius-full);
  background:
    radial-gradient(circle at 38% 35%, color-mix(in oklch, var(--tone, var(--accent)) 70%, #ffffff), transparent 30%),
    radial-gradient(circle at 66% 64%, color-mix(in oklch, var(--tone, var(--accent)) 35%, #ffffff), transparent 33%);
  filter: blur(0.2px);
}

.ingredient-visual::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--surface) 72%, transparent);
  color: var(--fg);
  border: 1px solid color-mix(in oklch, var(--surface) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Testimonial Carousel ── */
.testimonial-shell {
  padding: clamp(10px, 1.5vw, 16px);
  border-radius: var(--radius-5xl);
  background: linear-gradient(135deg, color-mix(in oklch, var(--surface) 86%, transparent), color-mix(in oklch, var(--accent) 8%, var(--surface)));
  border: 1px solid color-mix(in oklch, var(--accent) 14%, var(--border));
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
}

.track {
  display: flex;
  align-items: stretch;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.quote-card {
  min-width: 100%;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: none;
  border-color: color-mix(in oklch, var(--border) 70%, transparent);
  background: color-mix(in oklch, var(--surface) 94%, transparent);
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.quote-card p {
  color: var(--muted);
}

.verified {
  display: inline-flex;
  margin-top: var(--space-xl);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--soft);
  color: var(--link);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.testimonial-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.controls {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.icon-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--accent) 16%, var(--border));
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  color: var(--fg);
  cursor: pointer;
  box-shadow: 0 16px 45px color-mix(in oklch, var(--fg) 10%, transparent);
  transition: transform var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo),
              color var(--duration-fast) var(--ease-out-expo);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: var(--fg);
  color: var(--surface);
}

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

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--fg) 20%, transparent);
  cursor: pointer;
  transition: width var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo);
}

.carousel-dots button[aria-current="true"] {
  width: 28px;
  background: var(--accent);
}

/* ── FAQ Accordion ── */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-xl);
}

.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-normal) var(--ease-out-expo);
}

.faq-a p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  max-height: 240px;
  opacity: 1;
}

/* ── Checks List ── */
.checks {
  list-style: none;
  padding: 0;
  margin: var(--space-2xl) 0;
  display: grid;
  gap: var(--space-sm);
  color: var(--fg);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.checks li::before {
  content: "\2713";
  flex: 0 0 auto;
  color: var(--link);
  font-weight: 800;
}

/* ── Product Image Component ── */
.product-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  object-fit: contain;
}

.product-img-sm {
  max-width: 200px;
  border-radius: var(--radius-md);
}

/* ── Accessibility Bar ── */
.accessibility-bar {
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--fg);
  color: var(--surface);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 20%, transparent);
  font-size: var(--text-sm);
  font-family: var(--font-body);
}

.accessibility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.accessibility-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  opacity: 0.9;
}

.accessibility-info svg {
  color: var(--accent);
}

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accessibility-btn {
  background: color-mix(in oklch, var(--surface) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--surface) 16%, transparent);
  color: var(--surface);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.accessibility-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

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

/* Ajusta a barra de navegacao principal para ficar abaixo da barra de acessibilidade */
.topnav {
  top: 42px; /* Se ajustará dinamicamente se a barra de acessibilidade estiver ativa */
}

@media (max-width: 768px) {
  .accessibility-bar .container {
    justify-content: center;
  }
  .topnav {
    top: 0; /* em telas pequenas ela pode empilhar diferente */
  }
}

/* ── Amsler Grid Modal ── */
.amsler-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  overflow-y: auto; /* Permite scroll vertical se o modal for mais alto do que a tela */
  z-index: 1000;
  padding: 40px 20px;
}

.amsler-overlay.active {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Alinha o modal no topo para que a rolagem funcione naturalmente */
}

.amsler-modal {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  padding: clamp(24px, 4vw, 40px);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-2xl);
  position: relative;
  text-align: center;
  animation: modal-enter var(--duration-normal) var(--ease-out-expo);
  margin: auto; /* Centraliza verticalmente se couber na tela */
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.amsler-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: color-mix(in oklch, var(--fg) 6%, transparent);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: background var(--duration-fast);
}

.amsler-close:hover {
  background: color-mix(in oklch, var(--fg) 14%, transparent);
}

.amsler-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: 12px;
}

.amsler-desc {
  color: var(--muted);
  font-size: var(--text-lg);
  margin-bottom: 24px;
}

.amsler-grid-visual {
  width: 260px;
  height: 260px;
  margin: 0 auto 24px;
  border: 2px solid var(--fg);
  background-color: #ffffff;
  background-size: 13px 13px;
  background-image: 
    linear-gradient(to right, #e2e8f0 1px, transparent 1px),
    linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.amsler-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #ef4444; /* Vermelho brilhante */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
}

.amsler-instructions {
  text-align: left;
  background: color-mix(in oklch, var(--accent) 6%, transparent);
  border-left: 3px solid var(--accent);
  padding: 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-base);
}

.amsler-instructions ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.amsler-instructions li {
  margin-bottom: 6px;
}

/* ── Quick Verdict Box ── */
.quick-verdict-box {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: color-mix(in oklch, var(--accent) 7%, var(--surface));
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  line-height: 1.6;
}

.quick-verdict-box p {
  margin: 0 0 var(--space-sm) 0;
  color: var(--fg);
}

.quick-verdict-box strong {
  color: var(--fg);
}

body.high-contrast .quick-verdict-box {
  border: 2px solid #ffff00 !important;
  background: #000000 !important;
}

/* ── Botão Voltar ao Topo ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: color-mix(in oklch, var(--surface) 80%, transparent);
  color: var(--fg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--fg);
  color: var(--surface);
  transform: translateY(-4px) scale(1.05);
}

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

/* Suporte de alto contraste para o botão */
body.high-contrast .back-to-top {
  border: 2px solid #00ffff !important;
  background: #000000 !important;
  color: #00ffff !important;
}

body.high-contrast .back-to-top:hover {
  background: #00ffff !important;
  color: #000000 !important;
}

/* ── Lead Capture Validation States ── */
#lead-email {
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#lead-email.valid {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230d9488'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

#lead-email.invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

/* Spinner e Loading State */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.btn-loading {
  cursor: not-allowed;
  opacity: 0.85;
}

/* ── Promo Banner (UAU Effect) ── */
.promo-banner {
  display: none; /* Oculto por padrão */
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in oklch, var(--accent) 80%, #000) 100%);
  color: #ffffff;
  padding: 10px 0;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 100;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-banner.visible {
  display: block;
  animation: slideDown 0.4s var(--ease-out-expo) forwards;
}

.promo-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  padding-right: 40px; /* Espaço para o botão fechar */
}

.promo-badge {
  background: #f59e0b; /* Amarelo/laranja chamativo e elegante */
  color: var(--black);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.promo-text {
  letter-spacing: -0.01em;
}

#promo-timer {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  color: #f59e0b;
  font-weight: 700;
}

.promo-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.promo-close:hover {
  color: #ffffff;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Product Choice Modal ── */
.product-choice-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}

.product-choice-overlay.active {
  display: flex;
}

.product-choice-modal {
  position: relative;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 42px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 44px 130px rgba(2, 6, 23, 0.4);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-choice-overlay.active .product-choice-modal {
  transform: translateY(0) scale(1);
}

.product-choice-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #ffffff;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.product-choice-close:hover {
  transform: rotate(90deg);
  color: #0f172a;
  border-color: #0d9488;
}

.product-choice-close:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 3px;
}

.product-choice-header {
  text-align: center;
  margin-bottom: 28px;
}

.product-choice-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d9488, #0a7a70);
  color: #ffffff;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: pulse 3s ease-in-out infinite;
}

.product-choice-header h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #0f172a;
}

.product-choice-header p {
  color: #475569;
  font-size: 15px;
  margin: 0;
}

.product-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 28px;
  background: #ffffff;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-choice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.1);
}

.product-choice-card.winner {
  border-color: #0d9488;
  box-shadow: 0 0 0 1px #0d9488,
              0 16px 50px rgba(13, 148, 136, 0.18);
}

.product-choice-card.winner:hover {
  box-shadow: 0 0 0 2px #0d9488,
              0 24px 70px rgba(13, 148, 136, 0.28);
}

.product-choice-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0d9488;
  color: #ffffff;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-choice-tag.alt {
  background: #64748b;
}

.product-choice-img-wrap {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.product-choice-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-choice-name {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.product-choice-rating {
  color: #0f766e;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
}

.product-choice-desc {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.product-choice-price {
  color: #0f172a;
  font-size: 16px;
}

.product-choice-price strong {
  color: #0d9488;
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
}

.product-choice-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0d9488;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-choice-card:hover .product-choice-cta-btn {
  transform: translateY(-2px);
}

.product-choice-cta-btn.alt {
  background: #0f172a;
}

.product-choice-card:hover .product-choice-cta-btn.alt {
  background: #1e293b;
}

.product-choice-footer {
  text-align: center;
  color: #475569;
  font-size: 13px;
  margin: 22px 0 0;
}

@media (max-width: 600px) {
  .product-choice-grid {
    grid-template-columns: 1fr;
  }

  .product-choice-modal {
    padding: 24px 18px;
    border-radius: 24px;
  }
}

