/* Rounds off the sharp corners in styles.css's base theme using the radius
   scale in design-tokens.css. Loaded last so it wins on equal specificity —
   deliberately additive, not a rewrite of the base stylesheet. */

.course-card,
.live-card,
.blog-card,
.why-card,
.checkout-course,
.integration-card,
.admin-panel,
.admin-stat {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.modal-card {
  border-radius: var(--radius-panel);
}

.enroll-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.enroll-ctas .btn {
  flex: 1 1 200px;
}
/* .btn.ghost is styled for dark backgrounds (white border/text); the course
   modal is white, so give the "human" CTA its own light-background variant. */
.enroll-ctas .btn.ghost {
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}
.enroll-ctas .btn.ghost:hover {
  background: var(--color-surface);
}

.btn,
input,
select,
textarea {
  border-radius: var(--radius-field);
}

/* Larger, higher-contrast field text — the site's core audience (women 35-55)
   reads small/light form text less comfortably than the rest of the UI. */
input,
select,
textarea {
  font-size: 16px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #6b7080;
  opacity: 1;
}
.finder-fields label span,
.catalog-filters label span,
.lead form label,
.checkout-form label,
.admin-form label,
.admin-login label {
  font-size: 14px;
}

.tag,
.status {
  border-radius: var(--radius-pill);
}

img.avatar {
  object-fit: cover;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--color-primary);
}
.icon-badge img {
  filter: brightness(0) invert(1);
  opacity: .92;
}
.trust-band .icon-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
}

/* Each field keeps its own rounded corners with a small gap between —
   simpler and safer than clipping the row with overflow:hidden, which cut
   off label text whenever a field's native rendered height differed by a
   couple of px (input vs select vs button all size slightly differently). */
.finder-fields {
  gap: 10px;
}

.whatsapp {
  border-radius: var(--radius-pill);
}

.blog-cover {
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.admin-toolbar input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-login input {
  border-radius: var(--radius-field);
}

.square-btn {
  border-radius: var(--radius-field);
}

/* Bug in styles.css: `.footer-top>div:last-child{display:none!important}` under
   900px hides the "Atendimento" column (phone/e-mail/admin link) on every phone
   and tablet visitor, on every page. Restore it — matches siblings' own display. */
.footer-top > div:last-child {
  display: flex !important;
}

/* --- Motion & elevation polish --- */
html {
  scroll-behavior: smooth;
}

.btn,
.square-btn,
.tag,
.course-card,
.blog-card,
.live-card,
.whatsapp {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover,
.square-btn:hover {
  transform: translateY(-2px);
}

.live-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

.value-grid article,
.integration-card {
  transition: box-shadow .2s ease, transform .2s ease;
}
.value-grid article:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px);
}

.team-grid img {
  transition: transform .2s ease;
}
.team-grid article:hover img {
  transform: scale(1.05);
}

.blog-card:hover .blog-cover {
  transform: scale(1.03);
}
.blog-cover {
  transition: transform .3s ease;
}

/* Menu Mobile Responsivo e Acessível */
@media(max-width: 900px) {
  .desktop-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px 30px;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 16px 35px rgba(7, 27, 45, 0.15);
    border-bottom: 2px solid var(--color-primary);
    z-index: 100;
  }
  .desktop-nav.is-open {
    display: flex !important;
    animation: menuSlideDown .25s ease-out;
  }
  .desktop-nav a {
    font-size: 15px;
    padding: 6px 0;
  }
  @keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Indicador visual de campo inválido */
input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: var(--color-highlight) !important;
  box-shadow: 0 0 0 1px var(--color-highlight);
}

/* Feedback visual de botão desabilitado em envio */
button:disabled, .btn:disabled, .square-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}


/* ---------------- Checkout (Pix / cartão via Asaas) ---------------- */
.cart { overflow-y: auto; }
.checkout-steps {
  display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px;
  font-size: 12px; font-weight: 700; color: var(--color-muted-foreground);
}
.checkout-steps li { flex: 1; padding-top: 8px; border-top: 3px solid var(--color-border); }
.checkout-steps li.done { border-color: var(--color-success); color: var(--color-success-dark); }
.checkout-steps li.current { border-color: var(--color-accent); color: var(--color-primary); }
.checkout-form label { display: grid; gap: 6px; font-weight: 600; color: var(--color-primary); }
.checkout-form label small { font-weight: 400; color: var(--color-muted-foreground); }
.checkout-form select { padding: 12px; border: 1px solid var(--line); width: 100%; background: #fff; }
.checkout-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-form a { text-decoration: underline; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; color: var(--color-primary); }
.checkout-total strong { font-size: 22px; }
.checkout-error {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-field);
  background: #fdecea; color: #8a1c12; font-size: 14px; line-height: 1.5;
}
.checkout-error:focus { outline: 2px solid #8a1c12; outline-offset: 2px; }
.pay-options { display: grid; gap: 12px; margin-top: 14px; }
.pay-option {
  display: grid; gap: 4px; text-align: left; cursor: pointer;
  padding: 18px 20px; background: #fff; color: var(--color-primary);
  border: 1px solid var(--color-border); border-radius: var(--radius-card);
  font: inherit; transition: border-color .2s, box-shadow .2s;
}
.pay-option strong { font-size: 17px; }
.pay-option span { font-size: 14px; color: var(--color-muted-foreground); }
.pay-option:hover, .pay-option:focus-visible { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(199,155,83,.25); }
.pay-option:disabled { opacity: .6; cursor: wait; }
.checkout-pix { display: grid; gap: 14px; justify-items: center; text-align: center; }
.checkout-pix .checkout-total { width: 100%; }
.pix-qr { width: 220px; height: 220px; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 8px; background: #fff; }
.pix-copy { display: grid; gap: 6px; width: 100%; text-align: left; font-weight: 600; color: var(--color-primary); }
.pix-copy span { display: flex; gap: 8px; }
.pix-copy input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); font-size: 13px; }
.pix-copy .btn { padding: 12px 16px; }
.pix-help { text-align: left; margin: 0; padding-left: 20px; color: var(--color-muted-foreground); font-size: 14px; line-height: 1.7; }
.pix-wait { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--color-primary); }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--color-border); border-top-color: var(--color-accent);
  animation: cesc-spin 0.9s linear infinite;
}
@keyframes cesc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.checkout-result { display: grid; gap: 14px; text-align: center; justify-items: center; padding: 10px 0; }
.checkout-result p { color: var(--color-muted-foreground); line-height: 1.7; margin: 0; }
.checkout-result .btn { width: 100%; }
.success-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-success); color: #fff; font-size: 32px; font-weight: 800;
}
.checkout-pay .text-link, .checkout-pix .text-link, .checkout-form .text-link { justify-self: center; }
/* Captcha do cartão: vazio na maioria dos casos; quando aparece, fica centralizado */
.card-captcha:empty { display: none; }
.card-captcha { display: flex; justify-content: center; }

/* Preço pela Tabela de Preços: à vista + parcelamento no cartão (legível para o público mais velho) */
.course-price strong + small { margin-top: 3px; font-size: 12px; color: #5f6a73; }
.modal-details strong + small { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.checkout-course p small { display: block; margin-top: 2px; font-size: 13px; color: #5f6a73; }
.checkout-fee { margin-top: 10px; font-size: 15px; line-height: 1.4; }
.checkout-fee s { color: #8a949c; margin-right: 4px; }
.checkout-fee strong { font-size: 18px; color: var(--navy); }
.checkout-plan small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: #5f6a73; }
.enroll-fee { margin: 0 0 12px; font-size: 14px; color: #44505a; }
.enroll-fee s { color: #8a949c; }
.enroll-fee b { color: var(--navy); font-size: 16px; }
.plan-options { display: grid; gap: 10px; margin-bottom: 16px; }
.plan-option { text-align: left; padding: 14px 16px; border: 2px solid #e3e6ea; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.plan-option strong { display: block; font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.plan-option span { display: block; font-size: 14px; line-height: 1.45; }
.plan-option span s { color: #8a949c; }
.plan-option small { display: block; margin-top: 4px; font-size: 13px; color: #5f6a73; }
.plan-option[aria-pressed="true"] { border-color: var(--gold, #f5c330); background: #fffaf0; box-shadow: 0 0 0 1px var(--gold, #f5c330); }
.plan-option:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* Texto só para leitores de tela */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
