/* Scoped product illustrations for the Services automation offers. */
.automation-offers { gap: 24px; }
@media (min-width: 1101px) { .automation-offers.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.automation-offers .detail-card {
  min-width: 0;
  padding: 26px 24px 24px;
  background: linear-gradient(155deg, #152030, #0d1420 65%);
  border-radius: 14px;
}
.automation-offers h3 { min-height: 62px; font-size: 23px; line-height: 1.35; }
.automation-offers .service-benefit { font-size: 17px; line-height: 1.5; margin-top: 22px; min-height: 51px; }
.automation-offers .offer-description { margin-top: 12px; font-size: 13px; line-height: 1.8; }
.automation-offers ul { margin-top: 12px; }
.automation-offers li { margin-top: 8px; line-height: 1.65; }
.automation-offers .tool-label { margin: 20px 0 0; }
.automation-offers .offer-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  padding-top: 24px;
  margin-top: auto;
}
.automation-offers .offer-booking {
  justify-content: center;
  padding: 13px 12px;
  min-height: 48px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  background: #f6ba61;
  color: #171c25;
  border: 1px solid #f6ba61;
  border-radius: 7px;
}
.automation-offers .offer-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 12px;
  min-height: 46px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  border: 1px solid #8dabc36b;
  background: #142333;
  color: #c4edf7;
  border-radius: 7px;
  transition: background .2s, border-color .2s;
}
.offer-example svg { width: 18px; height: 18px; flex: none; }
.offer-example svg:last-child { width: 15px; height: 15px; margin-left: auto; }
.offer-example span { flex: 1; }
.automation-offers .offer-example:hover { border-color: #96d8e8; background: #1b3043; }
.automation-offers .offer-booking:hover { background: #ffcd84; border-color: #ffcd84; }

.offer-visual { width: 100%; margin: 10px 0 0; }
.offer-scene {
  --channel: #9cddb8;
  min-width: 0;
  max-width: 440px;
  margin-inline: auto;
  height: 282px;
  padding: 17px 16px 13px;
  display: flex;
  flex-direction: column;
  border: 1px solid #7f9bb230;
  border-radius: 11px;
  background: radial-gradient(ellipse at 10% 0, #21463740, transparent 60%), #0a111b;
  box-shadow: inset 0 1px 0 #d4e8fc05, 0 12px 25px #0002;
}
.offer-scene svg { width: 16px; height: 16px; flex: none; }
.scene-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scene-channel { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; color: var(--channel); }
.scene-eyebrow { font-size: 8px; letter-spacing: .7px; line-height: 1.5; text-align: right; color: #a0afc0; }
.scene-speaker { display: block; font-size: 8px; letter-spacing: .65px; line-height: 1.5; color: #9fadc1; }
.offer-scene p { font-size: 12px; line-height: 1.6; margin: 5px 0 0; color: #e6edf6; }
.offer-visual figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 37px; max-width: 440px; margin-inline: auto; color: #99adbf; font-size: 10px; line-height: 1.5; }
.scene-replay {
  display: inline-flex; gap: 5px; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 1px 6px 8px; border: 0; background: transparent;
  font: inherit; color: #c5d8e8; cursor: pointer;
}
.scene-replay[hidden] { display: none; }
.scene-replay svg { width: 13px; height: 13px; }
.scene-replay:hover { color: #fff; }
.scene-replay[aria-disabled="true"] { color: #78899c; cursor: default; }
.chat-window { display: flex; flex-direction: column; gap: 10px; margin-top: 17px; }
.scene-message { padding: 9px 12px; border: 1px solid #c4d7ee14; border-radius: 10px; }
.message-customer { align-self: flex-end; max-width: 89%; border-bottom-right-radius: 3px; background: #1c2939; }
.message-agent { align-self: flex-start; max-width: 93%; border-bottom-left-radius: 3px; background: #14352b; border-color: #78cda326; }
.message-agent .scene-speaker { color: #8dccae; }
.scene-outcome { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e4b96335; border-radius: 8px; background: #e4b9630b; }
.scene-outcome > svg { color: #f6c77f; }
.scene-outcome strong { display: block; font-size: 11px; font-weight: 500; line-height: 1.5; color: #efd8b0; }
.scene-outcome span { display: block; font-size: 9px; line-height: 1.6; color: #aebdd0; }
.scene-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 9px; color: #a8bccc; }
.scene-footnote svg { width: 12px; height: 12px; color: #a1b9c8; }

.scene-phone { --channel: #f6c77f; background: radial-gradient(ellipse at 50% 25%, #79634925, transparent 68%), #0a111b; }
.phone-identity { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 18px; }
.phone-portrait { width: 84px; height: 84px; flex: none; border-radius: 50%; padding: 3px; border: 1px solid #c6a97875; box-shadow: 0 0 0 5px #c6a97808; }
.phone-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 50%; }
.phone-identity strong { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.5px; color: #f2f5fa; }
.phone-identity span { display: block; font-size: 10px; line-height: 1.5; color: #a8b7ca; margin-top: 4px; max-width: 125px; }
.scene-waveform { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; margin-top: 11px; overflow: hidden; }
.scene-waveform i { display: block; width: 3px; height: var(--bar); border-radius: 3px; background: #e9c080; transform: scaleY(.58); opacity: .8; }
.phone-transcript { text-align: center; margin-top: 3px; }
.phone-transcript p { font-size: 12px; max-width: 27ch; margin: 0 auto; color: #e0d9cf; }
.phone-route { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: auto; padding-top: 13px; color: #c0cbd9; font-size: 10px; }
.phone-route svg { width: 13px; height: 13px; color: #ddbb82; }
.phone-route > span[aria-hidden] { color: #738397; padding: 0 2px; }

.scene-followup { --channel: #a9c4ff; background: radial-gradient(ellipse at 0 0, #2b3f6b33, transparent 64%), #0a111b; }
.scene-followup .message-agent { background: #17243f; border-color: #9cbfff2e; }
.scene-followup .message-agent .scene-speaker { color: #a9c4ff; }
.scene-instagram { --channel: #e9a0ca; background: radial-gradient(ellipse at 100% 0, #6f29592a, transparent 68%), #0a111b; }
.instagram-story { display: flex; flex-direction: column; flex: 1; margin-top: 18px; }
.instagram-post { display: flex; align-items: center; gap: 11px; padding: 8px; border: 1px solid #c4d7ee20; border-radius: 9px; background: #161d2b; }
.post-image { width: 67px; height: 67px; flex: none; overflow: hidden; border-radius: 5px; background: #070d17; }
.post-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.post-comment { min-width: 0; }
.post-comment > div { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.post-comment svg { width: 13px; height: 13px; color: #c193b0; }
.comment-keyword { font-size: 13px; font-weight: 500; letter-spacing: .2px; color: #f1c6df; }
.post-comment > span:last-child { display: block; font-size: 9px; line-height: 1.5; color: #b0bdce; margin-top: 4px; }
.instagram-connector { height: 20px; display: flex; align-items: center; margin-left: 31px; color: #a37792; font-size: 14px; }
.instagram-dm { border: 1px solid #ac71a340; background: #30203c; border-radius: 10px 10px 10px 3px; padding: 10px 12px; margin-left: 19px; }
.instagram-dm .scene-speaker { color: #d5a6d0; }
.instagram-dm p { font-size: 11px; }
.instagram-booking { display: flex; align-items: center; gap: 7px; margin: auto 0 0 19px; padding-top: 12px; font-size: 10px; line-height: 1.5; color: #f0d3a6; }
.instagram-booking svg { width: 14px; height: 14px; color: #dfb977; }
.instagram-booking svg:last-child { margin-left: auto; }

/* Finite, deliberate motion. The complete story is always readable. */
[data-scene-step="1"] { --step-delay: 0ms; }
[data-scene-step="2"] { --step-delay: 550ms; }
[data-scene-step="3"] { --step-delay: 1100ms; }
.offer-visual.is-playing [data-scene-step] { animation: offer-emphasis 1.5s ease both; animation-delay: var(--step-delay); }
.offer-visual.is-playing .scene-waveform i { animation: offer-voice 450ms ease-in-out 6 alternate; animation-delay: var(--delay); }
@keyframes offer-emphasis { 0% { opacity: .6; transform: translateY(3px); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes offer-voice { from { transform: scaleY(.3); opacity: .6; } to { transform: scaleY(1); opacity: 1; } }
.motion-paused .offer-visual *, .motion-paused .offer-example { animation: none !important; transition: none !important; }

@media (min-width: 1101px) and (max-width: 1270px) {
  .automation-offers { gap: 18px; }
  .automation-offers .detail-card { padding: 23px 19px; }
  .automation-offers h3 { font-size: 20px; min-height: 56px; }
  .offer-scene { padding: 15px 12px 12px; height: 310px; }
  .scene-eyebrow { font-size: 7px; letter-spacing: .2px; }
  .phone-identity { gap: 10px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .automation-offers { grid-template-columns: 1fr; }
  .automation-offers .detail-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 30px; align-items: start; }
  .automation-offers h3 { grid-column: 1 / -1; min-height: 0; margin-bottom: 17px; }
  .automation-offers .offer-visual { grid-column: 1; grid-row: 2 / 7; margin-top: 0; }
  .automation-offers .service-benefit { margin-top: 0; min-height: 0; }
  .automation-offers :is(.service-benefit, .offer-description, ul, .tool-label, .offer-actions) { grid-column: 2; }
  .automation-offers .offer-actions { padding-top: 16px; }
  .offer-scene { height: 304px; }
}
@media (max-width: 760px) {
  .automation-offers .detail-card { padding: 23px 20px; }
  .automation-offers h3 { min-height: 0; font-size: 23px; }
  .offer-visual { margin-top: 22px; }
  .offer-scene { height: 295px; padding: 17px 15px 14px; }
  .offer-visual figcaption { min-height: 44px; }
  .scene-replay { min-height: 44px; }
  .automation-offers .service-benefit { margin-top: 15px; min-height: 0; }
  .automation-offers .offer-description { font-size: 14px; }
  .automation-offers li { font-size: 13px; }
  .automation-offers .offer-example, .automation-offers .offer-booking { min-height: 50px; font-size: 13px; }
}
@media (max-width: 380px) {
  .automation-offers .detail-card { padding: 22px 15px; }
  .offer-scene { padding: 14px 11px; height: 307px; }
  .scene-eyebrow { font-size: 7px; letter-spacing: 0; max-width: 82px; }
  .phone-portrait { width: 74px; height: 74px; }
  .phone-identity { gap: 11px; }
  .phone-identity strong { font-size: 19px; }
  .post-image { width: 51px; height: 64px; }
  .instagram-dm, .instagram-booking { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-visual *, .offer-example { animation: none !important; transition: none !important; }
}

/* Story scenes (Instagram, Appointment reminders): one step at a time, a light between steps,
   a green result, then rest. One colour per person, the same in both cards, with a key below:
   your client = grey, left; automatic reply = pink, right; your team = blue alert.
   Every step is visible at rest; motion plays only while .is-playing is set (service-visuals.js).
   UpperVision Signal Style, 2026-11-17. */
.scene-story { --who-client: #aebdd1; --who-auto: #ef9fcd; --who-team: #a9c4ff; --who-done: #9fe0b6; --story-ease: cubic-bezier(.2,.6,.3,1); }
.offer-scene.scene-story { height: auto; min-height: 358px; }
.story { display: flex; flex-direction: column; gap: 7px; flex: 1; margin-top: 13px; }
.story-tag { display: flex; align-items: center; gap: 6px; font-size: 8px; letter-spacing: .65px; line-height: 1.5; text-transform: uppercase; color: var(--role, #9fadc1); }
.story-tag::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--role, #9fadc1); }
.story p { font-size: 11px; line-height: 1.5; margin: 2px 0 0; color: #e9eef5; }
.story b { font-weight: 600; letter-spacing: .3px; color: #f6c3e0; }
.story-bubble { padding: 7px 11px; border: 1px solid; border-radius: 11px; max-width: 86%; }
.who-client { --role: var(--who-client); align-self: flex-start; border-bottom-left-radius: 3px; background: #222c3b; border-color: #aebdd12e; }
.who-auto { --role: var(--who-auto); align-self: flex-end; border-bottom-right-radius: 3px; background: #3a1c35; border-color: #ef9fcd55; }
.who-team { --role: var(--who-team); }
.story-signal { position: relative; display: block; height: 14px; margin: -2px 0 -2px 50%; border-left: 1px dashed #ef9fcd66; }
.story-signal i { position: absolute; left: -3.5px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--who-auto); box-shadow: 0 0 8px 2px #ef9fcdaa; opacity: 0; }
.story-result { --role: var(--who-done); display: inline-flex; align-items: center; gap: 7px; align-self: center; margin-top: auto; padding: 6px 12px; border: 1px solid #9fe0b655; border-radius: 999px; background: #9fe0b614; color: #c9f0d6; font-size: 11px; font-weight: 500; line-height: 1.4; }
.story-result svg { width: 13px; height: 13px; color: #9fe0b6; }
.story-key { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; max-width: 440px; margin: 10px auto 0; padding: 0; font-size: 10px; line-height: 1.5; color: #c5d3e2; }
.story-key li { display: inline-flex; align-items: center; gap: 6px; }
.story-key li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; border: 1px solid; }
.story-key li.key-client::before { background: #222c3b; border-color: #aebdd1; }
.story-key li.key-auto::before { background: #3a1c35; border-color: #ef9fcd; }
.story-key li.key-team::before { background: #17243f; border-color: #a9c4ff; }

/* Instagram story */
.ig-post { display: flex; align-items: center; gap: 10px; padding: 7px; border: 1px solid #c4d7ee20; border-radius: 9px; background: #151c29; }
.ig-post .story-tag { --role: #c9b6d6; }
.ig-art { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 6px;
  background: radial-gradient(circle at 30% 25%, #ffd6ea40, transparent 55%), linear-gradient(135deg, #b93a7f, #5b3a9a 60%, #2a6f9a); }
.ig-art svg { width: 20px; height: 20px; color: #fff; opacity: .9; }
.ig-post-copy { min-width: 0; }

/* Appointment reminder story */
.rem-alert { display: flex; align-items: center; gap: 9px; align-self: center; max-width: 92%; padding: 7px 12px 7px 8px; border: 1px solid #a9c4ff55; border-radius: 10px; background: #17243f; box-shadow: 0 6px 16px #0006; }
.rem-alert-icon { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #a9c4ff22; color: #c4d6ff; }
.rem-alert-icon svg { width: 14px; height: 14px; }
.story-time { display: flex; align-items: center; gap: 8px; font-size: 8px; letter-spacing: .65px; text-transform: uppercase; color: #b3c1d4; }
.story-time::before, .story-time::after { content: ""; flex: 1; height: 1px; background: #c4d7ee2a; }

/* Playing: steps arrive in order and glow in their person's colour; a light runs between steps. */
.offer-visual.is-playing [data-story] { animation: story-in .6s var(--story-ease) var(--d) both, story-glow 1.1s var(--story-ease) calc(var(--d) + .25s) both; }
.offer-visual.is-playing .story-signal i { animation: story-signal .7s cubic-bezier(.45,0,.2,1) var(--d) both; }
@keyframes story-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes story-glow { 0% { box-shadow: 0 0 0 0 transparent; } 35% { box-shadow: 0 0 16px 1px color-mix(in srgb, var(--role, #9fadc1) 38%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes story-signal { 0% { top: -3px; opacity: 0; } 15%, 80% { opacity: 1; } 100% { top: calc(100% - 3px); opacity: 0; } }
@media (min-width: 1101px) and (max-width: 1270px) { .offer-scene.scene-story { min-height: 358px; } }
@media (max-width: 1100px) { .offer-scene.scene-story { min-height: 0; } }
@media (max-width: 760px) { .story-bubble { max-width: 92%; } }
@media (prefers-reduced-motion: reduce) { .story-signal i { animation: none !important; } }
