/*
 * AUVP Sempre
 *
 * Recriação da página https://www.auvp.com.br/auvp-sempre/ (WordPress).
 * Arquivo compartilhado entre index.html (versão A) e um eventual b.html
 * (versão B): mexer aqui muda as duas versões ao mesmo tempo.
 */

:root {
  --black: #000000;
  --ink: #2c2c2c;
  --text: #2f2f2f;
  --muted: #686868;
  --soft: #707070;
  --line: #d9d9d9;
  --paper: #ffffff;
  --mist: #f0f0f0;
  --graphite: #505050;
  --yellow: #e1bd58;
  --notice-text: #431515;
  --answer: #3b4d2a;
  --footer-text: #c4c4c4;
  --footer-link: #a2a2a2;

  --font: "Anek Latin", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-button: "Sora", "Segoe UI", system-ui, sans-serif;

  --container: 1140px;
  --radius: 16px;
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Sem palavra órfã (regra do repositório, ver CONTRIBUTING.md): título
   divide as linhas por igual e texto corrido não termina com uma palavra
   sozinha na última linha. O build falha se uma página ficar sem isto. */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li,
blockquote,
figcaption,
dd,
dt {
  text-wrap: pretty;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.text-yellow {
  color: var(--yellow);
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

/* -------------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 18px 35px;
  border: 1px solid currentColor;
  background: transparent;
  font-family: var(--font-button);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.btn--light {
  color: var(--paper);
}

.btn--light:hover {
  background: var(--paper);
  color: var(--black);
}

.btn--dark {
  color: var(--black);
}

.btn--dark:hover {
  background: var(--black);
  color: var(--paper);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ----------------------------------------------------------- cabeçalho */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding-block: 20px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img {
  width: 140px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 13px 20px;
  color: var(--paper);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--yellow);
}

.site-nav__mobile-only {
  display: none;
}

.menu-toggle {
  display: none;
  padding: 6px;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--black);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--black);
    border: 1px solid #262626;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 20px;
    font-size: 18px;
  }

  .site-nav__mobile-only {
    display: block;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: 140px 0 60px;
  background: var(--black) url("img/hero-desktop.webp") 100% 50% / cover
    no-repeat;
  color: var(--paper);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}

.hero__copy {
  max-width: 560px;
  margin-block: auto;
}

.hero__title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.hero__lead {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
}

.exclusive {
  padding: 28px 32px;
  border-radius: 10px;
  background: rgba(38, 38, 38, 0.82);
  backdrop-filter: blur(4px);
}

.exclusive__title {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 3.1px;
}

.exclusive__title strong {
  font-weight: 600;
}

.exclusive__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 48px;
  margin-top: 20px;
}

.exclusive__body p {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
    background-image: url("img/hero-mobile.webp");
    background-position: 50% 30%;
    text-align: center;
  }

  .hero__copy {
    margin-inline: auto;
  }

  .hero__title {
    font-size: 26px;
    line-height: 1.1;
  }

  .hero__lead {
    font-size: 17px;
  }

  .exclusive {
    padding: 24px 20px;
    text-align: left;
  }

  .exclusive__title {
    font-size: 16px;
    letter-spacing: 2.5px;
  }

  .exclusive__body {
    grid-template-columns: 1fr;
  }

  .exclusive__body p {
    text-align: center;
  }
}

/* --------------------------------------------------------- faixa aviso */

.notice {
  padding-block: 44px;
  background: var(--yellow);
  color: var(--notice-text);
}

.notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.notice__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--paper);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.notice p {
  font-size: 19px;
}

@media (max-width: 767px) {
  .notice__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ------------------------------------------------------- seções comuns */

.section {
  padding-block: 80px;
}

.section-head {
  max-width: 1140px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title {
  color: var(--ink);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .section {
    padding-block: 56px;
  }

  .section-title {
    font-size: 30px;
  }

  .section-lead {
    font-size: 17px;
  }
}

/* ------------------------------------------------------------- módulos */

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 15px 15px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--mist);
}

.module-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.module-card p {
  padding-inline: 15px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.module-card--bonus {
  border-color: var(--yellow);
}

.module-card .module-card__tag {
  color: #7a5c12;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- ferramentas */

.tools {
  padding-top: 0;
}

.tools__inner {
  display: grid;
  grid-template-columns: 234px 1fr;
  gap: 24px;
  align-items: start;
}

.tools__title {
  font-size: 40px;
  line-height: 1.2;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--mist);
  overflow: hidden;
}

.tool-card img {
  width: 100%;
  aspect-ratio: 1024 / 549;
  object-fit: cover;
}

.tool-card__body {
  padding: 22px 30px 28px;
}

.tool-card h3 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.tool-card p {
  margin-top: 14px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .tools__inner {
    grid-template-columns: 1fr;
  }

  .tools__title br {
    display: none;
  }
}

@media (max-width: 767px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tools__title {
    font-size: 30px;
    text-align: center;
  }
}

/* ------------------------------------------------------------- suporte */

.support {
  padding-block: 96px;
  background: var(--black) url("img/suporte-raul.webp") 100% 50% / cover
    no-repeat;
  color: var(--paper);
}

.support__copy {
  max-width: 643px;
}

.support__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
}

.support__list {
  display: grid;
  gap: 28px;
  margin-block: 36px 40px;
}

.support__list h3 {
  position: relative;
  padding-left: 20px;
  font-size: 20px;
  font-weight: 600;
}

.support__list h3::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.support__list p {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .support {
    position: relative;
    isolation: isolate;
    background-position: 75% 50%;
  }

  /* Overlay preto para manter a leitura sobre a foto em telas estreitas. */
  .support::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.72);
  }
}

@media (max-width: 767px) {
  .support {
    padding-block: 64px;
  }

  .support__title {
    font-size: 30px;
  }

  .support__list p {
    font-size: 17px;
  }
}

/* -------------------------------------------------------------- planos */

/*
 * Os dois cards lado a lado em duas linhas compartilhadas (subgrid): o topo
 * escuro tem a mesma altura nos dois, mesmo com o selo "Mais popular" só no
 * anual, e os cards terminam juntos, com o botão no pé. Sem isso o mensal
 * ficava mais baixo e mais curto que o anual.
 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: 32px;
  row-gap: 0;
}

.plan {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--mist);
  overflow: hidden;
}

.plan__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
  padding: 36px 24px 32px;
  background: var(--graphite);
  color: var(--paper);
  text-align: center;
}

.plan__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
}

.plan__price {
  margin-top: 8px;
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
}

.plan__period {
  font-size: 18px;
}

.plan__total {
  font-size: 15px;
  opacity: 0.8;
}

.plan__badge {
  margin-bottom: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--black);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 4px;
}

.plan--featured {
  border-color: var(--yellow);
}

.plan--featured .plan__top {
  background: var(--black);
}

.plan__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
}

.plan__list {
  display: grid;
  gap: 0;
}

.plan__list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  color: #444444;
  font-size: 16px;
}

.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--ink);
  font-weight: 600;
}

/* O botão e a nota descem para o pé do card: os botões dos dois planos
   ficam na mesma linha, mesmo com listas de tamanhos diferentes. */
.plan__body .btn {
  margin-top: auto;
}

.plan__note {
  color: #595959;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  /* Um embaixo do outro: cada card volta a ter a altura do próprio conteúdo. */
  .plan-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 32px;
  }

  .plan {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .plan__body {
    padding: 24px 20px;
  }

  .plan__price {
    font-size: 42px;
  }

  .btn--block {
    padding-inline: 16px;
  }
}

/* -------------------------------------------------------------- dúvidas */

.faq {
  padding-top: 0;
}

.faq__box {
  max-width: 1014px;
  margin-inline: auto;
  padding: 48px 56px 32px;
  border-radius: var(--radius);
  background: var(--mist);
}

.faq__box .section-title {
  margin-bottom: 24px;
  text-align: center;
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list summary {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  color: #595959;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__list details[open] summary {
  color: var(--ink);
}

.faq__list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq__answer {
  padding: 0 10px 28px;
  color: var(--answer);
  font-size: 18px;
  line-height: 1.5;
}

.faq__answer ul {
  margin-top: 8px;
  padding-left: 20px;
}

.faq__answer li + li {
  margin-top: 4px;
}

@media (max-width: 767px) {
  .faq__box {
    padding: 36px 20px 20px;
  }

  .faq__list summary {
    font-size: 17px;
  }

  .faq__answer {
    font-size: 16px;
  }
}

/* -------------------------------------------------------------- rodapé */

.site-footer {
  padding-block: 64px;
  background: var(--black);
  color: var(--footer-text);
  font-size: 15px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.site-footer__brand img {
  width: 180px;
  margin-bottom: 20px;
}

.site-footer__brand p + p {
  margin-top: 8px;
}

.site-footer__col h2 {
  margin-bottom: 18px;
  color: var(--paper);
  font-size: 20px;
  font-weight: 600;
}

.site-footer__col ul {
  display: grid;
  gap: 12px;
}

.site-footer__col--wide ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.site-footer__col a {
  color: var(--footer-link);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__col a:hover {
  color: var(--yellow);
}

@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ whatsapp */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

/* ------------------------------------------------------ movimento */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
