/* Compare All Challenges — Figma "Compare challenges" (osc-page width) */
/* Begin Your Journey: use .osc-page .challenge-floor-v2 rules in one-step-challenge.css */

.cmp-section--quick {
  padding-block: 20px;
}

@media (min-width: 1024px) {
  /* 80px CTA → quick links gap lives inside hero so glow is not clipped mid-gap */
  .cmp-hero--compare.osc-hero {
    overflow: visible;
  }

  .cmp-hero--compare .osc-hero__inner {
    padding-bottom: 80px;
  }

  .cmp-section--quick {
    padding-top: 0;
    padding-bottom: 20px;
  }
}

.cmp-glance__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cmp-glance__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .cmp-glance__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cmp-glance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--aifo-surface-border);
  border-radius: var(--aifo-surface-radius);
  overflow: hidden;
  background: var(--aifo-surface-bg);
}

.cmp-glance-card__glow {
  position: absolute;
  left: -61px;
  top: -393px;
  width: 726px;
  height: 726px;
  pointer-events: none;
}

.cmp-glance-card__glow img {
  width: 100%;
  height: 100%;
  max-width: none !important;
}

.cmp-glance-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cmp-glance-card__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmp-glance-card__icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #000;
  box-shadow: inset 0 -4px 13px #f98715;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cmp-glance-card__icon img {
  width: 24px;
  height: 24px;
}

.cmp-glance-card__roman {
  font-family: Kantumruy, Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f98715;
  line-height: 1;
}

.cmp-glance-card__title {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.18px;
  white-space: nowrap;
}

.cmp-glance-card__title span:first-child {
  color: #f98714;
}

.cmp-glance-card__title span:last-child {
  color: #fff;
}

.cmp-glance-card__features-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.cmp-glance-card__features-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ccc;
  line-height: 16px;
}

.cmp-glance-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmp-glance-card__features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #ccc;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: -0.14px;
}

.cmp-glance-card__features li img {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.cmp-glance-card .osc-btn--primary {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Mobile: Figma card carousel (node 15195:9106) — section px 12px */
#detailed-comparison {
  --cmp-carousel-inset: 12px;
}

/* Mobile: Figma card carousel (node 15195:9106) */
.cmp-compare-carousel {
  display: block;
  margin-inline: calc(-1 * var(--page-pad));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--cmp-carousel-inset);
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cmp-compare-carousel::-webkit-scrollbar {
  display: none;
}

.cmp-compare-carousel__track {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}

.cmp-compare-carousel__track::before,
.cmp-compare-carousel__track::after {
  content: "";
  display: block;
  flex: 0 0 var(--cmp-carousel-inset);
  width: var(--cmp-carousel-inset);
}

.cmp-compare-card {
  --cmp-col-border-grad: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.0128) 100%
  );
  position: relative;
  flex: 0 0 min(248px, calc(100vw - var(--page-pad) - 80px));
  width: min(248px, calc(100vw - var(--page-pad) - 80px));
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(249, 135, 21, 0.14) 60%);
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.cmp-compare-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--cmp-col-border-grad);
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.cmp-compare-card.is-highlight {
  border-color: #f98715;
  --cmp-2step-fade-end: 57.3%;
  --cmp-col-border-grad: linear-gradient(
    180deg,
    #f98715 0%,
    rgba(249, 135, 21, 0) var(--cmp-2step-fade-end)
  );
}

.cmp-compare-card.is-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 194px;
  max-height: 100%;
  pointer-events: none;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(249, 135, 21, 0.5) 0%, rgba(249, 135, 21, 0) 77.1%);
}

.cmp-compare-card__head {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
}

.cmp-compare-card__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmp-compare-card__row:last-child {
  border-bottom: 0;
}

.cmp-compare-card__label {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  color: #999;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 0.2px;
}

.cmp-compare-card__label img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.cmp-compare-card__value {
  flex-shrink: 0;
  max-width: 58%;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: -0.1px;
  text-align: right;
  white-space: normal;
  word-break: break-word;
}

.cmp-table-wrap--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .cmp-compare-carousel {
    display: none;
  }

  .cmp-table-wrap--desktop {
    display: block;
  }
}

.cmp-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp-table {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 700px;
}

.cmp-table__labels {
  flex: 0 0 130px;
  width: 130px;
}

@media (min-width: 1024px) {
  .cmp-table__labels {
    flex-basis: 150px;
    width: 150px;
  }
}

.cmp-table__labels-inner {
  border-radius: 16px 0 0 16px;
  background: linear-gradient(90deg, rgba(249, 135, 21, 0.14) 0%, rgba(249, 135, 21, 0) 100%);
}

.cmp-table__label-spacer {
  height: 64px;
}

.cmp-table__label {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
  padding: 12px 13px;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.cmp-table__label img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cmp-table__cols {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.cmp-table__col {
  --cmp-col-border-grad: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.0128) 100%
  );
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(249, 135, 21, 0.14) 60%);
  isolation: isolate;
}

.cmp-table__col::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--cmp-col-border-grad);
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

@media (min-width: 1024px) {
  .cmp-table__col {
    padding: 0 24px;
  }
}

.cmp-table__col.is-highlight {
  /* Figma 2-Step: column hug 450px, Rectangle 460 glow h 308px → fade at 308/450 */
  --cmp-2step-fade-end: calc(100% * 308 / 450);
  --cmp-col-border-grad: linear-gradient(
    180deg,
    #f98715 0%,
    rgba(249, 135, 21, 0) var(--cmp-2step-fade-end)
  );
}

.cmp-table__col.is-highlight::before {
  /* Interior glow only (export); not the stroke — do not use solid #f98715 here */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 308px;
  max-height: 100%;
  pointer-events: none;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(249, 135, 21, 0.5) 0%, rgba(249, 135, 21, 0) 77.1%);
}

.cmp-table__col-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 64px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.18px;
  white-space: nowrap;
  text-align: left;
}

@media (min-width: 1024px) {
  .cmp-table__col-head {
    font-size: 18px;
  }
}

.cmp-table__cell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.14px;
  text-align: left;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .cmp-table__cell {
    font-size: 14px;
  }
}

.cmp-table__cell:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmp-heading-lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cmp-hero--compare .osc-hero__inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cmp-hero--compare .osc-hero__copy {
  align-items: center;
}

.cmp-hero--compare .osc-hero__copy p {
  max-width: 600px;
  color: #ccc;
}
