/* Averer — Home page (extends site.css) */

/* ============== Hero (full-bleed graphic like averer.co) ============== */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--bg-light);
  padding: 64px 16px 48px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero {
    padding: 40px 80px 56px;
  }
}
.hero__bg {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  margin: 0;
  line-height: 0;
  pointer-events: none;
}
.hero__bg picture,
.hero__bg img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
}
.hero__bg img {
  object-fit: cover;
  object-position: center 54%;
}
.hero__inner {
  grid-row: 1;
  grid-column: 1;
  z-index: 1;
  align-self: center;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: 32px 24px;
  max-width: 629px;
  display: flex;
  flex-direction: column;
  gap: 47px;
}
.hero-card .btn {
  align-self: flex-start;
}
.hero-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.1;
  color: var(--ink-900);
}
.hero-card__title em {
  font-style: normal;
  color: var(--blue-600);
}
.hero-card__desc {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-500);
  line-height: 1.4;
}

/* ============== Verify (matches averer.com — 120px section padding) ============== */
.section.verify {
  background: var(--white);
  padding: 120px 16px;
}
@media (min-width: 1024px) {
  .section.verify {
    padding: 120px 80px;
  }
}
.verify__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
@media (min-width: 1024px) {
  .verify__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 144px;
    align-items: center;
  }
}
@media (min-width: 1280px) {
  .verify__inner {
    gap: 161px;
  }
}
.verify__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 640px;
  width: 100%;
  text-align: center;
}
@media (min-width: 1024px) {
  .verify__text {
    align-items: flex-start;
    text-align: left;
  }
}
.verify__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 64px);
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.verify__heading-line {
  display: block;
}
.verify__heading-line--action {
  color: var(--blue-600);
  overflow: hidden;
}
.verify__word-roller {
  display: inline-block;
  vertical-align: top;
  height: 1.05em;
  min-width: 11.5ch;
  overflow: hidden;
  line-height: 1.05;
}
.verify__word-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}
.verify__word-track span {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  height: 1.05em;
  line-height: 1.05;
  overflow: hidden;
  white-space: nowrap;
}
.verify__desc {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-500);
  margin: 0;
  max-width: 480px;
}
.verify__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

/* Phone — transparent mockup asset (shadow + frame baked into PNG) */
.verify__phone {
  margin: 0;
  line-height: 0;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
}

.verify__phone-img {
  display: block;
  width: 320px;
  max-width: min(320px, 82vw);
  height: auto;
}

@media (min-width: 768px) {
  .verify__phone-img {
    width: 400px;
    max-width: min(400px, 52vw);
  }
}

@media (min-width: 1024px) {
  .verify__phone-img {
    width: 480px;
    max-width: 100%;
  }

  .verify__visual {
    justify-content: flex-start;
    padding-left: 0;
  }

  .verify__phone {
    margin-left: -72px;
  }
}

@media (min-width: 1280px) {
  .verify__phone-img {
    width: 520px;
  }

  .verify__phone {
    margin-left: -96px;
  }
}

/* ============== Why ============== */
.why__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-md);
}
.why__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-sm);
}
.why__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .why__cards { grid-template-columns: repeat(3, 1fr); }
}
.why-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-sm);
}
.why .btn--primary,
.section--how .btn--primary {
  align-self: flex-start;
}
.why-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card__icon img,
.why-card__icon svg {
  width: 36px;
  height: 36px;
}
.why-card__icon--stacked {
  position: relative;
  width: 36px;
  height: 36px;
}
.why-card__icon--stacked .why-card__icon-main {
  width: 33px;
  height: auto;
}
.why-card__icon--stacked .why-card__icon-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
}
.why-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink-900);
}
.why-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-400);
}

/* ============== How (wallet, no grey background) ============== */
.section--how {
  background: var(--white);
}
.how__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-md);
  align-items: stretch;
}
@media (min-width: 1024px) {
  .how__inner {
    flex-direction: row;
    gap: 80px;
    align-items: center;
  }
}
.how__text {
  flex: 1 1 42%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-md);
}
.how__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  color: var(--ink-900);
}
.how__heading em {
  font-style: normal;
  color: var(--blue-600);
}
.how__bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.how__bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--blue-600);
}
@media (min-width: 1024px) {
  .how__bullets li { font-size: 24px; }
}
.how__bullets li::before {
  content: "";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: url("/assets/images/icons/check.svg") center / contain no-repeat;
}
.how__visual {
  flex: 1 1 52%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.how__visual .lottie--wallet {
  width: 100%;
  max-width: 520px;
  background: transparent;
}

/* ============== Building (proof / identity wallet) ============== */
.building {
  background: var(--dark-bg);
  color: var(--white);
}
.building__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-md);
  align-items: stretch;
}
@media (min-width: 1024px) {
  .building__inner {
    flex-direction: row;
    gap: 80px;
    align-items: center;
  }
}
.building__text {
  flex: 1 1 42%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-md);
}
.building__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
}
.building__desc {
  font-size: 18px;
  color: var(--footer-text);
  line-height: 1.5;
}
.building__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 600px) {
  .building__ctas { flex-direction: row; flex-wrap: wrap; }
}
.building__visual {
  flex: 1 1 52%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.building__visual .lottie--identity {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: transparent;
}

.see-plans-btn {
  align-self: center;
}
@media (min-width: 1024px) {
  .see-plans-btn {
    align-self: flex-start;
  }
}
