/*
  AvLu™ template-aligned homepage v1.3.0-rc.3
  Layout source: AvLu Website Layout Redesign Board v1.2.2 and GitHub Issue #51.
  Template review requires AVLU owner approval before merge.
  Created and owned by AVLU.
  © 2026 AVLU. All rights reserved.
*/

/* Homepage hero proof links and principles, revision rc.6. */
.ref-page-hero .ref-hero-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ref-line);
}

.ref-page-hero .ref-hero-resources > span {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: var(--ref-muted);
}

.avlu-v13 .ref-page-hero .ref-hero-resources a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid #c9d8ee;
  border-radius: 9px;
  color: var(--ref-blue);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 4px 12px rgba(11, 30, 67, .045);
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.avlu-v13 .ref-page-hero .ref-hero-resources a:hover,
.avlu-v13 .ref-page-hero .ref-hero-resources a:focus-visible {
  border-color: var(--ref-blue);
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 103, 247, .12);
  text-decoration: none;
  transform: translateY(-1px);
}

.ref-page-hero .ref-benefits {
  gap: 11px;
  margin-top: 20px;
}

.ref-page-hero .ref-benefit {
  min-height: 82px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--ref-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .64);
}

.ref-page-hero .ref-benefit .ref-icon {
  float: none;
  margin: 0;
}

.ref-page-hero .ref-benefit__copy {
  min-width: 0;
  display: contents;
  color: var(--ref-copy);
  font-size: .75rem;
  line-height: 1.35;
}

.ref-page-hero .ref-benefit__copy strong {
  align-self: center;
  min-width: 0;
  margin: 0;
  color: var(--ref-ink);
  font-size: .75rem;
  line-height: 1.25;
  white-space: normal;
}

.ref-page-hero .ref-benefit__copy > span {
  grid-column: 1 / -1;
  color: var(--ref-copy);
  font-size: .75rem;
  line-height: 1.35;
}

html[data-theme="dark"] .avlu-v13 .ref-page-hero .ref-hero-resources a,
html[data-theme="dark"] .ref-page-hero .ref-benefit {
  border-color: #2d4262;
  background: rgba(16, 31, 52, .82);
  box-shadow: none;
}

html[data-theme="dark"] .avlu-v13 .ref-page-hero .ref-hero-resources a {
  color: #dce9ff;
}

html[data-theme="dark"] .avlu-v13 .ref-page-hero .ref-hero-resources a:hover,
html[data-theme="dark"] .avlu-v13 .ref-page-hero .ref-hero-resources a:focus-visible {
  border-color: #4f8cff;
  color: #fff;
  background: #142844;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
}

@media (max-width: 520px) {
  .ref-page-hero .ref-hero-resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ref-page-hero .ref-hero-resources a:last-child {
    grid-column: 1 / -1;
  }
}

.client-home .v13-hero {
  padding: 68px 0 74px;
}

.client-home .v13-hero__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: 52px;
}

.client-home .v13-hero h1 {
  max-width: 650px;
  font-size: clamp(3rem, 5vw, 4.7rem);
}

.client-home .v13-lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.client-home .v13-actions {
  margin-top: 26px;
}

.client-home .v13-hero__checks {
  gap: 10px 20px;
  margin-top: 24px;
}

.client-home .v13-product {
  min-width: 0;
}

.client-home .v13-product__layout {
  grid-template-columns: 126px 1fr;
  min-height: 430px;
}

.client-home .v13-product__rail {
  padding: 18px 10px;
}

.client-home .v13-product__rail span {
  padding: 8px 9px;
}

.client-home .v13-product__main {
  gap: 12px;
  padding: 16px;
}

.client-home .v13-product__heading h2 {
  font-size: 1.12rem;
}

.client-home .v13-kpi {
  min-height: 78px;
  padding: 10px;
}

.client-home .v13-proof-card {
  padding: 13px;
}

.client-home .v13-section {
  padding: 76px 0;
}

.client-home .v13-section-head {
  margin-bottom: 34px;
}

.client-home .v13-section-head h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
}

.client-home .v13-section-head p:last-child {
  margin-top: 15px;
  font-size: 1.02rem;
}

.client-home .v13-home-workflow {
  background: #fff;
}

.client-home .v13-template-workflow-grid {
  gap: 18px;
}

.client-home .v13-template-workflow-grid .v13-process-card {
  min-height: 245px;
  gap: 12px;
  padding: 24px 21px;
}

.client-home .v13-template-workflow-grid .v13-process-card:not(:last-child)::after {
  right: -15px;
  color: #9aa7b7;
  font-size: 1.35rem;
}

.client-home .v13-process-card__output {
  align-self: end;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--v13-line);
  color: var(--v13-blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.client-home .v13-template-features {
  background:
    radial-gradient(circle at 18% 14%, rgba(10, 99, 255, 0.055), transparent 24%),
    var(--v13-surface-alt);
}

.client-home .v13-feature-grid {
  gap: 15px;
}

.client-home .v13-feature-card {
  min-height: 250px;
  gap: 13px;
  padding: 22px 20px;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.client-home .v13-feature-card:hover {
  transform: translateY(-2px);
  border-color: #c8d9f2;
  box-shadow: var(--v13-shadow-md);
}

.client-home .v13-feature-icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--v13-blue);
  background: var(--v13-blue-soft);
}

.client-home .v13-feature-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-home .v13-review-section .v13-section-head {
  max-width: 720px;
}

.client-home .v13-demo-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(330px, 0.68fr);
  gap: 24px;
}

.client-home .v13-table th,
.client-home .v13-table td {
  padding: 14px 16px;
}

.client-home .v13-selected-review {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 23px;
  border: 1px solid var(--v13-line);
  border-radius: var(--v13-radius-lg);
  background: #fff;
  box-shadow: var(--v13-shadow-md);
}

.client-home .v13-selected-review__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.client-home .v13-selected-review__head .v13-eyebrow {
  margin-bottom: 6px;
}

.client-home .v13-selected-review__head h3 {
  margin: 0;
  color: var(--v13-navy);
  font-size: 1.22rem;
  line-height: 1.25;
}

.client-home .v13-selected-review__head > span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--v13-red);
  background: var(--v13-red-soft);
  font-size: 0.75rem;
  font-weight: 850;
  white-space: nowrap;
}

.client-home .v13-selected-review__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.client-home .v13-selected-review__metrics > div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid #bfd6ff;
  border-radius: var(--v13-radius);
  background: var(--v13-blue-soft);
}

.client-home .v13-selected-review__metrics .is-stop {
  border-color: #efc7cc;
  background: var(--v13-red-soft);
}

.client-home .v13-selected-review__metrics span,
.client-home .v13-selected-review__metrics strong {
  display: block;
}

.client-home .v13-selected-review__metrics span {
  color: var(--v13-muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.client-home .v13-selected-review__metrics strong {
  color: var(--v13-blue);
  font-size: 1.55rem;
  line-height: 1;
}

.client-home .v13-selected-review__metrics .is-stop strong {
  color: var(--v13-red);
}

.client-home .v13-selected-review__proof {
  display: grid;
  border: 1px solid var(--v13-line);
  border-radius: var(--v13-radius);
  background: var(--v13-surface-alt);
  overflow: hidden;
}

.client-home .v13-selected-review__proof > div {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--v13-line);
}

.client-home .v13-selected-review__proof > div:last-child {
  border-bottom: 0;
}

.client-home .v13-selected-review__proof span {
  color: var(--v13-muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.client-home .v13-selected-review__proof strong {
  color: var(--v13-navy);
  font-size: 0.76rem;
  text-align: right;
}

.client-home .v13-selected-review__proof .is-missing {
  color: var(--v13-red);
}

.client-home .v13-text-link {
  width: fit-content;
  color: var(--v13-blue) !important;
  font-weight: 850;
  text-underline-offset: 3px;
}

.client-home .v13-template-why {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(245, 247, 250, 0.85)),
    var(--v13-surface-alt);
}

.client-home .v13-reason-grid {
  gap: 16px;
}

.client-home .v13-reason {
  min-height: 230px;
  gap: 12px;
  padding: 22px;
}

.client-home .v13-reason .v13-feature-icon {
  width: 48px;
  height: 48px;
}

.client-home .v13-template-evidence {
  padding: 42px 0 34px;
  border-block: 1px solid #d7e4f6;
  background: linear-gradient(90deg, #f7faff, #eef5ff, #f7faff);
}

.client-home .v13-template-evidence .v13-section-head {
  margin-bottom: 22px;
}

.client-home .v13-template-evidence .v13-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.client-home .v13-template-evidence .v13-evidence__item {
  min-height: 112px;
}

.client-home .v13-template-evidence .v13-evidence__note {
  max-width: 980px;
  margin: 18px auto 0;
  line-height: 1.6;
}

.client-home .v13-home-faq .v13-section-head {
  max-width: 650px;
}

.client-home .v13-cta-wrap {
  padding: 0 0 70px;
}

.client-home .v13-cta {
  padding: 34px 40px;
}

.client-home .v13-btn--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.68);
  background: transparent;
}

.client-home .v13-btn--on-dark:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.client-home .v13-footer__grid {
  grid-template-columns: 1.35fr repeat(3, minmax(0, 0.75fr));
  gap: 42px;
  padding: 58px 0 42px;
}

@media (max-width: 1040px) {
  .client-home .v13-hero__grid,
  .client-home .v13-demo-grid {
    grid-template-columns: 1fr;
  }

  .client-home .v13-hero__copy {
    max-width: 760px;
  }

  .client-home .v13-product {
    max-width: 830px;
  }

  .client-home .v13-template-workflow-grid,
  .client-home .v13-feature-grid,
  .client-home .v13-reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-home .v13-template-workflow-grid .v13-process-card:not(:last-child)::after {
    display: none;
  }

  .client-home .v13-feature-card,
  .client-home .v13-reason {
    min-height: 0;
  }

  .client-home .v13-footer__grid {
    grid-template-columns: 1.2fr repeat(2, minmax(0, 0.8fr));
  }

  .client-home .v13-footer__grid > div:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 720px) {
  .client-home .v13-hero {
    padding: 42px 0 48px;
  }

  .client-home .v13-hero__grid {
    gap: 30px;
  }

  .client-home .v13-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: 1.02;
  }

  .client-home .v13-lead {
    margin-top: 16px;
    font-size: 0.99rem;
  }

  .client-home .v13-actions {
    margin-top: 20px;
  }

  .client-home .v13-hero__checks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 18px;
  }

  .client-home .v13-product::after {
    right: 10px;
    bottom: 9px;
  }

  .client-home .v13-product__bar {
    min-height: 42px;
    padding: 8px 11px;
    font-size: 0.75rem;
  }

  .client-home .v13-product__bar > span:last-child {
    display: none;
  }

  .client-home .v13-product__layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .client-home .v13-product__rail {
    display: none;
  }

  .client-home .v13-product__main {
    padding: 12px;
  }

  .client-home .v13-product__heading {
    display: grid;
  }

  .client-home .v13-status {
    width: fit-content;
  }

  .client-home .v13-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-home .v13-kpi {
    min-height: 72px;
  }

  .client-home .v13-proof-panel {
    grid-template-columns: 1fr;
  }

  .client-home .v13-section {
    padding: 58px 0;
  }

  .client-home .v13-section-head {
    margin-bottom: 25px;
  }

  .client-home .v13-section-head h2 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .client-home .v13-template-workflow-grid,
  .client-home .v13-feature-grid,
  .client-home .v13-reason-grid,
  .client-home .v13-faq {
    grid-template-columns: 1fr;
  }

  .client-home .v13-template-workflow-grid .v13-process-card {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 13px;
    padding: 17px;
  }

  .client-home .v13-template-workflow-grid .v13-step-number {
    grid-row: 1 / 4;
    width: 35px;
    height: 35px;
  }

  .client-home .v13-template-workflow-grid .v13-process-card h3,
  .client-home .v13-template-workflow-grid .v13-process-card p,
  .client-home .v13-process-card__output {
    grid-column: 2;
  }

  .client-home .v13-process-card__output {
    margin-top: 6px;
    padding-top: 9px;
  }

  .client-home .v13-feature-card,
  .client-home .v13-reason {
    min-height: 0;
    padding: 18px;
  }

  .client-home .v13-table-card {
    overflow: visible;
  }

  .client-home .v13-table {
    min-width: 0;
  }

  .client-home .v13-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .client-home .v13-table,
  .client-home .v13-table tbody,
  .client-home .v13-table tr,
  .client-home .v13-table td {
    display: block;
    width: 100%;
  }

  .client-home .v13-table tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .client-home .v13-table tr {
    padding: 10px 12px;
    border: 1px solid var(--v13-line);
    border-radius: var(--v13-radius-sm);
    background: var(--v13-surface-alt);
  }

  .client-home .v13-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--v13-line);
    font-size: 0.8rem;
  }

  .client-home .v13-table td:last-child {
    border-bottom: 0;
  }

  .client-home .v13-table td::before {
    content: attr(data-label);
    color: var(--v13-muted);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .client-home .v13-selected-review {
    padding: 19px;
  }

  .client-home .v13-selected-review__head {
    display: grid;
  }

  .client-home .v13-selected-review__head > span {
    width: fit-content;
  }

  .client-home .v13-template-evidence {
    padding: 34px 0 29px;
  }

  .client-home .v13-template-evidence .v13-evidence__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-home .v13-template-evidence .v13-evidence__item {
    min-height: 102px;
    border-right: 1px solid #dce4f0;
    border-bottom: 1px solid #dce4f0;
    padding: 14px 10px;
  }

  .client-home .v13-template-evidence .v13-evidence__item:nth-child(2n) {
    border-right: 0;
  }

  .client-home .v13-template-evidence .v13-evidence__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .client-home .v13-template-evidence .v13-evidence__item strong {
    font-size: 2rem;
  }

  .client-home .v13-cta-wrap {
    padding-bottom: 52px;
  }

  .client-home .v13-cta {
    padding: 28px 22px;
  }

  .client-home .v13-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
    padding: 48px 0 36px;
  }

  .client-home .v13-footer__brand,
  .client-home .v13-footer__grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .client-home .v13-brand {
    font-size: 1.5rem;
  }

  .client-home .v13-product__main {
    padding: 10px;
  }

  .client-home .v13-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-home .v13-kpi strong {
    font-size: 1.02rem;
  }

  .client-home .v13-offer-card {
    padding-bottom: 30px;
  }

  .client-home .v13-selected-review__metrics {
    grid-template-columns: 1fr;
  }

  .client-home .v13-footer__grid {
    grid-template-columns: 1fr;
  }

  .client-home .v13-footer__brand,
  .client-home .v13-footer__grid > div:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-home *,
  .client-home *::before,
  .client-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
