/* Home alegre: camada visual da home (index.html), carregada depois do styles.css.
   É a referência do layout das peças: ver .claude/skills/tekotica-layout e tekotica-animacoes. */

.home-alegre {
  /* Cinza escuro no lugar do preto */
  --text-primary: #334155;
  --ink: #334155;
  --frame: #475569;
  --yellow: #fbbf24;
  --orange: #f97316;
  --red: #ef4444;
  --tone: var(--primary);
  --tone-deep: var(--primary-hover);
  --tone-soft: var(--primary-light);
  --mx: 0;
  --my: 0;
}

.tone-blue   { --tone: #009ef7; --tone-deep: #0077d6; --tone-soft: #e5f5ff; }
.tone-orange { --tone: #f97316; --tone-deep: #c2410c; --tone-soft: #fff1e6; }
.tone-yellow { --tone: #fbbf24; --tone-deep: #b45309; --tone-soft: #fef6dc; }
.tone-red    { --tone: #ef4444; --tone-deep: #b91c1c; --tone-soft: #fdecec; }
.tone-gray   { --tone: #475569; --tone-deep: #334155; --tone-soft: #f1f5f9; }
.tone-navy   { --tone: #002B4B; --tone-deep: #001b30; --tone-soft: #e6eef4; }

/* Seções recebem a camada de fundo animada */
.home-alegre .hero,
.home-alegre .section {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.home-alegre .hero > .container,
.home-alegre .section > .container { position: relative; z-index: 1; }

/* ---------- Elementos de fundo (poucos e suaves) ---------- */
.fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fx > i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: block;
  translate: calc(var(--mx) * var(--depth, 18px)) calc(var(--my) * var(--depth, 18px));
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx-blob {
  --depth: 30px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 68%);
  animation: blobDrift 20s ease-in-out var(--d) infinite;
}

.fx-dots {
  --depth: 10px;
  width: 120px;
  height: 88px;
  opacity: 0.3;
  background-image: radial-gradient(var(--c) 2px, transparent 2.6px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 75%);
  mask-image: radial-gradient(circle, #000 40%, transparent 75%);
}

.fx-ring {
  --depth: 26px;
  width: var(--s);
  height: var(--s);
  border: 3px solid var(--c);
  border-radius: 50%;
  opacity: 0.5;
  animation: floatY 7s ease-in-out var(--d) infinite;
}

.fx-bubble {
  --depth: 40px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c);
  opacity: 0.75;
  animation: floatY 6.5s ease-in-out var(--d) infinite;
}

.fx-spark { --depth: 22px; color: var(--c); animation: twinkle 3.4s ease-in-out var(--d) infinite; }
.fx-spark svg { display: block; width: var(--s); height: var(--s); }

/* ---------- Rótulos em pílula ---------- */
.home-alegre .eyebrow {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--tone-deep);
  background: var(--tone-soft);
  letter-spacing: 0.08em;
}

.home-alegre .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
}

.home-alegre .pupil-section { --tone: #f97316; --tone-deep: #c2410c; --tone-soft: #fff1e6; }
.home-alegre .plans-section { --tone: #fbbf24; --tone-deep: #b45309; --tone-soft: #fef6dc; }

/* ---------- Botões maiores e coloridos ---------- */
.home-alegre .button {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  isolation: isolate;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.home-alegre .button-large {
  min-height: 60px;
  padding: 0.9rem 1.7rem 0.9rem 0.95rem;
  font-size: 1.04rem;
  gap: 0.7rem;
}

.home-alegre .button-large > svg {
  width: 2rem;
  height: 2rem;
  padding: 0.48rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-alegre .button:hover { transform: translateY(-3px); }
.home-alegre .button:active { transform: translateY(0) scale(0.98); }
.home-alegre .button-large:hover > svg { transform: scale(1.1); }

/* Brilho discreto que atravessa o botão principal */
.home-alegre .button-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  z-index: -1;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 12s ease-in-out 1s infinite;
}

.home-alegre .button-primary,
.home-alegre .button-orange,
.home-alegre .button-dark { color: #fff; }

.home-alegre .button-primary {
  background: linear-gradient(135deg, #22b8ff 0%, #009ef7 50%, #0080dc 100%);
  box-shadow: 0 10px 24px rgba(0, 158, 247, 0.32);
}
.home-alegre .button-primary:hover { filter: none; box-shadow: 0 16px 32px rgba(0, 158, 247, 0.4); }

.home-alegre .button-orange {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}
.home-alegre .button-orange:hover { box-shadow: 0 16px 32px rgba(249, 115, 22, 0.38); }

.home-alegre .button-dark {
  background: linear-gradient(135deg, #64748b 0%, #475569 45%, #334155 100%);
  box-shadow: 0 10px 24px rgba(51, 65, 85, 0.25);
}
.home-alegre .button-dark:hover { box-shadow: 0 16px 32px rgba(51, 65, 85, 0.32); }

.home-alegre .button-white {
  color: #0080dc;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 60, 120, 0.22);
}
.home-alegre .button-white > svg { color: #fff; background: #009ef7; }

.home-alegre .nav-cta { min-height: 46px; padding-inline: 1.25rem; }

@media (min-width: 641px) {
  .home-alegre .hero-actions { gap: 0.65rem; }
  .home-alegre .hero-actions .button-large { padding: 0.9rem 1.45rem 0.9rem 0.85rem; font-size: 1rem; gap: 0.6rem; }
}

/* ---------- Hero ---------- */
.home-alegre .hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 158, 247, 0.12), transparent 26rem),
    linear-gradient(170deg, #eef8ff 0%, #ffffff 55%, #fffbf0 100%);
}

.home-alegre .hero h1 .hero-accent,
.home-alegre h2 .hero-accent {
  background: linear-gradient(110deg, #0080dc 0%, #009ef7 35%, #3cc4ff 55%, #009ef7 75%, #0080dc 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: accentFlow 7s ease-in-out infinite alternate;
}

/* Título do topo: "exclusivo" e "Ótica" em degradê azul com grifo amarelo atrás */
.home-alegre .hero h1 .hero-accent {
  padding: 0 0.08em;
  margin: 0 -0.04em;
  background-image:
    linear-gradient(110deg, #0080dc 0%, #009ef7 45%, #3cc4ff 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 11C45 5 110 4 197 7l-2 9c-70-2-130-1-191 3Z' fill='%23fcd34d' fill-opacity='.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%, 0% 0.42em;
  background-position: 0 0, 0 100%;
  -webkit-background-clip: text, border-box;
  background-clip: text, border-box;
  animation: highlightIn 0.9s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.home-alegre .hero h1 .hero-line:last-child .hero-accent { animation-delay: 0.85s; }

@keyframes highlightIn { to { background-size: 100% 100%, 100% 0.42em; } }

.home-alegre .visual-glow {
  background: radial-gradient(circle at 40% 40%, rgba(0, 158, 247, 0.3), transparent 60%), radial-gradient(circle at 75% 75%, rgba(251, 191, 36, 0.22), transparent 55%);
  filter: blur(40px);
}

.home-alegre .float-card { border: 0; border-radius: 16px; }
.home-alegre .float-icon { color: #fff; background: linear-gradient(135deg, #22b8ff, #0080dc); }
.home-alegre .hero-points li { padding: 0.32rem 0.8rem 0.32rem 0.45rem; border-radius: 999px; background: #fff; box-shadow: 0 3px 12px rgba(51, 65, 85, 0.06); }
.home-alegre .hero-points svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: var(--success); }

/* ---------- Recursos ---------- */
.home-alegre .section-features { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); }
.home-alegre .feature-grid { gap: 1rem; }

.home-alegre .feature-card {
  border: 1px solid #e8eef4;
  background: #fff;
  box-shadow: 0 4px 16px rgba(51, 65, 85, 0.05);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-alegre .feature-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tone) 35%, #fff);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--tone) 16%, transparent);
}

.home-alegre .feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 72%, #fff) 0%, var(--tone) 55%, var(--tone-deep) 100%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tone) 30%, transparent);
}

.home-alegre .feature-icon svg { width: 23px; height: 23px; }
.home-alegre .feature-card:hover .feature-icon { animation: wiggle 0.6s ease; }

/* Detalhe de fundo só nos cards de destaque */
.home-alegre .feature-card-large { background: linear-gradient(150deg, #ffffff 40%, #eaf6ff 100%); border-color: #d6ecfb; }

.home-alegre .feature-card-large::before,
.home-alegre .feature-card-blue::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 158, 247, 0.16), transparent 70%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.home-alegre .feature-card-blue::before { background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%); }
.home-alegre .feature-card:hover::before { transform: scale(1.3); }
.home-alegre .feature-card > * { position: relative; z-index: 1; }
.home-alegre .feature-card > .tef-badge { position: absolute; z-index: 2; }

.card-watermark {
  position: absolute !important;
  right: -14px;
  bottom: -18px;
  z-index: 0 !important;
  width: 120px;
  height: 120px;
  color: var(--tone);
  opacity: 0.08;
  stroke-width: 1.6;
  transform: rotate(-12deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: none;
}

.home-alegre .feature-card:hover .card-watermark { opacity: 0.14; transform: rotate(0deg); }

.feature-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: auto 0 0; padding: 1.2rem 0 0; list-style: none; }
.feature-chips li {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  color: #0077d6;
  background: #fff;
  box-shadow: inset 0 0 0 1px #cfe8fa;
  font-size: 0.78rem;
  font-weight: 650;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.home-alegre .feature-card-large:hover .feature-chips li { transform: translateY(-2px); }
.home-alegre .feature-card-large:hover .feature-chips li:nth-child(2) { transition-delay: 0.04s; }
.home-alegre .feature-card-large:hover .feature-chips li:nth-child(3) { transition-delay: 0.08s; }
.home-alegre .feature-card-large:hover .feature-chips li:nth-child(4) { transition-delay: 0.12s; }
.home-alegre .feature-card-large:hover .feature-chips li:nth-child(5) { transition-delay: 0.16s; }

.home-alegre .feature-card-blue {
  --tone: #ffffff;
  border: 0;
  background: linear-gradient(140deg, #22b8ff 0%, #009ef7 45%, #0072d1 100%);
  box-shadow: 0 16px 36px rgba(0, 158, 247, 0.28);
}
.home-alegre .feature-card-blue .feature-icon { color: #009ef7; background: #fff; box-shadow: 0 8px 18px rgba(0, 60, 120, 0.2); }
.home-alegre .feature-card-blue .card-watermark { opacity: 0.14; }
.home-alegre .feature-card-blue:hover { box-shadow: 0 24px 48px rgba(0, 158, 247, 0.36); }

.home-alegre .feature-card-tef {
  --tone: #f59e0b;
  --tone-deep: #b45309;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(140deg, #fffdf6 0%, #fff6d8 65%, #fde9a8 100%);
  box-shadow: 0 14px 32px rgba(251, 191, 36, 0.16);
}
.home-alegre .feature-card-tef .feature-link { color: #b45309; }
.home-alegre .tef-badge,
.home-alegre .tef-wireless { color: #fff; background: linear-gradient(135deg, #fbbf24, #f59e0b); }

/* ---------- Ilustrações ---------- */
.card-illus, .illus, .turbo-illus { fill: var(--ink); stroke: none; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.illus text, .turbo-illus text { font-family: "Inter", system-ui, sans-serif; }

.illus-shadow { filter: drop-shadow(0 8px 14px rgba(51, 65, 85, 0.1)); }
.illus-float { animation: floatY 6s ease-in-out var(--d, 0s) infinite; }
.illus-bob { animation: floatY 7s ease-in-out -2s infinite; }
.illus-twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 3s ease-in-out var(--d, 0s) infinite; }

.bar { transform-box: fill-box; transform-origin: center bottom; animation: barGrow 5s cubic-bezier(0.34, 1.4, 0.64, 1) var(--d, 0s) infinite; }
.draw-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: drawLine 5s ease-in-out var(--d, 0s) infinite; }
.donut { stroke-dasharray: 176; stroke-dashoffset: 176; animation: donutFill 5s ease-in-out infinite; }
.person { animation: personBob 3.4s ease-in-out infinite; }
.arm-point { transform-box: view-box; transform-origin: 520px 258px; animation: armPoint 2.8s ease-in-out infinite; }
.os-check { transform-box: fill-box; transform-origin: center; animation: checkPop 6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s) infinite; }
.signature { stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawLine 4.5s ease-in-out 0.4s infinite; }

.msg { opacity: 0; transform: translateY(10px) scale(0.94); transform-box: fill-box; transform-origin: center bottom; transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.msg.is-shown { opacity: 1; transform: none; }

/* ---------- Vitrine ---------- */
.home-alegre .product-showcase {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f7fbff' d='M0 0h1440v34c-170 34-340 44-520 22S600 4 420 14 150 66 0 40Z'/%3E%3C/svg%3E") top / 100% 60px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 80h1440V44c-170-34-340-44-520-22S600 76 420 66 150 14 0 40Z'/%3E%3C/svg%3E") bottom / 100% 60px no-repeat,
    linear-gradient(135deg, #eaf6ff 0%, #f5f9fc 55%, #fff8ec 100%);
  padding-block: calc(var(--section-pad) + 24px);
}

.home-alegre .product-showcase::before { display: none; }

.home-alegre .screen-tab {
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(51, 65, 85, 0.07);
  font-size: 0.86rem;
}

.home-alegre .screen-tab:hover { color: var(--primary-hover); }
.home-alegre #screen-panel:checked ~ .showcase-copy label[for="screen-panel"],
.home-alegre #screen-orders:checked ~ .showcase-copy label[for="screen-orders"],
.home-alegre #screen-whatsapp:checked ~ .showcase-copy label[for="screen-whatsapp"] { background: linear-gradient(135deg, #22b8ff, #0080dc); box-shadow: 0 8px 20px rgba(0, 158, 247, 0.3); }

.home-alegre .check-list svg { width: 22px; height: 22px; padding: 4px; margin-top: 0.05rem; border-radius: 50%; color: #fff; background: var(--success); }

.illus-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(51, 65, 85, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.stage-blue { background: linear-gradient(145deg, #e4f4ff 0%, #c9e9ff 100%); }
.stage-warm { background: linear-gradient(145deg, #fff8ea 0%, #ffe9c4 100%); }

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

.home-alegre .screen-panel { animation: stageIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
.home-alegre .screen-caption { margin-top: 1rem; font-size: 0.84rem; font-weight: 650; color: var(--text-secondary); }

/* ---------- Pupilômetro ---------- */
.video-deco { position: relative; }
.video-deco > .pupil-video { position: relative; z-index: 1; border: 4px solid #fff; box-shadow: 0 24px 50px rgba(51, 65, 85, 0.14); }
.video-deco-shape { position: absolute; display: block; pointer-events: none; }
.video-deco-a { inset: 20px -20px -20px 20px; border-radius: 26px; background: linear-gradient(135deg, #fbbf24, #f97316); opacity: 0.9; animation: decoTilt 9s ease-in-out infinite; }
.home-alegre .pupil-video-badge { z-index: 2; padding: 0.45rem 0.95rem; color: #fff; background: linear-gradient(135deg, #22b8ff, #0080dc); box-shadow: 0 6px 16px rgba(0, 158, 247, 0.35); }
.home-alegre .pupil-video-play { animation: playPulse 2.4s ease-out infinite; }

/* ---------- Ótica Turbo ---------- */
.home-alegre .turbo-shell {
  border: 0;
  background: linear-gradient(135deg, #f0fcf5 0%, #d8f6e5 60%, #c3efd6 100%);
  box-shadow: 0 24px 60px rgba(18, 140, 126, 0.14);
}

.home-alegre .turbo-shell::before { opacity: 0.6; }
.home-alegre .turbo-visual { min-height: 0; }
.turbo-illus { position: relative; z-index: 1; display: block; width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 24px 34px rgba(18, 100, 90, 0.18)); }

.home-alegre .turbo-features > div { border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 6px 18px rgba(18, 140, 126, 0.08); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; }
.home-alegre .turbo-features > div:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(18, 140, 126, 0.14); }
.home-alegre .turbo-features > div > span { width: 38px; height: 38px; border-radius: 12px; color: #fff; }
.home-alegre .turbo-features > div:nth-child(1) > span { background: linear-gradient(135deg, #22b8ff, #0080dc); }
.home-alegre .turbo-features > div:nth-child(2) > span { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.home-alegre .turbo-features > div:nth-child(3) > span { background: linear-gradient(135deg, #fb923c, #ea580c); }
.home-alegre .turbo-features > div:nth-child(4) > span { background: linear-gradient(135deg, #f87171, #dc2626); }

/* ---------- Planos ---------- */
.home-alegre .plans-section { background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%); }

.home-alegre .plan-card {
  border: 1px solid #e8eef4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(51, 65, 85, 0.06);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.home-alegre .plan-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px color-mix(in srgb, var(--tone) 16%, transparent); }
.home-alegre .plan-card:first-child { --tone: #475569; --tone-deep: #334155; --tone-soft: #f1f5f9; }

.home-alegre .plan-card-featured {
  --tone: #009ef7;
  --tone-deep: #0072d1;
  border: 2px solid #009ef7;
  background: linear-gradient(170deg, #ffffff 60%, #eef8ff 100%);
  box-shadow: 0 20px 48px rgba(0, 158, 247, 0.16);
}

.home-alegre .plan-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 72%, #fff), var(--tone) 55%, var(--tone-deep));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tone) 28%, transparent);
}

.home-alegre .plan-price strong { color: var(--tone-deep); }
.home-alegre .plan-card li svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: var(--tone); }

.home-alegre .popular-label {
  top: -0.95rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  font-size: 0.72rem;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.3);
  animation: badgeBounce 2.8s ease-in-out infinite;
}

.home-alegre .plan-card-turbo { --tone: #f59e0b; --tone-deep: #b45309; background: linear-gradient(135deg, #fffcef 0%, #fff3c4 60%, #fde68a 100%); border-color: rgba(251, 191, 36, 0.5); }
.home-alegre .plan-card-turbo .plan-icon { background: #fff; }
.home-alegre .plan-card-turbo li svg { background: var(--turbo-deep); }

/* ---------- Avaliações ---------- */
.home-alegre .confidence-section {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f9ff' d='M0 0h1440v34c-170 34-340 44-520 22S600 4 420 14 150 66 0 40Z'/%3E%3C/svg%3E") top / 100% 56px no-repeat,
    linear-gradient(180deg, #fffaee 0%, #fffdf8 100%);
  padding-top: calc(var(--section-pad) * 0.35 + 46px) !important;
}

.home-alegre .reviews-stars { font-size: 1.5rem; color: #fbbf24; }
.home-alegre .review-slide { --tone: #009ef7; border: 1px solid #f0ead8; border-radius: 22px; box-shadow: 0 8px 22px rgba(51, 65, 85, 0.05); }
.home-alegre .review-slide:nth-child(4n + 2) { --tone: #f97316; }
.home-alegre .review-slide:nth-child(4n + 3) { --tone: #fbbf24; }
.home-alegre .review-slide:nth-child(4n + 4) { --tone: #ef4444; }
.home-alegre .review-slide .review-avatar { color: #fff; background: var(--tone); }
.home-alegre .review-stars { color: #fbbf24; }
.home-alegre .review-arrow { border: 0; color: #fff; background: #009ef7; box-shadow: 0 6px 16px rgba(0, 158, 247, 0.3); }

/* ---------- Dúvidas ---------- */
.home-alegre .faq-section { background: #fffdf8; }
.home-alegre .faq-list details { border: 1px solid #e8eef4; border-radius: 18px; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.home-alegre .faq-list details[open] { border-color: #9fd6fb; box-shadow: 0 12px 30px rgba(0, 158, 247, 0.1); }
.home-alegre .faq-list summary span { width: 28px; height: 28px; background: #e5f5ff; transition: transform 0.3s ease, background 0.3s ease; }
.home-alegre .faq-list details[open] summary span { transform: rotate(180deg); background: #009ef7; }
.home-alegre .faq-list details[open] summary span::before,
.home-alegre .faq-list details[open] summary span::after { background: #fff; }
.home-alegre .text-link { padding: 0.7rem 1.15rem; border-radius: 999px; color: #fff; background: #009ef7; box-shadow: 0 8px 20px rgba(0, 158, 247, 0.28); }
.home-alegre .text-link:hover { color: #fff; transform: translateY(-2px); }

/* ---------- Apresentação ---------- */
.home-alegre .final-cta { background: #fffdf8; }

.home-alegre .final-cta-inner {
  isolation: isolate;
  background: linear-gradient(135deg, #1aaeff 0%, #009ef7 45%, #0080dc 100%);
  box-shadow: 0 26px 60px rgba(0, 128, 220, 0.25);
}

.home-alegre .final-cta-inner::before,
.home-alegre .final-cta-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.home-alegre .final-cta-inner::before {
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 0;
  box-shadow: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}

.home-alegre .final-cta-inner::after {
  bottom: -90px;
  left: 34%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent 68%);
  animation: floatY 8s ease-in-out infinite;
}

.home-alegre .cta-kicker { border: 0; background: rgba(255, 255, 255, 0.16); }
.home-alegre .final-lead-copy h2 { color: #fff; }
.home-alegre .final-lead-points svg { color: #fff; background: var(--yellow); }
.home-alegre .final-video { border: 0; border-radius: 20px; box-shadow: 0 18px 40px rgba(0, 50, 100, 0.28); }
.home-alegre .final-video-play { animation: playPulse 2.4s ease-out infinite; }

/* ---------- Rodapé ---------- */
.home-alegre .site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: 4.5rem 0 1.75rem;
  color: #a9bdd0;
  background: #002B4B;
  border-radius: 36px 36px 0 0;
}

.home-alegre .site-footer::before {
  content: "";
  position: absolute;
  top: -220px;
  left: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 158, 247, 0.2), transparent 65%);
  pointer-events: none;
}

.home-alegre .footer-grid { position: relative; align-items: start; }
.home-alegre .footer-brand img { width: 168px; }
.home-alegre .footer-brand p { margin-top: 1.25rem; color: #a7b3c4; font-size: 0.86rem; line-height: 1.6; }
.home-alegre .footer-grid h2 { margin-bottom: 1.1rem; color: #fff; font-size: 0.76rem; letter-spacing: 0.08em; }
.home-alegre .footer-grid a,
.home-alegre .footer-grid p,
.home-alegre .copy-email { margin-bottom: 0.7rem; color: #a7b3c4; font-size: 0.84rem; }
.home-alegre .footer-grid a:hover,
.home-alegre .copy-email:hover { color: #fff; }
.home-alegre .footer-grid .footer-social a { width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.1); }
.home-alegre .footer-grid .footer-social a:hover { background: #009ef7; }
.home-alegre .footer-bottom { position: relative; margin-top: 3.25rem; border-top-color: rgba(255, 255, 255, 0.1); color: #8592a6; font-size: 0.76rem; }

/* ---------- Revelação ---------- */
.home-alegre .reveal { transform: translateY(30px); transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.34, 1.3, 0.64, 1); }
.home-alegre .reveal.is-visible { transform: none; }

/* ---------- Animações ---------- */
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.06); }
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle {
  0%, 100% { transform: scale(0.65) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.1) rotate(90deg); opacity: 1; }
}
/* Anda por transform (sem recalcular o layout): 190% do botão = 475% da largura do brilho. */
@keyframes shine { 0% { transform: translateX(0) skewX(-20deg); } 11%, 100% { transform: translateX(475%) skewX(-20deg); } }
@keyframes accentFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-8deg) scale(1.06); }
  60% { transform: rotate(6deg) scale(1.06); }
}
@keyframes badgeBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes barGrow {
  0% { transform: scaleY(0.12); }
  22%, 82% { transform: scaleY(1); }
  100% { transform: scaleY(0.12); }
}
@keyframes drawLine {
  0% { stroke-dashoffset: 420; opacity: 1; }
  40%, 82% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes donutFill {
  0% { stroke-dashoffset: 176; }
  40%, 82% { stroke-dashoffset: 34; }
  100% { stroke-dashoffset: 176; }
}
@keyframes personBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes armPoint { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg); } }
@keyframes checkPop {
  0%, 6% { transform: scale(0); }
  14%, 72% { transform: scale(1); }
  80%, 100% { transform: scale(0); }
}
@keyframes stageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes decoTilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2deg) translate(3px, -3px); } }
@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6), 0 14px 34px rgba(51, 65, 85, 0.3); }
  100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0), 0 14px 34px rgba(51, 65, 85, 0.3); }
}

/* ---------- Telas menores ---------- */
@media (max-width: 920px) {
  .video-deco { margin-right: 20px; }
}

@media (max-width: 640px) {
  .home-alegre .button-large { min-height: 56px; padding: 0.8rem 1.2rem 0.8rem 0.8rem; font-size: 0.98rem; gap: 0.55rem; }
  .home-alegre .button-large > svg { width: 1.85rem; height: 1.85rem; padding: 0.42rem; }
  .home-alegre .hero-actions { flex-wrap: wrap; }
  .home-alegre .hero-actions .button { flex: 1 1 100%; }
  .fx > .fx-dots, .fx > .fx-spark { display: none; }
  .illus-stage { border-radius: 20px; }
  .home-alegre .screen-tab { min-height: 42px; padding-inline: 0.5rem; font-size: 0.76rem; }
  .video-deco-a { inset: 12px -12px -12px 12px; border-radius: 20px; }
  .video-deco { margin-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx > i { translate: none; }
  .msg { opacity: 1; transform: none; }
  .draw-line, .signature, .donut { stroke-dashoffset: 0; }
  .os-check { transform: none; }
}

/* =========================================================
   Ajustes: botões brancos, barrinha nos cards, detalhes por
   aba, Ótica Turbo animado, apresentação e rodapé
   ========================================================= */

/* Botão branco com detalhe azul (Ver apresentação, Ver o vídeo, plano Pro) */
.home-alegre .button-light {
  color: #0072d1;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 158, 247, 0.14), inset 0 0 0 1.5px #cfe8fa;
}
.home-alegre .button-light > svg { color: #fff; background: linear-gradient(135deg, #22b8ff, #0080dc); }
.home-alegre .button-light:hover { box-shadow: 0 16px 30px rgba(0, 158, 247, 0.22), inset 0 0 0 1.5px #7cc8f8; }
.home-alegre .button-full.button-light > svg { color: #009ef7; background: none; }

/* Botão amarelo em degradê (Ver apresentação, Ver o vídeo) */
.home-alegre .button-yellow {
  color: #334155;
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 40%, #fbbf24 100%);
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.home-alegre .button-yellow > svg { color: #fff; background: #334155; }
.home-alegre .button-yellow:hover { box-shadow: 0 16px 32px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }

/* Cards: fundo em degradê na cor do card e arco no canto superior direito */
.home-alegre .feature-card:not(.feature-card-blue):not(.feature-card-tef) {
  border-color: color-mix(in srgb, var(--tone) 22%, #e8eef4);
  background: linear-gradient(150deg, #ffffff 35%, color-mix(in srgb, var(--tone) 12%, #fff) 100%);
}
.home-alegre .feature-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 104px;
  height: 104px;
  border: 16px solid color-mix(in srgb, var(--tone) 12%, transparent);
  border-radius: 50%;
  background: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.home-alegre .feature-card-blue::before { border-color: rgba(255, 255, 255, 0.16); background: none; }
.home-alegre .feature-card:hover::before { transform: scale(1.18); }

/* Barrinha lateral em degradê na cor de cada card */
.home-alegre .feature-card::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  z-index: 2;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--tone), color-mix(in srgb, var(--tone) 30%, #fff));
  transition: top 0.35s ease, bottom 0.35s ease;
  pointer-events: none;
}
.home-alegre .feature-card:hover::after { top: 12px; bottom: 12px; }
.home-alegre .feature-card-blue::after { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.35)); }

/* Vitrine: abas com ícone e detalhes de cada tela */
.home-alegre .screen-tab { gap: 0.45rem; }
@media (min-width: 921px) {
  .home-alegre .showcase-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 4.5vw, 4.5rem); }
}
.home-alegre .screen-tab svg { width: 16px; height: 16px; }

.screen-details { margin-top: 1.4rem; }
.screen-detail { display: none; }
#screen-panel:checked ~ .showcase-copy .screen-detail-panel,
#screen-orders:checked ~ .showcase-copy .screen-detail-orders,
#screen-whatsapp:checked ~ .showcase-copy .screen-detail-whatsapp { display: block; animation: detailIn 0.45s cubic-bezier(0.34, 1.3, 0.64, 1) both; }

.screen-detail-panel { --tone: #009ef7; --tone-deep: #0072d1; }
.screen-detail-orders { --tone: #f97316; --tone-deep: #c2410c; }
.screen-detail-whatsapp { --tone: #25d366; --tone-deep: #128c7e; }

.detail-highlight {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  overflow: hidden;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(51, 65, 85, 0.07);
}
.detail-highlight::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--tone), color-mix(in srgb, var(--tone) 30%, #fff));
}
.detail-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 72%, #fff), var(--tone) 55%, var(--tone-deep));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tone) 28%, transparent);
}
.detail-icon svg { width: 20px; height: 20px; }
.detail-highlight p { margin: 0; }
.detail-highlight strong { display: block; color: var(--ink); font-size: 1rem; }
.detail-highlight small { display: block; margin-top: 0.2rem; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.5; }
.screen-detail .check-list { margin-top: 1.1rem; }

/* Elementos animados no fundo do quadro da vitrine */
.stage-blue { --stage-tone: #009ef7; }
.stage-warm { --stage-tone: #f97316; }
.stage-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sd { position: absolute; display: block; }
.sd-blob { top: -90px; right: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.75), transparent 70%); animation: blobDrift 14s ease-in-out infinite; }
.sd-ring { bottom: 9%; left: 5%; width: 72px; height: 72px; border: 3px solid color-mix(in srgb, var(--stage-tone) 30%, transparent); border-radius: 50%; animation: floatY 6s ease-in-out infinite; }
.sd-dots { right: 4%; bottom: 5%; width: 112px; height: 80px; background-image: radial-gradient(color-mix(in srgb, var(--stage-tone) 40%, transparent) 2px, transparent 2.6px); background-size: 14px 14px; animation: dotsDrift 9s ease-in-out infinite alternate; }
.sd-bubble { top: 12%; left: 11%; width: 14px; height: 14px; border-radius: 50%; background: #fbbf24; animation: floatY 5s ease-in-out infinite; }
.sd-bubble-2 { top: 44%; right: 20%; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; opacity: 0.7; animation: floatY 6.5s ease-in-out -2s infinite; }
.sd-star { top: 10%; right: 7%; color: #fbbf24; animation: twinkle 3s ease-in-out infinite; }
.sd-star svg { display: block; width: 20px; height: 20px; }
.sd-glasses { top: 44%; left: 3%; color: color-mix(in srgb, var(--stage-tone) 40%, transparent); animation: floatSpin 9s ease-in-out infinite; }
.sd-glasses svg { display: block; width: 32px; height: 32px; stroke-width: 2.2; }

/* Pupilômetro: sem o bloco laranja */
.home-alegre .pupil-section { --tone: #fbbf24; --tone-deep: #b45309; --tone-soft: #fef6dc; }
.home-alegre .video-deco-a { background: linear-gradient(135deg, #cdeafd 0%, #8fd0fb 100%); opacity: 1; }

/* Ótica Turbo com movimento */
.home-alegre .turbo-visual { position: relative; display: grid; place-items: center; padding: 2.2rem 0; }
.turbo-ring { position: absolute; top: 50%; left: 50%; border: 2px dashed rgba(18, 140, 126, 0.25); border-radius: 50%; translate: -50% -50%; animation: spin 40s linear infinite; pointer-events: none; }
.turbo-ring-one { width: 340px; height: 340px; }
.turbo-ring-two { width: 460px; height: 460px; animation-duration: 60s; animation-direction: reverse; }
.turbo-float {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.18);
  font-size: 1.35rem;
  animation: floatY 5s ease-in-out infinite;
}
.turbo-float svg { width: 22px; height: 22px; }
.turbo-float-cake { top: 4%; left: 1%; }
.turbo-float-heart { top: 40%; right: 0; color: #ef4444; animation-delay: -1.5s; }
.turbo-float-mega { bottom: 22%; left: -2%; color: #f97316; animation-delay: -3s; }
.turbo-float-star { right: 14%; bottom: 0; width: 38px; height: 38px; color: #fbbf24; animation: twinkle 3s ease-in-out infinite; }
.turbo-float-star svg { width: 18px; height: 18px; }

.home-alegre .automation-card { z-index: 3; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 14px 32px rgba(18, 140, 126, 0.18); animation: floatY 6s ease-in-out infinite; }
.home-alegre .automation-card-one { top: -0.4rem; right: 6%; }
.home-alegre .automation-card-two { bottom: -0.2rem; left: 4%; animation-delay: -3s; }
.home-alegre .automation-card > svg { width: 34px; height: 34px; padding: 8px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.home-alegre .automation-card-two > svg { background: linear-gradient(135deg, #22b8ff, #0080dc); }

.home-alegre .turbo-shell::after {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 1.6px, transparent 2.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
}

.tgl rect { animation: tglTrack 8s ease-in-out var(--d, 0s) infinite; }
.tgl circle { animation: tglKnob 8s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s) infinite; }

/* Plano Pro em azul (o destaque continua no Pro + Nota Fiscal) */
.home-alegre .plan-card:first-child { --tone: #009ef7; --tone-deep: #0072d1; --tone-soft: #e5f5ff; }
.home-alegre .plan-card:first-child .plan-icon { color: #009ef7; background: #e5f5ff; box-shadow: none; }
.home-alegre .plan-card:first-child li svg { color: #009ef7; background: #e5f5ff; }

/* Avaliações: setas fora dos cards e foto com anel colorido */
.home-alegre .reviews-viewport-shell { padding-inline: 3.4rem; }
.home-alegre .review-arrow { width: 44px; height: 44px; }
.home-alegre .review-arrow-prev { left: 0; }
.home-alegre .review-arrow-next { right: 0; }
.home-alegre .review-slide .review-avatar.has-photo { background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tone); }

/* Apresentação */
.home-alegre .final-cta-inner::before,
.home-alegre .final-cta-inner::after { display: none; }
.home-alegre .final-cta-inner { background: linear-gradient(135deg, #1aaeff 0%, #009ef7 45%, #0072d1 100%); animation: none; }
.final-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.home-alegre .final-waves { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 48%; stroke: none; }
.final-dots { position: absolute; top: 26px; left: 26px; width: 120px; height: 84px; background-image: radial-gradient(rgba(255, 255, 255, 0.35) 2px, transparent 2.6px); background-size: 16px 16px; }
.final-ring { position: absolute; top: -70px; right: -70px; width: 240px; height: 240px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%; box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.05); animation: floatY 8s ease-in-out infinite; }
.final-spark { position: absolute; top: 16%; left: 47%; color: #fbbf24; animation: twinkle 3.2s ease-in-out infinite; }
.final-spark svg { display: block; width: 24px; height: 24px; }
.home-alegre .final-lead-points svg { color: #009ef7; background: #fff; }

.home-alegre .final-video {
  display: flex;
  aspect-ratio: auto;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 40, 90, 0.3);
  transform: rotate(-1.2deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.home-alegre .final-video:hover { transform: rotate(0deg) translateY(-4px); }
.home-alegre .final-video img { height: auto; aspect-ratio: 16 / 9; }
.final-video-bar { display: flex; height: 28px; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 12px; background: #fff; }
.final-video-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; }
.final-video-bar i:nth-child(2) { background: #fbbf24; }
.final-video-bar i:nth-child(3) { background: #cbd5e1; }

/* Rodapé com chamada no topo */
.home-alegre .site-footer { padding-top: 3rem; }
.home-alegre .button-whats { color: #fff; background: linear-gradient(135deg, #3be07f, #25d366 50%, #128c7e); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.25); }
.home-alegre .button-whats > svg { background: rgba(255, 255, 255, 0.2); }
.home-alegre .footer-grid .footer-contact { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-contact svg { width: 16px; height: 16px; color: #38bdf8; }

/* Animações novas */
@keyframes detailIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dotsDrift { from { transform: translate(0, 0); } to { transform: translate(10px, -8px); } }
@keyframes floatSpin { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes tglTrack { 0%, 8% { fill: #cbd5e1; } 14%, 88% { fill: #009ef7; } 96%, 100% { fill: #cbd5e1; } }
@keyframes tglKnob { 0%, 8% { transform: translateX(-12px); } 14%, 88% { transform: translateX(0); } 96%, 100% { transform: translateX(-12px); } }


@media (max-width: 640px) {
  .sd-dots, .sd-glasses, .sd-ring { display: none; }
  .turbo-ring-one { width: 250px; height: 250px; }
  .turbo-ring-two { width: 330px; height: 330px; }
  .turbo-float { width: 40px; height: 40px; font-size: 1.1rem; }
  .turbo-float-mega, .turbo-float-star { display: none; }
  .home-alegre .reviews-viewport-shell { padding-inline: 2.4rem; }
  .home-alegre .review-arrow { width: 36px; height: 36px; }
  .home-alegre .final-video { transform: none; }
}

/* Menu branco com efeito de vidro ao rolar */
.home-alegre .site-header.is-scrolled {
  border-color: rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 30px rgba(51, 65, 85, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}

/* Rodapé reto, sem a faixa de chamada */
.home-alegre .site-footer { margin-top: 0; padding-top: 4.5rem; border-radius: 0; }

/* As três etiquetas do topo na mesma linha */
@media (min-width: 641px) {
  .home-alegre .hero-copy .hero-points { flex-wrap: nowrap; gap: 0.45rem; }
  .home-alegre .hero-copy .hero-points li { gap: 0.35rem; padding: 0.3rem 0.7rem 0.3rem 0.35rem; font-size: 0.8rem; white-space: nowrap; }
  .home-alegre .hero-copy .hero-points svg { width: 18px; height: 18px; }
}

/* Planos mais estreitos e mais afastados */
@media (min-width: 761px) {
  .home-alegre .plans-grid { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; width: 100%; column-gap: 2.75rem; row-gap: 2.25rem; }
}

/* Ótica Turbo nos planos: verde do WhatsApp, um ícone só */
.home-alegre .plan-card-turbo {
  --tone: #25d366;
  --tone-deep: #128c7e;
  --tone-soft: #e3f9ec;
  border: 1px solid #c8f0d8;
  background: linear-gradient(135deg, #ffffff 0%, #f1fcf5 55%, #dcf8e7 100%);
  box-shadow: 0 14px 34px rgba(18, 140, 126, 0.1);
}
.home-alegre .plan-card-turbo::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 110px;
  height: 110px;
  border: 16px solid rgba(37, 211, 102, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.home-alegre .plan-card-turbo .plan-icon { background: #dcf8e7; box-shadow: none; }
.home-alegre .plan-card-turbo .plan-price strong { color: #128c7e; }
.home-alegre .plan-card-turbo .plan-price > span,
.home-alegre .plan-card-turbo .plan-price sup { color: #128c7e; }
.home-alegre .plan-card-turbo .whatsapp-official-highlight strong {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #00F768 0%, #00c853 45%, #128C7E 100%);
  text-shadow: 0 1px 2px rgba(0, 43, 75, 0.25);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.home-alegre .plan-card-turbo .whatsapp-official-highlight small { margin-top: 0.55rem; font-size: 0.82rem; }
.home-alegre .plan-card-turbo ul { gap: 0.7rem 1.25rem; border-top-color: #c8f0d8; }
.home-alegre .plan-card-turbo li { align-items: flex-start; }
.home-alegre .plan-card-turbo li svg { flex: 0 0 auto; color: #fff; background: #25d366; }
.home-alegre .plan-card-turbo { overflow: hidden; }
@media (min-width: 761px) {
  .home-alegre .plan-card-turbo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.75rem; }
  .home-alegre .plan-card-turbo li { white-space: nowrap; }
}
.stage-warm .sd-glasses { display: none; }

/* Selo "Mais vendido" em degradê azul */
.home-alegre .popular-label { color: #fff; background: linear-gradient(135deg, #22b8ff 0%, #009ef7 50%, #0072d1 100%); box-shadow: 0 8px 18px rgba(0, 158, 247, 0.35); }

/* Centavos do preço na mesma cor do valor */
.home-alegre .plan-price sup { color: var(--tone-deep, #0072d1); }

/* Botão flutuante do WhatsApp: degradê, brilho e pulso suave */
.home-alegre .whatsapp-float {
  isolation: isolate;
  overflow: hidden;
  min-height: 54px;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem 0.55rem 0.55rem;
  border: 0;
  background: linear-gradient(135deg, #3ee07f 0%, #25d366 45%, #128c7e 100%);
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35);
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.home-alegre .whatsapp-float > svg {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.home-alegre .whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  z-index: -1;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  /* Defasado meio ciclo para não brilhar junto com o botão de teste grátis */
  animation: shine 12s ease-in-out 7s infinite;
}
.home-alegre .whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: whatsPulse 2.6s ease-out infinite;
}
.home-alegre .whatsapp-float:hover {
  transform: translateY(-3px);
  filter: none;
  box-shadow: 0 18px 36px rgba(18, 140, 126, 0.45);
}
.home-alegre .whatsapp-float:hover > svg { transform: scale(1.1) rotate(-8deg); }
@keyframes whatsPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (max-width: 640px) {
  .home-alegre .whatsapp-float { width: 56px; height: 56px; padding: 0; }
  .home-alegre .whatsapp-float > svg { width: 2.4rem; height: 2.4rem; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-alegre .whatsapp-float::after,
  .home-alegre .whatsapp-float::before { animation: none; }
}

/* Cores de apoio do feed: marinho #002B4B e verde neon #00F768 (só como fundo de destaque) */
.home-alegre .turbo-whatsapp-title {
  color: #128C7E;
}

/* Checks das etiquetas do topo e das listas no verde vivo */
.home-alegre .hero-points svg,
.home-alegre .check-list svg { background: linear-gradient(135deg, #00F768, #00d65a); }
.home-alegre .plan-card-turbo li svg { background: linear-gradient(135deg, #00F768, #00d65a); }

.home-alegre .status-pulse { background: #00F768; box-shadow: 0 0 0 6px rgba(0, 247, 104, 0.18); }
.home-alegre .status-pulse::after { border-color: #00F768; }

/* Menos espaço entre Recursos e "Por dentro do sistema" */
.home-alegre .section-features { padding-bottom: calc(var(--section-pad) * 0.5); }
.home-alegre .product-showcase { padding-top: calc(var(--section-pad) * 0.75); }
.home-alegre .footer-brand p,
.home-alegre .footer-grid a,
.home-alegre .footer-grid p { color: #a9bdd0; }
.home-alegre .footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); color: #8ea6bd; }
.home-alegre .footer-grid .footer-social a { background: rgba(255, 255, 255, 0.08); }

/* Caixa e financeiro: degradê no azul do rodapé em vez do cinza */
.home-alegre .feature-card.tone-navy:not(.feature-card-blue):not(.feature-card-tef) {
  border-color: #c9d8e6;
  background: linear-gradient(150deg, #ffffff 30%, #dce8f3 75%, #c3d6e8 100%);
}
.home-alegre .feature-card.tone-navy::before { border-color: rgba(0, 43, 75, 0.14); }

/* ---------- Páginas internas (apresentação, pupilômetro, termos, privacidade, 404) ---------- */
.home-alegre.presentation-page,
.home-alegre.legal-page,
.home-alegre.error-page {
  background: linear-gradient(170deg, #eef8ff 0%, #ffffff 38%, #ffffff 70%, #fffbf0 100%);
}
.home-alegre.presentation-page::before,
.home-alegre.legal-page::before {
  height: 560px;
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 158, 247, 0.12), transparent 26rem),
    radial-gradient(circle at 88% 30%, rgba(251, 191, 36, 0.12), transparent 22rem);
}

/* Menu igual ao da home: transparente no topo, vidro branco ao rolar */
.home-alegre.presentation-page .site-header:not(.is-scrolled),
.home-alegre.legal-page .site-header:not(.is-scrolled),
.home-alegre.error-page .site-header:not(.is-scrolled) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Títulos: cinza escuro e destaque em degradê azul com grifo amarelo, como no topo da home */
.home-alegre .presentation-heading h1,
.home-alegre .legal-hero h1,
.home-alegre .error-card h1 { color: var(--text-primary); }
.home-alegre .presentation-heading h1 span {
  padding: 0 0.08em;
  margin: 0 -0.04em;
  color: transparent;
  background-image:
    linear-gradient(110deg, #0080dc 0%, #009ef7 45%, #3cc4ff 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 11C45 5 110 4 197 7l-2 9c-70-2-130-1-191 3Z' fill='%23fcd34d' fill-opacity='.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%, 0% 0.42em;
  background-position: 0 0, 0 100%;
  -webkit-background-clip: text, border-box;
  background-clip: text, border-box;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: highlightIn 0.9s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* Cards e quadros das páginas internas no padrão da home */
.home-alegre .presentation-preview-card,
.home-alegre .presentation-video-frame { border: 0; border-radius: 24px; box-shadow: 0 26px 60px rgba(51, 65, 85, 0.14); }
.home-alegre .presentation-benefits > div,
.home-alegre .presentation-after-video,
.home-alegre .legal-summary,
.home-alegre .legal-card,
.home-alegre .error-card { border-color: #e8eef4; box-shadow: 0 10px 30px rgba(51, 65, 85, 0.06); }
.home-alegre .presentation-benefits > div > span { color: #fff; background: linear-gradient(135deg, #22b8ff, #0080dc); box-shadow: 0 8px 18px rgba(0, 158, 247, 0.25); }
.home-alegre .presentation-play { background: linear-gradient(135deg, #22b8ff, #0080dc); animation: playPulse 2.4s ease-out infinite; }
.home-alegre .error-code {
  background: linear-gradient(110deg, #0080dc 0%, #009ef7 45%, #3cc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-alegre .error-face { color: #fff; background: linear-gradient(135deg, #22b8ff, #0080dc); }

/* Grifo amarelo: desenha uma vez e depois um brilho passa por ele de tempos em tempos.
   Camadas: texto em degradê (recortado no texto), brilho e grifo (no fundo). */
.home-alegre .hero h1 .hero-accent,
.home-alegre .presentation-heading h1 span {
  background-image:
    linear-gradient(110deg, #0080dc 0%, #009ef7 45%, #3cc4ff 100%),
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.85) 50%, transparent 80%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 11C45 5 110 4 197 7l-2 9c-70-2-130-1-191 3Z' fill='%23fcd34d' fill-opacity='.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%, 28% 0.42em, 0% 0.42em;
  background-position: 0 0, -60% 100%, 0 100%;
  -webkit-background-clip: text, border-box, border-box;
  background-clip: text, border-box, border-box;
  animation:
    grifoEntra 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards,
    grifoBrilho 12s ease-in-out 3.5s infinite;
}
.home-alegre .hero h1 .hero-line:last-child .hero-accent { animation-delay: 0.85s, 4s; }
@keyframes grifoEntra { to { background-size: 100% 100%, 28% 0.42em, 100% 0.42em; } }
@keyframes grifoBrilho {
  0% { background-position: 0 0, -60% 100%, 0 100%; }
  12%, 100% { background-position: 0 0, 160% 100%, 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-alegre .hero h1 .hero-accent,
  .home-alegre .presentation-heading h1 span { animation: none; background-size: 100% 100%, 0 0, 100% 0.42em; }
}

/* Desempenho: seções fora da tela pausam as animações infinitas (classe posta pelo home-alegre.js). */
.home-alegre .is-offscreen,
.home-alegre .is-offscreen *,
.home-alegre .is-offscreen *::before,
.home-alegre .is-offscreen *::after { animation-play-state: paused !important; }
