/**
 * Section-specific styles
 */

/* ============ Hero ============ */
.hero {
  padding: 0 50px 0;
  max-width: 1920px;
  margin-inline: auto;
}

.hero__card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  min-height: 794px;
  background-color: #0a1330;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--tx-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 32px;
}

.hero__content {
  padding: 140px 110px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1080px;
  flex: 1;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: var(--fs-display-1);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--tx-white);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero__subtitle {
  font-family: var(--font-family);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h1);
  line-height: 1.3;
  color: var(--tx-white);
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* Force single line on tablet/desktop (mobile uses .br-mo to break) */
@media (min-width: 641px) {
  .hero__subtitle { white-space: nowrap; }
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Stats bar — sits at the bottom inside the hero card */
.hero__stats {
  margin: 0 32px;
  position: relative;
  z-index: 2;
  padding: 20px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.stat__value {
  font-family: var(--font-family);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h1);
  line-height: 1.2;
  color: var(--tx-white);
}

.stat__arrow {
  display: inline-block;
  margin-left: 2px;
}

.stat__label {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h5);
  line-height: 1.4;
  color: var(--tx-white);
  opacity: 0.95;
}

.stat__divider {
  width: 1px;
  height: 68px;
  background-color: var(--border-light);
  opacity: 0.4;
}

/* ============ Hero responsive ============ */
@media (max-width: 1440px) {
  .hero__title { font-size: 64px; }
  .hero__subtitle { font-size: 32px; }
  .hero__content { padding: 100px 80px 0; max-width: 920px; }
  .stat__value { font-size: 36px; }
}

@media (max-width: 1280px) {
  .hero { padding: 0 24px 0; margin-bottom: 60px; }
  .hero__title { font-size: 56px; }
  .hero__subtitle { font-size: 26px; }
  .hero__content { padding: 80px 60px 0; }
  .stat__value { font-size: 30px; }
  .stat__label { font-size: 16px; }
  .hero__stats { margin: 0 24px; padding: 16px 24px; }
}

@media (max-width: 1024px) {
  .hero__card { min-height: 680px; }
  .hero__title { font-size: 48px; }
  .hero__subtitle { font-size: 22px; }
  .hero__content { padding: 60px 40px 0; gap: 32px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 16px 32px; padding: 20px; }
  .hero__stats .stat__divider { display: none; }
}

@media (max-width: 640px) {
  .hero {
    padding: 0 16px 0;
    margin-bottom: 60px;
  }
  .hero__card {
    border-radius: 24px;
    min-height: 0;
    justify-content: flex-start;
    gap: 24px;
    padding-bottom: 24px;
  }
  .hero__content {
    flex: 0 0 auto;
    padding: 40px 20px 0;
    gap: 24px;
    align-items: center;
    text-align: center;
  }
  .hero__text {
    align-items: center;
    text-align: center;
  }
  .hero__title {
    font-size: 36px;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 18px;
    line-height: 1.4;
  }
  .hero__actions {
    width: 100%;
    gap: 12px;
    justify-content: center;
  }
  .hero__actions .btn { flex: 1 1 0; }
  .hero__actions .btn--primary { flex-basis: 100%; }   /* full-width row, PMS/TMS wrap below */
  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  .hero__stats {
    margin: 0 20px;
    padding: 20px 16px;
    gap: 16px 24px;
  }
  .stat__value { font-size: 22px; }
  .stat__label { font-size: 13px; }
}

/* ============ Section 2: Solutions ============ */
/* Use inherited .section padding (120 T/B) — no override */

/* ============ Section 3: Dark intro ============ */
.section-dark-intro {
  position: relative;
  min-height: 480px;
  padding: 0;
  margin: 0;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  color: var(--tx-white);
  background-color: #0a1a3a;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%),
    url('../images/section-dark-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.section-dark-intro__inner {
  max-width: 1820px;
  margin-inline: auto;
  padding: 80px 160px;
  width: 100%;
}

.section-dark-intro__title {
  font-family: var(--font-family);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-2);
  line-height: 1.2;
  color: var(--tx-white);
  margin-bottom: 20px;
}

.section-dark-intro__desc {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h5);
  line-height: 1.4;
  color: var(--tx-white);
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .section-dark-intro__inner { padding: 60px 40px; }
  .section-dark-intro__title { font-size: 36px; }
  .section-dark-intro__desc { font-size: 16px; }
}
@media (max-width: 640px) {
  .section-dark-intro { min-height: 360px; }
  .section-dark-intro__inner { padding: 48px 24px; }
  .section-dark-intro__title { font-size: 28px; }
}

/* ============ Sections 4 & 5: Solution detail (PMS / TMS) ============ */
/* PMS↔TMS gap = 50 + 50 = 100 (matches Figma parent itemSpacing) */
.solution-detail {
  padding: 50px 0;
  background: var(--bg-primary);
}
/* First solution-detail (after dark intro): top 100 to match Figma gap */
.section-dark-intro + .solution-detail {
  padding-top: 100px;
}
/* Last solution-detail (TMS): bottom 120 to match Figma Frame 5749 paddingBottom */
#tms {
  padding-bottom: 120px;
}

.solution-detail__inner {
  max-width: 1820px;
  margin-inline: auto;
  padding: 0 160px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ----- Diagonal-corner badge ----- */
.solution-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: var(--fw-bold);
  font-size: 28px;
  line-height: 1;
  color: var(--tx-white);
  border-radius: 16px 0 16px 0;
  align-self: flex-start;
}
.solution-badge--primary     { background-color: var(--interactive-primary); }
.solution-badge--accent-blue { background-color: var(--interactive-accent-blue); }

/* ----- Head (title + more link) ----- */
.solution-detail__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 17px;
  flex-wrap: wrap;
}

.solution-detail__head-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.solution-detail__title {
  font-family: var(--font-family);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h2);
  line-height: 1.2;
  color: var(--tx-primary);
}

.solution-detail__desc {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h5);
  line-height: 1.4;
  color: var(--tx-secondary);
}

.solution-detail__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  color: var(--tx-primary);
  transition: color 0.15s ease;
}
.solution-detail__more:hover {
  color: var(--interactive-primary);
}
.solution-detail__more .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.solution-detail__more:hover .arrow {
  transform: translateX(3px);
}

/* ----- Images grid (2 columns) ----- */
.solution-detail__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.solution-detail__image {
  aspect-ratio: 791.5 / 480;
  border-radius: 20px;
  background-color: var(--gray-200);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-muted);
  font-size: var(--fs-caption-1);
}
.solution-detail__image::after {
  content: attr(data-placeholder);
  opacity: 0.5;
}
.solution-detail__image[style*="background-image"]::after { display: none; }

/* ----- Tag pills ----- */
.tag-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background-color: var(--bg-surface);
  font-family: var(--font-family);
  font-size: var(--fs-h5);
  font-weight: var(--fw-regular);
  color: var(--tx-primary);
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 1280px) {
  .solution-detail__inner { padding: 0 60px; }
  .solution-detail__title { font-size: 26px; }
}
@media (max-width: 1024px) {
  .solution-detail { padding: 80px 0; }
  .solution-detail__inner { padding: 0 24px; gap: 32px; }
  .solution-detail__head { flex-direction: column; align-items: flex-start; }
  .solution-detail__images { grid-template-columns: 1fr; gap: 12px; }
  .solution-badge { font-size: 22px; padding: 10px 18px; }
}
@media (max-width: 640px) {
  .solution-detail { padding: 60px 0; }
  .solution-detail__inner { padding: 0 16px; gap: 20px; }
  /* Full-width badge (matches Figma mobile) */
  .solution-badge {
    align-self: stretch;
    width: 100%;
    justify-content: center;
    font-size: 20px;
    padding: 8px 16px;
  }
  .solution-detail__head { gap: 17px; }
  .solution-detail__head-text { gap: 12px; }
  .solution-detail__title { font-size: 24px; }
  .solution-detail__desc { font-size: 16px; }
  .solution-detail__more { font-size: 20px; }
  .tag { padding: 8px 20px; font-size: 14px; flex: 0 0 auto; }
  /* Tags become horizontal swipe rows (no wrapping) */
  .tag-row {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tag-row::-webkit-scrollbar { display: none; }
}

/* ============ Section 6: Expansion (RIDEUS + Type1) ============ */
.section-expansion {
  background-color: var(--bg-surface);
  padding: 120px 0;
}

.section-expansion__inner {
  max-width: 1820px;
  margin-inline: auto;
  padding: 0 160px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-expansion__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.section-expansion__title {
  font-family: var(--font-family);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-2);
  line-height: 1.2;
  color: var(--tx-primary);
}

.section-expansion__desc {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h5);
  line-height: 1.4;
  color: var(--tx-secondary);
}

/* Feature row: text + image side by side */
.feature-row {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 40px;
  align-items: center;
}

.feature-row--reverse {
  grid-template-columns: 1fr 640px;
}
.feature-row--reverse .feature-row__content {
  order: 2;
}
.feature-row--reverse .feature-row__image {
  order: 1;
}

.feature-row__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-row__title {
  font-family: var(--font-family);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: 1.3;
  color: var(--tx-primary);
}

.feature-row__desc {
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body-2);
  line-height: 1.6;
  color: var(--tx-secondary);
}

.feature-row__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-family);
  font-size: var(--fs-h5);
  font-weight: var(--fw-medium);
  color: var(--interactive-accent-blue);
  align-self: flex-start;
  transition: opacity 0.15s ease;
}
.feature-row__more:hover {
  opacity: 0.8;
}
.feature-row__more .arrow {
  transition: transform 0.2s ease;
}
.feature-row__more:hover .arrow {
  transform: translateX(3px);
}

/* --accent kept for any explicit blue links elsewhere (same as default now) */
.feature-row__more--accent {
  color: var(--interactive-accent-blue);
}

.feature-row__image {
  aspect-ratio: 920 / 400;
  border-radius: 20px;
  background-color: var(--gray-200);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-muted);
  font-size: var(--fs-caption-1);
}
.feature-row__image::after {
  content: attr(data-placeholder);
  opacity: 0.5;
}
.feature-row__image[style*="background-image"]::after { display: none; }

@media (max-width: 1280px) {
  .section-expansion__inner { padding: 0 60px; }
  .section-expansion__title { font-size: 36px; }
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
  }
  .feature-row--reverse .feature-row__content { order: unset; }
  .feature-row--reverse .feature-row__image { order: unset; }
}
@media (max-width: 768px) {
  .section-expansion { padding: 80px 0; }
  .section-expansion__inner { padding: 0 24px; gap: 32px; }
  .section-expansion__title { font-size: 28px; }
  .section-expansion__desc { font-size: 16px; }
  .feature-row__title { font-size: 22px; }
}
@media (max-width: 640px) {
  .section-expansion { padding: 60px 0; }
  .section-expansion__inner { padding: 0 16px; }
  .feature-row,
  .feature-row--reverse { gap: 16px; }
  .feature-row__content { gap: 8px; }
  .feature-row__title { font-size: 20px; }
  .feature-row__desc { font-size: 16px; }
  .feature-row__more { font-size: 14px; }
}

/* ============ Section 7: Success cases ============ */
.section-cases {
  background-color: var(--bg-primary);
  padding: 120px 0;
}

.section-cases__inner {
  max-width: 1820px;
  margin-inline: auto;
  padding: 0 160px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section-cases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.section-cases__header-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-cases__title {
  font-family: var(--font-family);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-2);
  line-height: 1.2;
  color: var(--tx-primary);
}

.section-cases__desc {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h5);
  line-height: 1.4;
  color: var(--tx-secondary);
}

.section-cases__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  color: var(--tx-primary);
  transition: color 0.15s ease;
}
.section-cases__more:hover { color: var(--interactive-primary); }
.section-cases__more .arrow {
  transition: transform 0.2s ease;
}
.section-cases__more:hover .arrow {
  transform: translateX(3px);
}

/* Case grid → full-bleed horizontal swipe carousel.
   First card aligns with the content edge; the row bleeds to the right
   viewport edge so the next card peeks (swipe hint). */
.case-grid {
  --case-inset: max(160px, calc((100% - 1820px) / 2 + 160px));
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding: 20px var(--case-inset) 24px;  /* top/bottom room so hover lift + shadow aren't clipped */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--case-inset);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
}
.case-grid::-webkit-scrollbar { display: none; }  /* WebKit */
.case-grid { cursor: grab; }
.case-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;   /* free drag; snaps to nearest card on release */
  scroll-behavior: auto;
  user-select: none;
}
.case-grid.is-dragging .case-card,
.case-grid.is-dragging .case-card * { cursor: grabbing; }

.case-card {
  flex: 0 0 calc((min(100vw, 1820px) - 380px) / 4);  /* keep current 4-up width */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.case-card__image {
  position: relative;
  aspect-ratio: 425 / 280;
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  background-color: #F4F4F8;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 48px 56px;       /* logo breathing room (adjustable) */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--tx-muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover .case-card__image {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.case-card__image::after {
  content: attr(data-placeholder);
  font-size: var(--fs-caption-1);
  font-weight: var(--fw-medium);
  opacity: 0.4;
}
.case-card__image[style*="background-image"]::after { display: none; }

/* Badge inside the case image (top-left) */
.case-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 20px;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: var(--fs-body-1);
  font-weight: var(--fw-regular);
  color: var(--tx-white);
  line-height: 1;
}
.case-badge--primary { background-color: var(--interactive-primary); }
.case-badge--accent  { background-color: var(--interactive-accent-blue); }

.case-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.case-card__client {
  font-family: var(--font-family);
  font-size: var(--fs-body-2);
  font-weight: var(--fw-regular);
  color: var(--tx-secondary);
}

.case-card__title {
  font-family: var(--font-family);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  color: var(--tx-primary);
}

.case-card__desc {
  font-family: var(--font-family);
  font-size: var(--fs-h5);
  font-weight: var(--fw-regular);
  line-height: 1.4;
  color: var(--tx-secondary);
}

/* Title → desc gap should be 4 (not body's 12) */
.case-card__title + .case-card__desc {
  margin-top: -8px;
}

/* Desktop ≥ 1281px: 4-column static grid, no swipe */
@media (min-width: 1281px) {
  .case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    cursor: default;
  }
  .case-card {
    flex: initial;
    width: auto;
  }
  .case-grid.is-dragging { cursor: default; }
}

@media (max-width: 1280px) {
  .section-cases__inner { padding: 0 60px; }
  .case-grid { --case-inset: 60px; }
  .case-card { flex-basis: 42%; }  /* ~2.3 cards visible */
  .section-cases__title { font-size: 36px; }
}
@media (max-width: 768px) {
  .section-cases { padding: 80px 0; }
  .section-cases__inner { padding: 0 24px; }
  .section-cases__title { font-size: 28px; }
  .section-cases__desc { font-size: 16px; }
  .section-cases__more { font-size: 18px; }
  .case-grid { --case-inset: 24px; }
  .case-card { flex-basis: 80%; }  /* ~1.2 cards visible */
}
@media (max-width: 640px) {
  .section-cases { padding: 60px 0; }
  .section-cases__inner { padding: 0 16px; }
  .case-grid { --case-inset: 16px; }
  /* Card text scales down to match Figma mobile */
  .case-badge { font-size: var(--fs-body-2); }       /* 16px */
  .case-card__client { font-size: var(--fs-caption-1); } /* 14px */
  .case-card__title { font-size: var(--fs-h5); }     /* 20px */
  .case-card__desc { font-size: var(--fs-body-2); }  /* 16px */
}

/* ============ Section 8: Customer logos ============ */
.section-customers {
  background-color: var(--bg-surface);
  padding: 120px 0;
}

.section-customers__inner {
  max-width: 1820px;
  margin-inline: auto;
  padding: 0 160px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-customers__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-customers__title {
  font-family: var(--font-family);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-2);
  line-height: 1.2;
  color: var(--tx-primary);
}

.section-customers__desc {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h5);
  line-height: 1.4;
  color: var(--tx-secondary);
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.customer-logo {
  height: 80px;
  background-color: var(--bg-primary);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 12px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-muted);
  font-size: var(--fs-caption-2);
  font-weight: var(--fw-medium);
  transition: box-shadow 0.15s ease;
}
.customer-logo:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.customer-logo::after {
  content: attr(data-placeholder);
  opacity: 0.4;
}
.customer-logo[style*="background-image"]::after { display: none; }

@media (max-width: 1280px) {
  .section-customers__inner { padding: 0 60px; }
  .customer-grid { grid-template-columns: repeat(4, 1fr); }
  .section-customers__title { font-size: 36px; }
}
@media (max-width: 768px) {
  .section-customers { padding: 80px 0; }
  .section-customers__inner { padding: 0 24px; }
  .section-customers__title { font-size: 28px; }
  .section-customers__desc { font-size: 16px; }
  .customer-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .customer-logo { height: 64px; }
}

/* ============ Final CTA section ============ */
.cta-section {
  background-color: #0a1330;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--tx-white);
  padding: 80px 160px;
  text-align: center;
}
/* PMS page CTA uses its own background image (different from the home page) */
.cta-section--pms {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/pms-cta-bg.jpg');
}
/* TMS page CTA background */
.cta-section--tms {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/tms-cta-bg.png');
}
/* K.RIDEUS page CTA background */
.cta-section--rideus {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/rideus-cta-bg.jpg');
}
/* License page CTA background */
.cta-section--license {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/license-cta-bg.jpg');
}

.cta-section__content {
  max-width: 1600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-section__title {
  font-family: var(--font-family);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-2);
  line-height: 1.35;
  color: var(--tx-white);
}

@media (max-width: 1280px) {
  .cta-section { padding: 80px 60px; }
  .cta-section__title { font-size: 40px; }
}
@media (max-width: 768px) {
  .cta-section {
    padding: 60px 24px;
  }
  .cta-section__title {
    font-size: 28px;
  }
}

/* ============ Cases page: filter chips + 4-col grid ============ */
.case-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 60px;
}
.case-filter__chip {
  appearance: none;
  padding: 10px 20px;
  border-radius: 40px;
  border: 1px solid var(--gray-300);
  background: transparent;
  color: var(--tx-primary);
  font-family: var(--font-family);
  font-size: var(--fs-h5);            /* 20px */
  font-weight: var(--fw-regular);
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.case-filter__chip:hover { background-color: var(--gray-200); }
.case-filter__chip.is-active {
  background-color: var(--interactive-accent-blue);
  color: var(--tx-white);
  border-color: var(--interactive-accent-blue);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 20px;                     /* row-gap 60, col-gap 20 */
}
/* Inside .cases-grid the card's carousel flex-basis is irrelevant (grid sizes it) */

@media (max-width: 1280px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* Filter chips → single-row horizontal scroll on mobile, bleeds to viewport edges */
  .case-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 -16px 40px;
    padding: 8px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .case-filter::-webkit-scrollbar { display: none; }
  .case-filter__chip {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: var(--fs-body-2);
  }

  .cases-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Larger logos on a full-width mobile card (smaller padding inside image box) */
  .cases-grid .case-card__image { padding: 32px 40px; }
}


/* ============ Legal pages (privacy / terms / location) ============
   Template: Figma 304:815. 2-col layout — sticky title left + content right.
   Type hierarchy: 60 Montserrat Black title → 36 Bold article → 24 SemiBold subhead → 20 Regular body */

/* Opt out of the scroll-reveal system: legal docs are ~10000px tall, so the
   IntersectionObserver threshold (0.12) can never be met by a viewport-sized
   slice, leaving the page blank forever. Force everything visible immediately. */
.js main > section.legal-page,
.js .legal-page .reveal,
.js .legal-page.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.legal-page {
  padding: 80px 50px 120px;
  max-width: 1920px;
  margin: 0 auto;
}
.legal-layout {
  display: grid;
  grid-template-columns: 221px minmax(0, 1024px);
  column-gap: 460px;
  align-items: start;
}
.legal-title {
  position: sticky;
  top: 140px;
  font-family: ''Montserrat'', sans-serif;
  font-weight: 900;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--interactive-primary);
  white-space: nowrap;
}
.legal-content { min-width: 0; }
.legal-article + .legal-article { margin-top: 60px; }
.legal-article__heading {
  font-family: var(--font-family);
  font-weight: var(--fw-bold);                 /* 700 */
  font-size: 36px;
  line-height: 1.2;
  color: var(--tx-default);                    /* #222 */
  margin: 0 0 24px;
}
.legal-subheading {
  font-family: var(--font-family);
  font-weight: var(--fw-semibold);             /* 600 */
  font-size: 24px;
  line-height: 1.3;
  color: var(--tx-default);
  margin: 32px 0 12px;
}
.legal-content p,
.legal-content li,
.legal-content td,
.legal-content th {
  font-family: var(--font-family);
  font-weight: var(--fw-regular);              /* 400 */
  font-size: 20px;
  line-height: 1.4;                            /* 140% per Figma */
  color: #555;
}
.legal-content p { margin: 0 0 12px; }
.legal-content p + p { margin-top: 8px; }
.legal-content ul,
.legal-content ol {
  margin: 8px 0 16px;
  padding-left: 24px;
  list-style: disc;
}
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 6px; }
.legal-content li::marker { color: #888; }
.legal-content strong { font-weight: var(--fw-semibold); color: var(--tx-default); }
.legal-content em { font-style: normal; font-weight: var(--fw-semibold); color: var(--tx-default); }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 18px;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--gray-300);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 18px;
}
.legal-content th {
  background: var(--gray-100, #F4F4F8);
  font-weight: var(--fw-semibold);
  color: var(--tx-default);
}
.legal-content a {
  color: var(--interactive-accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-meta {
  margin-top: 60px;
  padding: 20px 24px;
  background: var(--gray-100, #F4F4F8);
  border-radius: 12px;
}
.legal-meta p { margin: 0; font-size: 16px; color: #555; }
.legal-meta p + p { margin-top: 4px; }

/* ============ Responsive — Legal ============ */
@media (max-width: 1440px) {
  .legal-layout { column-gap: 200px; grid-template-columns: 221px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .legal-page { padding: 60px 32px 80px; }
  .legal-layout {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .legal-title {
    position: static;
    font-size: 44px;
    white-space: normal;
  }
  .legal-article__heading { font-size: 28px; margin-bottom: 16px; }
  .legal-subheading { font-size: 20px; margin: 24px 0 10px; }
  .legal-content p,
  .legal-content li,
  .legal-content td,
  .legal-content th { font-size: 16px; line-height: 1.5; }
  .legal-content th,
  .legal-content td { padding: 10px 12px; font-size: 15px; }
  .legal-article + .legal-article { margin-top: 40px; }
}
@media (max-width: 640px) {
  .legal-page { padding: 40px 16px 60px; }
  .legal-title { font-size: 36px; }
  .legal-article__heading { font-size: 22px; }
  .legal-subheading { font-size: 18px; }
  .legal-content p,
  .legal-content li,
  .legal-content td,
  .legal-content th { font-size: 15px; }
  .legal-content th,
  .legal-content td { padding: 8px 10px; font-size: 14px; }
  .legal-meta { padding: 16px; }
}
