/* NEO Assistant — premium mobile hero, an additive phone-only enhancement.
   Desktop layouts and application flows remain unchanged. */
@media (max-width: 767px) {
  .neo-landing .neo-insertchat-hero {
    padding-top: 96px !important;
    padding-bottom: 34px !important;
    min-height: auto !important;
    background:
      radial-gradient(ellipse 105% 38% at 50% 7%,rgba(61,216,153,.15) 0%,transparent 75%),
      linear-gradient(180deg,#f6fffb 0%,#fafffd 46%,#fff 100%) !important;
  }
  .neo-landing .neo-insertchat-hero::before {
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:460px;
    background-image:
      linear-gradient(rgba(23,146,95,.052) 1px,transparent 1px),
      linear-gradient(90deg,rgba(23,146,95,.052) 1px,transparent 1px);
    background-size:32px 32px;
    -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.6),transparent 100%);
    mask-image:linear-gradient(180deg,rgba(0,0,0,.6),transparent 100%);
    opacity:.5;
    pointer-events:none;
  }
  .neo-landing .neo-insertchat-hero > .neo-depth-art {
    opacity:.14 !important;
    filter:saturate(.45);
  }
  .neo-landing .neo-insertchat-hero > div[class*="max-w-"] {
    max-width:490px !important;
    padding-inline:20px !important;
    z-index:1;
  }
  .neo-landing .neo-insertchat-hero > div[class*="max-w-"] > div:nth-child(2) {
    width:100% !important;
    max-width:100% !important;
  }
  /* Live-service eyebrow */
  .neo-landing .neo-insertchat-hero > div[class*="max-w-"] > div:nth-child(2) > div:first-child {
    margin-bottom:17px !important;
    border:1px solid rgba(22,160,109,.20) !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.9) !important;
    padding:7px 13px 7px 8px !important;
    gap:9px !important;
    box-shadow:0 7px 24px -17px rgba(0,78,47,.22),inset 0 1px 0 rgba(255,255,255,.8) !important;
    font-size:11px !important;
    font-weight:600 !important;
    color:#396454 !important;
    max-width:100% !important;
  }
  .neo-landing .neo-insertchat-hero > div[class*="max-w-"] > div:nth-child(2) > div:first-child > span:first-child {
    background:#dff9ec !important;
    color:#079568 !important;
    border-radius:9px !important;
    width:25px !important;
    height:25px !important;
  }
  .neo-landing .neo-insertchat-hero h1 {
    font-weight:780 !important;
    font-size:clamp(29px,9.2vw,39px) !important;
    line-height:1.055 !important;
    letter-spacing:-.065em !important;
    max-width:420px !important;
    text-wrap:balance;
    color:#152923 !important;
  }
  .neo-landing .neo-insertchat-hero h1 span:first-child {
    color:#183329 !important;
    margin-bottom:3px !important;
  }
  .neo-landing .neo-insertchat-hero h1 span:last-child {
    margin-top:0 !important;
    background-image:linear-gradient(105deg,#067957 4%,#0da774 62%,#35be8e 100%) !important;
    background-size:100% auto;
    -webkit-background-clip:text;
    background-clip:text;
    filter:drop-shadow(0 9px 14px rgba(12,140,93,.1));
  }
  .neo-landing .neo-insertchat-hero h1 + p {
    margin-top:16px !important;
    max-width:360px !important;
    font-size:14px !important;
    font-weight:400 !important;
    line-height:1.57 !important;
    color:#587068 !important;
    text-wrap:pretty;
  }
  /* Conversion form: genuine input and navigation behavior preserved */
  .neo-landing .neo-insertchat-hero .neo-hero-site-form {
    margin-top:23px !important;
    border-radius:22px !important;
    border-color:rgba(20,145,97,.22) !important;
    padding:11px 11px 11px 15px !important;
    gap:8px 11px !important;
    background:rgba(255,255,255,.96) !important;
    box-shadow:0 15px 36px -23px rgba(2,86,52,.32),0 1px 0 rgba(255,255,255,.8) inset !important;
    transition:border-color .2s ease,box-shadow .2s ease !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form:focus-within {
    border-color:#35bd8a !important;
    box-shadow:0 0 0 4px rgba(29,175,115,.1),0 15px 36px -23px rgba(2,86,52,.32) !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form > svg {
    color:#45a984 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form input {
    color:#1c4436 !important;
    caret-color:#04946a !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form input::placeholder {
    color:#849e93 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form > button {
    height:48px !important;
    border-radius:13px !important;
    background:linear-gradient(110deg,#086d50 0%,#069b6a 100%) !important;
    font-size:13px !important;
    font-weight:700 !important;
    box-shadow:0 9px 18px -12px rgba(6,111,76,.72) !important;
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form > button:active {
    transform:scale(.99);
    filter:brightness(.96);
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p {
    margin-top:10px !important;
    font-size:11px !important;
    color:#728d80 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p button {
    color:#087d5a !important;
    text-decoration-color:#8bd4b0 !important;
    font-weight:650 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p + button {
    margin-top:13px !important;
    min-height:37px !important;
    font-size:12px !important;
    color:#203d33 !important;
    font-weight:650 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p + button svg {
    color:#119c70 !important;
  }
  /* Product stage comes immediately after the primary action and demo link */
  .neo-landing .neo-insertchat-hero .neo-mobile-stage {
    order:1;
    display:block;
    width:100%;
    max-width:410px;
    text-align:left;
    margin:24px 0 1px;
    position:relative;
    padding:17px;
    border-radius:27px;
    background:
      radial-gradient(circle at 78% 5%,rgba(69,219,163,.26),transparent 42%),
      linear-gradient(138deg,#0b302a 0%,#0b4937 100%);
    border:1px solid rgba(9,101,70,.2);
    box-shadow:0 34px 55px -33px rgba(5,75,53,.55),inset 0 1px 0 rgba(255,255,255,.17);
    isolation:isolate;
    animation:neoMobileReveal .6s cubic-bezier(.2,.65,.2,1) both;
  }
  .neo-landing .neo-insertchat-hero .neo-mobile-stage:before {
    content:"";
    pointer-events:none;
    position:absolute;
    z-index:-1;
    inset:auto 10% -11px;
    height:24px;
    background:#4cd7a2;
    filter:blur(31px);
    opacity:.22;
  }
  .neo-m-stage-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:1px 4px 15px;
    gap:10px;
  }
  .neo-m-stage-kicker {
    display:inline-flex;
    align-items:center;
    gap:9px;
    font-size:9px;
    line-height:1.2;
    color:rgba(236,255,247,.82);
    letter-spacing:.14em;
    font-weight:750;
    white-space:nowrap;
  }
  .neo-m-lightdot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:#66efb8;
    box-shadow:0 0 0 4px rgba(102,239,184,.13);
    animation:neoMobileDot 2.8s ease-in-out infinite;
  }
  .neo-m-stage-spark {
    height:14px;
    display:flex;
    align-items:center;
    gap:3px;
  }
  .neo-m-stage-spark i {
    width:2px;
    height:5px;
    display:block;
    border-radius:3px;
    background:#84f8c2;
    animation:neoMobileWave 1.6s ease-in-out infinite;
  }
  .neo-m-stage-spark i:nth-child(2),.neo-m-stage-spark i:nth-child(4) {height:10px;animation-delay:.16s;}
  .neo-m-stage-spark i:nth-child(3) {height:14px;animation-delay:.28s;}
  .neo-m-stage-spark i:nth-child(5) {animation-delay:.12s;}
  .neo-m-app {
    background:#fcfffd;
    border-radius:19px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.75);
    box-shadow:0 10px 28px -19px rgba(0,24,20,.38);
  }
  .neo-m-app-head {
    display:flex;
    align-items:center;
    gap:9px;
    padding:13px 13px 12px;
    border-bottom:1px solid #ecf3ef;
  }
  .neo-m-app-logo {
    width:35px;height:35px;flex:0 0 35px;
    border:1px solid #def0e8;
    border-radius:11px;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:#effaf5;
  }
  .neo-m-app-logo img {width:32px;height:32px;object-fit:contain;display:block}
  .neo-m-app-name {min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.2;}
  .neo-m-app-name strong {color:#213a30;font-size:12px;letter-spacing:-.02em;font-weight:750}
  .neo-m-app-name small {color:#7d958a;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .neo-m-app-online {
    margin-left:auto;display:inline-flex;align-items:center;gap:5px;
    border:1px solid #c6efdc;border-radius:999px;
    padding:6px 7px;background:#effdf5;color:#077b50;
    font-size:8px;font-weight:800;letter-spacing:.045em;white-space:nowrap;
  }
  .neo-m-app-online i {width:6px;height:6px;background:#18ad75;border-radius:50%}
  .neo-m-chat {display:flex;flex-direction:column;gap:10px;padding:15px 12px 13px;background:linear-gradient(180deg,#fcfffd,#f8fcfa)}
  .neo-m-message {display:flex;gap:5px;max-width:88%;font-size:11px;line-height:1.45;color:#29463c}
  .neo-m-message-user {
    align-self:flex-end;
    flex-direction:column;
    border-radius:14px 14px 4px 14px;
    background:#e9f8ef;
    border:1px solid #d8f0e3;
    padding:9px 12px;
  }
  .neo-m-speaker {font-size:9px;color:#6c9683;font-weight:750}
  .neo-m-message-neo {max-width:94%;align-self:flex-start;align-items:flex-start}
  .neo-m-bot-avatar {
    flex:none;display:grid;place-items:center;width:22px;height:22px;
    background:#086a50;border-radius:8px;color:#fff;font-size:12px;font-weight:850;
    box-shadow:0 5px 8px -6px #036c44;
  }
  .neo-m-bot-copy {
    display:flex;flex-direction:column;gap:4px;background:white;
    padding:9px 12px;border:1px solid #e0ede5;border-radius:4px 13px 13px 13px;
    box-shadow:0 3px 10px -9px rgba(0,55,30,.3);
  }
  .neo-m-bot-copy strong {font-size:9px;color:#078a5c;font-weight:800}
  .neo-m-app-result {
    display:flex;gap:9px;align-items:center;
    margin:0 12px 12px;padding:10px 11px;
    border:1px solid #ccebd9;
    border-radius:12px;background:#f2fbf5;
  }
  .neo-m-result-icon {
    display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;
    border-radius:9px;background:#dcf5e7;color:#047e51;font-size:14px;font-weight:900;
  }
  .neo-m-result-copy {display:flex;flex-direction:column;gap:2px;min-width:0}
  .neo-m-result-copy strong {color:#204a34;font-size:11px;font-weight:750}
  .neo-m-result-copy small {color:#6a9380;font-size:9px}
  .neo-m-result-status {
    margin-left:auto;flex:none;border-radius:5px;color:#058553;
    background:#def6e9;padding:5px 6px;font-size:8px;font-weight:800;letter-spacing:.02em;
  }
  /* Leave functionality visible but move secondary details below the product demonstration. */
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p + button + p {
    order:2;
    margin-top:15px !important;
    max-width:335px !important;
    color:#91a099 !important;
    font-size:10px !important;
    line-height:1.5 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p + button + p + div {
    order:3;
    margin-top:18px !important;
    gap:9px 15px !important;
    color:#668575 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p + button + p + div span {
    color:#658577 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p + button + p + div svg {
    color:#1a9a70 !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p + button + p + div + div {
    order:4;
    margin-top:18px !important;
    gap:9px !important;
  }
  .neo-landing .neo-insertchat-hero .neo-hero-site-form + p + button + p + div + div > p {
    color:#6e8a7b !important;font-weight:550 !important;
  }
  .neo-landing .neo-insertchat-hero a:has(img[src*="store-badges"]) {
    height:43px !important;
    border-radius:10px !important;
  }
  .neo-landing .neo-insertchat-hero a img[src*="store-badges"] {
    height:43px !important;
  }
  /* Large, repetitive side visualizations are replaced by the compact real product story above. */
  .neo-landing .neo-insertchat-hero > div[class*="max-w-"] > div:last-child {
    display:none !important;
  }
  @keyframes neoMobileDot {
    0%,100% {box-shadow:0 0 0 3px rgba(102,239,184,.13)}
    50% {box-shadow:0 0 0 7px rgba(102,239,184,.03)}
  }
  @keyframes neoMobileWave {
    0%,100% {transform:scaleY(.6);opacity:.68}
    50% {transform:scaleY(1.25);opacity:1}
  }
  @keyframes neoMobileReveal {
    from {opacity:0;transform:translateY(12px)}
    to {opacity:1;transform:translateY(0)}
  }
}
@media (max-width: 355px) {
  .neo-landing .neo-insertchat-hero h1 {font-size:clamp(29px,9.2vw,33px) !important;}
  .neo-landing .neo-insertchat-hero .neo-mobile-stage {padding:13px;border-radius:23px}
  .neo-m-stage-kicker {font-size:8px}
  .neo-m-app-head {padding:10px}
  .neo-m-app-online {font-size:7px}
  .neo-m-message {font-size:10px}
  .neo-m-result-status {font-size:7px}
}
@media (prefers-reduced-motion:reduce) {
  .neo-mobile-stage,.neo-m-lightdot,.neo-m-stage-spark i {animation:none !important}
}
/* Header alignment and color continuity for compact phones */
@media (max-width: 767px) {
  a[aria-label="NEO Assistant"] ~ div a[href$="/demo"] {
    background: linear-gradient(105deg,#087454,#0d9e6e) !important;
    box-shadow: 0 7px 16px -12px rgba(4,110,72,.6);
  }
  a[aria-label="NEO Assistant"] ~ div button[aria-label="Отвори меню"],
  a[aria-label="NEO Assistant"] ~ div button[aria-label="Open menu"] {
    border-color:#d7ebe0 !important;
    background:#f7fcf9 !important;
    color:#195842 !important;
  }
}
@media (max-width: 380px) {
  a[aria-label="NEO Assistant"] > div > span:last-child > span {
    display:none !important;
  }
  a[aria-label="NEO Assistant"] ~ div a[href$="/demo"] {
    padding-inline:11px !important;
  }
}
