/* Файл оформляет лендинг ANSA: red-theme.css из макета ANSA, пути ресурсов переведены на /assets. */
/* ANSA brand treatment below the reference hero. No global or hero overrides. */
.landing :is(.l-content-section, .l-features, .l-faq, .l-footer, .l-dialog) {
  --ansa-red: #ee393f;
  --ansa-accent: #ff777b;
  --mts-violet: #ff777b;
  --mts-blue: #f4b1b4;
  --mts-warm: #ff777b;
  --mts-warning: #ff9699;
  --mts-success: #c4c6cb;
}
.landing :is(.l-content-section, .l-features, .l-faq, .l-footer) {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.landing .l-capabilities {
  background: radial-gradient(ellipse 48% 42% at 77% 55%, #d8202d12, transparent 80%);
}
.landing .l-section-label { color: var(--ansa-accent); }
.landing .l-capability {
  border-radius: 10px;
  border-bottom-color: #ffffff0d;
  transition: background .18s, color .18s, border-color .18s;
}
.landing .l-capability[aria-pressed="true"] {
  border-bottom-color: #ee393f50;
  background: linear-gradient(100deg, #ee393f17, #ee393f03);
}
.landing .l-capability[aria-pressed="true"] > .mts-icon,
.landing .l-conversation-header .mts-icon { color: var(--ansa-accent); }
.landing .l-capability-example { position: relative; isolation: isolate; }
.landing .l-capability-example::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 300px;
  top: -85px;
  right: -135px;
  background: url('/assets/$landing/$assets/$red-orbit.svg') center / contain no-repeat;
  opacity: .6;
  z-index: -1;
  pointer-events: none;
}
.landing .l-conversation-window {
  background: linear-gradient(145deg, #291519f2, #111214f5 58%);
  border: 1px solid #ee393f27;
  box-shadow: 0 20px 80px #0005, 0 0 64px #ee393f0a, inset 0 1px #ffffff0b;
}
.landing .l-caller-reply { background: #ffffff06; }
.landing .l-conversation-outcome { border-top-color: #ee393f25; }
.landing :is(.l-content-section, .l-features, .l-dialog) .mts-badge--warning {
  background: #ee393f12;
}
.landing :is(.l-content-section, .l-features, .l-dialog) .mts-badge--violet {
  background: #ee393f12;
}
.landing :is(.l-content-section, .l-features, .l-dialog) .mts-badge--success {
  background: #ffffff08;
}
.landing :is(.l-content-section, .l-dialog) .mts-button--primary {
  background: linear-gradient(155deg, #f34449, #c9202c);
  border-color: #ff7b7f55;
  color: #fff;
  box-shadow: inset 0 1px #ffffff24, 0 8px 30px #ee393f16;
}
.landing :is(.l-content-section, .l-dialog) .mts-button--primary:hover {
  background: linear-gradient(155deg, #ff555b, #dc2632);
}
.landing :is(.l-content-section, .l-features, .l-faq, .l-dialog) :focus-visible {
  outline-color: var(--ansa-accent);
}
.landing .l-product-frame {
  background: radial-gradient(ellipse at 50% 115%, #ee393f60, transparent 65%),
    radial-gradient(ellipse at 15% 10%, #a91a2b3b, transparent 55%), #141214;
  border-color: #ee393f30;
  box-shadow: 0 24px 80px #0005, 0 0 70px #ee393f09;
}
.landing .l-product-frame::before {
  content: "";
  position: absolute;
  inset: -40% -15%;
  background: url('/assets/$landing/$assets/$red-orbit.svg') center / 100% 100% no-repeat;
  opacity: .32;
  pointer-events: none;
}
.landing .l-features .mts-avatar {
  color: #f5b2b5;
  background: #ee393f14;
}
.landing .l-features .l-avatar-blue { color: #e5d4d6; background: #ffffff09; }
.landing .l-features .l-avatar-warm { color: #ff8b90; background: #ee393f0d; }
.landing .l-preview-bottom button { color: var(--ansa-accent); }
.landing .l-agent-status { color: #d5c6c9; }
.landing .l-agent-status .mts-dot { color: var(--ansa-accent); box-shadow: 0 0 8px #ee393f60; }
.landing .l-sub-features article { position: relative; isolation: isolate; }
.landing .l-sub-features article::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 120px;
  top: -40px;
  left: calc(50% - 75px);
  background: radial-gradient(ellipse, #ee393f26, transparent 68%);
  z-index: -1;
  pointer-events: none;
}
.landing .l-feature-icon {
  color: var(--ansa-accent);
  filter: drop-shadow(0 0 12px #ee393f50);
}
.landing .l-why { border-color: #ee393f24; background: #171315; }
.landing .l-why-history::before {
  background-image: radial-gradient(ellipse at 30% 30%, #db263e70, transparent 65%);
}
.landing .l-why-control::before {
  background-image: radial-gradient(ellipse at 60% 35%, #ee393f65, transparent 60%);
}
.landing .l-mini-conversation { background: #120e11ed; }
.landing .l-waveform {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  background: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.landing .l-waveform > span {
  flex: 1;
  height: var(--wave-height);
  border-radius: 2px;
  background: linear-gradient(180deg, #ffadb2, #ee5b68 50%, #af3448);
  transform: scaleY(.45);
  opacity: .5;
  animation: ansa-listening var(--wave-duration) ease-in-out var(--wave-delay) infinite !important;
  animation-play-state: paused !important;
}
.landing .l-waveform::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, #ff9da326 50%, transparent 70%);
  transform: translateX(-100%);
  animation: ansa-wave-shimmer 4s ease-in-out infinite !important;
  animation-play-state: paused !important;
  pointer-events: none;
}
.landing .l-waveform.is-listening > span,
.landing .l-waveform.is-listening::after { animation-play-state: running !important; }
.landing .l-timeline { border-top: 0; }
@keyframes ansa-listening {
  0%, 100% { transform: scaleY(.3); opacity: .4; }
  35% { transform: scaleY(1); opacity: .95; }
  65% { transform: scaleY(.55); opacity: .65; }
}
@keyframes ansa-wave-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes ansa-wave-glow {
  0%, 100% { opacity: .4; }
  50% { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep the requested light effect, without moving bars in reduced-motion mode. */
  .landing .l-waveform > span {
    transform: scaleY(.65);
    animation-name: ansa-wave-glow !important;
    animation-duration: calc(var(--wave-duration) * 4) !important;
  }
  .landing .l-waveform::after { display: none; }
}
.landing .l-mini-result { color: #e7b8bd; }
.landing .l-rules-stage {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  isolation: isolate;
}
.landing .l-rules-stage::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, #a8233c38, transparent 68%);
  z-index: -1;
}
.landing .l-rules-panel {
  width: min(332px, 100%);
  position: relative;
  border: 1px solid #db647b35;
  border-radius: 18px;
  background: linear-gradient(140deg, #2b171eef, #120f13f5 65%);
  box-shadow: 0 18px 50px #0006, inset 0 1px #ffffff12;
}
.landing .l-rules-panel::before {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  border: 1px solid #da5a7130;
  border-radius: 18px;
  background: linear-gradient(145deg, #75223924, #21131850);
  transform: rotate(3deg);
  z-index: -1;
}
.landing .l-rules-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px;
  font-size: 11px;
  color: #e7dce0;
  border-bottom: 1px solid #ffffff08;
}
.landing .l-rules-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #b9324720;
  color: #ef8a9c;
}
.landing .l-rules-mark .mts-icon { width: 15px; height: 15px; }
.landing .l-rules-caption { margin-left: auto; font-size: 9px; color: #ae929b; }
.landing .l-rules-list { display: grid; gap: 8px; padding: 12px; }
.landing .l-rule {
  --rule-delay: 0s;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #ffffff08;
  border-radius: 10px;
  background: #ffffff02;
  animation: ansa-rule-step 7.2s ease-in-out var(--rule-delay) infinite backwards !important;
  animation-play-state: paused !important;
}
.landing .l-rule:nth-child(2) { --rule-delay: 2.4s; }
.landing .l-rule:nth-child(3) { --rule-delay: 4.8s; }
.landing .l-rule-index { color: #b98997; font-size: 9px; }
.landing .l-rule-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.landing .l-rule-copy > span { color: #ae9ba2; font-size: 10px; line-height: 13px; }
.landing .l-rule-copy > strong { font-size: 12px; line-height: 16px; font-weight: 500; color: #e9e1e4; }
.landing .l-rule-symbol { width: 17px; height: 17px; color: #ec8a9d; }
.landing .l-rule-switch { width: 28px; height: 16px; border-radius: 12px; background: #9d304a; box-shadow: inset 0 1px #ffffff18; }
.landing .l-rule-switch > span { display: block; width: 10px; height: 10px; margin: 3px 3px 3px auto; border-radius: 50%; background: #ffd4de; }
.landing .l-rules-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 16px;
  font-size: 9px;
  color: #b39da6;
}
.landing .l-rules-footer > .mts-icon { width: 12px; height: 12px; margin-left: auto; color: #ec8a9d; }
.landing .l-rules-progress { position: relative; width: 28px; height: 4px; overflow: hidden; border-radius: 4px; background: #71334550; }
.landing .l-rules-progress > span {
  display: block;
  width: 10px;
  height: 4px;
  border-radius: 4px;
  background: #ed869b;
  box-shadow: 0 0 6px #ed869b60;
  animation: ansa-rule-progress 7.2s ease-in-out infinite !important;
  animation-play-state: paused !important;
}
.landing .l-rules-panel.is-running .l-rule,
.landing .l-rules-panel.is-running .l-rules-progress > span { animation-play-state: running !important; }
@keyframes ansa-rule-step {
  0%, 33%, 100% { border-color: #ffffff08; background: #ffffff02; box-shadow: inset 0 0 16px transparent; }
  8%, 24% { border-color: #d45c7770; background: #ae304522; box-shadow: inset 0 0 16px #ae304512; }
}
@keyframes ansa-rule-progress {
  0%, 100% { transform: translateX(0); opacity: .5; }
  90% { transform: translateX(18px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .l-rules-progress > span { animation-name: ansa-wave-glow !important; }
}
.landing .l-situations {
  background: radial-gradient(ellipse 35% 50% at 20% 70%, #ee393f0e, transparent 80%);
}
.landing .l-situations-heading::after {
  content: "";
  display: block;
  width: 280px;
  height: 160px;
  margin: 24px 0 -8px -32px;
  background: url('/assets/$landing/$assets/$red-orbit.svg') center / 100% auto no-repeat;
  opacity: .7;
  pointer-events: none;
}
.landing .l-situation[open] { border-bottom-color: #ee393f40; }
.landing .l-situation[open] .l-situation-index,
.landing .l-situation[open] summary > .mts-icon { color: var(--ansa-accent); }
.landing .l-situation blockquote { border-left: 2px solid #ee393f90; }
.landing .l-situation-next > span { color: var(--ansa-accent); }
.landing .l-metrics {
  background: radial-gradient(ellipse 44% 45% at 40% 65%, #ee393f14, transparent 85%);
}
.landing .l-metrics-window {
  background: linear-gradient(125deg, #231518c9, #111214ed 65%);
  border: 1px solid #ee393f25;
  box-shadow: 0 20px 80px #0004, inset 0 1px #ffffff09;
}
.landing .l-savings strong {
  color: #ffa0a4;
  text-shadow: 0 0 42px #ee393f35;
}
.landing .l-savings .l-section-label { color: var(--mts-muted); }
.landing .l-bar-human { background: linear-gradient(90deg, #b81d2b, #ee393f); }
.landing .l-legend-human { background: #ee393f; }
.landing .l-bar-review, .landing .l-legend-review { background: #f7949b; }
.landing .l-pricing {
  padding-bottom: 8px;
  background: radial-gradient(ellipse 40% 50% at 50% 65%, #ee393f1a, transparent 80%);
}
.landing .l-plan {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 28px;
  background: linear-gradient(155deg, #2416197a, #141416 60%);
  border-color: #ffffff16;
}
.landing .l-plan::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -45px;
  left: -35px;
  background: radial-gradient(circle, #ee393f24, transparent 68%);
  z-index: -1;
  pointer-events: none;
}
.landing .l-plan-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 1px solid #ff777b30;
  border-radius: 15px;
  color: #ff8a90;
  background: linear-gradient(140deg, #ee393f25, #ee393f06);
  box-shadow: 0 0 30px #ee393f15, inset 0 1px #ffffff13;
}
.landing .l-plan-icon .mts-icon { width: 26px; height: 26px; stroke-width: 1.4; }
.landing .l-plan-pro {
  border-color: #ee393f80;
  background: linear-gradient(160deg, #471d25a3, #1c1418 55%, #151416);
  box-shadow: 0 0 0 1px #ee393f12, 0 12px 60px #ee393f12;
}
.landing .l-plan-pro::before { background: radial-gradient(circle, #ee393f45, transparent 68%); }
.landing .l-plan-pro .l-plan-icon { color: #ffafb2; box-shadow: 0 0 40px #ee393f35, inset 0 1px #ffffff18; }
.landing .l-plan h3 { margin-top: 4px; }
.landing .l-plan-tag { min-height: 20px; }
.landing .l-plan-minutes { color: #e9b6bb; }
.landing .l-plan > .mts-button:hover { border-color: #ee393f80; }
.landing .l-faq {
  background: radial-gradient(ellipse 32% 80% at 16% 70%, #ee393f0c, transparent 80%);
}
.landing .l-faq details[open] { background: #ee393f06; }
.landing .l-faq details[open] summary .mts-icon { color: var(--ansa-accent); }
.landing .l-footer {
  background: radial-gradient(ellipse 36% 65% at 50% 50%, #ee393f18, transparent 80%);
}
.landing .l-footer-logo { filter: drop-shadow(0 0 24px #ee393f25); }
.landing .l-footer-links a:hover { color: var(--ansa-accent); }
.landing .l-message--user { background: #ee393f15; }
.landing .l-dialog .mts-input:focus { border-color: var(--ansa-accent); box-shadow: 0 0 0 3px #ee393f12; }
@media (max-width: 768px) {
  .landing .l-capability-example::before { width: 300px; height: 220px; right: -100px; top: -60px; opacity: .45; }
  .landing .l-situations-heading::after { display: none; }
  .landing .l-plan-grid { gap: 20px; }
}
@media (max-width: 480px) {
  .landing .l-capability { padding-inline: 10px; }
  .landing .l-plan { padding: 24px; }
  .landing .l-plan-icon { margin-bottom: 20px; }
}
