/**
 * Buy (main buyer entry) — page-specific styles
 * Inherits bulk layout; adds hero actions, trust block, two-tile chooser, 5-column value grid.
 */

/* Smooth scroll for anchor links (e.g. #how-it-works) */
html {
  scroll-behavior: smooth;
}

/* Hero: dual CTAs + trust block — no image, centered */
.buy-hero .hero-realm__inner {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.buy-hero .hero-realm__content {
  max-width: 640px;
  margin: 0 auto;
}

.buy-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 60px;
  justify-content: center;
}

.btn-hero--secondary {
  background: transparent;
  color: #201b16;
  border: 1px solid #c2410c;
}

.btn-hero--secondary:hover {
  background: #fff7ed;
  border-color: #ea580c;
}

.buy-hero__trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin-top: 16px;
  align-items: center;
}

.buy-trust__item {
  display: inline-flex;
  align-items: center;
  padding: 0;
  white-space: nowrap;
}

.buy-trust__item::before {
  content: "✓";
  color: #334155;
  margin-right: 8px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 900px) {
  .buy-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .buy-hero__trust {
    font-size: 14px;
    margin-top: 12px;
  }
  .buy-trust__item {
    white-space: normal;
    text-align: center;
  }
  .buy-trust__item::before {
    margin-right: 6px;
    font-size: 16px;
  }
}

/* Two-tile chooser: Warp-style (Scale effortlessly from 10 to 1000+…) */
.buy-chooser {
  background: #fff;
}

.buy-chooser--warp {
  position: relative;
  padding-top: 80px;
  padding-bottom: 100px;
}

.buy-chooser__blip {
  display: block;
  width: 48px;
  height: 4px;
  margin: 0 auto 48px;
  background: linear-gradient(90deg, transparent, #F07E13, transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.buy-chooser__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.buy-chooser__headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #0f172a;
}

.buy-chooser__headline-accent {
  color: #F07E13;
}

.buy-chooser__lead {
  font-size: 18px;
  line-height: 1.6;
  color: #64748b;
  max-width: 720px;
  margin: 0 auto 56px;
}

.buy-chooser__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.buy-tile {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: 20px;
  color: inherit;
  background: #f8fafc;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.buy-tile--warp:hover {
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
  transform: translateY(-4px);
}

.buy-tile__visual {
  display: block;
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
  /* Fallback when image is missing or loading */
  background: #f8fafc;
}

.buy-tile__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.buy-tile__visual--official {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
}

.buy-tile__visual--marketplace {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

.buy-tile--warp .buy-tile__title {
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  padding: 32px 32px 12px;
  color: #0f172a;
}

.buy-tile--warp .buy-tile__desc {
  font-size: 17px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
  padding: 0 32px 80px;
}

.buy-tile__cta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.buy-tile__cta:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.08);
}

.buy-tile--warp:hover .buy-tile__cta {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
  .buy-chooser__tiles {
    grid-template-columns: 1fr;
  }
  .buy-chooser--warp {
    padding-top: 56px;
    padding-bottom: 72px;
  }
}

/* Workflow — Warp-style: "Everything you need" feature rows (see joinwarp.com) */
.workflow--warp {
  background: #fff;
}

.workflow--warp .workflow-warp__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.workflow--warp .workflow-warp__header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.workflow--warp .workflow-warp__heading {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #0f172a;
}

.workflow--warp .workflow-warp__lead {
  font-size: 18px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.workflow--warp .workflow-warp__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow--warp .workflow-warp__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  min-height: 0;
}

.workflow--warp .workflow-warp__row:last-child {
  border-bottom: none;
}

.workflow--warp .workflow-warp__row--reverse .workflow-warp__content {
  order: 2;
}

.workflow--warp .workflow-warp__row--reverse .workflow-warp__visual {
  order: 1;
}

.workflow--warp .workflow-warp__label {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #b85a0d;
  margin-bottom: 12px;
}

.workflow--warp .workflow-warp__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #0f172a;
}

.workflow--warp .workflow-warp__desc {
  font-size: 17px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.workflow--warp .workflow-warp__visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.15);
}

.workflow--warp .workflow-warp__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
}

@media (max-width: 900px) {
  .workflow--warp .workflow-warp__inner {
    padding: 56px 20px 72px;
  }

  .workflow--warp .workflow-warp__header {
    margin-bottom: 48px;
  }

  .workflow--warp .workflow-warp__row,
  .workflow--warp .workflow-warp__row--reverse .workflow-warp__content,
  .workflow--warp .workflow-warp__row--reverse .workflow-warp__visual {
    grid-template-columns: 1fr;
    order: unset;
  }

  .workflow--warp .workflow-warp__row {
    gap: 32px;
    padding: 48px 0;
  }

  .workflow--warp .workflow-warp__visual {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Value stack: benefits grid style (2 rows × 3 cols, icon left of title, purple) */
.value-stack--benefits .value-cards--benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-stack--benefits .value-card--winden {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 0;
  padding: 32px 28px 40px;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: none;
}

.value-stack--benefits .value-card__icon--winden {
  color: #F07E13;
  flex: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.value-stack--benefits .value-card__icon--winden svg {
  width: 40px;
  height: 40px;
}

.value-stack--benefits .value-card__title--winden {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  padding: 0;
  color: #1e293b;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.value-stack--benefits .value-card__body--winden {
  font-size: 15px;
  font-weight: 400;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

@media (max-width: 1024px) {
  .value-stack--benefits .value-cards--benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .value-stack--benefits .value-cards--benefits {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Buyer Protection — Banner (2-column: dark left tag top-left/content bottom-left, light right benefits, orange accents) */
.buy-protection--banner {
  background: transparent;
}

.buy-protection__banner-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.buy-protection__banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.buy-protection__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
}

.buy-protection__panel--dark {
  background: #1a1a1a;
  color: #fff;
}

.buy-protection__panel--light {
  background: rgba(59, 59, 59, 1);
  color: #1a1a1a;
}

.buy-protection__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f07e13;
  margin: 0;
}

.buy-protection__banner-content {
  margin-top: auto;
}

.buy-protection__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #fff;
}

.buy-protection__quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.buy-protection__quote p {
  margin: 0 0 12px;
}

.buy-protection__quote-footer {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-style: normal;
}

.buy-protection__panel-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px;
  text-align: center;
}

.buy-protection__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buy-protection__benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.buy-protection__benefit-icon {
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(240, 126, 19, 0.15);
  color: #f07e13;
}

.buy-protection__benefit-icon svg {
  width: 22px;
  height: 22px;
}

.buy-protection__benefit-label {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
}

.buy-protection__benefit-desc {
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 768px) {
  .buy-protection__banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .buy-protection__panel {
    padding: 36px 24px;
  }

  .buy-protection__panel-desc {
    text-align: left;
  }
}

/* Platform features — Aave-style 2x2 cards with abstract graphics */
.buy-features {
  background: #fff;
}

.buy-features--aave {
  padding: 80px 20px 100px;
}

.buy-features--aave .value-stack__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

/* Match value-stack__heading style (Why buyers choose BuySellVouchers.) */
.buy-features__headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 48px;
  color: #000;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.buy-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.buy-features__card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 24px 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 4px 24px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.buy-features__card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 8px 32px rgba(15, 23, 42, 0.06);
}

.buy-features__icon-wrap {
  flex-shrink: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.buy-features__card-title {
  margin-top: auto;
}

.buy-features__graphic {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-features__graphic svg {
  width: 48px;
  height: 48px;
  display: block;
}

.buy-features__graphic--teal { color: #0d9488; }
.buy-features__graphic--orange { color: #ea580c; }
.buy-features__graphic--purple { color: #7c3aed; }
.buy-features__graphic--yellow { color: #ca8a04; }

.buy-features__card-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #0f172a;
  text-align: left;
}

.buy-features__card-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .buy-features--aave {
    padding: 56px 20px 72px;
  }
  .buy-features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .buy-features__headline {
    margin-bottom: 32px;
  }
  .buy-features__icon-wrap {
    height: 80px;
  }
  .buy-features__graphic {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .buy-features__card {
    padding: 20px 20px 18px;
    min-height: 220px;
  }
  .buy-features__icon-wrap {
    height: 72px;
  }
  .buy-features__graphic {
    width: 64px;
    height: 64px;
  }
  .buy-features__card-desc {
    font-size: 14px;
  }
}

/* Honest reviews — Runway-style "The good and the bad" */
.buy-reviews {
  background: #fafafa;
  padding-top: 120px;
  padding-bottom: 120px;
}

.buy-reviews__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.buy-reviews__tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 24px;
}

.buy-reviews__featured-quote {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f1a2a;
  margin: 0 0 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.buy-reviews__featured-attribution {
  font-size: 15px;
  font-weight: 400;
  color: #64748b;
  margin: 0 0 48px;
}

.buy-reviews__track {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.buy-reviews__track::before,
.buy-reviews__track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.buy-reviews__track::before {
  left: 0;
  background: linear-gradient(to right, #fafafa 0%, transparent 100%);
}

.buy-reviews__track::after {
  right: 0;
  left: auto;
  background: linear-gradient(to left, #fafafa 0%, transparent 100%);
}

.buy-reviews__grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  gap: 24px;
  padding: 0 24px;
  text-align: left;
  will-change: transform;
  animation: reviews-slide 80s linear infinite;
  -webkit-animation: reviews-slide 80s linear infinite;
}

@keyframes reviews-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@-webkit-keyframes reviews-slide {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

.buy-reviews__card {
  flex-shrink: 0;
  min-width: 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.buy-reviews__card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buy-reviews__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 10px;
}

.buy-reviews__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.buy-reviews__author {
  font-size: 15px;
  font-weight: 600;
  color: #0f1a2a;
  font-style: normal;
}

.buy-reviews__date {
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
}

.buy-reviews__quote {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #374151;
  margin: 0;
  font-style: normal;
}

@media (max-width: 640px) {
  .buy-reviews__card {
    min-width: 280px;
    max-width: 280px;
  }
  .buy-reviews__grid {
    animation-duration: 60s;
    -webkit-animation-duration: 60s;
  }
}

/* FAQ — Aave-style: white, two-column, accordion cards, blue +/−, See More */
.buy-faq {
  background: #fff;
  padding-top: 120px;
}

.buy-faq__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 64px;
  align-items: start;
}

@media (min-width: 768px) {
  .buy-faq__inner {
    grid-template-columns: minmax(200px, 280px) 1fr;
  }
}

.buy-faq__header {
  margin: 0;
}

.buy-faq__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.15;
}

.buy-faq__content {
  min-width: 0;
}

.buy-faq__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.buy-faq__item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.buy-faq__item:hover {
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
  transform: translateY(-4px);
}

.buy-faq__item:last-of-type {
  margin-bottom: 0;
}

.buy-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  gap: 16px;
}

.buy-faq__trigger:hover {
  background: #fafafa;
}

.buy-faq__trigger:focus-visible {
  outline: 2px solid #f07e13;
  outline-offset: 2px;
}

.buy-faq__question-text {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.buy-faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: #f07e13;
}

.buy-faq__item--open .buy-faq__icon {
  font-size: 22px;
}

.buy-faq__answer {
  padding: 0 24px 20px;
}

.buy-faq__answer[hidden] {
  display: none;
}

.buy-faq__answer p {
  margin: 0;
  padding: 0 0 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #666;
}

@media (max-width: 767px) {
  .buy-faq__trigger {
    padding: 18px 20px;
  }
  .buy-faq__question-text {
    font-size: 16px;
  }
  .buy-faq__answer {
    padding: 0 20px 18px;
  }
  .buy-faq__answer p {
    font-size: 14px;
  }
}

/* Scroll reveal — elements fade/slide in when entering viewport */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-reveal-delay] {
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}

/* Parallax — hero content moves slightly on scroll (JS sets transform) */
[data-parallax] {
  will-change: transform;
}
