/* ================================================================
   Aviate landing page (/aviate)
   ================================================================
   Figma: "Kill Bill - Websites" > "Aviate - Homepage" (node 721:2).
   Everything is scoped to .avl so nothing leaks into other pages or
   into the Aviate header and footer (aviate-chrome.css).
   ================================================================ */

/* ----------------------------------------------------------------
   Theme tokens (--avl-n-*, --avl-primary*, type scale, radii, shadows)
   live in aviate-chrome.css, shared with the Aviate header and footer,
   which _aviate_header.html.erb loads before this file.
   ---------------------------------------------------------------- */
.avl {
  /* Layout */
  --avl-gutter: var(--space-4xl);
  --avl-section-y: 7rem;
  --avl-nav-offset: 5rem;
  --avl-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  position: relative;
  width: 100%;
  /* clip (not hidden) keeps position: sticky working for the Core Features scroll story */
  overflow-x: clip;
  background: var(--avl-n-0);
  color: var(--avl-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 1024px) {
  .avl {
    --avl-gutter: var(--space-xl);
    --avl-section-y: var(--space-4xl);
  }
}

@media (max-width: 768px) {
  .avl {
    --avl-gutter: var(--space-md);
    --avl-section-y: var(--space-3xl);
  }
}

@media (max-width: 480px) {
  .avl {
    --avl-gutter: var(--space-xs);
  }
}

/* ----------------------------------------------------------------
   Base element resets (site h1-h3 use the display font and margins)
   ---------------------------------------------------------------- */
.avl *,
.avl *::before,
.avl *::after {
  box-sizing: border-box;
}

/* :where() keeps these at single-class specificity so component rules win */
.avl :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-sans);
  letter-spacing: normal;
  /* Site headings use balanced wrapping; Figma line breaks need normal wrapping */
  text-wrap: wrap;
}

.avl :where(ul, ol) {
  list-style: none;
}

.avl :where(a) {
  color: inherit;
  text-decoration: none;
}

.avl :where(img) {
  max-width: 100%;
  vertical-align: top;
}

.avl :where(button) {
  font-family: var(--font-sans);
}

.avl :focus-visible {
  outline: 2px solid var(--avl-primary);
  outline-offset: 2px;
}

.avl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   Shared building blocks
   ---------------------------------------------------------------- */
.avl-container {
  width: 100%;
  max-width: calc(var(--container-lg) + 2 * var(--avl-gutter));
  margin: 0 auto;
  padding-inline: var(--avl-gutter);
}

.avl-icon-tile {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--avl-n-0);
  border-radius: var(--avl-radius-md);
  box-shadow: var(--avl-shadow-tile-sm);
}

.avl-icon-tile img {
  display: block;
  width: 20px;
  height: 20px;
}

/* Section heading: eyebrow + title + optional description */
.avl-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.avl-heading--tight {
  gap: var(--space-2xs);
}

.avl-heading--center {
  align-items: center;
  text-align: center;
}

.avl-heading__eyebrow {
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-20);
  font-weight: var(--weight-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--avl-primary);
}

.avl-heading__title {
  font-size: var(--avl-fs-40);
  line-height: var(--avl-lh-50);
  font-weight: var(--weight-semibold);
  color: var(--avl-text-primary);
}

.avl-heading__description {
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  color: var(--avl-text-secondary);
}

.avl-heading--dark .avl-heading__eyebrow {
  color: var(--avl-primary-100);
}

.avl-heading--dark .avl-heading__title {
  color: var(--avl-n-0);
}

/* Buttons */
.avl-btn {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  height: 46px;
  padding: 0 var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--avl-radius-pill);
  font-family: var(--font-sans);
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  isolation: isolate;
  transition:
    transform 0.12s ease,
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

/* Hover tint layer keeps the Figma fill intact underneath */
.avl-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--avl-n-900);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.avl-btn:hover::after {
  opacity: 0.05;
}

.avl-btn:active {
  transform: scale(0.97);
}

.avl .avl-btn--primary {
  background-color: var(--avl-n-900);
  color: var(--avl-n-0);
}

.avl-btn--primary::after {
  background: var(--avl-n-0);
}

.avl-btn--primary:hover::after {
  opacity: 0.14;
}

.avl .avl-btn--secondary {
  background-color: var(--avl-n-50);
  color: var(--avl-n-900);
}

.avl .avl-btn--outline {
  background-color: var(--avl-n-0);
  border-color: var(--avl-n-100);
  color: var(--avl-n-900);
}

.avl .avl-btn--inverse {
  background-color: var(--avl-n-0);
  color: var(--avl-n-900);
}

.avl-btn__arrow {
  flex: none;
}

/* Scroll reveal: hidden state only applies once the script is running */
.avl--reveal-ready .avl-reveal.is-revealing {
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--avl-ease-out);
}

.avl--reveal-ready .avl-reveal:not(.is-revealed) {
  opacity: 0;
  transform: translateY(24px);
}

/* ================================================================
   Hero
   ================================================================ */
.avl-hero {
  position: relative;
  padding-top: 104px;
  padding-bottom: 105px;
  background: var(--avl-n-0);
}

.avl-hero__top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.avl-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 964px;
  text-align: center;
}

.avl-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-4xs) var(--space-2xs) var(--space-4xs) var(--space-4xs);
  border: 1px solid var(--avl-n-100);
  border-radius: var(--avl-radius-pill);
  background: var(--avl-n-25);
  font-size: var(--avl-fs-14);
  line-height: var(--avl-lh-20);
  font-weight: var(--weight-medium);
  color: var(--avl-text-secondary);
}

.avl-hero__rating-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4xs);
  padding: var(--space-4xs) var(--space-3xs);
  border-radius: var(--avl-radius-pill);
  background: var(--avl-primary);
  color: var(--avl-n-0);
}

.avl-hero__title {
  max-width: 900px;
  font-size: var(--avl-fs-56);
  line-height: var(--avl-lh-70);
  font-weight: var(--weight-semibold);
  color: var(--avl-text-primary);
}

.avl-hero__subtitle {
  font-size: var(--text-18);
  line-height: var(--lh-18);
  color: var(--avl-text-secondary);
}

.avl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
}

/* Logo marquee: seven logos on a fixed 200px pitch, 40px/s */
.avl-marquee {
  --marquee-pitch: 200px;
  --marquee-logo-width: 160px;
  --marquee-logo-height: 48px;
  --marquee-duration: 35s;
  --marquee-fade: 96px;
  position: relative;
  width: 100%;
  max-width: 1160px;
  height: 80px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
}

.avl-marquee__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: avl-marquee-scroll var(--marquee-duration) linear infinite;
  /* Start with HP where the design places it */
  animation-delay: calc(var(--marquee-duration) * -0.0936);
  will-change: transform;
}

.avl-marquee:hover .avl-marquee__track {
  animation-play-state: paused;
}

.avl-marquee__item {
  display: flex;
  flex: none;
  align-items: center;
  width: var(--marquee-pitch);
  padding-left: calc((var(--marquee-pitch) - var(--marquee-logo-width)) / 2);
}

.avl-marquee__item img {
  display: block;
  width: var(--marquee-logo-width);
  height: var(--marquee-logo-height);
}

@keyframes avl-marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

.avl-hero__demo-wrap {
  position: relative;
  margin-top: 53px;
  max-width: calc(1120px + 2 * var(--avl-gutter));
}

/* Figma "hero bg" (blurred glow + dot grid) is anchored to the demo frame */
.avl .avl-hero__bg {
  position: absolute;
  top: -656px;
  left: 50%;
  width: 1800px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.avl-hero__demo {
  position: relative;
  padding: 0 var(--space-3xs) var(--space-3xs);
  border-radius: var(--avl-radius-lg);
  background: rgb(255 255 255 / 50%);
  outline: 1px solid var(--avl-n-100);
  outline-offset: -1px;
  -webkit-backdrop-filter: blur(4px) saturate(1.6);
  backdrop-filter: blur(4px) saturate(1.6);
}

.avl-hero__demo-bar {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--space-xs);
}

.avl-hero__demo-bar img {
  display: block;
}

.avl-hero__demo-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1px;
  border-radius: var(--avl-radius-lg);
}

.avl .avl-hero__demo-cta {
  position: absolute;
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
}

.avl .avl-hero__demo-cta:active {
  transform: translateX(-50%) scale(0.97);
}

/* ================================================================
   Why Aviate (dark card, cost chart, points, stats)
   ================================================================ */
.avl-why {
  padding: 120px var(--space-xs);
}

.avl-why__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4xl);
  max-width: 1408px;
  margin: 0 auto;
  padding: 112px var(--space-3xl) var(--space-3xl);
  border-radius: var(--avl-radius-2xl);
  background: var(--avl-n-900);
}

.avl-why__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: var(--container-lg);
}

.avl-why__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
}

.avl-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--avl-radius-xl);
  background: rgb(255 255 255 / 3%);
}

.avl-chart__title {
  font-size: var(--avl-fs-20);
  line-height: var(--avl-lh-26);
  font-weight: var(--weight-medium);
  color: var(--avl-n-0);
}

.avl-chart__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.avl-chart__scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Figma "plot" (1198 x 430): labels are positioned in % of that frame */
.avl-chart__plot {
  position: relative;
  min-width: 720px;
  aspect-ratio: 1198 / 430;
}

.avl .avl-chart__lines {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: auto;
}

.avl-chart__label {
  position: absolute;
  font-size: var(--avl-fs-12);
  line-height: var(--avl-lh-16);
  font-weight: var(--weight-medium);
  color: var(--avl-n-200);
  white-space: nowrap;
}

.avl-chart__label--end {
  right: 0.835%;
  text-align: right;
}

.avl-chart__strong {
  color: var(--avl-n-0);
}

.avl-chart__axis {
  font-weight: var(--weight-regular);
  color: var(--avl-n-300);
}

.avl-chart__x-title {
  right: 0.835%;
  text-align: center;
}

.avl-chart__zone {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3xs);
}

.avl-chart__chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--avl-radius-pill);
  background: rgb(255 255 255 / 8%);
  font-size: var(--avl-fs-12);
  line-height: var(--avl-lh-16);
  font-weight: var(--weight-medium);
  color: var(--avl-n-0);
  white-space: nowrap;
}

.avl-chart__chip--aviate {
  border-color: rgb(82 139 255 / 50%);
  background: rgb(21 94 239 / 28%);
}

.avl-chart__caption {
  font-size: var(--avl-fs-12);
  line-height: var(--avl-lh-16);
  font-weight: var(--weight-medium);
  color: var(--avl-n-200);
}

.avl .avl-chart__logo {
  position: absolute;
  height: auto;
}

.avl-chart__note {
  font-size: var(--avl-fs-12);
  line-height: var(--avl-lh-16);
  color: var(--avl-n-300);
  text-align: center;
}

.avl .avl-chart__note a {
  color: var(--avl-primary-100);
  text-decoration: underline;
  text-decoration-color: rgb(178 204 255 / 40%);
  text-underline-offset: 2px;
  transition:
    color var(--transition-base),
    text-decoration-color var(--transition-base);
}

.avl .avl-chart__note a:hover {
  color: var(--avl-n-0);
  text-decoration-color: var(--avl-n-0);
}

.avl-why__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xs);
}

.avl-why__point {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 41px;
  border-radius: var(--avl-radius-xl);
  background: rgb(255 255 255 / 3%);
  outline: 1px solid rgb(255 255 255 / 8%);
  outline-offset: -1px;
}

/* Pointer spotlight + glowing edge */
.avl-why__point::before,
.avl-why__point::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.avl-why__point::before {
  background: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgb(132 173 255 / 14%), transparent 70%);
}

.avl-why__point::after {
  padding: 1px;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgb(132 173 255 / 80%), transparent 70%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.avl-why__point:hover::before,
.avl-why__point:hover::after {
  opacity: 1;
}

.avl-why__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  border-radius: var(--avl-radius-md);
  background: rgb(255 255 255 / 5%);
  outline: 1px solid rgb(255 255 255 / 10%);
  outline-offset: -1px;
}

.avl-why__point-icon img {
  display: block;
}

.avl-why__point-title {
  margin-bottom: var(--space-3xs);
  font-size: var(--avl-fs-20);
  line-height: var(--avl-lh-26);
  font-weight: var(--weight-medium);
  color: var(--avl-n-0);
}

.avl-why__point-text {
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  color: var(--avl-n-200);
}

.avl-why__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: var(--container-lg);
}

.avl-why__stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-4xs);
  padding: 41px 41px var(--space-xl) var(--space-xl);
  border-top: 1px solid rgb(255 255 255 / 16%);
  border-right: 1px solid rgb(255 255 255 / 16%);
  text-align: center;
}

.avl-why__stat:last-child {
  border-right: 0;
}

.avl-why__stat-value {
  font-size: var(--avl-fs-48);
  line-height: var(--avl-lh-60);
  font-weight: var(--weight-semibold);
  color: var(--avl-n-0);
  font-variant-numeric: tabular-nums;
}

.avl-why__stat-caption {
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  color: var(--avl-n-300);
}

/* ================================================================
   Proven at scale
   ================================================================ */
.avl-proven {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 56px;
  padding-block: var(--avl-section-y);
}

.avl-proven .avl-heading__title {
  max-width: 494px;
}

.avl-proven .avl-heading__description {
  max-width: 440px;
}

.avl-proven__list {
  border-top: 1px solid var(--avl-outline);
}

.avl-proven__item {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-md);
  border-bottom: 1px solid var(--avl-outline);
}

.avl-proven__item .avl-icon-tile {
  width: 40px;
  height: 40px;
}

.avl-text-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avl-card-title {
  font-size: var(--avl-fs-20);
  line-height: var(--avl-lh-26);
  font-weight: var(--weight-medium);
  color: var(--avl-text-primary);
}

.avl-card-text {
  font-size: var(--avl-fs-14);
  line-height: var(--avl-lh-20);
  color: var(--avl-text-secondary);
}

.avl-card-text--lg {
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
}

/* ================================================================
   Core features (scroll story on desktop, tabs elsewhere)
   ================================================================ */
.avl-core__grid {
  display: grid;
  grid-template-columns: minmax(0, 661fr) minmax(0, 563fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    'visual heading'
    'visual items';
  column-gap: 56px;
  row-gap: var(--space-xl);
  padding-block: var(--avl-section-y);
}

/* 1800px of extra scroll drives the four steps */
.avl-core.is-pinned {
  height: calc(872px + 1800px);
}

.avl-core.is-pinned .avl-core__pin {
  position: sticky;
  top: max(0px, calc((100vh - 872px) / 2));
}

.avl-core__visual {
  position: relative;
  grid-area: visual;
  align-self: start;
  aspect-ratio: 661 / 648;
}

.avl .avl-core__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.55s ease,
    transform 0.7s var(--avl-ease-out);
  pointer-events: none;
}

.avl .avl-core__panel.is-active {
  opacity: 1;
  transform: none;
}

.avl-core__heading {
  grid-area: heading;
}

.avl-core__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  grid-area: items;
}

.avl-core__item {
  display: flex;
  gap: var(--space-2xs);
  min-height: 112px;
  padding: var(--space-sm);
  border: 0;
  border-radius: var(--avl-radius-lg);
  background: transparent;
  outline: 1px solid transparent;
  outline-offset: -1px;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    outline-color 0.3s ease,
    box-shadow 0.3s ease;
}

.avl-core__item:hover {
  background: rgb(255 255 255 / 60%);
  outline-color: var(--avl-outline);
}

.avl-core__item.is-active {
  background: var(--avl-n-0);
  outline-color: var(--avl-primary-300);
  box-shadow: var(--avl-shadow-raised);
}

.avl .avl-core__item:focus-visible {
  outline: 2px solid var(--avl-primary);
}

.avl-core__item .avl-icon-tile {
  box-shadow: var(--avl-shadow-tile);
}

.avl-core__item .avl-icon-tile img {
  width: 24px;
  height: 24px;
}

.avl-core__item-title {
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  font-weight: var(--weight-medium);
  color: var(--avl-text-primary);
}

.avl-core__item-description {
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  color: var(--avl-text-secondary);
}

/* Desktop: scale the Figma 1280px design with the container (1px at >= 1440, smaller below) */
@media (min-width: 1025px) {
  .avl-core {
    container-type: inline-size;
  }

  .avl-core__grid {
    --u: min(1px, calc((100cqw - 2 * var(--avl-gutter)) / 1280));
    column-gap: calc(56 * var(--u));
    row-gap: calc(40 * var(--u));
  }

  .avl-core.is-pinned .avl-core__grid {
    height: 872px;
    padding-block: 0;
    grid-template-rows: auto auto;
    align-content: center;
  }

  .avl-core__visual {
    align-self: stretch;
    aspect-ratio: auto;
  }

  .avl-core__heading {
    gap: calc(16 * var(--u));
  }

  .avl-core__heading .avl-heading__eyebrow {
    font-size: calc(16 * var(--u));
    line-height: calc(20 * var(--u));
  }

  .avl-core__heading .avl-heading__title {
    font-size: calc(40 * var(--u));
    line-height: calc(50 * var(--u));
  }

  .avl-core__items {
    gap: calc(8 * var(--u));
  }

  .avl-core .avl-core__item {
    gap: calc(12 * var(--u));
    min-height: calc(112 * var(--u));
    padding: calc(20 * var(--u));
  }

  .avl-core .avl-core__item .avl-icon-tile {
    width: calc(48 * var(--u));
    height: calc(48 * var(--u));
  }

  .avl-core .avl-core__item .avl-icon-tile img {
    width: calc(24 * var(--u));
    height: calc(24 * var(--u));
  }

  .avl-core__item .avl-text-stack {
    gap: calc(6 * var(--u));
  }

  .avl-core__item-title,
  .avl-core__item-description {
    font-size: calc(16 * var(--u));
    line-height: calc(22 * var(--u));
  }
}

/* ================================================================
   Who it's for
   ================================================================ */
.avl-audience {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: var(--avl-section-y);
}

.avl-audience__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xs);
}

.avl-audience__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 258px;
  padding: var(--space-lg);
  border: 1px solid var(--avl-outline);
  border-radius: var(--avl-radius-xl);
  background: var(--avl-n-25);
  text-align: center;
}

.avl-audience__card .avl-icon-tile {
  /* Figma: 12px gap + 16px spacer + 12px gap below the tile */
  margin-bottom: calc(var(--space-xs) + var(--space-2xs));
}

.avl-audience__card .avl-icon-tile img {
  width: 24px;
  height: 24px;
}

.avl-audience__card .avl-card-text {
  max-width: 350px;
}

/* ================================================================
   Billing models (bento)
   ================================================================ */
.avl-billing {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: var(--avl-section-y);
  padding-bottom: 56px;
}

.avl-billing__bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-md);
}

.avl-billing__cell--wide {
  grid-column: span 3;
}

.avl-billing__cell--narrow {
  grid-column: span 2;
}

.avl-billing__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-3xs) var(--space-3xs) 0;
  border-radius: var(--avl-radius-xl);
  background: var(--avl-n-0);
  outline: 1px solid var(--avl-outline);
  outline-offset: -1px;
  transition:
    outline-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.avl .avl-billing__card:hover,
.avl .avl-billing__card:focus-visible {
  outline-color: var(--avl-primary-300);
  box-shadow: var(--avl-shadow-raised);
  transform: translateY(-2px);
}

.avl .avl-billing__card:focus-visible {
  outline: 2px solid var(--avl-primary);
}

.avl-billing__media {
  overflow: hidden;
  border-radius: 14px;
}

.avl-billing__media img {
  display: block;
  width: 100%;
  height: auto;
}

.avl-billing__body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xs) var(--space-md);
}

.avl-billing__body .avl-text-stack {
  flex: 1;
}

.avl-round-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--avl-radius-pill);
  background: var(--avl-n-0);
  box-shadow: var(--avl-shadow-tile);
  color: var(--avl-text-secondary);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.3s var(--avl-ease-out);
}

.avl-billing__card:hover .avl-round-icon,
.avl-billing__card:focus-visible .avl-round-icon {
  background: var(--avl-n-900);
  color: var(--avl-n-0);
  transform: rotate(45deg);
}

/* ================================================================
   Security & compliance
   ================================================================ */
.avl-security {
  padding-top: 56px;
  padding-bottom: var(--avl-section-y);
}

.avl-security__card {
  padding: var(--space-xl);
  border: 1px solid var(--avl-outline);
  border-radius: var(--avl-radius-2xl);
  background: var(--avl-n-25);
}

.avl-security__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--avl-outline);
}

.avl-security__top .avl-heading {
  /* Figma text box is 707px; a few px of headroom keeps the title on one line */
  max-width: 720px;
}

.avl-security__features {
  display: grid;
  grid-template-columns: 385fr 426fr 386fr;
}

.avl-security__feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-xl) 0;
}

.avl-security__feature:first-child {
  padding-left: 0;
}

.avl-security__feature:last-child {
  padding-right: 0;
}

.avl-security__feature + .avl-security__feature {
  border-left: 1px solid var(--avl-outline);
}

/* ================================================================
   How it works
   ================================================================ */
.avl-how {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: var(--avl-section-y);
}

.avl-how__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.avl-how__step {
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-3xs) var(--space-3xs);
  border: 1px solid var(--avl-outline);
  border-radius: var(--avl-radius-xl);
  background: var(--avl-n-0);
}

.avl-how__step .avl-text-stack {
  flex: 1;
  padding: var(--space-md) var(--space-xs);
}

.avl-how__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* ================================================================
   Customer stories
   ================================================================ */
.avl-stories {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: var(--avl-section-y);
}

.avl-stories__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
}

.avl-stories__grid {
  display: grid;
  grid-template-columns: minmax(0, 673fr) minmax(0, 591fr);
  gap: var(--space-xs);
}

.avl-stories__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.avl-story {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-height: 218px;
  padding: var(--space-lg);
  overflow: hidden;
  border-radius: var(--avl-radius-xl);
  background: var(--avl-n-0);
  outline: 1px solid var(--avl-outline);
  outline-offset: -1px;
  cursor: pointer;
  transition:
    outline-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.avl .avl-story:hover,
.avl .avl-story:focus-visible {
  outline-color: var(--avl-primary-300);
  box-shadow: var(--avl-shadow-raised);
  transform: translateY(-2px);
}

.avl .avl-story:focus-visible {
  outline: 2px solid var(--avl-primary);
}

/* Figma "Story card - John R.": blue wash + dot pattern fading from the top right */
.avl-story--featured {
  height: 100%;
  min-height: 452px;
  padding: var(--space-xl);
  background:
    radial-gradient(ellipse 75% 60% at 85% 0%, rgb(21 94 239 / 16%), transparent 70%),
    linear-gradient(180deg, var(--avl-primary-25) 0%, var(--avl-n-0) 85%);
}

.avl-story--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(21 94 239 / 28%) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 85% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 85% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.avl-story__quote-icon {
  position: relative;
  flex: none;
  color: var(--avl-n-300);
  transition: color 0.25s ease;
}

.avl-story:hover .avl-story__quote-icon,
.avl-story:focus-visible .avl-story__quote-icon {
  color: var(--avl-primary);
}

.avl-story__content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-xs);
}

.avl-story--featured .avl-story__content {
  justify-content: flex-end;
  gap: var(--space-lg);
}

.avl-story__quote {
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  color: var(--avl-text-primary);
}

.avl-story--featured .avl-story__quote {
  font-size: var(--avl-fs-20);
  line-height: var(--avl-lh-26);
  font-weight: var(--weight-medium);
}

.avl-story__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-xs);
}

.avl-story__person {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.avl .avl-story__photo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  outline: 0.6px solid var(--avl-outline);
  object-fit: cover;
}

.avl-story__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avl-story__name {
  font-size: var(--avl-fs-14);
  line-height: var(--avl-lh-20);
  font-weight: var(--weight-semibold);
  color: var(--avl-text-primary);
}

.avl-story__role {
  font-size: var(--avl-fs-12);
  line-height: var(--avl-lh-16);
  color: var(--avl-text-tertiary);
}

.avl-story__review {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 var(--space-2xs);
  border-radius: var(--avl-radius-pill);
  background: var(--avl-n-0);
  outline: 1px solid var(--avl-outline);
  outline-offset: -1px;
  font-size: var(--avl-fs-12);
  line-height: var(--avl-lh-16);
  font-weight: var(--weight-medium);
  color: var(--avl-text-secondary);
  white-space: nowrap;
  transition:
    outline-color 0.25s ease,
    color 0.25s ease;
}

.avl-story:hover .avl-story__review,
.avl-story:focus-visible .avl-story__review {
  outline-color: var(--avl-primary-300);
  color: var(--avl-text-primary);
}

.avl-story__star {
  color: var(--avl-star);
}

.avl-story__external {
  color: var(--avl-n-300);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.avl-story:hover .avl-story__external,
.avl-story:focus-visible .avl-story__external {
  color: var(--avl-primary);
  transform: translate(1px, -1px);
}

/* ================================================================
   FAQ (accordion)
   ================================================================ */
.avl-faq {
  display: grid;
  grid-template-columns: minmax(0, 504fr) minmax(0, 720fr);
  align-items: start;
  gap: 56px;
  padding-block: var(--avl-section-y);
}

.avl-faq__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.avl-faq__intro .avl-heading__title {
  max-width: 444px;
}

.avl-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.avl-faq__item {
  border-radius: var(--avl-radius-lg);
  background: transparent;
  outline: 1px solid var(--avl-outline);
  outline-offset: -1px;
  transition:
    background-color 0.25s ease,
    outline-color 0.25s ease,
    box-shadow 0.25s ease;
}

.avl-faq__item:hover,
.avl-faq__item.is-open {
  background: var(--avl-n-0);
  outline-color: var(--avl-primary-300);
  box-shadow: var(--avl-shadow-raised);
}

.avl .avl-faq__question-heading {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.avl-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: 21px 25px;
  border: 0;
  border-radius: var(--avl-radius-lg);
  background: transparent;
  font-size: var(--avl-fs-20);
  line-height: var(--avl-lh-26);
  font-weight: var(--weight-medium);
  color: var(--avl-text-primary);
  text-align: left;
  cursor: pointer;
  transition: padding var(--transition-slow);
}

.avl-faq__item.is-open .avl-faq__question {
  padding-bottom: var(--space-4xs);
}

.avl-faq__item .avl-round-icon {
  transition:
    transform var(--transition-slow),
    color 0.25s ease;
}

.avl-faq__item.is-open .avl-round-icon {
  color: var(--avl-primary);
  transform: rotate(45deg);
}

.avl-faq__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--transition-slow);
}

/* Answers stay readable without JavaScript; the script enables collapsing */
.avl--js .avl-faq__item:not(.is-open) .avl-faq__body {
  grid-template-rows: 0fr;
}

.avl-faq__body > div {
  overflow: hidden;
}

.avl-faq__answer {
  max-width: 670px;
  padding: 0 25px 21px;
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  color: var(--avl-text-secondary);
}

.avl .avl-faq__answer a {
  color: var(--avl-primary);
  text-decoration: underline;
  text-decoration-color: rgb(21 94 239 / 35%);
  text-underline-offset: 2px;
  transition:
    color var(--transition-base),
    text-decoration-color var(--transition-base);
}

.avl .avl-faq__answer a:hover {
  color: var(--avl-primary-hover);
  text-decoration-color: var(--avl-primary-hover);
}

/* ================================================================
   Final CTA
   ================================================================ */
.avl-cta {
  padding-bottom: var(--avl-section-y);
}

.avl-cta__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: var(--space-3xl) var(--space-xl) 0;
  overflow: hidden;
  border-radius: var(--avl-radius-2xl);
  background: var(--avl-primary-25);
}

.avl .avl-cta__bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1280px;
  max-width: none;
  height: 540px;
  transform: translateX(-50%);
  pointer-events: none;
}

.avl-cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.avl-cta__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--avl-radius-xl);
  background: var(--avl-n-0);
  box-shadow: var(--avl-shadow-badge);
}

.avl-cta__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.avl-cta__title {
  font-size: var(--avl-fs-48);
  line-height: var(--avl-lh-60);
  font-weight: var(--weight-semibold);
  color: var(--avl-text-primary);
  text-wrap: balance;
}

.avl-cta__description {
  max-width: 520px;
  font-size: var(--avl-fs-16);
  line-height: var(--avl-lh-22);
  color: var(--avl-text-secondary);
}

.avl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
  .avl-hero__title {
    font-size: var(--avl-fs-48);
    line-height: var(--avl-lh-60);
  }

  .avl-why {
    padding: var(--space-4xl) var(--space-xs);
  }

  .avl-why__card {
    gap: var(--space-3xl);
    padding: var(--space-4xl) var(--space-xl) var(--space-xl);
  }

  .avl-why__point {
    padding: var(--space-lg);
  }

  .avl-why__stat {
    padding: var(--space-lg) var(--space-xs);
  }

  .avl-proven {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .avl-proven .avl-heading__title,
  .avl-proven .avl-heading__description {
    max-width: 640px;
  }

  .avl-core__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      'heading'
      'visual'
      'items';
    row-gap: var(--space-lg);
  }

  .avl-core__visual {
    width: 100%;
    max-width: 661px;
  }

  .avl-audience,
  .avl-billing,
  .avl-how,
  .avl-stories {
    gap: var(--space-xl);
  }

  .avl-audience__card {
    padding: var(--space-md);
  }

  .avl-billing__body {
    padding-inline: var(--space-3xs);
  }

  .avl-security__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .avl-security__feature {
    padding-inline: var(--space-md);
  }

  .avl-how__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .avl-stories__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .avl-story--featured {
    min-height: 360px;
  }

  .avl-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .avl-hero {
    padding-top: calc(var(--avl-nav-offset) + var(--space-md));
    padding-bottom: var(--space-3xl);
  }

  .avl-hero__title {
    font-size: var(--avl-fs-40);
    line-height: var(--avl-lh-50);
  }

  .avl-hero__subtitle {
    font-size: var(--avl-fs-16);
    line-height: var(--avl-lh-22);
  }

  .avl-hero__actions,
  .avl-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }

  .avl-marquee {
    --marquee-pitch: 150px;
    --marquee-logo-width: 120px;
    --marquee-logo-height: 36px;
    --marquee-duration: 26s;
    --marquee-fade: 48px;
    height: 64px;
  }

  .avl-hero__demo-wrap {
    margin-top: var(--space-xl);
  }

  .avl .avl-hero__bg {
    top: -328px;
    width: 900px;
  }

  .avl-hero__demo {
    padding: 0 6px 6px;
    border-radius: var(--avl-radius-md);
  }

  .avl-hero__demo-bar {
    height: 28px;
    padding: 0 var(--space-3xs);
  }

  .avl-hero__demo-bar img {
    width: 36px;
    height: auto;
  }

  .avl-hero__demo-shot {
    border-radius: var(--avl-radius-md);
  }

  .avl .avl-hero__demo-cta {
    position: static;
    display: flex;
    width: fit-content;
    margin: var(--space-md) auto 0;
    transform: none;
  }

  .avl .avl-hero__demo-cta:active {
    transform: scale(0.97);
  }

  .avl-heading__eyebrow {
    font-size: var(--avl-fs-14);
  }

  .avl-heading__title {
    font-size: var(--avl-fs-32);
    line-height: var(--avl-lh-40);
  }

  .avl-why {
    padding: var(--space-3xl) var(--space-3xs);
  }

  .avl-why__card {
    gap: var(--space-2xl);
    padding: var(--space-3xl) var(--space-md) var(--space-md);
    border-radius: var(--avl-radius-xl);
  }

  .avl-why__block {
    gap: var(--space-xl);
  }

  .avl-chart {
    padding: var(--space-md);
  }

  .avl-why__points,
  .avl-why__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .avl-why__point {
    min-height: 0;
    padding: var(--space-md);
  }

  .avl-why__stat {
    border-right: 0;
  }

  .avl-why__stat-value {
    font-size: var(--avl-fs-40);
    line-height: var(--avl-lh-50);
  }

  .avl-core__item {
    min-height: 0;
    padding: var(--space-xs);
  }

  .avl-audience__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .avl-audience__card {
    min-height: 0;
  }

  .avl-billing__bento {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }

  .avl-billing__cell--wide,
  .avl-billing__cell--narrow {
    grid-column: auto;
  }

  .avl-security {
    padding-top: var(--space-md);
  }

  .avl-security__card {
    padding: var(--space-md);
    border-radius: var(--avl-radius-xl);
  }

  .avl-security__top {
    padding-bottom: var(--space-md);
  }

  .avl-security__features {
    grid-template-columns: minmax(0, 1fr);
  }

  .avl-security__feature,
  .avl-security__feature:first-child,
  .avl-security__feature:last-child {
    gap: var(--space-xs);
    padding: var(--space-md) 0;
  }

  .avl-security__feature:last-child {
    padding-bottom: 0;
  }

  .avl-security__feature + .avl-security__feature {
    border-left: 0;
    border-top: 1px solid var(--avl-outline);
  }

  .avl-stories__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .avl-story,
  .avl-story--featured {
    min-height: 0;
    padding: var(--space-md);
  }

  .avl-story--featured .avl-story__content {
    margin-top: var(--space-xl);
  }

  .avl-faq__question {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--avl-fs-16);
    line-height: var(--avl-lh-22);
  }

  .avl-faq__answer {
    padding: 0 var(--space-sm) var(--space-xs);
  }

  .avl-cta__card {
    min-height: 0;
    padding: var(--space-4xl) var(--space-md) var(--space-2xl);
    border-radius: var(--avl-radius-xl);
  }

  .avl-cta__title {
    font-size: var(--avl-fs-32);
    line-height: var(--avl-lh-40);
  }
}

@media (max-width: 480px) {
  .avl-hero__title {
    font-size: var(--avl-fs-32);
    line-height: var(--avl-lh-40);
  }

  .avl-heading__title {
    font-size: var(--avl-fs-28);
    line-height: var(--avl-lh-36);
  }

  .avl-proven__item {
    padding: var(--space-md) 0;
  }

  .avl-how__steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .avl-marquee__track {
    animation: none;
  }

  .avl--reveal-ready .avl-reveal:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}
