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

/* ══════════════════════════════════════════════════════════════
   HERO (Figma Make)
   ══════════════════════════════════════════════════════════════ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 880px;
  padding-top: 173px;
  padding-bottom: 0;
  text-align: center;
}
.hero__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.hero__title {
  font-family: Jost, var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.125;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 662px;
}
.hero-title-lines > span {
  display: block;
}
@media (min-width: 821px) {
  .hero-title-lines > span {
    white-space: nowrap;
  }
}
.hero__subtitle {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   HERO PATTERN STRIPS (Figma)
   ══════════════════════════════════════════════════════════════ */

.hero__pattern {
  position: relative;
  flex: 0 0 240.119px;
  overflow: hidden;
  line-height: 0;
  width: 100vw;
  height: 240.119px;
}
.hero__pattern-track {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  width: max-content;
  height: 240.119px;
  transform: translateX(-50%);
}
.hero__pattern-unit {
  position: relative;
  flex: 0 0 1920.24px;
  width: 1920.24px;
  height: 240.119px;
  overflow: hidden;
}
.hero__pattern-row,
.hero__pattern-edge {
  position: absolute;
  display: block;
  max-width: none;
  margin: 0;
}
.hero__pattern-row {
  left: 240.02px;
  width: 1440px;
}
.hero__pattern-row--top {
  top: 0;
  height: 120.176px;
}
.hero__pattern-row--bottom {
  top: 120px;
  height: 120.124px;
}
.hero__pattern-edge--left {
  top: 0;
  left: 0;
  width: 240.02px;
  height: 240.062px;
}
.hero__pattern-edge--right {
  top: 0.114px;
  left: 1680.02px;
  width: 240.22px;
  height: 240.005px;
  transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════════════════════════════════ */

.section--products {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.products__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}
.products__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  color: black;
}
.products__title {
  font-family: Jost, var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  color: black;
  margin: 0;
}

/* ── Card Geometry Decoration (bottom-right) ────────────────── */
.card {
  position: relative;
  overflow: hidden;
}
.card__geo {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 127px;
  height: 127px;
  pointer-events: none;
  z-index: 0;
}
.card__geo svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Card Icon Container (Figma glassmorphism) ───────────────── */
.card__icon {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   CARDS GRID (Products / Why CK / Markets)
   ══════════════════════════════════════════════════════════════ */

.cards {
  display: grid;
  gap: var(--space-5);
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 880px) {
  .cards--3 { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
}

.products__cards {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
}
@media (max-width: 880px) {
  .products__cards { flex-wrap: wrap; }
  .card-link { flex: 1 1 100%; min-width: 0; max-width: 461px; margin: 0 auto; }
  .card-link .card { width: 100%; }
}

.card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  flex: 0 0 384px;
  border-radius: var(--radius-xl);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card {
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.card--product {
  background: linear-gradient(132deg, #EDF8E0 3.8%, #E1F46D 38.2%, #ECFE7E 59.2%, #EBF8BA 95.6%);
  border: 1px solid rgba(255,255,255,0.4);
  color: #021914;
}
.card__icon {
  width: 62px; height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 100%);
  border: 1px solid white;
  padding: 16px;
  margin-bottom: 20px;
}

/* ── Card Title & Body ──────────────────────────────────────── */
.card__title {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.33;
}
.card__body {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  max-width: 320px;
}
@media (max-width: 767px) {
  .card__body { max-width: none; }
}

/* ── Product Cards (green-yellow gradient) ──────────────────── */
.card--product {
  background: linear-gradient(132deg, #EDF8E0 3.8%, #E1F46D 38.2%, #ECFE7E 59.2%, #EBF8BA 95.6%);
  color: #021914;
}
.card--product .card__body { color: #021914; }
.card--product > *:not(.card__geo) {
  position: relative;
  z-index: 1;
}

/* ── Why CK Section ──────────────────────────────────────────── */
.section--why {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.why__cards {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
}
@media (max-width: 880px) {
  .why__cards { flex-wrap: wrap; }
  .card--why { flex: 1 1 100%; min-width: 0; max-width: 400px; height: auto; min-height: 280px; margin: 0 auto; }
}

/* ── Why CK Cards (dark, Figma) ────────────────────────────── */
.card--why {
  position: relative;
  overflow: hidden;
  flex: 0 0 400px;
  height: 344px;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-xl);
  padding: 40px 40px 60px;
  box-shadow: var(--shadow-md);
}
.card__why-geo {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 170px;
  height: 214px;
  pointer-events: none;
  z-index: 0;
}
.card__why-geo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.card--why .card__icon {
  background: linear-gradient(180deg, #004B23 0%, rgba(0,75,35,0) 100%);
  border: 1px solid #004B23;
}
.card__icon--why {
  margin-bottom: 20px;
}
.card__title--why {
  color: #cdfa47;
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.33;
}
.card__body--why {
  color: #d1d5dc;
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}
.card__title--no-wrap {
  white-space: nowrap;
}
.card--why > *:not(.card__why-geo) {
  position: relative;
  z-index: 1;
}

/* ── Markets Section ────────────────────────────────────────── */
.section--markets {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background: white;
}
.markets__cards {
  display: flex;
  justify-content: center;
  gap: 48px;
  max-width: 1248px;
  width: 100%;
  margin: 0 auto;
}
/* ── Market Card (Figma) ───────────────────────────────────── */
.card--market {
  position: relative;
  overflow: hidden;
  flex: 0 0 600px;
  height: 344px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(142.5deg, #EDF8E0 3.8%, #E1F46D 38.2%, #ECFE7E 59.2%, #EBF8BA 95.6%);
  border-radius: 40px;
  padding: 40px;
  color: black;
  box-shadow: var(--shadow-md);
}
.card--market > * {
  position: relative;
  z-index: 1;
}
.market__circles {
  position: absolute;
  inset: -33.11% -10% -17.44% 23.68%;
  pointer-events: none;
  z-index: 0;
}
.market__circles svg {
  display: block;
  width: 100%;
  height: 100%;
}
.market__flag {
  display: flex;
  align-items: center;
  margin-bottom: auto;
}
.market__flag svg {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0.19px 0 rgba(66,71,76,0.32), 0 1.524px 2.286px 0 rgba(66,71,76,0.08);
}
.market__flag img {
  display: block;
}
.market__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.market__title {
  font-family: Jost, var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 32px;
  margin: 0;
  color: black;
}
.market__desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  color: black;
}
.market__map {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.market__map--ph {
  width: 239.244px;
  height: 245px;
  left: 293.12px;
  top: 34px;
}
.card--market:nth-child(2) .market__map,
.market__map--mx {
  width: 409px;
  height: 245px;
  left: 130px;
  top: 41px;
}

.market__map-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.market__map-shape--ph {
  width: 140.497px;
  height: 245px;
}

.market__map-shape--mx {
  width: 400px;
  height: 229.184px;
}

.market__map-shape img {
  position: absolute;
  display: block;
  max-width: none;
}

.market__map-shape--ph img {
  width: 117.44%;
  height: 109.99%;
  left: -8.72%;
  top: -1.73%;
}

.market__map-shape--mx img {
  width: 105.72%;
  height: 109.99%;
  left: -2.86%;
  top: -1.73%;
}

@media (max-width: 880px) {
  .markets__cards {
    width: min(100% - 40px, 390px);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 26px;
  }

  .card--market {
    width: min(100%, 390px);
    max-width: none;
    min-width: 0;
    height: 224px;
    min-height: 224px;
    flex: 0 0 auto;
    margin: 0 auto;
    padding: 26px;
    border-radius: 26px;
  }

  .market__text {
    max-width: 195px;
    gap: 10px;
  }

  .market__flag svg {
    width: 27.36px;
    height: 18.2px;
  }

  .market__flag img {
    width: 30px;
    height: 20px;
  }

  .market__title {
    font-size: 23px;
    line-height: 21px;
  }

  .market__desc {
    font-size: 10px;
    line-height: 16px;
    max-width: 195px;
  }

  .market__map--ph {
    width: 155.5px;
    height: 159.25px;
    left: auto;
    right: 45px;
    top: 25px;
    bottom: auto;
  }

  .market__map--mx {
    width: 239px;
    height: 143px;
    left: auto;
    right: 18px;
    top: 28px;
    bottom: auto;
    transform: translate(-36%, -15%);
  }

  .market__map-shape--ph {
    width: 91.32px;
    height: 159.25px;
  }

  .market__map-shape--mx {
    width: 234px;
    height: 134px;
  }

  .market__map-shape--ph img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
    object-position: center;
  }

  .market__map-shape--mx img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
    object-position: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE DARK THEME (Figma: Credit Kernel Homepage Dark)
   ══════════════════════════════════════════════════════════════ */

[data-theme="dark"] .hero,
[data-theme="dark"] .section--products,
[data-theme="dark"] .section--why,
[data-theme="dark"] .section--markets {
  background: transparent;
}

[data-theme="dark"] .hero__title,
[data-theme="dark"] .products__title {
  color: #e6eeea;
}

[data-theme="dark"] .hero__subtitle,
[data-theme="dark"] .card__body,
[data-theme="dark"] .card__body--why,
[data-theme="dark"] .market__desc {
  color: #d1d5dc;
}

[data-theme="dark"] .products__eyebrow {
  color: #e6eeea;
}

[data-theme="dark"] .products__eyebrow svg path:first-child {
  fill: #e6eeea;
}

[data-theme="dark"] .hero__pattern::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: rgba(0,30,8,.7);
  content: "";
  pointer-events: none;
}

[data-theme="dark"] .card--product,
[data-theme="dark"] .card--why,
[data-theme="dark"] .card--market {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 34.717px;
  box-shadow: none;
  backdrop-filter: blur(6.48px);
  -webkit-backdrop-filter: blur(6.48px);
}

[data-theme="dark"] .card--product {
  height: 320px;
}

[data-theme="dark"] .products__cards,
[data-theme="dark"] .why__cards {
  gap: 48px;
}

[data-theme="dark"] .card--why {
  flex-basis: 384px;
}

[data-theme="dark"] .card--product .card__title {
  color: #e6eeea;
}

[data-theme="dark"] .card--product:first-child .card__title {
  color: #cdfa47;
}

[data-theme="dark"] .card--product .card__icon,
[data-theme="dark"] .card--why .card__icon {
  background: linear-gradient(to bottom, #242424, rgba(36,36,36,0));
  border-color: #2e2e2e;
}

[data-theme="dark"] .card--product .card__icon svg path {
  fill: #fff;
}

[data-theme="dark"] .card--product:first-child .card__icon svg path {
  fill: #cdfa47;
}

[data-theme="dark"] .card--product .card__geo {
  opacity: .08;
}

[data-theme="dark"] .card--product .card__geo path {
  fill: #fff;
}

[data-theme="dark"] .card__title--why,
[data-theme="dark"] .card--why:first-child .card__title--why {
  color: #cdfa47;
}

[data-theme="dark"] .card--why:not(:first-child) .card__title--why {
  color: #e6eeea;
}

[data-theme="dark"] .market__title {
  color: #e6eeea;
}

[data-theme="dark"] .market__circles {
  opacity: .35;
}


@media (max-width: 767px) {
  .card { padding: 24px; }
  .products__header { margin-bottom: 32px; }
}


/* ══════════════════════════════════════════════════════════════
   ACTIVE GRID SYSTEM (legacy, used on sub-pages)
   ══════════════════════════════════════════════════════════════ */

.active-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.active-grid__cell {
  position: absolute;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity .5s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-grid__cell.is-active {
  opacity: 1;
  background: rgba(0, 208, 132, 0.08);
  box-shadow: 0 0 12px rgba(0, 208, 132, 0.04);
  animation: cell-pulse 3000ms ease-in-out infinite;
}

@keyframes cell-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .active-grid__cell.is-active {
    animation: none;
    opacity: 0.7;
  }
}


/* ══════════════════════════════════════════════════════════════
   LEGACY HOME SECTIONS (kept for reference, can be removed)
   ══════════════════════════════════════════════════════════════
   The rest of pages.css handles sub-pages (relay, marketplace, etc.)
   All new homepage styles are above this line.
   ══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   RELAY PAGE (Figma: Credit Kernel — Light—Relay)
   ══════════════════════════════════════════════════════════════ */

.relay-page {
  color: #021914;
  background: #fff;
  overflow: hidden;
}

.relay-page h1,
.relay-page h2,
.relay-page h3 {
  color: #021914;
}

.relay-shell {
  width: min(1248px, calc(100% - 48px));
  margin: 0 auto;
}

.relay-hero {
  min-height: 500px;
  padding: 60px 24px;
  display: grid;
  place-items: center;
  background: #fff;
}

.relay-hero__content {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  text-align: center;
}

.relay-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.relay-hero h1 {
  max-width: 700px;
  font-family: var(--font-display);
  font-size: clamp(56px, 5.1vw, 80px);
  font-weight: 700;
  line-height: 1.125;
  letter-spacing: -.01em;
}

.relay-hero p {
  max-width: 720px;
  color: #2d3b33;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.relay-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn--relay-pill {
  height: 60px;
  width: 240px;
  padding: 0 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.btn--relay-pill--lender {
  background: #00cd5f;
  color: #021914;
}

.btn--relay-pill--lender:hover {
  background: #00b854;
}

.btn--relay-pill--platform {
  background: transparent;
  color: #03241a;
  border: 2px solid #00cd5f;
}

.btn--relay-pill--platform:hover {
  background: #f0faf5;
}

.relay-hero-gap {
  height: 40px;
  background: #fff;
}

.relay-intro,
.relay-integrations,
.relay-how,
.relay-faq {
  background: #f7f9f8;
}

.relay-intro {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 60px 0;
}

.relay-intro__layout,
.relay-lenders__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.relay-section-copy {
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.relay-section-copy--right {
  width: 490px;
}

.relay-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #021914;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.relay-eyebrow img {
  width: 18px;
  height: 22px;
  object-fit: contain;
}

.relay-section-copy h2,
.relay-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 3.5vw, 54px);
  font-weight: 700;
  line-height: 62px;
  letter-spacing: -.01em;
}

.relay-section-copy__body {
  max-width: 490px;
  color: #2d3b33;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.relay-intro__graphic {
  width: 400px;
  height: 400px;
  flex: 0 0 auto;
  object-fit: contain;
  transform: rotate(180deg);
}

.relay-lenders {
  min-height: 680px;
  padding: 60px 0;
  display: grid;
  align-items: center;
  background: #fff;
}

.relay-lenders__features {
  width: 514px;
  height: 560px;
  padding: 38px 0;
  display: grid;
  grid-template-rows: repeat(3, 148px);
  gap: 20px;
  overflow: hidden;
  border-radius: 40px;
  background: #f7f9f8;
}

.relay-lender-feature {
  height: 148px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-radius: 70px 70px 200px 70px;
  background: transparent;
}

.relay-lender-feature h3,
.relay-platform-card h3,
.relay-how-card h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -.01em;
}

.relay-lender-feature p,
.relay-platform-card p,
.relay-how-card p {
  color: #2d3b33;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.relay-lenders__arrow {
  width: 40px;
  height: 80px;
  flex: 0 0 auto;
}

.relay-integrations,
.relay-how {
  min-height: 660px;
  padding: 80px 0;
}

.relay-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

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

.relay-integration-grid,
.relay-platform-grid,
.relay-how-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.relay-integration-card {
  position: relative;
  height: 320px;
  padding: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 36px;
  border-radius: 40px;
  background-image:
    url("/assets/images/relay/relay-card-decoration.svg"),
    linear-gradient(132deg, #edf8e0 4%, #e1f46d 38%, #ecfe7e 59%, #ebf8ba 96%);
  background-position: right bottom, center;
  background-repeat: no-repeat;
  background-size: 127px 127px, cover;
  box-shadow: 0 10px 30px rgba(24,45,33,.04);
}

.relay-integration-card:nth-child(n+2) {
  background-image:
    url("/assets/images/relay/relay-card-vector.svg"),
    url("/assets/images/relay/relay-card-decoration.svg"),
    linear-gradient(132deg, #edf8e0 4%, #e1f46d 38%, #ecfe7e 59%, #ebf8ba 96%);
  background-position: right -24px bottom -24px, right bottom, center;
  background-size: 170px 214px, 127px 127px, cover;
}

.relay-integration-card__badge {
  width: 140px;
  min-height: 54px;
  padding: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0));
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.relay-integration-card h3 {
  min-height: 32px;
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.relay-integration-card p {
  margin: 0;
  color: #2d3b33;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.relay-platforms {
  min-height: 524px;
  padding: 80px 0;
  background: #fff;
}

.relay-platforms .relay-heading {
  align-items: center;
  text-align: center;
}

.relay-platform-grid {
  margin-top: 48px;
}

.relay-platform-card {
  position: relative;
  height: 208px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  border-radius: 40px;
  background: #f7f9f8;
}

.relay-platform-card::after {
  width: 24px;
  height: 24px;
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: url("/assets/images/relay/relay-platform-arrow.svg") center/contain no-repeat;
  content: "";
  transform: scaleY(-1);
}

.relay-how-grid {
  margin-top: 48px;
}

.relay-how-card {
  height: 344px;
  padding: 40px 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-radius: 70px 70px 200px 70px;
}

.relay-how-card:not(:first-child) {
  border-radius: 40px;
}

.relay-how-card__num {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #00cd5f, rgba(0,205,95,0));
  color: #021914;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.relay-how-card div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.relay-faq {
  min-height: 1042px;
  padding: 80px 24px;
}

.relay-faq__inner {
  width: min(944px, 100%);
  margin: 0 auto;
}

.relay-faq__list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.relay-faq-item {
  overflow: hidden;
  border: 1.2px solid rgba(255,255,255,.75);
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 14px 28px rgba(47,125,49,.02);
}

.relay-faq-item[open] {
  height: 186px;
}

.relay-faq-item summary {
  min-height: 86px;
  padding: 23px 24px 23px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  color: #021914;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.relay-faq-item summary::-webkit-details-marker {
  display: none;
}

.relay-faq-item summary i {
  width: 38px;
  height: 38px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(0,205,95,.1);
}

.relay-faq-item summary i::before,
.relay-faq-item summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #00a64d;
  content: "";
  transform: translate(-50%, -50%);
}

.relay-faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .18s ease;
}

.relay-faq-item[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0);
}

.relay-faq-item p {
  padding: 24px 36px;
  border-top: 1px solid rgba(0,205,95,.18);
  background: #f2fff8;
  color: #2d3b33;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

@media (max-width: 1100px) {
  .relay-intro__layout,
  .relay-lenders__layout {
    gap: 48px;
  }

  .relay-intro__graphic {
    width: 330px;
    height: 330px;
  }

  .relay-lenders__features {
    width: 46%;
  }

  .relay-lenders__arrow {
    display: none;
  }

  .relay-section-copy--right {
    width: 46%;
  }

  .relay-integration-grid,
  .relay-platform-grid,
  .relay-how-grid {
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .relay-shell {
    width: min(100% - 40px, 600px);
  }

  .relay-hero {
    min-height: 450px;
    padding: 56px 20px;
  }

  .relay-hero h1 {
    font-size: clamp(46px, 12vw, 64px);
    line-height: 1.08;
  }

  .relay-hero p {
    font-size: 17px;
    line-height: 25px;
  }

  .relay-intro,
  .relay-lenders,
  .relay-integrations,
  .relay-platforms,
  .relay-how,
  .relay-faq {
    min-height: 0;
    padding: 64px 0;
  }

  .relay-intro__layout,
  .relay-lenders__layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .relay-section-copy,
  .relay-section-copy--right,
  .relay-lenders__features {
    width: 100%;
  }

  .relay-intro__graphic {
    width: min(360px, 100%);
    aspect-ratio: 1;
    height: auto;
    align-self: center;
  }

  .relay-lenders__features {
    min-height: 0;
    gap: 16px;
  }

  .relay-lender-feature {
    min-height: 190px;
    border-radius: 40px !important;
  }

  .relay-section-copy h2,
  .relay-heading h2 {
    font-size: 40px;
    line-height: 46px;
  }

  .relay-integration-grid,
  .relay-platform-grid,
  .relay-how-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .relay-integration-card,
  .relay-platform-card,
  .relay-how-card {
    min-height: 260px;
    border-radius: 32px;
  }

  .relay-faq {
    padding-right: 16px;
    padding-left: 16px;
  }

  .relay-faq-item summary {
    min-height: 74px;
    padding: 18px 18px 18px 22px;
    font-size: 17px;
    line-height: 24px;
  }

  .relay-faq-item p {
    padding: 0 22px 22px;
  }
}

/* Marketplace — Figma light secondary page */
.marketplace-page {
  overflow: hidden;
  background: #fff;
  color: #021914;
}

.marketplace-page h1,
.marketplace-page h2 {
  font-family: var(--font-display);
  color: #021914;
}

.marketplace-page h3 {
  font-family: var(--font-sans);
  color: #021914;
}

.marketplace-shell {
  width: min(1248px, calc(100% - 48px));
  margin: 0 auto;
}

.marketplace-hero {
  height: 500px;
  padding: 60px 24px;
  display: grid;
  place-items: center;
  background: #fff;
  text-align: center;
}

.marketplace-hero__content {
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.marketplace-hero__content > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.marketplace-hero h1 {
  white-space: nowrap;
  font-size: 80px;
  font-weight: 700;
  line-height: 90px;
  letter-spacing: -.01em;
}

.marketplace-hero p {
  width: min(988px, 100%);
  color: #2d3b33;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.marketplace-hero-gap {
  height: 40px;
  background: #fff;
}

.marketplace-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #021914;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.marketplace-eyebrow img {
  width: 16px;
  height: 16px;
}

.marketplace-section-copy,
.marketplace-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

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

.marketplace-section-copy {
  width: 400px;
}

.marketplace-section-copy--right {
  width: 514px;
}

.marketplace-section-copy h2,
.marketplace-heading h2 {
  font-size: 54px;
  font-weight: 700;
  line-height: 62px;
  letter-spacing: -.01em;
}

.marketplace-section-copy__body {
  color: #2d3b33;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

.marketplace-challenge {
  height: 680px;
  padding: 60px 0;
  background: #f7f9f8;
}

.marketplace-challenge__layout {
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marketplace-challenge__arrow {
  width: 40px;
  height: 80px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.marketplace-challenge__arrow img {
  width: 40px;
  height: 40px;
}

.marketplace-challenge__cards {
  width: 514px;
  height: 560px;
  padding: 38px 0;
  display: grid;
  grid-template-rows: repeat(3, 148px);
  gap: 20px;
  overflow: hidden;
  border-radius: 40px;
  background: #fff;
}

.marketplace-challenge-card {
  height: 148px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-radius: 70px 70px 200px 70px;
}

.marketplace-challenge-card h3,
.marketplace-how-card h3,
.marketplace-feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -.01em;
}

.marketplace-challenge-card p,
.marketplace-how-card p,
.marketplace-feature-card p {
  color: #2d3b33;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.marketplace-solution {
  height: 520px;
  padding: 60px 0;
  background: #fff;
}

.marketplace-solution__layout {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marketplace-solution__graphic {
  width: 400px;
  height: 400px;
}

.marketplace-how {
  height: 660px;
  padding: 80px 0;
  background: #f7f9f8;
}

.marketplace-how__grid,
.marketplace-features__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.marketplace-how-card {
  position: relative;
  height: 320px;
  padding: 40px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 54px auto;
  align-content: start;
  justify-items: start;
  row-gap: 36px;
  border-radius: 40px;
  background-image:
    url("/assets/images/relay/relay-card-decoration.svg"),
    linear-gradient(132deg, #edf8e0 4%, #e1f46d 38%, #ecfe7e 59%, #ebf8ba 96%);
  background-position: right bottom, center;
  background-repeat: no-repeat;
  background-size: 127px 127px, cover;
  box-shadow: 0 10px 30px rgba(24,45,33,.04);
}

.marketplace-how-card:nth-child(n+2) {
  background-image:
    url("/assets/images/relay/relay-card-vector.svg"),
    url("/assets/images/relay/relay-card-decoration.svg"),
    linear-gradient(132deg, #edf8e0 4%, #e1f46d 38%, #ecfe7e 59%, #ebf8ba 96%);
  background-position: right -24px bottom -24px, right bottom, center;
  background-size: 170px 214px, 127px 127px, cover;
}

.marketplace-how-card__num {
  width: fit-content;
  min-width: 54px;
  min-height: 54px;
  padding: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0));
  color: #021914;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.marketplace-how-card div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.marketplace-how-card h3,
.marketplace-feature-card h3,
.relay-platform-card h3 {
  margin: 0;
}

.marketplace-how-card p,
.marketplace-feature-card p,
.relay-platform-card p {
  margin: 0;
}

.marketplace-features {
  height: 524px;
  padding: 80px 0;
  background: #fff;
}

.marketplace-feature-card {
  position: relative;
  height: 208px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  border-radius: 40px;
  background: #f7f9f8;
}

.marketplace-feature-card::after {
  width: 24px;
  height: 24px;
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: url("/assets/images/relay/relay-platform-arrow.svg") center/contain no-repeat;
  content: "";
  transform: scaleY(-1);
}

.marketplace-faq {
  min-height: 936px;
  height: auto;
  padding: 80px 24px;
  background: #f7f9f8;
}

.marketplace-faq__inner {
  width: min(944px, 100%);
  margin: 0 auto;
}

.marketplace-faq__list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marketplace-faq-item {
  overflow: hidden;
  border: 1.2px solid rgba(255,255,255,.75);
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 14px 28px rgba(47,125,49,.02);
}

.marketplace-faq-item[open] {
  min-height: 186px;
  height: auto;
}

.marketplace-faq-item summary {
  min-height: 86px;
  padding: 23px 24px 23px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  color: #021914;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.marketplace-faq-item summary::-webkit-details-marker {
  display: none;
}

.marketplace-faq-item summary i {
  width: 38px;
  height: 38px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(0,205,95,.1);
}

.marketplace-faq-item summary i::before,
.marketplace-faq-item summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #00a64d;
  content: "";
  transform: translate(-50%, -50%);
}

.marketplace-faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .18s ease;
}

.marketplace-faq-item[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0);
}

.marketplace-faq-item p {
  padding: 24px 36px;
  border-top: 1px solid rgba(0,205,95,.18);
  background: #f2fff8;
  color: #2d3b33;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

/* Verifai — Figma light secondary page */
.verifai-page {
  overflow: hidden;
  background: #fff;
  color: #021914;
}

.verifai-top-gap {
  height: 74px;
  background: #fff;
}

.verifai-hero {
  min-height: 946px;
  height: auto;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  background: #fff;
}

.verifai-hero__copy {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.verifai-hero .btn--hero {
  min-height: 60px;
  flex: 0 0 60px;
}

.verifai-hero__copy > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.verifai-hero h1 {
  color: #021914;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  line-height: 90px;
  letter-spacing: -.01em;
}

.verifai-hero__copy p {
  width: min(876px, 100%);
  color: #2d3b33;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.verifai-visual {
  width: min(1248px, 100%);
  height: 480px;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 120px;
  background: #021914;
  isolation: isolate;
  clip-path: inset(0 round 120px);
}

.verifai-visual__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}

.verifai-visual__corner {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  object-fit: fill;
}

.verifai-visual__corner--top {
  top: 0;
  left: 0;
  width: 162px;
  height: 162px;
}

.verifai-visual__corner--bottom {
  right: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
}

.verifai-visual__label {
  position: absolute;
  top: 50%;
  left: 92px;
  z-index: 1;
  color: rgba(255,255,255,.4);
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 700;
  line-height: 90px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

@media (max-width: 1100px) {
  .marketplace-hero h1,
  .verifai-hero h1 {
    white-space: normal;
    font-size: 64px;
    line-height: 72px;
  }

  .marketplace-challenge__layout,
  .marketplace-solution__layout {
    gap: 40px;
  }

  .marketplace-challenge__arrow {
    display: none;
  }

  .marketplace-section-copy,
  .marketplace-section-copy--right,
  .marketplace-challenge__cards {
    width: 48%;
  }

  .marketplace-how__grid,
  .marketplace-features__grid {
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .hero {
    height: auto;
    min-height: 0;
    gap: 48px;
    padding-top: 64px;
  }

  .marketplace-shell {
    width: min(100% - 40px, 600px);
  }

  .marketplace-hero,
  .marketplace-challenge,
  .marketplace-solution,
  .marketplace-how,
  .marketplace-features,
  .marketplace-faq,
  .verifai-hero {
    height: auto;
    min-height: 0;
    padding: 64px 16px;
  }

  .marketplace-hero {
    min-height: 450px;
  }

  .marketplace-hero h1,
  .verifai-hero h1 {
    font-size: clamp(44px, 12vw, 60px);
    line-height: 1.08;
  }

  .marketplace-hero p,
  .verifai-hero__copy p {
    font-size: 17px;
    line-height: 25px;
  }

  .marketplace-challenge__layout,
  .marketplace-solution__layout {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .marketplace-section-copy,
  .marketplace-section-copy--right,
  .marketplace-challenge__cards {
    width: 100%;
  }

  .marketplace-section-copy h2,
  .marketplace-heading h2 {
    font-size: 40px;
    line-height: 46px;
  }

  .marketplace-challenge__cards {
    height: auto;
    padding: 0;
    grid-template-rows: none;
    background: transparent;
  }

  .marketplace-challenge-card {
    height: auto;
    min-height: 180px;
    border-radius: 40px;
    background: #fff;
  }

  .marketplace-solution__graphic {
    width: min(400px, 100%);
    height: auto;
    align-self: center;
  }

  .marketplace-how__grid,
  .marketplace-features__grid {
    grid-template-columns: 1fr;
  }

  .marketplace-how-card,
  .marketplace-feature-card {
    height: auto;
    min-height: 260px;
    border-radius: 32px;
  }

  .marketplace-faq-item[open] {
    height: auto;
  }

  .marketplace-faq-item summary {
    min-height: 74px;
    padding: 18px 18px 18px 22px;
    font-size: 17px;
    line-height: 24px;
  }

  .marketplace-faq-item p {
    padding: 20px 22px 22px;
  }

  .verifai-top-gap {
    height: 32px;
  }

  .verifai-hero__copy {
    min-height: 0;
  }

  .verifai-visual {
    height: 52vw;
    min-height: 240px;
    border-radius: 48px;
    clip-path: inset(0 round 48px);
  }

  .verifai-visual__corner--top {
    width: 90px;
    height: 90px;
  }

  .verifai-visual__corner--bottom {
    width: 70px;
    height: 70px;
  }

  .verifai-visual__label {
    left: 30px;
    font-size: clamp(32px, 10vw, 54px);
    line-height: 1;
  }
}

/* About — Figma light secondary page */
.about-page {
  overflow: hidden;
  background: #fff;
  color: #021914;
}

.about-shell {
  width: min(1248px, calc(100% - 48px));
  margin: 0 auto;
}

.about-hero {
  height: 500px;
  padding: 60px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-align: center;
}

.about-hero__copy {
  width: min(859px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-hero h1 {
  color: #021914;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  line-height: 90px;
  letter-spacing: -.01em;
}

.about-hero p {
  width: min(773px, 100%);
  color: #021914;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.about-team {
  height: 717px;
  padding: 80px 0 64px;
  background: #f7f9f8;
}

.about-heading {
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.about-eyebrow img {
  width: 16px;
  height: 16px;
}

.about-heading h2 {
  color: #000;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  line-height: 62px;
  letter-spacing: -.01em;
}

.about-team__grid {
  height: 413px;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.about-team-card {
  height: 413px;
  overflow: hidden;
  border: 3px solid #000;
  border-radius: 40px;
  background: #fff;
}

.about-team-card__header {
  height: 124px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #000;
}

.about-team-card h3 {
  position: absolute;
  top: 44px;
  left: 28px;
  z-index: 2;
  color: #000;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  text-transform: uppercase;
}

.about-team-card__shape {
  position: absolute;
  top: 0;
  right: 0;
  height: 124px;
  overflow: hidden;
}

.about-team-card__shape img {
  position: absolute;
  display: block;
}

.about-team-card__shape--robin {
  width: 155px;
}
.about-team-card__shape--robin img:first-child {
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
}
.about-team-card__shape--robin img:last-child {
  bottom: 0;
  left: 0;
  width: 84px;
  height: 84px;
  transform: rotate(180deg);
}

.about-team-card__shape--kevin {
  width: 144px;
}
.about-team-card__shape--kevin img:first-child {
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  transform: scaleX(-1);
}
.about-team-card__shape--kevin img:last-child {
  bottom: 0;
  left: 0;
  width: 84px;
  height: 84px;
  transform: rotate(180deg) scaleX(-1);
}

.about-team-card__shape--yiru {
  width: 168px;
}
.about-team-card__shape--yiru img:first-child {
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  transform: rotate(180deg) scaleX(-1);
}
.about-team-card__shape--yiru img:last-child {
  top: 34px;
  left: 30px;
  width: 60px;
  height: 120px;
  transform: rotate(90deg);
}

.about-team-card__body {
  height: 289px;
  padding: 45px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
}

.about-team-card__body strong {
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
}

.about-team-card__body p {
  color: #021914;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

body:has(.about-page) .site-footer {
  height: 276px;
  padding-top: 62px;
  padding-bottom: 60px;
}

@media (max-width: 1100px) {
  .about-team {
    height: auto;
  }

  .about-team__grid {
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .about-team-card {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .about-shell {
    width: min(100% - 40px, 600px);
  }

  .about-hero {
    height: auto;
    min-height: 450px;
    padding: 64px 16px;
  }

  .about-hero h1 {
    font-size: clamp(44px, 12vw, 60px);
    line-height: 1.08;
  }

  .about-hero p {
    font-size: 17px;
    line-height: 25px;
  }

  .about-team {
    padding: 64px 0;
  }

  .about-heading {
    height: auto;
  }

  .about-heading h2 {
    font-size: 40px;
    line-height: 46px;
  }

  .about-team__grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .about-team-card {
    height: 413px;
  }

  .about-team-card__body {
    height: 289px;
    min-height: 289px;
  }

  body:has(.about-page) .site-footer {
    height: auto;
  }
}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES  (privacy · terms)
   ══════════════════════════════════════════════════════════════ */

.legal-page {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 96px;
}

.legal-page__container {
  max-width: 800px;
}

.legal-page__header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-page__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.legal-page__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-page__meta {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-contact {
  display: inline-block;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--accent) !important;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .legal-page { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 64px; }
  .legal-page__header { margin-bottom: 40px; }
}
