/* =====================================================================
   ABEPRO, associação e depoimentos — prefixo as-
   ---------------------------------------------------------------------
   Referência: a página de adesão do IEEE. O que ela faz bem e que se
   repete aqui: uma frase que vende a entrega (conteúdo → benefício
   concreto → convite), a divisão por perfil logo no topo, uma tabela que
   compara o que cada perfil recebe, e prova social antes do último CTA.
   ===================================================================== */

/* =====================================================================
   1. Hero da adesão
   ===================================================================== */
.as-hero { position: relative; overflow: hidden; background: linear-gradient(130deg, var(--brand-950) 0%, var(--brand-800) 50%, var(--brand-600) 100%); padding: var(--space-8) 0 var(--space-8); }
.as-hero__deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.as-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: var(--space-6); align-items: center; }
.as-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, var(--text-4xl)); line-height: 1.1; color: #fff; margin: 14px 0 0; }
.as-hero__lead { font-size: var(--text-md); line-height: 1.62; color: rgba(255,255,255,.84); margin-top: 18px; max-width: 600px; }
.as-hero__lead strong { color: #fff; font-weight: 600; }
.as-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }
.as-hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: var(--space-4); font-size: 13px; color: rgba(255,255,255,.72); }
.as-hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.as-hero__proof i { color: var(--accent-400); }

/* Seletor de perfil ao lado do hero: a primeira decisão em um só toque. */
.as-picker { background: var(--white); border-radius: var(--radius-2xl); padding: 22px; box-shadow: var(--shadow-lg); }
.as-picker__title { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-500); margin: 0 0 12px; }
.as-picker__list { display: flex; flex-direction: column; gap: 8px; }
.as-picker__item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--neutral-200); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: border-color var(--duration-base), background var(--duration-base), transform var(--duration-base) var(--ease-out); }
.as-picker__item:hover { border-color: var(--brand-400); background: var(--brand-50); transform: translateX(3px); }
.as-picker__ic { width: 42px; height: 42px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; background: var(--brand-600); }
.as-picker__item--discente .as-picker__ic { background: var(--deco-teal, var(--brand-500)); }
.as-picker__item--individual .as-picker__ic { background: var(--brand-700); }
.as-picker__item--especial .as-picker__ic { background: var(--neutral-600); }
.as-picker__item--institucional .as-picker__ic { background: var(--accent-600); }
.as-picker__n { display: block; font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; color: var(--neutral-900); line-height: 1.3; }
.as-picker__d { display: block; font-size: 12.5px; color: var(--neutral-500); margin-top: 2px; }
.as-picker__item i.fa-arrow-right { color: var(--brand-400); font-size: 13px; transition: transform var(--duration-base); }
.as-picker__item:hover i.fa-arrow-right { transform: translateX(3px); color: var(--brand-600); }

/* =====================================================================
   2. A frase: conteúdo → benefício → convite
   ===================================================================== */
.as-formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.as-formula__step { background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.as-formula__k { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-500); }
.as-formula__k i { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.as-formula__t { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--neutral-900); line-height: 1.4; }
.as-formula__d { font-size: 13.5px; line-height: 1.6; color: var(--neutral-600); }
.as-formula__arrow { display: flex; align-items: center; color: var(--brand-300); font-size: 18px; }

/* =====================================================================
   3. Cartões de perfil (hub)
   ===================================================================== */
.as-profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.as-profile { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-2xl); overflow: hidden; transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base), border-color var(--duration-base); }
.as-profile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.as-profile__top { padding: 24px 24px 20px; border-bottom: 1px solid var(--neutral-100); background: linear-gradient(180deg, var(--brand-50), var(--white)); }
.as-profile--discente .as-profile__top { background: linear-gradient(180deg, rgba(40,150,150,.10), var(--white)); }
.as-profile--especial .as-profile__top { background: linear-gradient(180deg, var(--neutral-100), var(--white)); }
.as-profile--especial { border-style: dashed; }
.as-profile--institucional .as-profile__top { background: linear-gradient(180deg, var(--accent-50), var(--white)); }
.as-profile__ic { width: 48px; height: 48px; border-radius: var(--radius-lg); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; color: #fff; background: var(--brand-700); margin-bottom: 14px; }
.as-profile--discente .as-profile__ic { background: var(--deco-teal, var(--brand-500)); }
.as-profile--especial .as-profile__ic { background: var(--neutral-600); }
.as-profile--institucional .as-profile__ic { background: var(--accent-600); }
.as-profile__name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.15; color: var(--brand-900); margin: 0; }
.as-profile__who { font-size: 13.5px; line-height: 1.55; color: var(--neutral-600); margin: 8px 0 0; }
.as-profile__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.as-profile__frase { font-size: 14.5px; line-height: 1.6; color: var(--neutral-800); margin: 0; }
.as-profile__frase strong { color: var(--brand-800); font-weight: 600; }
.as-profile__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.as-profile__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--neutral-700); }
.as-profile__list i { color: var(--success-500); font-size: 12px; margin-top: 4px; flex-shrink: 0; }
.as-profile__price { display: flex; align-items: baseline; gap: 6px; padding-top: 16px; border-top: 1px solid var(--neutral-100); }
.as-profile__price strong { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; color: var(--brand-900); }
.as-profile__price span { font-size: 13px; color: var(--neutral-500); }
.as-profile__actions { display: flex; flex-direction: column; gap: 8px; }
.as-profile__actions .btn { justify-content: center; }

/* =====================================================================
   4. Matriz de comparação
   ===================================================================== */
.as-matrix-wrap { overflow-x: auto; border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); background: var(--white); }
.as-matrix { width: 100%; border-collapse: collapse; min-width: 860px; }
.as-matrix th, .as-matrix td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--neutral-100); font-size: 14px; line-height: 1.5; vertical-align: middle; }
.as-matrix thead th { background: var(--neutral-50); font-family: var(--font-sans); font-weight: 600; color: var(--brand-800); font-size: 13.5px; }
.as-matrix thead th:not(:first-child) { text-align: center; width: 140px; }
.as-matrix tbody th { font-weight: 500; color: var(--neutral-800); }
.as-matrix tbody th small { display: block; font-size: 12px; color: var(--neutral-500); font-weight: 400; margin-top: 2px; }
.as-matrix td { text-align: center; }
.as-matrix tr:last-child th, .as-matrix tr:last-child td { border-bottom: 0; }
.as-matrix__group th { background: var(--brand-50); color: var(--brand-600); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 9px 18px; }
.as-yes { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--success-100); color: var(--success-700); font-size: 11px; }
.as-no { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--neutral-100); color: var(--neutral-400); font-size: 11px; }
.as-partial { font-size: 12.5px; color: var(--neutral-600); }
.as-matrix tfoot td, .as-matrix tfoot th { border-top: 2px solid var(--neutral-100); padding-top: 18px; }
.as-matrix tfoot .btn { width: 100%; justify-content: center; }
.as-profile__price--cell { flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; margin-bottom: 10px; text-align: center; }
.as-profile__price--cell span { font-size: 11.5px; line-height: 1.35; }

/* =====================================================================
   5. Página de um perfil
   ===================================================================== */
.as-phead { position: relative; overflow: hidden; padding: var(--space-8) 0 var(--space-6); background: linear-gradient(130deg, var(--brand-950), var(--brand-700)); }
.as-phead--discente { background: linear-gradient(130deg, var(--brand-950) 0%, #0f6b78 100%); }
.as-phead--especial { background: linear-gradient(130deg, var(--brand-950) 0%, var(--neutral-700) 100%); }
.as-phead--institucional { background: linear-gradient(130deg, var(--brand-950) 0%, var(--brand-700) 60%, #7a5514 130%); }
.as-phead__in { position: relative; z-index: 1; max-width: 800px; }
.as-phead__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-pill); padding: 6px 13px; }
.as-phead__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.2vw, var(--text-4xl)); line-height: 1.1; color: #fff; margin: 18px 0 0; }
/* A frase de venda em três partes, cada uma com a sua cor. */
.as-phead__frase { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; margin: 18px 0 0; color: rgba(255,255,255,.86); }
.as-phead__frase .c { color: #fff; }
.as-phead__frase .b { color: var(--accent-400); font-weight: 600; }
.as-phead__frase .v { display: block; margin-top: 8px; color: #fff; font-weight: 600; }
.as-phead__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }
.as-phead__nav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.as-phead__nav a { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.78); text-decoration: none; padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.22); transition: background var(--duration-fast), color var(--duration-fast); }
.as-phead__nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.as-phead__nav a.is-current { background: #fff; color: var(--brand-800); border-color: #fff; }

.as-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-6); align-items: start; }
.as-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--space-3); }

/* Cartão do plano */
.as-plan { background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-md); }
.as-plan__top { padding: 20px 22px; background: var(--brand-900); color: #fff; }
.as-plan__k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-400); }
.as-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.as-plan__price strong { font-family: var(--font-display); font-weight: 600; font-size: 38px; line-height: 1; }
.as-plan__price span { font-size: 13px; color: rgba(255,255,255,.72); }
.as-plan__obs { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 8px; line-height: 1.5; }
.as-plan__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.as-plan__body .btn { width: 100%; justify-content: center; }
.as-plan__inc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.as-plan__inc li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--neutral-700); }
.as-plan__inc i { color: var(--success-500); font-size: 12px; margin-top: 4px; }
.as-plan__foot { font-size: 12px; color: var(--neutral-500); line-height: 1.5; }
.as-plan__foot a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

/* Benefícios do perfil */
.as-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.as-benefit { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: 20px; }
.as-benefit__ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.as-benefit__t { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--neutral-900); line-height: 1.35; }
.as-benefit__d { font-size: 13.5px; line-height: 1.6; color: var(--neutral-600); margin-top: 5px; }

/* Passo a passo */
.as-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: passo; }
.as-step { position: relative; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: 22px 20px 20px; counter-increment: passo; }
.as-step::before { content: counter(passo, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--brand-400); }
.as-step__t { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--neutral-900); margin: 10px 0 6px; }
.as-step__d { font-size: 13.5px; line-height: 1.6; color: var(--neutral-600); }

/* FAQ */
.as-faq { display: flex; flex-direction: column; gap: 10px; }
.as-faq details { background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); overflow: hidden; }
.as-faq details[open] { border-color: var(--brand-200); }
.as-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; cursor: pointer; font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--neutral-900); list-style: none; }
.as-faq summary::-webkit-details-marker { display: none; }
.as-faq summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; color: var(--brand-500); transition: transform var(--duration-base); }
.as-faq details[open] summary::after { transform: rotate(180deg); }
.as-faq__a { padding: 0 20px 16px; font-size: 14px; line-height: 1.7; color: var(--neutral-600); }
.as-faq__a a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   6. Depoimentos (prova social)
   ===================================================================== */
.as-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.as-quote { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: 26px 24px 22px; transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base); }
.as-quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.as-quote.is-hidden { display: none; }
.as-quote__mark { position: absolute; top: 14px; right: 20px; font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--brand-100); pointer-events: none; }
.as-quote__tag { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-500); background: var(--brand-50); border-radius: var(--radius-pill); padding: 4px 10px; }
.as-quote__text { font-size: 15px; line-height: 1.68; color: var(--neutral-800); margin: 0; flex: 1; }
.as-quote__who { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--neutral-100); }
.as-quote__av { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 210) 55% 42%), hsl(var(--h, 210) 60% 58%)); overflow: hidden; }
.as-quote__av img { width: 100%; height: 100%; object-fit: cover; }
.as-quote__n { display: block; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--neutral-900); line-height: 1.3; }
.as-quote__r { display: block; font-size: 12.5px; color: var(--neutral-500); margin-top: 2px; line-height: 1.4; }

/* Depoimento em destaque, na página de depoimentos */
.as-featured { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; background: var(--brand-950); border-radius: var(--radius-2xl); overflow: hidden; color: #fff; }
.as-featured__media { position: relative; min-height: 320px; background: linear-gradient(135deg, var(--brand-800), var(--brand-500)); display: flex; align-items: center; justify-content: center; }
.as-featured__av { width: 120px; height: 120px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 40px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 3px solid rgba(255,255,255,.35); }
.as-featured__body { padding: var(--space-6); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.as-featured__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.4; color: #fff; margin: 0; }
.as-featured__n { font-size: 15px; font-weight: 600; color: #fff; }
.as-featured__r { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 3px; }

.as-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.as-filter { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-pill); padding: 8px 15px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--neutral-700); cursor: pointer; transition: background var(--duration-base), color var(--duration-base), border-color var(--duration-base); }
.as-filter i { font-size: 12px; color: var(--brand-400); }
.as-filter:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.as-filter.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.as-filter.is-active i { color: var(--accent-400); }
.as-filter__n { font-size: 10px; font-weight: 700; background: var(--neutral-100); color: var(--neutral-600); border-radius: var(--radius-pill); padding: 2px 7px; }
.as-filter.is-active .as-filter__n { background: rgba(255,255,255,.18); color: #fff; }
.as-count { font-size: 13px; color: var(--neutral-500); }
.as-empty { display: none; grid-column: 1 / -1; text-align: center; padding: var(--space-6); color: var(--neutral-500); }
.as-empty.is-visible { display: block; }

/* Convite para enviar depoimento */
.as-share { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: var(--space-4) var(--space-5); }
.as-share__t { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--brand-900); margin: 0; }
.as-share__d { font-size: 14px; color: var(--neutral-600); margin: 6px 0 0; line-height: 1.55; }

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 1023px) {
  .as-hero__grid { grid-template-columns: 1fr; }
  .as-formula { grid-template-columns: 1fr; }
  .as-formula__arrow { transform: rotate(90deg); justify-content: center; }
  .as-profiles { grid-template-columns: repeat(2, 1fr); }
  .as-page { grid-template-columns: 1fr; }
  .as-aside { position: static; }
  .as-benefits { grid-template-columns: 1fr; }
  .as-steps { grid-template-columns: repeat(2, 1fr); }
  .as-quotes { grid-template-columns: repeat(2, 1fr); }
  .as-featured { grid-template-columns: 1fr; }
  .as-featured__media { min-height: 200px; }
}
@media (max-width: 767px) {
  .as-hero { padding: var(--space-6) 0; }
  .as-hero__actions .btn, .as-phead__actions .btn { width: 100%; justify-content: center; }
  .as-steps { grid-template-columns: 1fr; }
  .as-profiles { grid-template-columns: 1fr; }
  .as-quotes { grid-template-columns: 1fr; }
  .as-share { grid-template-columns: 1fr; }
  .as-share .btn { width: 100%; justify-content: center; }
}
