/* Pixel-parity overrides — values from live tokeniser.com SSR + computed styles */
/* Requires production-tokens.css loaded immediately before this file */

/* ─── Header (computed: 72px mobile, 88px desktop, pad 20px 16px / 20px 80px) ─── */
.site-header__inner {
  min-height: var(--prod-header-h-mobile) !important;
  height: auto !important;
  padding: var(--prod-header-pad-mobile) !important;
  box-sizing: border-box;
  align-items: center;
}

@media (min-width: 1024px) {
  .site-header__inner {
    min-height: var(--prod-header-h-desktop) !important;
    padding: var(--prod-header-pad-desktop) !important;
  }

  .site-header .logo img {
    width: var(--prod-logo-w-desktop) !important;
    height: var(--prod-logo-h-desktop) !important;
  }
}

@media (max-width: 1023px) {
  .site-header .logo img {
    width: var(--prod-logo-w-mobile) !important;
    height: var(--prod-logo-h-mobile) !important;
    max-width: none !important;
  }
}

/* ─── Buttons (Figma: i40ehz radius 8px; ac68eu pad 12px 32px) ─── */
.btn,
a.btn,
button.btn {
  border-radius: var(--prod-btn-radius) !important;
}

.btn--small,
.hero-card .btn {
  padding: var(--prod-btn-pad-sm) !important;
  border-radius: var(--prod-btn-radius) !important;
}

.btn--primary-lg,
.hero__cta.btn--primary {
  padding: var(--prod-btn-pad-lg) !important;
}

.hero-card {
  border-radius: var(--prod-card-radius) !important;
  min-height: var(--prod-card-h);
}

@media (min-width: 768px) {
  .hero-card {
    height: var(--prod-card-h);
  }
}

.toggle {
  border-radius: var(--prod-toggle-radius) !important;
}

/* ─── Investor hero (Figma: 5ne78v h1024 top72; eftkpf pad 80 16 gap 48) ─── */
.hero--investor .hero__inner {
  padding: var(--prod-inv-hero-inner-pad-mobile);
  gap: var(--prod-inv-hero-inner-gap);
}

.hero--investor .hero__bg img {
  object-fit: cover;
  object-position: 50% 50%;
  transform: none !important;
  width: 100%;
  height: 100%;
}

.hero--investor .hero__title {
  font-size: var(--prod-inv-hero-title-mobile);
  line-height: var(--prod-inv-hero-title-lh-mobile);
  letter-spacing: var(--prod-inv-hero-title-ls);
  font-weight: 900;
}

@media (min-width: 1024px) {
  .hero {
    display: block;
  }

  .hero__bg {
    position: absolute !important;
    inset: 0 !important;
    order: unset;
    height: auto;
    flex: none;
  }

  .hero__bg::after {
    display: none;
  }

  .hero__inner {
    background: transparent;
  }

  .hero--investor {
    min-height: var(--prod-inv-hero-h-desktop);
    height: auto;
  }

  .hero--investor .hero__inner {
    padding: var(--prod-inv-hero-inner-pad-desktop);
  }

  .hero--investor .hero__bg,
  .hero--investor .hero__bg img {
    min-height: var(--prod-inv-hero-h-desktop);
    height: var(--prod-inv-hero-h-desktop);
  }

  .hero--investor .hero__title {
    font-size: var(--prod-inv-hero-title-desktop);
    line-height: var(--prod-inv-hero-title-lh-desktop);
    letter-spacing: 0;
  }
}

/* ─── Issuer hero (Figma: 4cdxqt / 4cdwuy h795) ─── */
.hero--issuer .hero__inner {
  padding: var(--prod-inv-hero-inner-pad-mobile);
  gap: var(--prod-inv-hero-inner-gap);
  justify-content: center;
}

.hero--issuer .hero__bg img {
  object-fit: cover;
  object-position: 50% 50%;
  transform: none !important;
}

@media (min-width: 1024px) {
  .hero--issuer,
  .hero--issuer .hero__inner {
    min-height: var(--prod-iss-hero-h-desktop);
  }

  .hero--issuer .hero__inner {
    padding-left: 80px;
    padding-right: 80px;
    gap: var(--prod-iss-hero-inner-gap-desktop);
  }

  .hero--issuer .hero__bg,
  .hero--issuer .hero__bg img {
    min-height: var(--prod-iss-hero-h-desktop);
    height: var(--prod-iss-hero-h-desktop);
  }
}

/* ─── Mobile hero: full-bleed overlay (matches tokeniser.com — one bg, text on top) ─── */
@media (max-width: 1023px) {
  .hero {
    position: relative;
    display: block;
    overflow: hidden;
    background: transparent;
  }

  .hero--investor {
    min-height: var(--prod-inv-hero-h-mobile) !important;
    height: auto;
  }

  .hero--issuer {
    min-height: var(--prod-iss-hero-h-mobile) !important;
    height: auto;
  }

  .hero__bg {
    position: absolute !important;
    inset: 0 !important;
    order: unset;
    flex: none;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    pointer-events: none;
  }

  .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.28) 45%,
      rgba(0, 0, 0, 0.52) 100%
    );
    pointer-events: none;
  }

  .hero__bg picture {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
  }

  /* Plane: frame fuselage + cockpit on narrow viewports */
  .hero--investor .hero__bg img {
    object-position: 58% 46% !important;
  }

  /* Bull: keep head/horns in frame */
  .hero--issuer .hero__bg img {
    object-position: center 32% !important;
  }

  .hero__inner {
    position: relative !important;
    z-index: 1;
    flex: none;
    width: 100%;
    max-width: var(--max-width, 1280px);
    margin-inline: auto;
    background: transparent !important;
    box-sizing: border-box;
  }

  .hero--investor .hero__inner {
    min-height: var(--prod-inv-hero-h-mobile) !important;
    padding: var(--prod-inv-hero-inner-pad-mobile) !important;
  }

  .hero--issuer .hero__inner {
    min-height: var(--prod-iss-hero-h-mobile) !important;
    padding: var(--prod-inv-hero-inner-pad-mobile) !important;
    justify-content: center;
  }

  .hero-card {
    background: rgba(0, 0, 0, 0.6);
  }

  /* Issuer “Trusted by” logos — prevent crop / clipping on narrow screens */
  .logos-strip {
    overflow: visible;
    padding: 48px 20px;
  }

  .logos-strip__row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px 36px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .logos-strip__row img {
    display: block;
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-width: min(148px, 42vw);
    max-height: none;
    object-fit: contain;
  }
}

/* ─── Stats (Figma: nsrkit 262×1 at top 56; 9t2dyb 48px lh30) ─── */
.stat__top {
  position: relative;
  height: var(--prod-stat-top-h);
  width: 100%;
}

.stat__value {
  display: block;
  font-size: var(--prod-stat-value-size);
  line-height: var(--prod-stat-value-lh);
  letter-spacing: var(--prod-stat-value-ls);
  border-bottom: none !important;
}

.stat__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--prod-stat-line-w);
  max-width: 100%;
  height: 1px;
  background: var(--ink-200, #dedfe2);
}

.stat__label {
  letter-spacing: var(--prod-stat-label-ls);
}

/* ─── Steps (Figma: hh0di 360×1 mobile) ─── */
.step__top {
  position: relative;
  height: var(--prod-stat-top-h);
  width: 100%;
}

.step__num {
  display: block;
  font-size: var(--prod-stat-value-size);
  line-height: var(--prod-stat-value-lh);
  letter-spacing: var(--prod-stat-value-ls);
  border-bottom: none !important;
}

.step__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--prod-step-line-w-mobile);
  max-width: 100%;
  height: 1px;
  background: var(--ink-600, #595e6e);
}

@media (min-width: 768px) {
  .step__line {
    width: var(--prod-stat-line-w);
  }
}

/* ─── Can-do (Figma: 5nc1b2 pad 120 80 gap 140; 9pa8sq h680; 1iwufa space-between) ─── */
.section.can-do {
  padding: var(--prod-can-do-pad-mobile);
}

.can-do__inner {
  gap: 64px;
}

/* Mobile / tablet: keep Lottie inside section (674px art was bleeding into “Three simple steps”) */
@media (max-width: 1023px) {
  .section.can-do {
    overflow: hidden;
  }

  .can-do__visual {
    flex-shrink: 0;
    position: relative;
    isolation: isolate;
  }

  .can-do__visual .lottie svg {
    max-width: 100% !important;
    max-height: 100% !important;
  }
}

/* Tablet + desktop: two columns, vertically centered on the same midline */
@media (min-width: 768px) {
  .can-do__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .can-do__left {
    justify-content: center !important;
    align-self: center;
  }

  .can-do__bottom {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .can-do__visual {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .section.can-do {
    padding: var(--prod-can-do-pad-desktop);
  }

  .section.can-do .section__inner {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
  }

  .can-do__inner {
    gap: var(--prod-can-do-gap);
    min-height: var(--prod-can-do-col-h);
    align-items: center;
  }

  .can-do__left {
    min-height: var(--prod-can-do-col-h);
    justify-content: center !important;
    gap: 32px !important;
  }

  .can-do__visual {
    min-height: var(--prod-can-do-col-h);
  }
}

/* ─── Sections (Figma: azv2cz / qp679d) ─── */
.section {
  padding: var(--prod-section-pad-mobile);
}

@media (min-width: 1024px) {
  .section {
    padding: var(--prod-section-pad-desktop-y) var(--prod-section-pad-desktop-x);
  }

  .section__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ─── Issuer features (Figma: 9s829v gap 200 pad 120 80; k8218z 494×618) ─── */
@media (min-width: 1024px) {
  .feature {
    gap: var(--prod-feature-gap-desktop) !important;
    padding: 0;
  }

  .section:has(.feature) {
    padding: var(--prod-feature-pad-desktop);
  }

  .feature__media {
    width: var(--prod-feature-img-w) !important;
    height: var(--prod-feature-img-h) !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }

  .feature__body,
  .feature__content {
    width: var(--prod-feature-text-w);
    max-width: var(--prod-feature-text-w);
  }
}

@media (max-width: 1023px) {
  .feature__media {
    max-height: 240px !important;
    aspect-ratio: 494 / 320 !important;
  }
}

/* ─── Issuer stats / get-more numbers ─── */
.get-more__num-row {
  height: auto !important;
  overflow: visible !important;
  width: fit-content;
  max-width: 100%;
}

.get-more__num {
  font-size: var(--prod-stat-value-size);
  line-height: var(--prod-stat-value-lh);
  letter-spacing: var(--prod-stat-value-ls);
  overflow: visible !important;
}

.testi__stat-line {
  width: var(--prod-stat-line-w) !important;
}

.testi__stat-value {
  font-size: var(--prod-stat-value-size);
  line-height: var(--prod-stat-value-lh);
}

/* ─── Issuer why title ─── */
.why__title {
  text-wrap: balance;
  max-width: none !important;
}

@media (min-width: 1024px) {
  .why__title {
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 1120px !important;
  }
}

/* ─── Global overflow (mobile zoom / white column) ─── */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

.site-header,
.site-header__inner,
.header-actions {
  max-width: 100%;
}

/* ─── Mobile feature stack: image below text, reduced height ─── */
@media (max-width: 1023px) {
  .feature {
    display: flex;
    flex-direction: column;
  }

  .feature__body {
    order: 1;
  }

  .feature__media {
    order: 2;
    width: 100% !important;
    max-height: 240px !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover;
  }

  .feature--reverse .feature__body {
    order: 1;
  }

  .feature--reverse .feature__media {

    order: 2;
  }
}

/* ─── Issuer feature: unified text block desktop ─── */
.feature__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

@media (min-width: 1024px) {
  .feature__body {
    justify-content: center !important;
  }
}

/* ─── Desktop: no hamburger / no inline mobile nav ─── */
@media (min-width: 1024px) {
  .hamburger,
  .mobile-nav {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
  }
}
