/* Scoped to the new tool cards; existing homepage sections keep their styles. */
.image-tools-section { padding-top: 56px; scroll-margin-top: 112px; }
.image-tools-section .it-preview-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; padding: 12px 14px; border: 1px dashed #ccc6df; border-radius: 10px; background: #f0eef7; color: #756c89; font-size: 11px; }
.image-tools-section .it-preview-bar nav { display: flex; flex-wrap: wrap; gap: 5px; }
.image-tools-section .it-preview-bar a { display: inline-flex; padding: 6px 10px; border-radius: 6px; color: #6b627f; font-size: 12px; }
.image-tools-section .it-preview-bar a[aria-current] { background: #fff; box-shadow: 0 1px 4px #2520390d; color: #654eb2; font-weight: 600; }
.image-tools-section .it-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.image-tools-section .it-eyebrow { color: #7f759c; font: 11px/1.4 var(--font); letter-spacing: .13em; }
.image-tools-section h3 { margin-top: 10px; color: #212030; font: 600 36px/1.3 var(--font); letter-spacing: -.025em; }
.image-tools-section .it-intro { max-width: 28em; color: #798096; font-size: 13px; line-height: 1.8; }
.image-tools-section .it-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.image-tools-section .it-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid #ded9eb; border-radius: 16px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.image-tools-section .it-card:hover { border-color: #aa97de; box-shadow: 0 14px 32px #47336b0b; transform: translateY(-3px); }
.image-tools-section .it-visual { position: relative; border-bottom: 1px solid #e7e2ef; }
.image-tools-section .it-art { display: block; width: 100%; height: auto; }
.image-tools-section .it-visual-label { position: absolute; top: 17px; left: 20px; color: #83768f; font: 10px/1.4 var(--font); letter-spacing: .09em; }
.image-tools-section .it-card-content { flex: 1; display: flex; flex-direction: column; padding: 23px 25px 21px; }
.image-tools-section .it-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.image-tools-section .it-role { padding: 4px 9px; border-radius: 99px; background: #ede7fb; color: #7555b6; font-size: 11px; font-weight: 600; }
.image-tools-section .it-card-02 .it-role { color: #60748d; background: #edf1f5; }
.image-tools-section .it-provider { color: #9a97a6; font: 10px/1.4 var(--font); letter-spacing: .1em; }
.image-tools-section .it-heading { display: flex; align-items: center; gap: 12px; }
.image-tools-section .it-heading h4 { color: #282236; font: 600 25px/1.4 var(--font); letter-spacing: -.02em; overflow-wrap: anywhere; }
.image-tools-section .it-icon { display: none; }
.image-tools-section .it-icon svg { display: block; width: 28px; height: 28px; }
.image-tools-section .it-description { margin-top: 9px; color: #798094; font: 13px/1.8 var(--font); }
.image-tools-section .it-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 24px; }
.image-tools-section .it-host { color: #9493a0; font: 11px/1.5 var(--font); overflow-wrap: anywhere; }
.image-tools-section .it-open { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 15px; min-height: 40px; padding: 0 15px; border-radius: 7px; background: #7558cb; color: #fff; font-size: 13px; font-weight: 600; }
.image-tools-section .it-card-02 .it-open { background: #f4f1fa; color: #725e9e; }
.image-tools-section .it-open svg { width: 16px; height: 16px; }
.image-tools-section .it-note { margin-top: 14px; color: #8d8b9c; font-size: 11px; line-height: 1.7; }

/* Match the supplied reference, with the two entrances side by side. */
.image-tools-v1 { padding-top: 40px; }
.image-tools-v1 .it-grid { max-width: 960px; gap: 16px; }
.image-tools-v1 .it-section-heading { margin-bottom: 18px; }
.image-tools-section.image-tools-v1 h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 20px/1.4 var(--font); letter-spacing: 0; }
.image-tools-v1 h3 > span { font-size: 19px; }
.image-tools-v1 .it-card { border-radius: 18px; border-color: #acf0c6; background: linear-gradient(120deg, #effdf5, #dcf9e7); box-shadow: 0 16px 38px #377c5510; }
.image-tools-v1 .it-card-02 { border-color: #dbd2ff; background: linear-gradient(120deg, #f6f3ff, #ede9ff); box-shadow: 0 16px 38px #6643d014; }
.image-tools-v1 .it-card:hover { border-color: #80d9a3; box-shadow: 0 18px 40px #377c551a; }
.image-tools-v1 .it-card-02:hover { border-color: #bba5ff; box-shadow: 0 18px 40px #6643d01f; }
.image-tools-section.image-tools-v1 .it-card-content { padding: 18px 20px; }
.image-tools-v1 .it-heading { gap: 9px; }
.image-tools-v1 .it-reference-icon { flex: 0 0 23px; font-size: 21px; line-height: 1.2; }
.image-tools-section.image-tools-v1 .it-heading h4 { color: #2b6148; font: 600 16px/1.5 var(--font); letter-spacing: 0; }
.image-tools-section.image-tools-v1 .it-card-02 .it-heading h4 { color: #5923bc; }
.image-tools-section.image-tools-v1 .it-description { margin-top: 8px; color: #397d5d; font: 400 13px/1.7 var(--font); letter-spacing: 0; }
.image-tools-section.image-tools-v1 .it-card-02 .it-description { color: #7438f0; }
.image-tools-section.image-tools-v1 .it-card-footer { padding-top: 12px; }
.image-tools-section.image-tools-v1 .it-open { min-height: 32px; padding-inline: 13px; border-radius: 99px; background: #d4f2df; color: #367958; font: 500 12px/1.4 var(--font); gap: 7px; letter-spacing: 0; }
.image-tools-section.image-tools-v1 .it-card-02 .it-open { background: #e5dcff; color: #6e30e3; }

/* Version 2: compact, aligned editorial rows. */
.image-tools-v2 .it-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid #dfe2ee; border-radius: 14px; background: #fff; overflow: hidden; }
.image-tools-v2 .it-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; transform: none; }
.image-tools-v2 .it-card + .it-card { border-top: 1px solid #e6e3ed; }
.image-tools-v2 .it-card:hover { background: #faf8ff; }
.image-tools-v2 .it-visual { display: none; }
.image-tools-v2 .it-card-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 35px; row-gap: 0; padding: 25px 30px; }
.image-tools-v2 .it-card-meta { grid-column: 1; justify-content: flex-start; margin-bottom: 10px; }
.image-tools-v2 .it-heading { grid-column: 1; }
.image-tools-v2 .it-heading h4 { font-size: 23px; }
.image-tools-v2 .it-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #f0ebfb; color: #8168c5; }
.image-tools-v2 .it-card-02 .it-icon { background: #eef2f7; color: #73839d; }
.image-tools-v2 .it-description { grid-column: 1; margin: 6px 0 0 56px; }
.image-tools-v2 .it-card-footer { grid-column: 2; grid-row: 1 / span 3; padding: 0; display: flex; flex-direction: column-reverse; align-items: flex-end; justify-content: center; gap: 10px; }
.image-tools-v2 .it-open { background: transparent; color: #7255ba; padding: 0; }
.image-tools-v2 .it-card-02 .it-open { background: transparent; }

/* Version 3: a primary feature and a compact alternate entrance. */
.image-tools-v3 .it-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.image-tools-v3 .it-card-01 { position: relative; flex-direction: row; background: #211c33; border-color: #423853; }
.image-tools-v3 .it-card-01 .it-visual { position: absolute; inset: 0 0 0 45%; border: 0; opacity: .85; mask-image: linear-gradient(90deg, transparent, black 40%); }
.image-tools-v3 .it-card-01 .it-visual-label { display: none; }
.image-tools-v3 .it-card-01 .it-art { width: 100%; height: 100%; object-fit: cover; }
.image-tools-v3 .it-card-01 .it-card-content { position: relative; z-index: 1; padding: 30px; }
.image-tools-v3 .it-card-01 .it-card-meta { justify-content: flex-start; }
.image-tools-v3 .it-card-01 .it-provider { color: #b9abc9; }
.image-tools-v3 .it-card-01 .it-role { background: #51436a; color: #e4d7ff; }
.image-tools-v3 .it-card-01 .it-heading h4 { max-width: 9em; color: #faf7ff; font-size: 30px; }
.image-tools-v3 .it-card-01 .it-description { max-width: 19em; color: #c1b8ce; }
.image-tools-v3 .it-card-01 .it-host { color: #c9bdd5; }
.image-tools-v3 .it-card-01 .it-card-footer { flex-direction: column; align-items: flex-start; }
.image-tools-v3 .it-card-01 .it-open { background: #e6dcf9; color: #413253; }
.image-tools-v3 .it-card-02 { background: #f0ecf8; border-color: #ded5ee; }
.image-tools-v3 .it-card-02 .it-visual { display: none; }
.image-tools-v3 .it-card-02 .it-card-content { padding: 30px; }
.image-tools-v3 .it-card-02 .it-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
.image-tools-v3 .it-card-02 .it-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 13px; background: #fff9; color: #9b81c1; }
.image-tools-v3 .it-card-02 .it-heading h4 { font-size: 23px; }
.image-tools-v3 .it-card-02 .it-card-footer { flex-direction: column; align-items: flex-start; padding-top: 20px; }
.image-tools-v3 .it-card-02 .it-open { background: transparent; padding: 0; }

@media(max-width: 960px) {
  .image-tools-section .it-section-heading { gap: 24px; }
  .image-tools-section h3 { font-size: 30px; }
  .image-tools-section .it-heading h4 { font-size: 22px; }
  .image-tools-v3 .it-card-01 .it-heading h4 { font-size: 27px; }
  .image-tools-v3 .it-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media(max-width: 640px) {
  .image-tools-section { padding-top: 36px; }
  .image-tools-section .it-preview-bar { align-items: flex-start; padding: 10px; gap: 8px; margin-bottom: 22px; }
  .image-tools-section .it-preview-bar a { padding: 7px; font-size: 11px; }
  .image-tools-section .it-section-heading { display: block; margin-bottom: 20px; }
  .image-tools-section h3 { font-size: 27px; }
  .image-tools-section .it-intro { margin-top: 10px; font-size: 12px; }
  .image-tools-section .it-intro br { display: none; }
  .image-tools-section .it-grid { grid-template-columns: 1fr; gap: 14px; }
  .image-tools-section .it-card-content { padding: 20px; }
  .image-tools-section .it-heading h4 { font-size: 22px; }
  .image-tools-section .it-card-footer { padding-top: 19px; }
  .image-tools-v2 .it-grid { gap: 0; }
  .image-tools-v2 .it-card-content { grid-template-columns: 1fr; padding: 21px; }
  .image-tools-v2 .it-card-footer { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; margin-left: 56px; padding-top: 10px; }
  .image-tools-v2 .it-host { font-size: 10px; }
  .image-tools-v3 .it-card-01 .it-card-content,
  .image-tools-v3 .it-card-02 .it-card-content { padding: 24px; }
  .image-tools-v3 .it-card-01 .it-heading h4 { font-size: 28px; }
  .image-tools-v3 .it-card-01 .it-visual { display: none; }
}
@media(prefers-reduced-motion: reduce) {
  .image-tools-section .it-card { transition: none; }
  .image-tools-section .it-card:hover { transform: none; }
}

@media(max-width:640px) {
  .image-tools-v1 .it-grid { gap: 12px; }
  .image-tools-section.image-tools-v1 .it-card-content { padding: 16px 18px; }
  .image-tools-section.image-tools-v1 h3 { font-size: 20px; }
  .image-tools-section.image-tools-v1 .it-heading h4 { font-size: 16px; }
  .image-tools-section.image-tools-v1 .it-description { font-size: 12px; }
  .image-tools-v1 .it-heading { gap: 9px; }
}
