/* =====================================================================
   GDVet · Página do App GDVet v2 (proposta)
   Carregar DEPOIS de styles.css e produto.css.
   Prefixo av- para não colidir com o resto do site.
   ===================================================================== */

:root {
  --av-app: #F28C28;
  --av-app-2: #FFB066;
  --av-free: #2BB673;
  --av-full: #F28C28;
  --av-flash: #A78BFA;
  --av-trainer: #38BDF8;
  --av-gdav: #F2811D;
  --av-gdetiv: #DC2A2E;
  --av-card: var(--bg-card, #122E54);
  --av-line: var(--line, rgba(255,255,255,.08));
  --av-muted: var(--text-muted, #97A6BD);
  --av-radius: 18px;
  --av-phone: #0E1116;
}

.av-page { overflow-x: hidden; }

/* ---------- utilitários ---------- */
.av-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--av-c, var(--av-app)) 16%, transparent);
  color: var(--av-c, var(--av-app));
  border: 1px solid color-mix(in srgb, var(--av-c, var(--av-app)) 35%, transparent);
}
.av-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.av-c-free { --av-c: var(--av-free); }
.av-c-full { --av-c: var(--av-full); }
.av-c-flash { --av-c: var(--av-flash); }
.av-c-trainer { --av-c: var(--av-trainer); }
.av-c-gdav { --av-c: var(--av-gdav); }
.av-c-gdetiv { --av-c: var(--av-gdetiv); }

.av-kicker { color: var(--av-app); }
.av-accent { color: var(--av-app); font-style: italic; }

/* ---------- moldura de celular ---------- */
.av-phone {
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: 13% / 6%;
  padding: 3.2%;
  background: linear-gradient(145deg, #2A2F38, #0B0D11 60%, #1C2027);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.65), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.av-phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 10.5% / 4.9%;
  overflow: hidden; background: #0B0D11;
}
.av-phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}
.av-phone::after { /* ilha dinâmica */
  content: ""; position: absolute; top: 4.6%; left: 50%; transform: translateX(-50%);
  width: 27%; height: 2.6%; border-radius: 999px; background: #000; z-index: 2;
}

/* ---------- HERO ---------- */
.av-hero {
  position: relative; padding: 140px 0 70px;
  background:
    radial-gradient(60% 60% at 80% 20%, color-mix(in srgb, var(--av-app) 22%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(20,195,154,.12), transparent 70%),
    var(--bg);
}
.av-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .av-hero-grid { grid-template-columns: 1.05fr 1fr; } }
.av-crumb { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--av-muted); margin-bottom: 18px; }
.av-crumb a { color: inherit; text-decoration: none; }
.av-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.04; margin: 14px 0 18px; }
.av-hero-sub { font-size: 1.15rem; color: var(--av-muted); max-width: 560px; }
.av-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.av-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 14px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18);
  transition: transform .2s ease, border-color .2s ease;
}
.av-store:hover { transform: translateY(-2px); border-color: var(--av-app); }
.av-store small { display: block; font-size: 10.5px; opacity: .75; line-height: 1.1; }
.av-store strong { display: block; font-size: 16px; line-height: 1.15; }
.av-hero-note { margin-top: 16px; font-size: 13.5px; color: var(--av-muted); }
.av-hero-note a { color: var(--av-app); }

.av-hero-visual { position: relative; height: 560px; max-width: 560px; margin: 0 auto; width: 100%; }
.av-hero-visual .av-phone { position: absolute; width: 230px; }
.av-hero-visual .av-p1 { left: 2%; top: 70px; transform: rotate(-8deg); }
.av-hero-visual .av-p2 { left: 50%; top: 0; transform: translateX(-50%); width: 255px; z-index: 3; }
.av-hero-visual .av-p3 { right: 2%; top: 80px; transform: rotate(8deg); }
@media (max-width: 560px) {
  .av-hero { padding-top: 120px; }
  .av-hero-visual { height: 420px; }
  .av-hero-visual .av-phone { width: 150px; }
  .av-hero-visual .av-p2 { width: 180px; }
  .av-hero-visual .av-p1 { top: 60px; } .av-hero-visual .av-p3 { top: 70px; }
}
.av-chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--av-card) 88%, transparent);
  backdrop-filter: blur(10px); border: 1px solid var(--av-line);
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.5);
  animation: av-float 5.5s ease-in-out infinite;
}
.av-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--av-c, var(--av-app)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--av-c, var(--av-app)) 25%, transparent); }
.av-chip--a { left: -2%; bottom: 70px; }
.av-chip--b { right: -2%; top: 30px; animation-delay: -2s; }
.av-chip--c { right: 6%; bottom: 20px; animation-delay: -3.5s; }
@keyframes av-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.av-proof {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  padding: 18px 24px; margin-top: 48px;
  border-top: 1px solid var(--av-line); border-bottom: 1px solid var(--av-line);
  font-size: 14px; font-weight: 600; color: var(--av-muted);
}
.av-proof span { display: inline-flex; align-items: center; gap: 8px; }
.av-proof svg { color: var(--av-app); }

/* ---------- ESCOLHA (qual é o seu caso) ---------- */
.av-choose { display: grid; gap: 14px; margin-top: 34px; }
@media (min-width: 720px) { .av-choose { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .av-choose { grid-template-columns: repeat(4, 1fr); } }
.av-choice {
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--av-card); border: 1.5px solid var(--av-line); border-radius: var(--av-radius);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.av-choice:hover { transform: translateY(-3px); }
.av-choice[aria-pressed="true"] { border-color: var(--av-c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--av-c) 18%, transparent); }
.av-choice strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.av-choice p { font-size: 14px; color: var(--av-muted); margin: 0; }
.av-choice .av-arrow { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--av-c); }
.av-answer {
  margin-top: 18px; padding: 18px 20px; border-radius: var(--av-radius);
  background: color-mix(in srgb, var(--av-c, var(--av-app)) 10%, var(--av-card));
  border: 1px solid color-mix(in srgb, var(--av-c, var(--av-app)) 35%, transparent);
  display: none; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.av-answer.is-on { display: flex; animation: av-in .35s ease; }
.av-answer p { margin: 0; max-width: 760px; }
@keyframes av-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- EXPLORADOR ---------- */
.av-explorer { display: grid; gap: 28px; margin-top: 34px; }
@media (min-width: 980px) { .av-explorer { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.av-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; }
.av-filter-label { font-size: 13px; color: var(--av-muted); margin-right: 4px; }
.av-seg {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; color: var(--text);
  background: transparent; border: 1.5px solid var(--av-line);
  transition: all .2s ease;
}
.av-seg:hover { border-color: color-mix(in srgb, var(--av-c, var(--av-app)) 60%, transparent); }
.av-seg[aria-pressed="true"] { background: var(--av-c, var(--av-app)); border-color: var(--av-c, var(--av-app)); color: #0A1424; }
.av-filter-count { font-size: 13px; color: var(--av-muted); margin-left: auto; }

.av-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.av-cat {
  flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; color: var(--av-muted);
  background: var(--av-card); border: 1px solid var(--av-line);
}
.av-cat[aria-selected="true"] { color: var(--text); border-color: var(--av-app); background: color-mix(in srgb, var(--av-app) 12%, var(--av-card)); }
.av-cat em { font-style: normal; font-size: 12px; opacity: .7; }

.av-tools { display: grid; gap: 10px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.av-tool {
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 14px 12px; border-radius: 14px;
  background: var(--av-card); border: 1.5px solid var(--av-line);
  transition: transform .18s ease, border-color .18s ease, opacity .25s ease, filter .25s ease;
}
.av-tool:hover { transform: translateY(-2px); }
.av-tool strong { font-size: 15px; font-weight: 650; line-height: 1.25; }
.av-tool span.av-tool-hint { font-size: 12.5px; color: var(--av-muted); line-height: 1.35; }
.av-tool .av-badge { align-self: flex-start; font-size: 10.5px; padding: 3px 8px; }
.av-tool[aria-current="true"] { border-color: var(--av-app); box-shadow: 0 0 0 3px color-mix(in srgb, var(--av-app) 20%, transparent); }
.av-tool.is-locked { opacity: .38; filter: grayscale(.6); }
.av-tool.is-locked strong::after { content: " 🔒"; font-size: 12px; }

.av-stage { position: sticky; top: 96px; display: grid; gap: 18px; justify-items: center; }
@media (min-width: 640px) and (max-width: 979px) { .av-stage { grid-template-columns: 240px 1fr; align-items: center; justify-items: start; position: static; } }
.av-stage .av-phone { width: min(290px, 74vw); }
.av-stage .av-phone-screen img { transition: opacity .35s ease, transform .5s ease; }
.av-stage .av-phone-screen img.is-out { opacity: 0; transform: scale(1.03); }
.av-stage-info { width: 100%; max-width: 420px; }
.av-stage-info h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.av-stage-info p { color: var(--av-muted); font-size: 15px; margin: 0 0 10px; }
.av-stage-info .av-where { font-size: 13px; color: var(--text); opacity: .85; }
.av-stage-nav { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.av-round {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
  background: var(--av-card); border: 1px solid var(--av-line);
}
.av-round:hover { border-color: var(--av-app); color: var(--av-app); }
.av-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--av-line); overflow: hidden; }
.av-progress i { display: block; height: 100%; width: 0; background: var(--av-app); }
.av-progress.is-run i { animation: av-progress var(--av-dur, 5s) linear forwards; }
@keyframes av-progress { to { width: 100%; } }

/* tela desenhada (quando não há print) */
.av-drawn { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22% 8% 8%; background: #0B0D11; color: #E8EDF5; font-size: 12px; }
.av-drawn h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; margin: 0 0 10px; color: #fff; }
.av-drawn .av-ecg { width: 100%; height: 34%; margin: 8px 0 14px; }
.av-drawn .av-ecg path { stroke: #4ADE80; stroke-width: 2; fill: none; stroke-dasharray: 900; stroke-dashoffset: 900; animation: av-ecg 2.6s linear infinite; }
@keyframes av-ecg { to { stroke-dashoffset: 0; } }
.av-drawn .av-q { padding: 9px 10px; border-radius: 10px; margin-bottom: 7px; background: #161A21; border: 1px solid #262C36; }
.av-drawn .av-q.is-ok { border-color: #4ADE80; color: #4ADE80; }

/* ---------- PLANOS ---------- */
.av-plans { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .av-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .av-plans { grid-template-columns: repeat(4, 1fr); } }
.av-plan {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 24px 20px 20px; border-radius: 22px;
  background: var(--av-card); border: 1.5px solid var(--av-line);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.av-plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 22px 22px 0 0; background: var(--av-c); }
.av-plan.is-hl { border-color: var(--av-c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--av-c) 18%, transparent); transform: translateY(-4px); }
.av-plan h3 { font-size: 1.45rem; margin: 0; }
.av-plan-for { font-size: 14px; color: var(--av-muted); margin: 0; }
.av-price { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.av-price small { font-family: var(--font-body); font-size: 14px; color: var(--av-muted); }
.av-included { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--av-full) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--av-full) 45%, transparent); }
.av-included b { font-size: 15px; }
.av-included .av-row { display: flex; gap: 6px; flex-wrap: wrap; }
.av-plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.av-plan li { display: flex; gap: 8px; align-items: flex-start; }
.av-plan li::before { content: "✓"; color: var(--av-c); font-weight: 800; }
.av-plan li.av-prev::before { content: "＋"; }
.av-plan li.av-prev { font-weight: 700; }
.av-plan .btn { margin-top: auto; justify-content: center; }
.av-plan .av-small-link { font-size: 13px; text-align: center; color: var(--av-muted); }
.av-plan .av-small-link a { color: var(--av-c); font-weight: 600; }
.av-plan-tag { position: absolute; top: -12px; right: 16px; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--av-c); color: #0A1424; }
.av-plans-note { margin-top: 18px; font-size: 14px; color: var(--av-muted); text-align: center; }

/* tabela comparativa */
.av-compare { margin-top: 26px; border-radius: 18px; border: 1px solid var(--av-line); background: var(--av-card); }
.av-compare summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.av-compare summary::-webkit-details-marker { display: none; }
.av-compare summary::after { content: "+"; font-size: 20px; color: var(--av-app); }
.av-compare[open] summary::after { content: "−"; }
.av-table-wrap { overflow-x: auto; padding: 0 12px 16px; }
.av-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.av-table th, .av-table td { padding: 10px 8px; border-bottom: 1px solid var(--av-line); text-align: center; }
.av-table th:first-child, .av-table td:first-child { text-align: left; }
.av-table thead th { position: sticky; top: 0; background: var(--av-card); font-size: 13px; }
.av-table .av-group td { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--av-app); text-align: left; padding-top: 18px; }
.av-yes { color: var(--av-free); font-weight: 800; }
.av-no { color: var(--av-muted); opacity: .5; }

/* ---------- DESTAQUES ---------- */
.av-spot { display: grid; gap: 34px; align-items: center; padding: 34px 0; }
@media (min-width: 900px) { .av-spot { grid-template-columns: 1fr 1fr; } .av-spot--rev .av-spot-media { order: 2; } }
.av-spot-media { display: flex; justify-content: center; gap: 18px; }
.av-spot-media img.av-mock { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.av-spot-media .av-phone { width: min(220px, 42vw); }
.av-spot-media .av-phone:nth-child(2) { margin-top: 48px; }
.av-spot h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 10px 0 12px; }
.av-spot p { color: var(--av-muted); }
.av-spot ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.av-spot li { display: flex; gap: 10px; }
.av-spot li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--av-c, var(--av-app)); }

/* ---------- GALERIA EM MOVIMENTO ---------- */
.av-marquee { overflow: hidden; margin-top: 30px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.av-marquee-track { display: flex; gap: 18px; width: max-content; animation: av-marquee 70s linear infinite; padding: 10px 0 24px; }
.av-marquee--rev .av-marquee-track { animation-direction: reverse; animation-duration: 80s; }
.av-marquee:hover .av-marquee-track { animation-play-state: paused; }
.av-marquee button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.av-marquee .av-phone { width: 170px; }
@keyframes av-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .av-marquee-track, .av-chip, .av-drawn .av-ecg path { animation: none; }
}

/* lightbox */
.av-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: rgba(5,10,20,.88); backdrop-filter: blur(6px); padding: 24px; }
.av-lightbox.is-on { display: grid; }
.av-lightbox .av-phone { width: min(360px, 80vw); }
.av-lightbox-close { position: absolute; top: 18px; right: 18px; }
.av-lightbox-cap { margin-top: 14px; text-align: center; font-weight: 700; }

/* ---------- barra fixa mobile ---------- */
.av-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--av-line);
  transform: translateY(110%); transition: transform .3s ease;
}
.av-sticky.is-on { transform: none; }
.av-sticky span { font-size: 13px; line-height: 1.25; }
.av-sticky b { display: block; font-size: 14.5px; }
@media (min-width: 900px) { .av-sticky { display: none; } }
@media (max-width: 899px) { .av-page .wa-float { bottom: 84px; } }

/* ---------- chips que surgem e somem (hero) ---------- */
.av-chips { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.av-chips .av-chip { animation: none; opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.3,1.3); }
.av-chips .av-chip.is-on { opacity: 1; transform: none; }
.av-chips .av-chip.is-off { opacity: 0; transform: translateY(-12px) scale(.96); transition-duration: .5s; }
.av-chips .av-chip small { display: block; font-weight: 500; font-size: 11.5px; color: var(--av-muted); margin-top: 1px; }
@media (max-width: 560px) { .av-chips .av-chip { font-size: 11.5px; padding: 7px 10px; } .av-chips .av-chip small { display: none; } }
@media (prefers-reduced-motion: reduce) { .av-chips .av-chip { transition: opacity .2s; } }

/* ---------- depoimentos: galeria de prints ---------- */
.av-prints { columns: 1; column-gap: 18px; margin-top: 34px; }
@media (min-width: 640px) { .av-prints { columns: 2; } }
@media (min-width: 1000px) { .av-prints { columns: 3; } }
.av-print { break-inside: avoid; margin: 0 0 18px; border-radius: 18px; overflow: hidden; background: var(--av-card); border: 1px solid var(--av-line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.av-print:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--av-c) 60%, transparent); box-shadow: 0 22px 44px -22px rgba(0,0,0,.6); }
.av-print button { display: block; width: 100%; padding: 0; border: 0; background: #EFE7DE; cursor: zoom-in; }
.av-print img { display: block; width: 100%; height: auto; }
.av-print figcaption { display: flex; gap: 8px; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--av-muted); border-top: 3px solid var(--av-c); }
.av-lightbox.is-print .av-phone { display: none; }
.av-lightbox-print { display: none; max-width: min(520px, 92vw); max-height: 82vh; border-radius: 18px; }
.av-lightbox.is-print .av-lightbox-print { display: block; }
