.avs-deliverables-section {
  --avs-result-accent: #bd165f;
  --avs-result-ink: #12334b;
  padding-block: 84px 96px;
  background: #f2f4f7;
  color: var(--avs-result-ink);
}

.avs-deliverables-inner {
  max-width: 1180px;
  margin-inline: auto;
}

.avs-deliverables-section .section-head {
  margin-bottom: 40px;
  gap: 32px;
}

.avs-deliverables-section .section-head h2,
.avs-deliverables-section .section-head p {
  margin-bottom: 0;
}

.avs-deliverables-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.avs-deliverable-entry {
  display: grid;
  min-width: 0;
}

/* The shared tablet grid otherwise stretches an odd last card across the row. */
.avs-deliverables-section .avs-deliverables-grid > .avs-deliverable-entry {
  grid-column: auto;
}

.avs-deliverable-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 10px;
  border: 1px solid #dce5eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 51, 75, .035);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), border-color .5s ease, box-shadow .6s ease;
}

.avs-result-preview {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 248px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(155deg, #f4f8fb 0%, #f9f6f8 64%, #faedf3 100%);
  color: var(--avs-result-ink);
  font-size: 12px;
  line-height: 1.4;
}

.avs-result-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(20%) sepia(66%) saturate(2540%) hue-rotate(311deg) brightness(84%) contrast(96%);
}

.avs-preview-paper {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: 13px;
  background: linear-gradient(180deg, #fff, #f7fafc);
}

.avs-paper-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #516b7e;
  font-size: 10px;
  font-weight: 500;
}

.avs-paper-heading .avs-result-icon {
  width: 14px;
  height: 14px;
  color: var(--avs-result-accent);
}

.avs-preview-paper > strong {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.avs-paper-line {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 9px;
  border-radius: 2px;
  background: #e5ecf1;
}

.avs-paper-line-short { width: 65%; }

.avs-paper-highlight {
  margin: 14px -6px 12px;
  padding: 9px 7px;
  border-left: 2px solid #e11d74;
  background: #fdf0f6;
  color: #8f164a;
  font-size: 10px;
}

.avs-paper-highlight .avs-paper-line {
  width: 70%;
  background: #efd0de;
}

.avs-preview-message {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dbe5eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 51, 75, .08);
  font-size: 12px;
  font-weight: 600;
  transition: transform .75s cubic-bezier(.16, 1, .3, 1), box-shadow .65s ease;
}

.avs-preview-message > span:last-child { min-width: 0; }

.avs-message-front {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 16px;
  right: 16px;
  border-color: #dd90b2;
}

.avs-message-symbol,
.avs-deliverable-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fce8f1;
  color: var(--avs-result-accent);
}

.avs-message-detail {
  display: block;
  margin-top: 3px;
  color: #587083;
  font-size: 11px;
  font-weight: 400;
}

.avs-review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f4;
  font-size: 11px;
  color: #516b7e;
}

.avs-review-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid #9cadb9;
  border-radius: 50%;
}

.avs-review-row-focus { color: var(--avs-result-accent); }
.avs-review-row-focus .avs-review-dot { border-color: currentColor; background: #f7d4e4; }

.avs-plan-thread {
  position: relative;
  height: 100%;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.avs-message-plan-start { width: 87%; align-self: flex-start; }
.avs-message-plan-start .avs-message-symbol { background: #edf4f8; color: #376783; }
.avs-message-plan-end { width: 96%; align-self: flex-end; border-color: #dd90b2; }

.avs-plan-connector {
  position: relative;
  height: 18px;
  flex: 0 0 18px;
  width: 1px;
  background: #d58cac;
}

.avs-plan-connector::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #d58cac;
  border-bottom: 1px solid #d58cac;
  transform: rotate(45deg);
}

/* Device silhouettes belong to the illustration, not to interactive controls. */
.avs-device {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #17384e;
  box-shadow: 0 14px 24px rgba(18, 51, 75, .18);
  transition: transform .75s cubic-bezier(.16, 1, .3, 1);
}

.avs-device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f8fbfd;
}

.avs-device-phone {
  top: 13px;
  width: 160px;
  height: 226px;
  padding: 16px 6px 10px;
  border: 2px solid #849caa;
  border-radius: 22px;
}

.avs-device-phone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(50% - 17px);
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: #a1b2bd;
}

.avs-device-phone::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: calc(50% - 19px);
  width: 38px;
  height: 2px;
  border-radius: 2px;
  background: #a1b2bd;
}

.avs-device-phone .avs-device-screen { border-radius: 10px; }
.avs-device-phone .avs-paper-heading { gap: 5px; margin-bottom: 15px; font-size: 9px; }
.avs-device-phone .avs-preview-paper { padding: 12px 10px; }
.avs-device-phone .avs-preview-paper > strong { font-size: 13px; }
.avs-device-phone .avs-paper-highlight { margin-top: 12px; }

.avs-device-laptop {
  top: 25px;
  width: calc(100% - 54px);
  max-width: 280px;
  height: 168px;
  padding: 11px 5px 6px;
  border: 1px solid #849caa;
  border-radius: 8px 8px 3px 3px;
}

.avs-device-laptop::before {
  content: "";
  position: absolute;
  top: 4px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9cb2c2;
}

.avs-device-laptop::after {
  content: "";
  position: absolute;
  left: -13px;
  right: -13px;
  bottom: -10px;
  height: 10px;
  border-bottom: 2px solid #607e91;
  border-radius: 1px 1px 10px 10px;
  background: linear-gradient(180deg, #dce6ec, #98aeba);
}

.avs-device-laptop .avs-device-screen { border-radius: 2px; }
.avs-device-laptop .avs-paper-heading { margin-bottom: 6px; }
.avs-device-laptop .avs-review-row { padding: 8px 0; }
.avs-result-review .avs-message-front { bottom: 17px; left: 26px; right: 8px; }

.avs-device-window {
  top: 25px;
  width: calc(100% - 30px);
  max-width: 330px;
  height: 198px;
  padding: 0 1px 1px;
  border: 1px solid #8099aa;
  border-radius: 8px;
  overflow: hidden;
}

.avs-device-toolbar { display: flex; align-items: center; height: 24px; padding-left: 12px; }
.avs-device-toolbar span { width: 4px; height: 4px; border-radius: 50%; background: #b8c9d3; box-shadow: 9px 0 #b8c9d3, 18px 0 #b8c9d3; }
.avs-device-window .avs-device-screen { height: calc(100% - 24px); border-radius: 0 0 5px 5px; }
.avs-device-window .avs-preview-message { padding: 10px; gap: 8px; font-size: 11px; }
.avs-device-window .avs-message-symbol { width: 26px; height: 26px; }
.avs-device-window .avs-result-icon { width: 16px; height: 16px; }
.avs-device-window .avs-message-detail { font-size: 10px; }

.avs-deliverable-copy { padding: 24px 14px 18px; }
.avs-deliverable-heading { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; }
.avs-deliverable-heading h3 { min-width: 0; margin: 0; color: var(--avs-result-ink); }
.avs-deliverable-symbol { width: 30px; height: 30px; margin-top: 1px; }
.avs-deliverable-copy > p { margin: 16px 0 0; padding-top: 17px; border-top: 1px solid #e7edf1; font-size: 16px; line-height: 1.65; }

@media (hover: hover) and (pointer: fine) {
  .avs-deliverable-card:hover { transform: translateY(-3px); border-color: #dcb4c5; box-shadow: 0 16px 34px rgba(18, 51, 75, .075); }
  .avs-deliverable-card:hover .avs-device { transform: translateX(-50%) translateY(-3px); }
  .avs-deliverable-card:hover .avs-message-front,
  .avs-deliverable-card:hover .avs-message-plan-end { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(18, 51, 75, .11); }
}

@media (max-width: 1100px) {
  .avs-deliverables-section .section-head { grid-template-columns: 1fr; gap: 20px; }
  .avs-deliverables-grid { gap: 16px; }
  .avs-deliverable-copy { padding-inline: 8px; }
  .avs-deliverable-heading { display: block; min-height: 110px; }
  .avs-deliverable-symbol { margin: 0 0 12px; }
  .avs-message-front { left: 10px; right: 10px; }
  .avs-preview-message { padding: 12px 10px; gap: 8px; }
}

@media (max-width: 900px) {
  .avs-deliverables-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 24px; }
  .avs-result-preview { height: 252px; }
  .avs-deliverable-copy { padding: 22px 16px 18px; }
  .avs-deliverable-heading { display: flex; min-height: 0; align-items: center; }
  .avs-deliverable-symbol { margin: 0; }
  .avs-preview-message { max-width: 330px; }
  .avs-message-front { left: 16px; right: 16px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .avs-deliverables-section { padding-block: 56px 64px; }
  .avs-deliverables-section .section-head { margin-bottom: 28px; }
  .avs-deliverable-copy { padding-inline: 10px; }
  .avs-deliverable-heading { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .avs-deliverable-card,
  .avs-device,
  .avs-preview-message { transition: none !important; }
  .avs-deliverable-card:hover,
  .avs-deliverable-card:hover .avs-message-front,
  .avs-deliverable-card:hover .avs-message-plan-end { transform: none; }
  .avs-deliverable-card:hover .avs-device { transform: translateX(-50%); }
}
