.offer-visual {
  --offer-accent: #cbbaff;
  --offer-glow: #5938a4;
  --offer-surface: #1a142b;
  --offer-panel: #191326;
  --offer-text: #fbf8ff;
  --offer-muted: #c9c2d6;
  --offer-line: color-mix(in srgb, var(--offer-accent) 28%, transparent);
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--offer-line);
  border-radius: 16px;
  background: var(--offer-surface);
  color: var(--offer-text);
}

.offer-visual--automation {
  scroll-margin-top: 96px;
  --offer-accent: #9ceadf;
  --offer-glow: #236b65;
  --offer-surface: #112326;
  --offer-panel: #101f24;
}

.offer-visual--ai {
  scroll-margin-top: 96px;
  --offer-accent: #ffd3a6;
  --offer-glow: #7b4b50;
  --offer-surface: #281d2b;
  --offer-panel: #241b2a;
}

.offer-visual__stage {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 184px;
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 76% 0%, var(--offer-glow), transparent 72%),
    linear-gradient(140deg, var(--offer-surface), var(--offer-panel));
  font: 500 .75rem/1.2 var(--display-heading);
}

.offer-visual__label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--offer-accent);
  font-size: .66rem;
  letter-spacing: .03em;
}

.offer-visual__label span { flex: 0 0 12px; height: 1px; background: currentColor; }
.offer-visual figcaption { margin: 10px 2px 2px; color: var(--offer-muted); font-size: .78rem; line-height: 1.42; }
.offer-visual__shop:focus-visible { outline: 2px solid var(--offer-accent); outline-offset: 3px; }
.offer-visual__shop .offer-visual__label { flex-wrap: wrap; }
.offer-visual__shop .offer-visual__label b { margin-left: auto; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.offer-visual__devices { position: relative; align-self: center; min-height: 131px; padding-block: 7px 12px; }

.offer-visual__desktop, .offer-visual__phone, .offer-visual__film, .offer-visual__event {
  border: 1px solid var(--offer-line);
  background: var(--offer-panel);
  box-shadow: 0 7px 15px #07060f55, inset 0 1px 0 #ffffff10;
}

.offer-visual__desktop {
  width: min(84%, 16rem);
  padding: 3px;
  overflow: hidden;
  border-radius: 9px;
}

.offer-visual__desktop img, .offer-visual__phone img { display: block; width: 100%; height: auto; border-radius: 5px; }

.offer-visual__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(56px, 28%, 74px);
  padding: 3px;
  border-radius: 11px;
}

.offer-visual__event { padding: 7px 9px; border-radius: 8px; }
.offer-visual__event strong { font-size: .76rem; font-weight: 600; }

.offer-visual__automation:not([hidden]) { display: grid; align-content: center; gap: 7px; }
.offer-visual__scenarios { min-width: 0; border: 0; }
.offer-visual__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.offer-visual__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.offer-visual__choices label { position: relative; min-width: 0; cursor: pointer; }
.offer-visual__choices input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.offer-visual__choices label span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 5px 6px;
  border: 1px solid var(--offer-line);
  border-radius: 8px;
  background: var(--offer-panel);
  color: var(--offer-muted);
  font-size: .69rem;
}
.offer-visual__choices label span::before {
  content: '';
  flex: 0 0 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.offer-visual__choices input:checked + span {
  border-color: var(--offer-accent);
  background: color-mix(in srgb, var(--offer-accent) 14%, var(--offer-panel));
  color: var(--offer-text);
}
.offer-visual__choices input:checked + span::before { background: var(--offer-accent); box-shadow: inset 0 0 0 2px var(--offer-panel); }
.offer-visual__choices input:focus-visible + span, .offer-visual__run:focus-visible { outline: 2px solid var(--offer-accent); outline-offset: 2px; }
.offer-visual__workflow { display: grid; gap: 7px; }
.offer-visual__path { position: relative; padding-block: 3px; }
.offer-visual__path::before, .offer-visual__signal {
  position: absolute;
  inset: 18px 16.6% auto;
  height: 2px;
  background: var(--offer-line);
}
.offer-visual__path::before { content: ''; }
.offer-visual__signal { background: var(--offer-accent); box-shadow: 0 0 9px var(--offer-accent); opacity: 0; transform-origin: left; }
.offer-visual__path ol { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.offer-visual__path li { display: grid; justify-items: center; gap: 4px; color: var(--offer-muted); font-size: .67rem; }
.offer-visual__path li::before { content: none; }
.offer-visual__path li span, .offer-visual__result-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--offer-line);
  border-radius: 9px;
  background: var(--offer-panel);
  color: var(--offer-accent);
}
.offer-visual__path svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.offer-visual__path[data-address='missing'] li:nth-child(2) span { border-color: #ffd3a6; color: #ffd3a6; }
.offer-visual__run {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--offer-accent);
  border-radius: 8px;
  background: var(--offer-accent);
  color: #102725;
  cursor: pointer;
  font: 600 .75rem/1.2 var(--display-heading);
}
.offer-visual__run:hover { background: #b8f2eb; }
.offer-visual__run span { font-size: .95rem; }
.offer-visual__result {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid var(--offer-line);
  border-radius: 9px;
  background: var(--offer-panel);
}
.offer-visual__result-icon { width: 25px; height: 25px; font-size: .8rem; }
.offer-visual__result[data-outcome='task'] { border-color: var(--offer-accent); }
.offer-visual__result[data-outcome='question'] { --offer-accent: #ffd3a6; border-color: var(--offer-accent); }
.offer-visual__automation-output { font-size: .72rem; }
.offer-visual__automation-output strong { display: block; margin-bottom: 2px; color: var(--offer-accent); }
.offer-visual__automation-output p { color: var(--offer-muted); font-size: .68rem; line-height: 1.32; overflow-wrap: anywhere; }
.offer-visual__result[data-outcome] p { color: var(--offer-text); }

.offer-visual__film { position: relative; align-self: center; overflow: hidden; border-radius: 9px; }
.offer-visual__film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.offer-visual__film-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offer-visual__film-fallback[hidden] { display: none; }
.offer-visual__play {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #fff8;
  border-radius: 99px;
  background: #19131bea;
  color: #fff;
  cursor: pointer;
  font: 600 1rem/1 var(--display-heading);
}
.offer-visual__play:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.offer-visual--ai figcaption small { display: block; margin-top: 5px; color: var(--offer-accent); font-size: .72rem; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not([data-preview-motion='off']) .offer-visual__phone { transition: transform .3s ease; }
  html:not([data-preview-motion='off']) .price-card:is(:hover, :focus-within) .offer-visual__phone { transform: translateY(-3px); }
}
