/* ============================================================
   Promoção "Matrícula por R$ 1,70" — pop-up, contador e selos.
   Usa tokens.css. Some sozinho quando a promoção acaba (.promo-over).
   ============================================================ */
.promo-over [data-promo-only] { display: none !important; }
html:not(.promo-over) [data-promo-ended] { display: none !important; }

/* Contador */
.cd { display: flex; gap: 8px; }
.cd > div { min-width: 62px; padding: 10px 6px 8px; border-radius: 12px; background: var(--ink); color: #fff; text-align: center; }
.cd b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: rgba(255,255,255,.75); }
.cd.light > div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }

/* Preço */
.pr-old { font-family: var(--font-cond); font-weight: 700; font-size: 18px; color: var(--fg-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.pr-new { font-family: var(--font-head); font-weight: 900; font-size: clamp(54px, 9vw, 84px); line-height: .9; color: var(--green-700); letter-spacing: -.02em; }
.pr-off { display: inline-block; font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 15px; background: var(--gold-500); color: var(--ink); padding: 6px 12px; border-radius: 8px; transform: rotate(-3deg); }

/* Pop-up */
.pm { position: fixed; inset: 0; z-index: 150; background: rgba(10,25,15,.72); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .25s var(--ease-out); }
.pm.open { opacity: 1; }
/* Fechado = fora da página: sem isso a camada invisível cobria o site e roubava os toques */
.pm[hidden] { display: none; }
.pm:not(.open) { pointer-events: none; }
.pm-box { position: relative; width: 100%; max-width: 820px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); display: grid; grid-template-columns: .9fr 1.1fr; transform: translateY(16px) scale(.98); transition: transform .3s var(--ease-out); }
.pm.open .pm-box { transform: none; }
.pm-media { position: relative; min-height: 100%; background: var(--green-700); }
.pm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,61,34,.85), rgba(15,61,34,.1) 60%); }
.pm-media .pm-stamp { position: absolute; left: 18px; bottom: 18px; z-index: 1; color: #fff; font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; }
.pm-media .pm-stamp small { display: block; font-family: var(--font-cond); font-weight: 700; letter-spacing: .1em; font-size: 13px; color: var(--gold-500); margin-bottom: 4px; }
.pm-body { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.pm-kick { align-self: flex-start; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: #fff; background: var(--orange-600); padding: 6px 12px; border-radius: 999px; }
.pm-body h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 34px); line-height: .98; margin: 0; color: var(--ink); }
.pm-price { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pm-body p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.pm-cd-label { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--ink); margin-bottom: -6px; }
.pm-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 999px; background: var(--orange-500); color: var(--ink); font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 17px; letter-spacing: .02em; box-shadow: var(--shadow-accent); text-decoration: none; transition: background var(--dur), transform var(--dur); }
.pm-cta:hover { background: var(--orange-400); transform: translateY(-2px); }
.pm-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-links a, .pm-links button { font-family: var(--font-cond); font-weight: 700; font-size: 15px; color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; background: none; border: none; cursor: pointer; padding: 0; min-height: 44px; display: inline-flex; align-items: center; }
.pm-links button { color: var(--fg-2); }
.pm-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pm-x:hover { background: rgba(0,0,0,.75); }
.pm a:focus-visible, .pm button:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; }
.pm-fine { font-size: 12.5px !important; color: var(--fg-3) !important; }

@media (max-width: 700px) {
  .pm { align-items: flex-end; padding: 0; }
  .pm-box { grid-template-columns: 1fr; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .pm-media { min-height: 150px; }
  .pm-body { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); gap: 12px; }
  .cd > div { min-width: 0; flex: 1; }
  .cd b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm, .pm-box, .pm-cta { transition: none; }
  .pm-box { transform: none; }
}
