/* AI-chatbotit (ai-chatbotit.php). Tiedostot ladataan numerojärjestyksessä, joten myöhempi ohittaa aiemman.
   Hero ja asiakkaan botin kuvitus. */

  /* ============================================================
     HERO
     ============================================================ */
  .hero-page {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, #f0eeff 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
  }
  .hero-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(216, 35, 205, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(232, 30, 133, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-page-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .hero-page-inner { max-width: 640px; }
  .hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .hero-page .kicker {
    color: var(--magenta);
    margin-bottom: 20px;
  }
  .hero-page h1 {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
  }
  .hero-page h1 .gr {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-page p {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 36px;
  }
  .hero-page p + p { margin-top: -16px; margin-bottom: 36px; }
  .hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* ============================================================
     HERON KUVITUS: asiakkaan botti
     ============================================================ */
  .chat-visual {
    width: 100%;
    max-width: 440px;
    position: relative;
    margin: 0 auto;
  }
  .chat-window {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--sh-lg);
    overflow: hidden;
    position: relative;
    z-index: 2;
    animation: chatFloat 7s ease-in-out infinite;
  }
  @keyframes chatFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .chat-header {
    background: var(--navy-deeper);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .chat-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }
  .chat-header-info { flex: 1; }
  .chat-header-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
  }
  .chat-header-status {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
  }
  .chat-header-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
  }
  .chat-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface);
    min-height: 210px;
  }
  .chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    font-weight: 500;
  }
  .chat-msg.bot {
    background: #fff;
    color: var(--navy-dark);
    border: 1px solid var(--border);
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    box-shadow: var(--sh-md);
  }
  .chat-msg.user {
    background: var(--navy-dark);
    color: #fff;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
  }
  .chat-typing {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    padding: 11px 16px;
    display: flex;
    gap: 5px;
    align-items: center;
  }
  .chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingDot 1.4s ease-in-out infinite;
  }
  .chat-typing span:nth-child(2) { animation-delay: 0.2s; }
  .chat-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes typingDot {
    0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
  }
  .chat-footer {
    padding: 12px 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--border);
    background: #fff;
  }
  .chat-input-mock {
    flex: 1;
    height: 36px;
    background: var(--surface);
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 0 14px;
    display: flex;
    align-items: center;
  }
  .chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .chat-badge {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: var(--sh-lg);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    z-index: 3;
  }
  .chat-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .chat-badge-24 {
    top: -14px;
    right: -16px;
    transform: rotate(4deg);
    animation: badgeFloatA 6s ease-in-out infinite;
  }
  .chat-badge-24 .badge-dot { background: #4ade80; }
  .chat-badge-lead {
    bottom: 32px;
    left: -22px;
    transform: rotate(-3deg);
    animation: badgeFloatB 7s ease-in-out 1s infinite;
  }
  .chat-badge-lead .badge-dot { background: var(--orange); }
  @keyframes badgeFloatA {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-8px); }
  }
  @keyframes badgeFloatB {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-8px); }
  }

  /* ============================================================
     HERON HINTARIVI: lähtöhinta, käyttöönotto, takuu
     ============================================================ */
  .hero-page p.hero-price-note {
    margin: -12px 0 32px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--navy-dark);
  }
