/* AVAARO_CONSISTENCY_20261118
   One type scale, one button style, one icon system across the public site.
   Loaded last on every static page. Home rules are scoped with body[data-page="index"];
   :not(#_) only raises priority above the older per-section rules, it matches every element.
   Not touched: the phone-portrait hero headline (owner design of 16 Nov), colours, copy, layout order. */

/* ---------- 1. Header: same sizes on the homepage as on every other page ---------- */
@media (min-width: 992px) {
  html body[data-page="index"] #top:not(#_):not(#__) .ah-links a {
    font-size: 16px !important;
  }
  html body[data-page="index"] #top:not(#_):not(#__) .ah-actions > .ah-lang {
    display: inline-flex !important;
    font-size: 15px !important;
  }
  html body[data-page="index"] #top:not(#_):not(#__) .ah-actions > :is(.ah-login, .ah-signup) {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
}
html body[data-page="index"] #top:not(#_):not(#__) .ah-actions > .ah-signup {
  background: #c1ffb4 !important;
  border-color: #c1ffb4 !important;
  color: #000 !important;
}
html body[data-page="index"] #top:not(#_):not(#__) .ah-links a[aria-current] {
  color: #c1ffb4 !important;
}

/* Phones: every page gets the homepage header (Login + menu, same size). */
@media (max-width: 767px) {
  html body:not([data-page="index"]) .ah-header:not(#_):not(#__) .ah-actions {
    gap: 8px;
    margin-inline-start: auto;
  }
  html body:not([data-page="index"]) .ah-header:not(#_):not(#__) .ah-actions > .ah-signup {
    display: none !important;
  }
  html body:not([data-page="index"]) .ah-header:not(#_):not(#__) .ah-actions > :is(.ah-login, .ah-burger) {
    display: inline-flex !important;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 62px;
    height: 42px;
    min-height: 42px;
    padding: 0 !important;
    margin: 0;
    border: 1px solid #ffffff55 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }
  html body:not([data-page="index"]) .ah-header:not(#_):not(#__) .ah-burger svg {
    width: 22px;
    height: 22px;
  }
}

/* ---------- 2. One primary button: mint, black text, pill ---------- */
html body[data-page="index"] #hero_header:not(#_):not(#__) .ah-hero-cta .btn,
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-trial a {
  background: #c1ffb4 !important;
  border-color: #c1ffb4 !important;
  color: #000 !important;
  border-radius: 800px !important;
  font-family: PolySans, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
html body[data-page="index"] #hero_header:not(#_):not(#__) .ah-hero-cta .btn:hover,
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-trial a:hover {
  background: #d6ffcc !important;
}
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-trial a {
  min-height: 56px;
  padding: 0 28px !important;
  font-size: 18px !important;
}
@media (min-width: 576px) {
  html body[data-page="index"] #hero_header:not(#_):not(#__) .ah-hero-cta .btn {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 32px !important;
    font-size: 18px !important;
  }
}
@media (min-width: 1200px) {
  html body[data-page="index"] #hero_header:not(#_):not(#__) .ah-hero-cta .btn {
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 40px !important;
    font-size: 19px !important;
  }
}
@media (max-width: 575px) {
  html body[data-page="index"] #main_features:not(#_):not(#__) .avref-trial a {
    min-height: 48px;
    padding: 0 24px !important;
    font-size: 16px !important;
  }
}

/* ---------- 3. One typeface for running text (PolySans, as on every other page) ---------- */
html body[data-page="index"] #hero_header:not(#_):not(#__) :is(.ah-lead, .ah-lead span, .ah-hero-cta, .ah-hero-cta *),
html body[data-page="index"] #key_features:not(#_):not(#__) .av-why-copy {
  font-family: PolySans, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* ---------- 4. Type scale: h1 64 / h2 48 / h3 24·20 / text 20·18·16 (phones: 40 / 32 / 20·18 / 16) ---------- */
/* Hero headline: tablets and desktop only; the phone headline is left as designed. */
@media (min-width: 576px) {
  html body[data-page="index"] #hero_header.ah-v2:not(#_):not(#__):not(.ah-hero-small):not(.ah-hero-mid) .ah-h1 {
    font-size: clamp(40px, 4.45vw, 64px) !important;
    line-height: 1.08 !important;
  }
  html body[data-page="index"] #hero_header.ah-v2:not(#_):not(#__) .ah-lead {
    font-size: clamp(18px, 1.4vw, 20px) !important;
    line-height: 1.5 !important;
  }
}
html body[data-page="index"] #hero_header:not(#_):not(#__) .ah-hero-cta > p {
  font-size: 16px !important;
}

/* Section titles */
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-title,
html body[data-page="index"] #how_steps:not(#_):not(#__) .how-title,
html body[data-page="index"] #key_features:not(#_):not(#__) h2 {
  font-size: clamp(32px, 4vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -.02em !important;
}

/* Section intros */
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-intro,
html body[data-page="index"] #how_steps:not(#_):not(#__) .how-summary {
  font-size: clamp(16px, 1.5vw, 18px) !important;
  line-height: 1.5 !important;
}

/* Section badges */
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-badge,
html body[data-page="index"] #how_steps:not(#_):not(#__) .how-badge {
  font-size: 14px !important;
  font-weight: 600 !important;
}
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-badge {
  border-width: 1px !important;
}

/* Card titles */
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-link h3,
html body[data-page="index"] #how_steps:not(#_):not(#__) .ah-st h3 {
  font-size: clamp(20px, 1.9vw, 24px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
html body[data-page="index"] #key_features:not(#_):not(#__) .av-why .title {
  font-size: clamp(18px, 1.6vw, 20px) !important;
}
@media (max-width: 640px) {
  html body[data-page="index"] #main_features:not(#_):not(#__) .avref-link h3 {
    font-size: 18px !important;
  }
}

/* Card and note text */
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-link p,
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-trial p,
html body[data-page="index"] #how_steps:not(#_):not(#__) .ah-st p,
html body[data-page="index"] #key_features:not(#_):not(#__) .av-why-copy {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
@media (max-width: 640px) {
  html body[data-page="index"] #main_features:not(#_):not(#__) .avref-link p {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  html body[data-page="index"] #main_features:not(#_):not(#__) .avref-trial p {
    font-size: 14px !important;
  }
}

/* ---------- 5. Icons: square tiles, two sizes (56 large cards, 48 small cards; 40 on phones) ---------- */
html body[data-page="index"] #how_it_works:not(#_):not(#__) .ah-c5 .ah-iconbox {
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
}
html body[data-page="index"] #how_it_works:not(#_):not(#__) .ah-c5 .ah-iconbox img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
}
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-symbol {
  width: 56px !important;
  height: 56px !important;
  border-width: 1px !important;
  border-radius: 14px !important;
}
html body[data-page="index"] #main_features:not(#_):not(#__) .avref-symbol svg {
  width: 30px !important;
  height: 30px !important;
}
html body[data-page="index"] #how_steps:not(#_):not(#__) :is(.ah-st-n, .ah-st-ic) {
  width: 56px !important;
  height: 56px !important;
}
html body[data-page="index"] #how_steps:not(#_):not(#__) .ah-st-ic {
  border-radius: 14px !important;
}
html body[data-page="index"] #key_features:not(#_):not(#__) .av-why .icon-box {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
}
html body[data-page="index"] #key_features:not(#_):not(#__) .av-why .icon-box svg {
  width: 26px !important;
  height: 26px !important;
}
@media (max-width: 640px) {
  html body[data-page="index"] #how_it_works:not(#_):not(#__) .ah-c5 .ah-iconbox,
  html body[data-page="index"] #main_features:not(#_):not(#__) .avref-symbol {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
  }
  html body[data-page="index"] #how_it_works:not(#_):not(#__) .ah-c5 .ah-iconbox img,
  html body[data-page="index"] #main_features:not(#_):not(#__) .avref-symbol svg {
    width: 24px !important;
    height: 24px !important;
  }
  html body[data-page="index"] #how_steps:not(#_):not(#__) :is(.ah-st-n, .ah-st-ic) {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ---------- 6. Homepage rhythm: even space between sections ---------- */
html body[data-page="index"] .companies-sponsores:not(#_):not(#__) > .section-outer {
  padding-block: clamp(40px, 5vw, 72px) clamp(44px, 5.5vw, 80px) !important;
}
html body[data-page="index"] #main_features:not(#_):not(#__) {
  padding-block: clamp(40px, 5vw, 72px) clamp(48px, 5.5vw, 88px) !important;
}
html body[data-page="index"] #how_steps:not(#_):not(#__) .how-shell {
  padding-block: clamp(48px, 5.5vw, 80px) clamp(48px, 5.5vw, 80px) !important;
}
html body[data-page="index"] #key_features:not(#_):not(#__) > .section-outer {
  padding-block: clamp(48px, 5.5vw, 80px) clamp(48px, 5.5vw, 80px) !important;
}

/* ---------- 7. Touch targets: footer and contact links at least 44px high on phones ---------- */
@media (max-width: 767px) {
  html body .ah-footer:not(#_) .ah-fcol a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }
  html body .ah-footer:not(#_) .ah-flegal {
    gap: 0 18px;
  }
  html body .ah-footer:not(#_) :is(.ah-flegal a, .ah-top, .ah-fbottom a) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  html body[data-page="contact"] main a[href^="mailto:"],
  html body[data-page="contact"] main a[href^="tel:"],
  html body[data-page="contact"] main a[href^="https://wa.me"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---------- 8. One content width on desktop (1320px, as on the other pages) ---------- */
@media (min-width: 1200px) {
  html body[data-page="index"] #main_features:not(#_):not(#__) .avref-inner,
  html body[data-page="index"] #how_steps:not(#_):not(#__) .how-shell,
  html body[data-page="index"] #key_features:not(#_):not(#__) > .section-outer > .container {
    box-sizing: border-box;
    width: min(100% - 96px, 1320px) !important;
    max-width: 1320px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }
}

/* Language switch in the homepage header: same compact size as on the other pages. */
@media (min-width: 992px) {
  html body[data-page="index"] #top:not(#_):not(#__) .ah-actions > .ah-lang {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    flex: 0 0 auto !important;
  }
  html body[data-page="index"] #top:not(#_):not(#__) .ah-actions {
    gap: 12px !important;
  }
}
