
:root{--av-blue:#2f67f6;--av-cyan:#19cce8;--av-purple:#8a38f2}

/* Full mobile canvas, but compact vertical rhythm */
@media(max-width:782px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body .site,body .site-content,body .content-area,body main,body .entry-content,
  body .wp-site-blocks,body .wp-block-post-content,body .aivhq3,body .aivhq3-home,
  body .aivhq3-page,body .aivhq3-wrap,body .aivhq3-shell{
    width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important
  }
  body .aivhq3 section,body .aivhq3-section{
    max-width:none!important;padding:38px 18px!important
  }
  body .aivhq3-hero{padding-top:30px!important;padding-bottom:30px!important;min-height:0!important}
  body .aivhq3-section--dark,body .aivhq3-dark,body .aivhq3-toolkit,body .aivhq3-newsletter{border-radius:0!important}

  /* Tool cards: full width without tall/elongated feel */
  body .aivhq3-tool-card{
    width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;
    padding:15px 17px!important;border-radius:20px!important
  }
  body .aivhq3-tool-card h3{margin:9px 0 6px!important;line-height:1.12!important}
  body .aivhq3-tool-card p{margin:6px 0 8px!important;line-height:1.4!important}
  body .aivhq3-tool-card__meta,body .aivhq3-tool-card__footer{margin-top:8px!important;padding-top:8px!important}
  body .aivhq3-tools-grid,body .aivhq3-card-grid,body .aivhq3-featured-grid{gap:15px!important}

  /* Deals card / comparison cards */
  body .aivhq3-comparison-card{min-height:0!important;padding:18px!important}
  body .aivhq3-deals,body [class*="deal"]{min-height:0!important}
  body .aivhq3-deals h2,body [class*="deal"] h2{margin-bottom:10px!important}
  body .aivhq3-deals p,body [class*="deal"] p{margin:8px 0 14px!important;line-height:1.42!important}

  /* Newsletter: biggest remaining density target */
  body .aivhq3-newsletter,body .aivhq3-toolkit{min-height:0!important;padding-top:34px!important;padding-bottom:34px!important}
  body .aivhq3-newsletter h2,body .aivhq3-toolkit h2{margin:0 0 9px!important;line-height:1.04!important}
  body .aivhq3-newsletter p,body .aivhq3-toolkit p{margin:7px 0 11px!important;line-height:1.4!important}
  body .aivhq3-newsletter form,body .aivhq3-toolkit form{margin-top:12px!important}
  body .aivhq3-newsletter input,body .aivhq3-toolkit input{min-height:50px!important;padding-top:10px!important;padding-bottom:10px!important}
  body .aivhq3-newsletter button,body .aivhq3-toolkit button,
  body .aivhq3-newsletter input[type="submit"],body .aivhq3-toolkit input[type="submit"]{
    min-height:52px!important;padding-top:11px!important;padding-bottom:11px!important
  }
  body .aivhq3-newsletter [class*="resource"],body .aivhq3-toolkit [class*="resource"],
  body .aivhq3-newsletter [class*="form"],body .aivhq3-toolkit [class*="form"]{
    min-height:0!important;padding-top:20px!important;padding-bottom:20px!important
  }

  /* Categories: alignment only */
  .aivhq3-category-card{
    grid-template-columns:58px minmax(0,1fr) 24px!important;align-items:center!important;
    gap:13px!important;min-height:0!important;padding:13px 15px!important
  }
  .aivhq3-category-card__icon{width:54px!important;height:54px!important;min-width:54px!important;display:grid!important;place-items:center!important}
  .aivhq3-category-card__arrow,.aivhq3-category-card b{justify-self:end!important;align-self:center!important}
}

/* Consistent branded identity tiles */
.aivhq3-tool-card__initials,.aivhq3-card-initials,.aivhq3-initials,.aivhq3-logo-placeholder{
  background:linear-gradient(135deg,var(--av-cyan),var(--av-blue) 48%,var(--av-purple))!important;
  color:#fff!important;border:1px solid rgba(255,255,255,.25)!important;
  box-shadow:0 8px 20px rgba(61,76,220,.20)!important;text-shadow:0 1px 2px rgba(0,0,0,.18)!important
}

/* Vault Signal */
.aivhq-vault-signal{
  display:inline-flex!important;align-items:center!important;gap:6px!important;padding:7px 11px!important;
  border-radius:999px!important;font-size:.75rem!important;line-height:1!important;font-weight:900!important;
  white-space:nowrap!important;color:#fff!important;
  background:linear-gradient(135deg,#2e67f5,#7447ee 55%,#9336ef)!important;
  border:1px solid rgba(255,255,255,.34)!important;box-shadow:0 7px 16px rgba(61,74,210,.22)!important
}
.aivhq-vault-signal::before{content:"✦";color:#fff}
.aivhq-vault-signal[data-signal="top-rated"]::before{content:"★"}
.aivhq-vault-signal[data-signal="editor-pick"]::before{content:"◆"}
.aivhq-vault-signal[data-signal="new"]::before{content:"+"}
.aivhq-signal-replaced{display:none!important}

/* Comparison markers */
.aivhq3-comparison-card__vs,.aivhq3-vs{
  background:linear-gradient(135deg,var(--av-cyan),var(--av-blue) 50%,var(--av-purple))!important;
  color:#fff!important;border:1px solid rgba(255,255,255,.3)!important
}

/* Elements intentionally removed from conversion path */
.aivhq-hide-toolkit-label,.aivhq3-redundant-toolkit-link{display:none!important}

/* v1.0.3 exact hero ordering */
.aivhq-proof-below-logo{
  margin-top:16px!important;
  margin-bottom:0!important;
}
@media(max-width:782px){
  .aivhq-proof-below-logo{
    margin-top:14px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
}

/* v1.0.4 targeted OpusClip review recovery */


/* v1.0.8 — email capture spacing ONLY */
@media(max-width:782px){
  body .aivhq3-newsletter,
  body .aivhq3-toolkit{
    padding-top:24px!important;
    padding-bottom:24px!important;
  }
  body .aivhq3-newsletter form,
  body .aivhq3-toolkit form{
    margin-top:8px!important;
  }
  body .aivhq3-newsletter p,
  body .aivhq3-toolkit p{
    margin-top:5px!important;
    margin-bottom:9px!important;
  }
  body .aivhq3-newsletter [class*="resource"],
  body .aivhq3-toolkit [class*="resource"],
  body .aivhq3-newsletter [class*="form"],
  body .aivhq3-toolkit [class*="form"]{
    padding-top:16px!important;
    padding-bottom:16px!important;
  }
}


/* ==========================================================
   v1.0.11 — FINAL MOBILE CARD SIZE NORMALIZATION ONLY
   No color, typography, content, CTA, link, badge or ordering changes.
   ========================================================== */
@media (max-width:782px){

  /* Common box model: same usable width and natural height */
  body .aivhq3-tool-card,
  body .aivhq3-category-card,
  body .aivhq3-comparison-card,
  body .aivhq3-newsletter,
  body .aivhq3-toolkit,
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    align-self:stretch!important;
  }

  /* Normalize inner card spacing without shrinking the cards */
  body .aivhq3-tool-card{
    padding:20px!important;
  }

  body .aivhq3-category-card{
    padding:18px!important;
  }

  body .aivhq3-comparison-card{
    padding:20px!important;
  }

  /* Email capture: same visual width as surrounding mobile content,
     natural height, no oversized vertical capsule */
  body .aivhq3-newsletter,
  body .aivhq3-toolkit{
    width:100%!important;
    max-width:none!important;
    padding:26px 20px!important;
  }

  body .aivhq3-newsletter form,
  body .aivhq3-toolkit form{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }

  body .aivhq3-newsletter input,
  body .aivhq3-toolkit input,
  body .aivhq3-newsletter button,
  body .aivhq3-toolkit button,
  body .aivhq3-newsletter input[type="submit"],
  body .aivhq3-toolkit input[type="submit"]{
    box-sizing:border-box!important;
    max-width:100%!important;
  }

  /* Opus review: match the normal mobile card width instead of looking
     narrower or taller than the rest of Homepage 3 */
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    padding:24px 18px!important;
    margin-left:0!important;
    margin-right:0!important;
  }

    margin:0!important;
    padding:0!important;
  }

    padding:20px!important;
  }

  /* Prevent grid/flex parents from forcing unequal artificial heights */
  body .aivhq3-tool-grid,
  body .aivhq3-tool-grid--four,
  body .aivhq3-category-grid,
  body .aivhq3-comparison-grid{
    align-items:start!important;
  }

  body .aivhq3-tool-grid > *,
  body .aivhq3-tool-grid--four > *,
  body .aivhq3-category-grid > *,
  body .aivhq3-comparison-grid > *{
    height:auto!important;
    min-height:0!important;
  }
}

/* ==========================================================
   v1.0.14 — NATIVE HOMEPAGE REVIEWS STRUCTURE
   Rebuilt from the original production Reviews + Mobile Polish module.
   Scope: .aivhq-h3-reviews only.
   ========================================================== */
.aivhq-h3-reviews{
  max-width:1180px;
  margin:0 auto;
  padding:72px 28px;
  background:#f5f7ff;
  box-sizing:border-box;
}
.aivhq-h3-reviews__eyebrow{
  margin:0 0 16px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#2874e8;
}
.aivhq-h3-reviews h2{
  margin:0;
  color:#0b1530;
  font-size:clamp(38px,5vw,68px);
  line-height:.98;
  letter-spacing:-.04em;
}
.aivhq-h3-reviews__intro{
  margin:22px 0 34px;
  max-width:760px;
  color:#66728e;
  font-size:20px;
  line-height:1.55;
}
.aivhq-h3-reviews__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
.aivhq-h3-review{
  display:flex;
  flex-direction:column;
  width:100%;
  min-height:0;
  padding:30px;
  border:1px solid #dce4f5;
  border-radius:28px;
  background:#fff;
  box-shadow:0 16px 45px rgba(35,63,130,.08);
  box-sizing:border-box;
}
.aivhq-h3-review__badge{
  align-self:flex-start;
  padding:9px 14px;
  border-radius:999px;
  background:#f0eaff;
  color:#6c36db;
  font-size:13px;
  font-weight:900;
}
.aivhq-h3-review h3{
  margin:24px 0 14px;
  font-size:28px;
  line-height:1.12;
  letter-spacing:-.025em;
}
.aivhq-h3-review h3 a{
  color:#2370e7;
  text-decoration:underline;
  text-underline-offset:3px;
}
.aivhq-h3-review p{
  margin:0 0 24px;
  color:#65718a;
  font-size:16px;
  line-height:1.55;
}
.aivhq-h3-review__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:auto;
  min-height:58px;
  padding:0 22px;
  border-radius:18px;
  background:linear-gradient(110deg,#376cf1,#8137ed);
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900;
  font-size:17px;
}

@media(max-width:782px){
  .aivhq-h3-reviews{
    width:100%;
    max-width:none;
    margin:0;
    padding:42px 20px;
  }
  .aivhq-h3-reviews__eyebrow{
    margin-bottom:12px;
  }
  .aivhq-h3-reviews h2{
    font-size:38px;
    line-height:1.02;
    max-width:100%;
  }
  .aivhq-h3-reviews__intro{
    margin:16px 0 22px;
    font-size:17px;
    line-height:1.5;
  }
  .aivhq-h3-reviews__grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  .aivhq-h3-review{
    width:100%;
    padding:24px 22px;
    border-radius:24px;
  }
  .aivhq-h3-review h3{
    margin:20px 0 12px;
    font-size:27px;
    line-height:1.1;
  }
  .aivhq-h3-review p{
    margin-bottom:20px;
  }
  .aivhq-h3-review__cta{
    width:100%;
    box-sizing:border-box;
  }
}


/* v1.0.15 — EMAIL CAPTURE GAP FIX ONLY */
@media (max-width:782px){
  /* Close the excessive space between the email-capture intro copy
     and the first form field. No other section or styling is changed. */
  body .aivhq3-newsletter form,
  body .aivhq3-toolkit form{
    margin-top:-24px!important;
  }
}
