/* =====================================================================
   ui2 a-home: o que a home precisa alem do components.css.
   So tokens (cor, raio, sombra); nenhum hex novo.

   - diferenciais com ladrilho duotom colorido (mais cor sem trocar a paleta)
   - abas do catalogo com o ponto de cor por tipo
   - Auto Updater: a faixa das entregas por dia (barras com o numero real)
     sob as telas
   - planos: o seletor de prazo com quatro prazos (vira 2x2 no celular)
   - depoimentos: a nota "exemplo" alinhada ao conteudo, as fileiras de ponta
     a ponta
   - celular: o painel branco do "por que" e a colagem do hero
   ===================================================================== */

/* ------------------------------------------------------------- hero */
.ah-hero .art-card .flex { flex-wrap: nowrap; }
.ah-hero .art-card > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------- diferenciais: duotom */
.ah-feats .feat:nth-child(5n+1) .feat-ico { background: var(--green-soft); color: var(--green); }
.ah-feats .feat:nth-child(5n+2) .feat-ico { background: var(--accent-soft); color: var(--accent); }
.ah-feats .feat:nth-child(5n+3) .feat-ico { background: var(--amber-soft); color: var(--amber); }
.ah-feats .feat:nth-child(5n+4) .feat-ico { background: var(--surface-3); color: var(--brand-slate); }
.ah-feats .feat:nth-child(5n+5) .feat-ico { background: var(--danger-soft); color: var(--coral); }
.ah-feats .feat-ico { box-shadow: inset 0 0 0 1px var(--line-soft); }

/* ------------------------------------------------- Auto Updater */
/* entregas por dia: faixa larga sob as telas (titulo e total | barras | sites) */
.ah-tour-nav { min-width: 0; }
.ah-proof {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 250px); gap: 32px; align-items: center;
  margin-top: 30px; padding: 20px 28px;
}
.ah-proof-hd { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ah-proof-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-ctl); background: var(--green-soft); color: var(--green); }
.ah-proof-ico .i { width: 18px; height: 18px; }
.ah-proof-tit b { display: block; font: 700 .95rem/1.25 var(--font-display); color: var(--ink); }
.ah-proof-tit small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }
.ah-proof-tot { font: var(--h-w) 1.7rem/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.ah-proof-graf { min-width: 0; }
.ah-spark { display: flex; align-items: flex-end; gap: 5px; height: 58px; }
.ah-spark i { flex: 1; height: var(--h, 4%); min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--brand-wine), var(--brand-slate)); opacity: .5; transition: opacity .2s ease; }
.ah-spark i:hover { opacity: .85; }
.ah-spark i.is-on { background: var(--grad-warm); opacity: 1; }
.ah-spark-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.ah-proof-ft { display: flex; align-items: center; gap: 10px; padding-left: 26px; border-left: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--text); line-height: 1.4; }
.ah-proof-ft b { color: var(--ink); font-size: 1.05rem; }

/* ---------------------------------------------------- catalogo */
/* duas listas na mesma fileira: as abas (tablist) e os links das plataformas */
.ah-peek { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-peek .tabs > *::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ah-peek .tabs > [data-tab="plugins"]::before { background: var(--accent); }
.ah-peek .tabs > [data-tab="temas"]::before { background: var(--brand-slate); }
.ah-peek .tabs > [data-tab="kits"]::before { background: var(--amber); }
.ah-peek .tabs > .is-on::before { box-shadow: 0 0 0 2px var(--surface); }
.ah-pane .peek-foot .i { width: 15px; height: 15px; }

/* ------------------------------------------------------ planos */
.ah-seg > button { display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.ah-seg > button .pill { margin-left: 6px; }
.seg--cur > a { padding-inline: 12px; font-size: var(--fs-xs); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.ah-ctl .seg > a:hover, .ah-seg > button:hover { color: var(--ink); }
.plans .plan-quota .i { width: 12px; height: 12px; }

/* ------------------------------------------------- depoimentos */
.ah-rating > div { display: grid; gap: 4px; justify-items: start; }
/* o cartao do componente e um <figure>: sem isto a margem padrao do navegador
   (40 px de cada lado) abria buracos entre os cartoes da fileira */
.ah-rev-rows .review { margin: 0; }
.ah-rev-rows > .placeholder-note {
  display: flex; width: fit-content; max-width: calc(100% - 2 * var(--gutter));
  margin: 18px 0 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}

/* ----------------------------------------------------------- CTA */
.ah-fim { padding-top: 0; background: var(--surface-2); }
.ah-fim .cta-band { padding: 30px 36px; }
.ah-fim .cta-band h3 { font-size: 1.45rem; }

/* ---------------------------------------------------- responsivo */
/* entre 981 e 1100 os tres planos continuam lado a lado (o components.css
   passa .plans para duas colunas, e o terceiro cartao ficava sozinho embaixo) */
@media (min-width: 981px) and (max-width: 1100px) {
  .ui2-home .plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ui2-home .plans--3 .plan { padding: 24px 18px 20px; }
  .ui2-home .plans--3 .plan-price b { font-size: 2.2rem; }
  .ah-proof { grid-template-columns: minmax(0, 270px) minmax(0, 1fr) minmax(0, 210px); gap: 24px; }
}
@media (max-width: 980px) {
  .ah-hero .art-stack { width: 100%; max-width: 520px; margin-inline: auto; }
  .sec--rise .rise { padding: 34px 30px; }
  .ah-proof { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 20px; }
  .ah-proof-ft { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
  .sec--rise .rise { margin-top: -44px; padding: 26px 18px; border-radius: var(--r-card); }
  /* colagem do hero no celular: dois cartoes no alto, o terceiro centrado embaixo,
     com os nomes a vista; o selo de "hoje" ja esta no topo do hero e sai daqui */
  .ah-hero .art-stack { height: 360px; }
  .ah-hero .art-card { width: 47%; padding: 10px; }
  .ah-hero .art-card--1 { left: 0; top: 14px; }
  .ah-hero .art-card--2 { right: 0; left: auto; top: 0; }
  .ah-hero .art-card--3 { left: 50%; bottom: 0; width: 52%; transform: translateX(-50%) rotate(-1deg); }
  .ah-hero .art-card .flex { gap: 4px; margin-top: 6px; }
  .ah-hero .art-card .pill { font-size: 10.5px; padding: 2px 7px; }
  .ah-hero .art-card > b { font-size: var(--fs-xs); }
  .ah-hero .art-badge { display: none; }
  .ah-ctl { flex-direction: column; }
  .ah-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 360px; border-radius: var(--r-card); }
  .ah-seg > button { padding: 8px 8px; }
  .ah-seg > button .pill { font-size: 10px; padding: 2px 6px; margin-left: 5px; }
  .ah-fim .cta-band { padding: 24px 20px; }
  .ah-fim .cta-band .flex { width: 100%; }
  .ah-fim .cta-band .btn { flex: 1 1 100%; }
  .ah-peek, .ah-peek .tabs { gap: 6px; }
  .ah-peek .tabs > * { padding: 7px 12px; font-size: var(--fs-xs); }
  /* anual: rotulo e valor na mesma linha, a barra embaixo (o rotulo quebrava em 96 px) */
  .ui2-home .annual .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "b b"; gap: 4px 10px; }
  .ui2-home .annual .bar span { grid-area: l; }
  .ui2-home .annual .bar b { grid-area: v; }
  .ui2-home .annual .bar i { grid-area: b; }
  .ah-proof-tot { font-size: 1.45rem; }
}
