/* =========================================================================
   Averer — shared styles (matches www.averer.co / averer.com)
   Linked from all pages for consistent header, footer, buttons, layout.
   ========================================================================= */

:root {
  --blue-600:    #2563eb;
  --indigo-700:  #5a48e3;
  --ink-900:     #061728;
  --ink-800:     #1a1a1a;
  --ink-700:     #231d4f;
  --ink-600:     #6b7285;
  --ink-500:     #6e7887;
  --ink-400:     #7b8389;
  --ink-300:     #c3d0e1;
  --ink-200:     #e4ebf4;
  --ink-100:     #ededed;
  --pill-bg:     #ededed;
  --bg-light:    #f4f7fc;
  --white:       #fff;
  --off-white:   #fefeff;
  --dark-bg:     #040a17;
  --footer-text: #6f7c99;
  --partner-grey:#b2c1d6;

  --font-display: "Roboto", system-ui, -apple-system, sans-serif;
  --font-ui:      "Inter", system-ui, sans-serif;

  --max-width: 1440px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Production spacing (www.averer.co) */
  --space-section-y: 64px;
  --space-section-x: 16px;
  --space-section-desktop: 64px 80px;
  --space-gap-lg: 80px;
  --space-gap-md: 48px;
  --space-gap-sm: 24px;
  --space-gap-xs: 12px;
  --text-body: 16px;
  --text-body-lg: 18px;
  --text-heading-sm: 24px;
  --text-heading-md: 28px;
  --text-heading-lg: 36px;
  --text-display: 48px;
  --text-display-xl: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.logo__mark,
img.footer__brand-logo,
.step__media img,
.secured__logo--fireblocks,
.secured__slot img,
.lottie__poster,
.verify__phone-img {
  max-width: none;
}

.verify__visual,
.how__visual,
.building__visual {
  overflow: visible;
}

p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  font-family: var(--font-display);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .site-header__inner { padding: 24px 80px; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark-wrap {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.logo__mark { width: 21px; height: 28px; }

@media (min-width: 1024px) {
  .logo__mark { width: 33px; height: 44px; }
}

.logo__text {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink-900);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .logo__text { font-size: 38px; }
}

.nav-desktop { display: none; }

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 36px;
  }
}

.nav-desktop a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-900);
  padding: 12px 16px;
}

.nav-desktop a:hover { color: var(--blue-600); }
.nav-desktop .nav-current { color: var(--blue-600); }
.nav-desktop .btn { color: var(--white); padding: 12px 16px; }

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
  z-index: 101;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
  .hamburger {
    width: 36px;
    height: 36px;
  }
}

.hamburger img {
  width: 36px;
  height: 28px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

/* Mobile nav drawer (matches www.averer.co/mobile-menu) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 200;
  background: var(--dark-bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  padding-top: max(24px, env(safe-area-inset-top, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* Keep header + hamburger above the overlay so the menu button can toggle closed */
body.mobile-menu-open .site-header {
  z-index: 201;
}

body.mobile-menu-open .hamburger {
  z-index: 202;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.mobile-menu__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu__logo img {
  width: 21px;
  height: 28px;
  max-width: none;
}

.mobile-menu__logo span {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
}

.mobile-menu__close img {
  width: 36px;
  height: 36px;
  max-width: none;
  filter: brightness(0) invert(1);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  flex: 1;
  min-height: 0;
  padding: 24px 0;
}

.mobile-menu__nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.17;
  color: #d5deeb;
  padding: 0;
}

.mobile-menu__nav a:hover {
  color: var(--white);
}

.mobile-menu__nav .mobile-menu__link--ext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu .ext-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}

.mobile-menu__footer {
  flex-shrink: 0;
}

.mobile-menu__footer .btn {
  width: 100%;
  min-height: 60px;
  font-size: 18px;
  border-radius: var(--radius-sm);
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { opacity: 0.9; }
.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--outlined-blue {
  background: transparent;
  color: var(--blue-600);
  border: 1px solid var(--blue-600);
}
.btn--outlined-white {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.btn--outlined-white:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn--lg { padding: 14px 36px; font-size: 18px; border-radius: 12px; }
.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
  min-height: 40px;
}
.btn--full { width: 100%; }

/* Primary on dark sections (Building, Built for developers) */
.section--dark .btn--primary {
  background: var(--blue-600);
  color: var(--white);
  border: 1px solid var(--blue-600);
}

.section--dark .btn--outlined-blue {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  background: var(--pill-bg);
  color: var(--blue-600);
  width: fit-content;
}

/* Mixed-case labels (VerifyKit, Embedded Wallet, home section tags, etc.) */
.pill-tag--case {
  text-transform: none;
  letter-spacing: 0;
}

/* Sections — production default 64px / 80px horizontal */
.section {
  padding: var(--space-section-y) var(--space-section-x);
}

@media (min-width: 1024px) {
  .section { padding: var(--space-section-desktop); }
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--lavender { background: var(--bg-light); }
.section--dark { background: var(--dark-bg); color: var(--white); }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(var(--text-heading-sm), 4vw, var(--text-heading-lg));
  line-height: 1.1;
  color: var(--ink-900);
}

.section__title em {
  font-style: normal;
  color: var(--blue-600);
}

.section__desc {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--ink-400);
}

@media (min-width: 1024px) {
  .section__desc { font-size: var(--text-body-lg); }
}

/* Secured by (home) — 218×61px slots like averer.com */
.secured {
  --secured-slot-w: 160px;
  --secured-slot-h: 45px;
  padding: 64px 16px;
  background: var(--white);
}

@media (min-width: 1024px) {
  .secured { padding: 64px 80px; }
}

.secured__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.secured__label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink-900);
  text-align: center;
  margin: 0;
}

.secured__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 40px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .secured__row {
    gap: 40px 56px;
    padding: 0 16px;
  }
}

@media (min-width: 1024px) {
  .secured__row { gap: 48px 72px; }
}

.secured__slot {
  flex: 0 0 auto;
  position: relative;
  width: var(--secured-slot-w);
  height: var(--secured-slot-h);
  overflow: hidden;
}

/* Partner logos — equal 218×61 slots (production Figma crop) */
.secured__logo {
  display: block;
  max-width: none;
}

.secured__logo--redbelly {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Fireblocks — wider wordmark (900×194 asset); height matches other slots */
.secured__slot--fireblocks {
  width: auto;
  min-width: 0;
  overflow: visible;
}

.secured__logo--fireblocks {
  display: block;
  height: var(--secured-slot-h);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.secured__logo--sumsub {
  position: absolute;
  width: 124%;
  height: 176%;
  top: -39%;
  left: -12%;
  filter: brightness(0) invert(0.78) sepia(0.12) saturate(3) hue-rotate(185deg);
}

@media (min-width: 768px) {
  .secured {
    --secured-slot-w: 200px;
    --secured-slot-h: 56px;
  }
}

@media (min-width: 1024px) {
  .secured {
    --secured-slot-w: 218px;
    --secured-slot-h: 61px;
  }
}

/* Footer — stacked layout like averer.com */
.site-footer {
  background: var(--white);
  padding: 48px 16px 64px;
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 64px 80px 80px;
  }
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
}

.footer__cols {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

@media (min-width: 768px) {
  .footer__cols {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  /* Wider spread: Product left, Developers mid, Company right (like averer.com) */
  .footer__col:nth-child(2) {
    margin-left: clamp(140px, 28vw, 380px);
  }

  .footer__col:nth-child(3) {
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .footer__col:nth-child(2) {
    margin-left: clamp(280px, 38vw, 520px);
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer__col-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-900);
  margin: 0 0 4px;
}

.footer__col a,
.footer__col span {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
}

.footer__col a:hover {
  color: var(--blue-600);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.footer__brand-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__brand-logo {
  width: 33px;
  height: 44px;
  flex-shrink: 0;
}

.footer__brand-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--ink-800);
}

.footer__copyright {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-500);
  margin: 0;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.footer__divider {
  height: 1px;
  width: 100%;
  margin: 0;
  background: var(--ink-300);
  border: none;
}

.footer__privacy {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-500);
}

.footer__legal {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--ink-500);
  margin: 0;
  width: 100%;
}

.footer__legal strong {
  font-weight: 700;
  color: var(--ink-900);
}

.ext-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 4px;
}

.ext-icon svg { width: 100%; height: 100%; }

/* Lottie (shared) */
.lottie {
  width: 100%;
  display: block;
  position: relative;
}

.lottie svg,
.lottie canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}

/* Aspect ratios from Lottie source files */
.lottie--homepage        { aspect-ratio: 1800 / 1350; }
.lottie--identity        { aspect-ratio: 1080 / 1350; }
.lottie--wallet          { aspect-ratio: 1250 / 1350; }
.lottie--right-container { aspect-ratio: 1080 / 1350; }

.how__visual .lottie--wallet,
.building__visual .lottie--identity {
  background: transparent;
}

.how__visual .lottie svg,
.building__visual .lottie svg {
  overflow: visible;
}

.lottie__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.lottie.is-ready .lottie__poster { opacity: 0; }

.lottie--failed .lottie__poster { opacity: 1; }

.btn--primary:hover { opacity: 0.92; }
.btn--outlined-blue:hover {
  background: var(--blue-600);
  color: var(--white);
}
.nav-desktop a:hover { color: var(--blue-600); }
