.page-ai-fluency {
  background: var(--color-white);
}

.page-ai-fluency .site-header {
  border-bottom: 0;
}

.ai-fluency-hero {
  padding: 96px 0 0;
  background: var(--color-white);
}

.ai-fluency-hero__inner,
.ai-fluency-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ai-fluency-hero__inner {
  gap: 60px;
  text-align: center;
}

.ai-fluency-hero__copy .eyebrow {
  margin: 0 0 26px;
}

.ai-fluency-hero__title {
  max-width: 1100px;
  margin: 0;
  color: var(--color-gray-950);
  font-size: 54px;
  font-weight: 600;
  line-height: 1.12;
}

.ai-fluency-hero__description {
  margin: 24px 0 0;
  color: var(--color-gray-950);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.ai-fluency-hero__actions {
  margin-top: 24px;
}

.ai-fluency-hero__visual {
  width: min(100%, 1248px);
  margin: 0;
}

.ai-fluency-hero__visual img,
.ai-fluency-curve__visual img,
.ai-fluency-feature__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.ai-fluency-curve {
  padding: 0 0 100px;
  background: var(--color-white);
  scroll-margin-top: 180px;
}

.ai-fluency-curve__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ai-fluency-curve__copy .eyebrow {
  margin: 0 0 18px;
}

.ai-fluency-curve h2 {
  margin: 0;
  color: var(--color-gray-950);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.12;
}

.ai-fluency-curve h2 span {
  color: var(--color-purple-600);
}

.ai-fluency-curve__visual {
  width: 100%;
  margin: 0;
}

/*
 * Issue 4.2 (Viki): Adoption curve rebuilt as real HTML.
 * Design sourced from Figma node 6382:10499.
 * Outer panel (#f5f7f9 bg, #e9ecef border) wraps a two-column layout:
 * left = description text, right = white floating table card.
 * Decorative background is sourced from the Slack-provided D1 asset while
 * the foreground copy/table stay native and readable.
 */
.ai-fluency-curve__panel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  padding: 32px 32px 32px 16px;
  background:
    image-set(
      url("/assets/img/ai-fluency/adoption-curve-bg.webp") type("image/webp"),
      url("/assets/img/ai-fluency/adoption-curve-bg.png") type("image/png")
    ) center / cover no-repeat,
    #f5f7f9;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.ai-fluency-curve__lede {
  position: relative;
  z-index: 1;
  flex: 1 1 330px;
  align-self: center;
  max-width: 360px;
  padding: 32px 20px;
  margin: 0;
  color: var(--color-gray-950);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.ai-fluency-curve__lede strong {
  font-weight: 600;
}

.ai-fluency-curve__table-wrap {
  position: relative;
  z-index: 1;
  flex: 1 1 747px;
  min-width: 0;
  background: var(--color-white);
  border: 1px solid #dee3e7;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ai-fluency-curve__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 24px;
  color: #4a545e;
}

.ai-fluency-curve__table thead tr {
  background: rgba(232, 236, 239, 0.24);
  border-bottom: 1px solid #dee3e7;
}

.ai-fluency-curve__table th,
.ai-fluency-curve__table td {
  text-align: left;
  padding: 24px;
  vertical-align: middle;
}

.ai-fluency-curve__table thead th {
  color: #7e8b99;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  padding: 8px 24px;
}

.ai-fluency-curve__table tbody th {
  color: #272e35;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  width: 160px;
}

.ai-fluency-curve__table tbody td {
  font-weight: 400;
  letter-spacing: 0;
}

.ai-fluency-curve__table tbody tr + tr th,
.ai-fluency-curve__table tbody tr + tr td {
  border-top: 1px solid #f0f3f5;
}

.ai-fluency-feature {
  padding: 60px 0;
  background: var(--color-white);
}

.ai-fluency-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 594px) minmax(0, 514px);
  gap: 70px;
  align-items: center;
  justify-content: space-between;
}

.ai-fluency-feature__visual {
  width: min(100%, 594px);
  margin: 0;
}

.ai-fluency-feature__copy {
  max-width: 540px;
}

.ai-fluency-feature__copy h2 {
  margin: 0 0 24px;
  color: var(--color-gray-950);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
}

.ai-fluency-feature__copy p {
  margin: 0;
  color: var(--color-gray-950);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.38;
}

.ai-fluency-feature__copy p + p {
  margin-top: 22px;
}

.ai-fluency-feature__copy strong {
  font-weight: 700;
}

.ai-fluency-video {
  margin-top: 38px;
  padding: 0 0 100px;
  background: var(--color-white);
}

.ai-fluency-video .container {
  max-width: 1440px;
  padding-inline: 96px;
}

.ai-fluency-video__media {
  display: block;
  width: 100%;
  max-width: 1248px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  background: var(--color-gray-950);
  border: 0;
  border-radius: 12px;
}

.ai-fluency-feature--final {
  padding-bottom: 98px;
}

.ai-fluency-feature--post-video {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .ai-fluency-hero {
    padding-top: 72px;
  }

  .ai-fluency-hero__title {
    font-size: 42px;
  }

  .ai-fluency-curve h2,
  .ai-fluency-feature__copy h2 {
    font-size: 36px;
  }

  .ai-fluency-feature__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-fluency-feature__visual {
    margin-inline: auto;
  }

  .ai-fluency-feature,
  .ai-fluency-feature--post-video,
  .ai-fluency-feature--final {
    padding: 72px 0;
  }

  .ai-fluency-video {
    margin-top: 50px;
    padding: 0 0 50px;
  }

  .ai-fluency-video .container {
    padding-inline: 0;
  }
}

@media (max-width: 768px) {
  .ai-fluency-hero__inner {
    gap: 40px;
  }

  .ai-fluency-hero__title {
    font-size: 31px;
  }

  .ai-fluency-hero__description {
    max-width: 300px;
  }

  .ai-fluency-curve {
    padding-bottom: 72px;
    scroll-margin-top: 150px;
  }

  .ai-fluency-curve h2,
  .ai-fluency-feature__copy h2 {
    font-size: 31px;
  }

  /*
   * Issue 4.2 (Viki): Mobile-responsive adoption curve.
   * Stack the two-column panel vertically; table becomes card list.
   */
  .ai-fluency-curve__panel {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    background-position: center top;
  }

  .ai-fluency-curve__lede {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
    display: block;
  }

  .ai-fluency-curve__table-wrap {
    flex: 0 0 auto;
    width: 100%;
  }

  .ai-fluency-curve__table thead {
    display: none;
  }

  .ai-fluency-curve__table,
  .ai-fluency-curve__table tbody,
  .ai-fluency-curve__table tr,
  .ai-fluency-curve__table th,
  .ai-fluency-curve__table td {
    display: block;
    width: 100%;
  }

  .ai-fluency-curve__table tbody tr {
    padding: 16px 20px;
    border-top: 1px solid #f0f3f5;
  }

  .ai-fluency-curve__table tbody tr:first-child {
    border-top: 0;
  }

  .ai-fluency-curve__table tbody th {
    width: auto;
    padding: 0 0 8px;
    font-size: 18px;
    color: #272e35;
  }

  .ai-fluency-curve__table tbody td {
    padding: 2px 0;
    font-size: 14px;
    color: #4a545e;
  }

  .ai-fluency-curve__table tbody td::before {
    content: attr(data-label) " ";
    color: #7e8b99;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 2px;
  }

  .ai-fluency-feature__copy {
    max-width: 300px;
    margin-inline: auto;
  }

  .ai-fluency-feature--final .ai-fluency-feature__grid {
    gap: 24px;
  }

  /*
   * Issue 4 (Viki): Page container padding → 20px on mobile.
   */
  .page-ai-fluency .container {
    padding-inline: 20px;
  }

  /*
   * Issues 4.2 & 4.3 (Viki): Move feature images UNDER the text on mobile
   * (text first, image below) for all 3 feature blocks.
   */
  .ai-fluency-feature__grid {
    display: flex;
    flex-direction: column;
  }

  .ai-fluency-feature__copy {
    order: -1;
  }
}
