/* =========================================================================
   Section 09 (node 1:2221) — feature row (4 items) + two large image cards
   Design height 875.5px = 80px top pad + 715.523px content + 80px bottom pad
   ========================================================================= */
.s09 {
  height: 875.5px;
  background: #ffffff;
  padding: 80px 0;
}

.s09-container { width: 1056px; }

/* Grid wrapper: absolutely-positioned children per Figma layout */
.s09-grid {
  position: relative;
  width: 1056px;
  height: 715.523px;
}

/* ---- 4 small feature items (each 264px wide, row at top) ---- */
.s09-feature {
  position: absolute;
  top: 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 25px 25px 25px 24px;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
  border-right: 1px solid rgba(34, 34, 34, 0.1);
}
.s09-feature--1 { left: 0; }
.s09-feature--2 { left: 264px; }
.s09-feature--3 { left: 528px; }
.s09-feature--4 {
  left: 792px;
  padding: 25px 24px;
  border-right: 0;
}

.s09-feature-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.s09-feature-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.s09-feature-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  white-space: nowrap;
}
.s09-feature-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 22.4px;
  letter-spacing: -0.35px;
  color: rgba(0, 0, 0, 0.75);
  width: 215px;
}
.s09-feature--4 .s09-feature-text { width: 216px; }

/* ---- Two large image cards ---- */
.s09-card {
  position: absolute;
  top: 130.8px;
  width: 528px;
  height: 584.727px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.s09-card--left {
  left: 0;
  padding: 80px 81px 80px 80px;
  border-right: 1px solid rgba(34, 34, 34, 0.1);
}
.s09-card--right {
  left: 528px;
  padding: 80px;
}

.s09-card-title {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #000000;
  white-space: nowrap;
  width: 100%;
}
.s09-card-text {
  margin: 0;
  padding-top: 8px;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: #6b7280;
}
.s09-card--left .s09-card-text { width: 367px; }
.s09-card--right .s09-card-text { width: 368px; }

.s09-card-media {
  width: 100%;
  padding-top: 24px;
}

/* Left card media — onboarding illustration */
.s09-onboarding {
  width: 367px;
  height: 315.867px;
  border-radius: 12px;
  overflow: hidden;
}
.s09-onboarding img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right card media — HIPAA badge over gradient sky background */
.s09-hipaa {
  position: relative;
  width: 368px;
  height: 316.727px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.s09-hipaa-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.s09-hipaa-inner {
  position: relative;
  width: 320px;
  height: 268.727px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.s09-hipaa-badge {
  width: 256px;
  height: 102.398px;
}

/* =========================================================================
   Responsive overrides — APPENDED. Desktop rules above unchanged.
   De-absolute-position the grid: features wrap, two big cards stack.
   ========================================================================= */
@media (max-width: 1024px) {
  .s09 {
    height: auto;
    padding: 64px 0;
  }
  .s09-container { width: 100%; }

  /* Grid → normal flow: features form a 2-up grid, cards span full width */
  .s09-grid {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  /* Feature items → no fixed widths, allow text wrap */
  .s09-feature {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    box-sizing: border-box;
    border-right: 1px solid rgba(34, 34, 34, 0.1) !important;
  }
  .s09-feature-title { white-space: normal; }
  .s09-feature-text,
  .s09-feature--4 .s09-feature-text { width: 100%; }

  /* remove right border on the right column of the 2-up grid */
  .s09-feature--2,
  .s09-feature--4 {
    border-right: 0 !important;
  }

  /* Cards span the full width and stack below the feature grid */
  .s09-card {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 520px;
    height: auto;
    grid-column: 1 / -1;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 48px 32px;
    border-right: 0 !important;
  }
  .s09-card:first-of-type { margin-top: 32px; }

  .s09-card-title { white-space: normal; }
  .s09-card--left .s09-card-text,
  .s09-card--right .s09-card-text { width: 100%; }

  /* Inner media must scale and not clip */
  .s09-card-media { width: 100%; }
  .s09-onboarding {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 367 / 315.867;
  }
  .s09-onboarding img { height: 100%; }

  .s09-hipaa {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 368 / 316.727;
  }
  .s09-hipaa-bg { height: 100%; }
  .s09-hipaa-inner {
    width: min(320px, 86%);
    height: auto;
    aspect-ratio: 320 / 268.727;
    max-width: 100%;
  }
  .s09-hipaa-badge {
    width: 100%;
    max-width: 256px;
    height: auto;
  }
}

@media (max-width: 600px) {
  /* Features → single column */
  .s09-grid {
    grid-template-columns: 1fr;
  }
  .s09-feature,
  .s09-feature--1,
  .s09-feature--2,
  .s09-feature--3,
  .s09-feature--4 {
    border-right: 0 !important;
  }

  .s09-card {
    max-width: 100%;
    padding: 40px 24px;
  }

  /* Reduce large card titles modestly */
  .s09-card-title {
    font-size: 18px;
    line-height: 26px;
  }
}
