/* =========================================================
   ALL GOOD — página do plugin
   Carregar DEPOIS de ../../assets/css/style.css
   ========================================================= */
@font-face {
  font-family: "Lilita";
  src: url("fonts/lilita.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

.page-allgood {
  --flame: #f6cc05;      /* amarelo do logo */
  --ember: #ff8a1f;      /* laranja do fogo */
  --cream: #f3e6bb;      /* creme da GUI */
  --inkline: #140e05;    /* contorno da arte */
  --toon: "Lilita", "Archivo", "Arial Black", sans-serif;
  --sc: #ff8a1f;
}
.page-allgood ::selection { background: var(--flame); color: var(--inkline); }
.page-allgood .nav__cta { color: var(--flame); }

/* ---------- HERO ---------- */
.ag-hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(300px, 1fr) 2.15fr; gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: 104px var(--pad) 72px;
  overflow: hidden;
}
.ag-hero__copy { position: relative; z-index: 2; display: grid; gap: 22px; align-content: center; }
.ag-label { color: var(--flame); }

.ag-logo { margin: 0; font-weight: 400; line-height: .9; }
.ag-logo__word { position: relative; display: block; font-family: var(--toon); font-size: clamp(64px, 8.6vw, 150px); letter-spacing: .005em; transform: rotate(-3deg); transform-origin: left bottom; }
.ag-logo__word b { display: block; font-weight: 400; white-space: nowrap; }
.ag-logo__word .main { position: relative; color: var(--flame); -webkit-text-stroke: .045em var(--inkline); paint-order: stroke fill; }
.ag-logo__word .e1, .ag-logo__word .e2 { position: absolute; inset: 0; -webkit-text-stroke: .045em var(--inkline); paint-order: stroke fill; }
.ag-logo__word .e1 { color: var(--ember); transform: translate(.045em, .05em); }
.ag-logo__word .e2 { color: #c2410c; transform: translate(.09em, .1em); }
.ag-logo__sub { display: inline-block; margin-top: .55em; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(13px, 1.15vw, 18px); letter-spacing: .18em; background: var(--cream); color: var(--inkline); padding: .35em .7em; transform: rotate(-3deg); transform-origin: left; }
.ag-lead { font-size: 15px; line-height: 1.6; max-width: 34ch; color: rgba(240, 246, 239, .82); font-family: var(--mono); }

.ag-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ag-cta--center { justify-content: center; }

/* botão de compra: "FREE*" gritando */
.ag-buy {
  position: relative; display: inline-flex; align-items: stretch;
  background: var(--flame); color: var(--inkline);
  border: 2px solid var(--inkline); box-shadow: 6px 6px 0 var(--rec);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ag-buy:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--rec); }
.ag-buy:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--rec); }
.ag-buy:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.ag-buy__price { font-family: var(--toon); font-size: 34px; line-height: 1; padding: 12px 16px 10px; border-right: 2px solid var(--inkline); display: flex; align-items: center; }
.ag-buy__price sup { font-size: .5em; margin-left: 2px; color: var(--rec); }
.ag-buy__label { display: flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.ag-buy--big .ag-buy__price { font-size: clamp(40px, 5vw, 72px); padding: 16px 26px 12px; }
.ag-buy--big .ag-buy__label { font-size: 15px; padding: 0 28px; }

.ag-ghost { border: 1px solid var(--line-strong); padding: 16px 18px; transition: border-color .3s, color .3s; }
.ag-ghost:hover { border-color: var(--flame); color: var(--flame); }
.ag-fine { font-size: 11px; color: var(--dim); text-transform: none; letter-spacing: 0; }

/* cena em camadas */
.ag-scene {
  position: relative; margin: 0; aspect-ratio: 1227 / 864; width: 100%;
  border: 2px solid var(--inkline); outline: 1px solid var(--line-strong); outline-offset: 10px;
  background: #3a1d0a; overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 120px -40px rgba(255, 120, 20, .45);
}
.ag-scene .L { position: absolute; display: block; will-change: translate; }
.ag-scene .L img { width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.ag-scene .f { transform-origin: 50% 100%; animation: ag-flick var(--d, 1.8s) ease-in-out infinite alternate; }
.ag-scene .f:nth-of-type(2n) { animation-direction: alternate-reverse; }
@keyframes ag-flick {
  0%   { transform: scale(1, 1) skewX(0deg); filter: brightness(1); }
  30%  { transform: scale(1.03, .95) skewX(-2deg); }
  55%  { transform: scale(.97, 1.07) skewX(1.5deg); filter: brightness(1.12); }
  100% { transform: scale(1.02, .98) skewX(-1deg); filter: brightness(.96); }
}
.ag-cloud { animation: ag-drift 14s ease-in-out infinite alternate; opacity: .95; }
@keyframes ag-drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
.ag-cat img { animation: ag-breathe 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes ag-breathe { 50% { transform: scale(1.006, 1.012); } }

.ag-pic, .ag-cup { background: none; border: 0; padding: 0; cursor: pointer; display: grid !important; }
.ag-pic img, .ag-cup img { grid-area: 1 / 1; opacity: 0; transition: opacity .2s; }
.ag-pic img.is-on, .ag-cup img.is-on { opacity: 1; }
.ag-pic:hover, .ag-cup:hover { filter: drop-shadow(0 0 10px rgba(246, 204, 5, .8)); }
.ag-pic:focus-visible, .ag-cup:focus-visible { outline: 2px dashed var(--flame); outline-offset: 4px; }
.is-glitch { animation: ag-glitch .26s steps(3) 1; }
@keyframes ag-glitch { 33% { transform: translate(3px, -2px) rotate(2deg); } 66% { transform: translate(-3px, 1px) rotate(-2deg); } }

.ag-bubble {
  position: absolute; left: 21%; top: 13%; z-index: 5; max-width: 34%;
  background: var(--cream); color: var(--inkline); border: 2px solid var(--inkline); border-radius: 18px;
  padding: .55em .9em; font-family: var(--toon); font-size: clamp(14px, 1.6vw, 26px); line-height: 1.1;
  box-shadow: 4px 4px 0 var(--inkline); transition: transform .18s var(--ease), opacity .18s;
}
.ag-bubble.is-swap { transform: scale(.9) rotate(-2deg); opacity: 0; }
.ag-bubble i { position: absolute; border: 2px solid var(--inkline); background: var(--cream); border-radius: 50%; }
.ag-bubble i:nth-of-type(1) { width: 14px; height: 14px; right: 18%; bottom: -20px; }
.ag-bubble i:nth-of-type(2) { width: 8px; height: 8px; right: 10%; bottom: -34px; }

.ag-stamp {
  position: absolute; right: 3%; top: 5%; z-index: 6; display: grid; place-items: center; text-align: center;
  width: clamp(80px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--rec); color: var(--paper); border: 2px solid var(--inkline);
  transform: rotate(12deg); box-shadow: 4px 4px 0 var(--inkline);
  animation: ag-stamp 6s var(--ease) infinite;
}
.ag-stamp b { font-family: var(--toon); font-weight: 400; font-size: clamp(22px, 3vw, 44px); line-height: .8; align-self: end; }
.ag-stamp small { font-family: var(--mono); font-size: clamp(8px, .7vw, 11px); letter-spacing: .08em; align-self: start; padding-top: 6px; }
@keyframes ag-stamp { 0%, 80%, 100% { transform: rotate(12deg) scale(1); } 85% { transform: rotate(4deg) scale(1.12); } 90% { transform: rotate(16deg) scale(.96); } }

.ag-scene__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px; background: rgba(12, 16, 12, .72); font-size: 10px; color: var(--sage);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ag-scene__cap span { color: var(--flame); }

/* intro */
.page-allgood .ag-hero__copy > *, .page-allgood .ag-scene { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.page-allgood.is-ready .ag-hero__copy > *, .page-allgood.is-ready .ag-scene { opacity: 1; transform: none; }
.page-allgood.is-ready .ag-hero__copy > :nth-child(2) { transition-delay: .08s; }
.page-allgood.is-ready .ag-hero__copy > :nth-child(3) { transition-delay: .16s; }
.page-allgood.is-ready .ag-hero__copy > :nth-child(4) { transition-delay: .24s; }
.page-allgood.is-ready .ag-hero__copy > :nth-child(5) { transition-delay: .32s; }
.page-allgood.is-ready .ag-scene { transition-delay: .2s; }

.ag-marquee .marquee__track b { font-size: .45em; color: inherit; }

/* ---------- cabeçalhos de seção ---------- */
.ag-grid-sec, .ag-details, .ag-faq { padding: 16vh var(--pad); border-top: 1px solid var(--line); }
.ag-head { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: end; margin-bottom: 8vh; }
.ag-head__title { font-size: clamp(44px, 7vw, 124px); grid-column: 2; }
.ag-head__note { color: var(--dim); text-transform: none; font-size: 13px; line-height: 1.6; letter-spacing: 0; }
.ag-head .section-label { align-self: start; }

/* ---------- CARDS DAS CENAS ---------- */
.ag-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.ag-cards li { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.ag-card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px;
  min-height: 320px; padding: 18px; overflow: hidden;
}
.ag-card::before { content: ""; position: absolute; inset: auto -20% -70% -20%; height: 80%; background: radial-gradient(closest-side, var(--sc), transparent); opacity: .14; pointer-events: none; }
.ag-card > * { position: relative; }
.ag-card__top { display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; }
.ag-card__top b { color: var(--sc); font-weight: 400; }
.ag-card__key { font-family: var(--toon); font-size: clamp(30px, 2.8vw, 46px); line-height: .95; color: var(--sc); -webkit-text-stroke: 1.5px var(--inkline); paint-order: stroke fill; align-self: end; word-break: break-word; }
.ag-card__id { color: var(--sage); font-size: 11px; }
.ag-card__list { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.ag-card__list > span { display: grid; grid-template-columns: 7px 1fr; column-gap: 8px; align-items: baseline; }
.ag-card__list > span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fc); grid-row: span 2; align-self: start; margin-top: 4px; }
.ag-card__list b { font-size: 10px; font-weight: 400; color: var(--paper); }
.ag-card__list em { font-style: normal; font-size: 12px; color: var(--dim); }

/* ---------- DETALHES ---------- */
.ag-details .section-label { margin-bottom: 6vh; }
.ag-details__grid { display: grid; grid-template-columns: 3fr 1fr; gap: clamp(24px, 4vw, 64px); }
.ag-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.ag-feats li { display: grid; gap: 10px; align-content: start; padding: 22px 22px 34px 0; border-bottom: 1px solid var(--line); }
.ag-feats li span { color: var(--rec); font-size: 11px; }
.ag-feats li b { font-family: var(--display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 18px; letter-spacing: -.01em; line-height: 1.05; }
.ag-feats li em { font-style: normal; color: rgba(240, 246, 239, .7); font-size: 13px; line-height: 1.6; }
.ag-specs { margin: 0; border: 1px solid var(--line-strong); align-self: start; }
.ag-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ag-specs div:last-child { border-bottom: 0; }
.ag-specs dt { color: var(--dim); }
.ag-specs dd { margin: 0; text-align: right; }
.ag-specs a:hover { color: var(--flame); }
.ag-specs__free { font-family: var(--toon); font-size: 20px; color: var(--flame); line-height: 1; }

/* ---------- FAQ ---------- */
.ag-faq { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
.ag-faq__list { border-top: 1px solid var(--line-strong); }
.ag-faq details { border-bottom: 1px solid var(--line-strong); }
.ag-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(18px, 2vw, 28px); letter-spacing: -.02em; transition: color .25s; }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--flame); transition: transform .3s var(--ease); }
.ag-faq details[open] summary::after { transform: rotate(45deg); }
.ag-faq summary:hover { color: var(--flame); }
.ag-faq details p { padding: 0 0 24px; max-width: 60ch; color: rgba(240, 246, 239, .75); font-size: 14px; line-height: 1.65; }

/* ---------- FECHAMENTO ---------- */
.ag-close {
  position: relative; overflow: hidden; text-align: center; display: grid; justify-items: center; gap: 28px;
  padding: 18vh var(--pad) 16vh; background: radial-gradient(90% 70% at 50% 110%, rgba(255, 110, 20, .55), transparent 70%), var(--moss-deep);
  border-top: 1px solid var(--line-strong);
}
.ag-close .section-label { color: rgba(255, 255, 255, .6); }
.ag-close__title { margin: 0; display: grid; font-family: var(--display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.04em; line-height: .86; font-size: clamp(48px, 10vw, 190px); position: relative; z-index: 1; }
.ag-close__title span:nth-child(2) { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.ag-close__title .y { font-family: var(--toon); font-weight: 400; letter-spacing: .01em; color: var(--flame); -webkit-text-stroke: .04em var(--inkline); paint-order: stroke fill; text-shadow: .05em .06em 0 #c2410c; transform: rotate(-3deg); }
.ag-close .ag-cta, .ag-close .ag-fine, .ag-back { position: relative; z-index: 1; }
.ag-close .ag-fine { color: rgba(255, 255, 255, .62); }
.ag-close__fire { position: absolute; bottom: -4%; left: -2%; width: clamp(180px, 26vw, 420px); transform-origin: 50% 100%; animation: ag-flick 2.6s ease-in-out infinite alternate; opacity: .9; pointer-events: none; }
.ag-close__fire--r { left: auto; right: -2%; width: clamp(180px, 28vw, 440px); animation-duration: 2.1s; animation-direction: alternate-reverse; }
.ag-back { margin-top: 2vh; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.ag-back:hover { color: var(--flame); border-color: var(--flame); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1200px) {
  .ag-cards { grid-template-columns: repeat(3, 1fr); }
  .ag-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ag-hero { grid-template-columns: 1fr; padding-top: 88px; gap: 36px; min-height: 0; }
  .ag-hero__copy { gap: 18px; }
  .ag-logo__word { font-size: clamp(58px, 17vw, 120px); }
  .ag-scene { outline-offset: 6px; }
  .ag-bubble { left: 6%; top: 8%; max-width: 46%; }
  .ag-scene__cap span { display: none; }

  .ag-grid-sec, .ag-details, .ag-faq { padding: 12vh var(--pad); }
  .ag-head { grid-template-columns: 1fr; gap: 3vh; margin-bottom: 5vh; }
  .ag-head__title { grid-column: 1; }

  .ag-cards { grid-template-columns: repeat(2, 1fr); }
  .ag-card { min-height: 240px; padding: 14px; }
  .ag-details__grid { grid-template-columns: 1fr; }
  .ag-feats { grid-template-columns: 1fr; }
  .ag-feats li { padding-right: 0; }
  .ag-faq { grid-template-columns: 1fr; }
  .ag-buy--big .ag-buy__label { padding: 0 16px; font-size: 13px; }
}
@media (max-width: 420px) {
  .ag-buy__price { font-size: 28px; padding: 10px 12px 8px; }
  .ag-buy__label { padding: 0 12px; font-size: 12px; }
  .ag-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-scene .f, .ag-cloud, .ag-cat img, .ag-stamp, .ag-close__fire { animation: none !important; }
  .page-allgood .ag-hero__copy > *, .page-allgood .ag-scene { transition: none; }
}
