/* ==========================================================================
   BOTPEY HOMEPAGE — Design System (home.css)
   Scope: homepage only (resources/views/home.blade.php)
   Prefix: bp- (avoids collisions with legacy public/css/style.css)
   ========================================================================== */

:root {
  --bp-green: #7ED957;
  --bp-green-dark: #16a34a;
  --bp-green-deep: #15803d;
  --bp-lime: #a3e635;
  --bp-ink: #0f172a;
  --bp-slate: #64748b;
  --bp-bg-soft: #f8fafc;
  --bp-ring: rgba(126, 217, 87, 0.35);
  --bp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --bp-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --bp-shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
  --bp-shadow-green: 0 12px 32px -8px rgba(34, 197, 94, 0.45);
}

/* ---------- Layout helpers ---------- */
.bp-container { max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px)  { .bp-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .bp-container { padding-inline: 2rem; } }

/* ---------- Eyebrow / section headings ---------- */
.bp-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #15803d; background: #ecfdf5; border: 1px solid #bbf7d0;
  padding: .4rem 1rem; border-radius: 9999px;
}
.bp-eyebrow--dark { color: #7ED957; background: rgba(126,217,87,.1); border-color: rgba(126,217,87,.3); }

/* ---------- Buttons ---------- */
.bp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; border-radius: 9999px; padding: .9rem 1.9rem;
  font-size: .95rem; transition: all .2s ease; cursor: pointer; line-height: 1;
}
.bp-btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }
.bp-btn-primary {
  color: #fff; background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: var(--bp-shadow-green);
}
.bp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(34,197,94,.55); }
.bp-btn-dark { color: #fff; background: var(--bp-ink); }
.bp-btn-dark:hover { background: #1e293b; transform: translateY(-2px); }
.bp-btn-outline { color: var(--bp-ink); border: 2px solid #e2e8f0; background: #fff; }
.bp-btn-outline:hover { border-color: #16a34a; color: #16a34a; transform: translateY(-2px); }

/* ---------- Ambient glows & patterns ---------- */
.bp-glow { position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; }
.bp-grid-pattern {
  background-image:
    linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bp-grid-pattern--dark {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
}

/* ---------- Animations ---------- */
@keyframes bp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.bp-float { animation: bp-float 5s ease-in-out infinite; }
.bp-float-1 { animation: bp-float 6s ease-in-out infinite; animation-delay: .6s; }
.bp-float-2 { animation: bp-float 7s ease-in-out infinite; animation-delay: 1.2s; }

@keyframes bp-wave { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.bp-wave-bar {
  display: inline-block; width: 3px; border-radius: 3px;
  background: #16a34a; transform-origin: center; animation: bp-wave 1.1s ease-in-out infinite;
}

@keyframes bp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bp-marquee { overflow: hidden; position: relative; }
.bp-marquee-track { display: flex; width: max-content; animation: bp-marquee 30s linear infinite; }
.bp-marquee:hover .bp-marquee-track { animation-play-state: paused; }

/* ---------- Phone mockup ---------- */
.bp-phone {
  width: 300px; border-radius: 2.6rem; background: #0f172a;
  padding: 12px; box-shadow: 0 40px 80px -20px rgba(15,23,42,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.bp-phone-screen {
  position: relative; border-radius: 2rem; overflow: hidden; background: #e8f5e9;
  aspect-ratio: 9/19;
}
.bp-phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #0f172a; border-radius: 9999px; z-index: 30;
}

/* ---------- Chat mockup ---------- */
.bp-chat { display: flex; flex-direction: column; height: 100%; }
.bp-chat-header {
  display: flex; align-items: center; gap: .6rem;
  background: #075e54; color: #fff; padding: 2.2rem .9rem .7rem; z-index: 20;
}
.bp-chat-avatar {
  width: 34px; height: 34px; border-radius: 9999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
}
.bp-chat-body {
  flex: 1; padding: .9rem .7rem; display: flex; flex-direction: column; gap: .55rem;
  overflow: hidden; position: relative;
}
.bp-chat-body::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(7,94,84,.08) 1px, transparent 1px);
  background-size: 14px 14px;
}
.bp-chat-date {
  align-self: center; background: #fff; color: #667781; font-size: .62rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 9999px; box-shadow: var(--bp-shadow-sm);
}
.bp-chat-msg {
  max-width: 86%; padding: .55rem .75rem; border-radius: .9rem; font-size: .72rem; line-height: 1.45;
  position: relative; z-index: 1; box-shadow: var(--bp-shadow-sm);
}
.bp-chat-msg--in { align-self: flex-start; background: #fff; border-top-left-radius: .25rem; color: #1f2937; }
.bp-chat-msg--out {
  align-self: flex-end; background: #d9fdd3; border-top-right-radius: .25rem; color: #1f2937;
}
.bp-chat-msg b { font-weight: 700; }
.bp-chat-time { display: block; text-align: right; font-size: .55rem; color: #8596a3; margin-top: .2rem; }
.bp-chat-voice {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem;
}
.bp-chat-voice .bp-wave-bar { height: 16px; background: #075e54; }
.bp-chat-voice span.bp-v-dur { font-size: .62rem; color: #667781; }
.bp-chat-typing { align-self: flex-start; background: #fff; border-radius: .9rem; border-top-left-radius: .25rem; padding: .5rem .75rem; box-shadow: var(--bp-shadow-sm); display: flex; gap: 4px; }
.bp-chat-typing i { width: 6px; height: 6px; border-radius: 9999px; background: #a0b0ba; animation: bp-wave 1s ease-in-out infinite; display: inline-block; }
.bp-chat-typing i:nth-child(2) { animation-delay: .15s; }
.bp-chat-typing i:nth-child(3) { animation-delay: .3s; }
.bp-chat-input {
  display: flex; align-items: center; gap: .5rem; background: #f0f2f5; padding: .55rem .7rem; z-index: 20;
}
.bp-chat-input .bp-ci-field {
  flex: 1; background: #fff; border-radius: 9999px; padding: .45rem .9rem;
  font-size: .68rem; color: #667781;
}
.bp-chat-input .bp-ci-mic {
  width: 30px; height: 30px; border-radius: 9999px; background: #075e54; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Floating cards around phone */
.bp-float-card {
  position: absolute; background: #fff; border-radius: 1rem; box-shadow: var(--bp-shadow-lg);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; z-index: 40;
  border: 1px solid #f1f5f9;
}
.bp-fc-icon {
  width: 38px; height: 38px; border-radius: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bp-fc-title { font-size: .78rem; font-weight: 800; color: var(--bp-ink); line-height: 1.2; }
.bp-fc-sub { font-size: .66rem; color: var(--bp-slate); }

/* ---------- Browser / storefront mockup ---------- */
.bp-browser {
  border-radius: 1.4rem; overflow: hidden; background: #fff;
  box-shadow: var(--bp-shadow-lg); border: 1px solid #e2e8f0;
}
.bp-browser-bar {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem;
  background: #f8fafc; border-bottom: 1px solid #eef2f7;
}
.bp-browser-dot { width: 11px; height: 11px; border-radius: 9999px; }
.bp-browser-url {
  flex: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: 9999px;
  font-size: .72rem; color: #64748b; padding: .35rem .9rem; display: flex; align-items: center; gap: .4rem;
}
.bp-store-hero {
  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;
  padding: 1.4rem 1.5rem 1.2rem; display: flex; justify-content: space-between; align-items: flex-start;
}
.bp-store-name { font-weight: 800; font-size: 1.05rem; }
.bp-store-tag { font-size: .68rem; opacity: .9; }
.bp-store-cta {
  background: #fff; color: #15803d; font-size: .68rem; font-weight: 800;
  padding: .45rem .85rem; border-radius: 9999px; display: inline-flex; align-items: center; gap: .35rem;
}
.bp-store-grid { padding: 1.1rem 1.2rem 1.3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.bp-product {
  background: #fff; border: 1px solid #eef2f7; border-radius: .9rem; overflow: hidden;
  box-shadow: var(--bp-shadow-sm); transition: transform .2s ease;
}
.bp-product:hover { transform: translateY(-3px); }
.bp-product-thumb {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.bp-product-name { font-size: .66rem; font-weight: 700; color: #1f2937; padding: .4rem .5rem 0; }
.bp-product-price { font-size: .72rem; font-weight: 800; color: #16a34a; padding: .1rem .5rem .55rem; }

/* ---------- Chips (languages) ---------- */
.bp-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 9999px;
  padding: .55rem 1.1rem; font-weight: 700; font-size: .85rem; color: #334155;
  box-shadow: var(--bp-shadow-sm); white-space: nowrap;
}

/* ---------- How-it-works steps ---------- */
.bp-step-card {
  background: #fff; border: 1px solid #eef2f7; border-radius: 1.6rem; padding: 2rem;
  box-shadow: var(--bp-shadow-sm); transition: all .25s ease; position: relative;
}
.bp-step-card:hover { transform: translateY(-6px); box-shadow: var(--bp-shadow-lg); }
.bp-step-num {
  width: 44px; height: 44px; border-radius: 9999px; background: #16a34a; color: #fff;
  font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--bp-shadow-green);
}
.bp-step-line {
  position: absolute; top: 2.4rem; left: calc(50% + 3.2rem); width: calc(100% - 6.4rem);
  border-top: 2px dashed #bbf7d0;
}

/* ---------- Feature tiles ---------- */
.bp-icon-tile {
  width: 56px; height: 56px; border-radius: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.bp-feature-card { transition: all .25s ease; }
.bp-feature-card:hover { transform: translateY(-6px); box-shadow: var(--bp-shadow-lg); }
.bp-feature-card:hover .bp-icon-tile { transform: scale(1.08); }

/* ---------- Voice pill ---------- */
.bp-voice-pill {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--bp-ink); color: #fff; border-radius: 9999px;
  padding: .9rem 1.5rem; font-weight: 600; font-size: .95rem;
  box-shadow: var(--bp-shadow-lg);
}
.bp-voice-pill .bp-wave-bar { background: var(--bp-green); height: 18px; }
.bp-voice-ring { position: relative; }
.bp-voice-ring::after {
  content: ""; position: absolute; inset: -6px; border-radius: 9999px;
  border: 2px solid rgba(126,217,87,.5); animation: bp-ring 2s ease-out infinite;
}
@keyframes bp-ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Sarathi assistant card ---------- */
.bp-sarathi {
  border-radius: 1.6rem; background: #fff; box-shadow: var(--bp-shadow-lg); overflow: hidden;
  border: 1px solid #eef2f7;
}
.bp-sarathi-head {
  display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff;
}
.bp-sarathi-bubble {
  display: flex; gap: .6rem; padding: 1rem 1.3rem; align-items: flex-start;
}
.bp-sarathi-bubble--user { flex-direction: row-reverse; background: #f8fafc; }
.bp-sarathi-avatar {
  width: 34px; height: 34px; border-radius: 9999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem;
}
.bp-sarathi-msg {
  background: #f0fdf4; border: 1px solid #dcfce7; color: #1f2937;
  border-radius: 1rem; border-top-left-radius: .3rem; padding: .75rem 1rem; font-size: .85rem; line-height: 1.55;
}
.bp-sarathi-bubble--user .bp-sarathi-msg {
  background: #eef2ff; border-color: #e0e7ff; border-radius: 1rem; border-top-right-radius: .3rem;
}

/* ---------- Testimonials ---------- */
.bp-testimonial {
  background: #fff; border: 1px solid #eef2f7; border-radius: 1.6rem; padding: 2rem;
  box-shadow: var(--bp-shadow-sm); transition: all .25s ease;
}
.bp-testimonial:hover { transform: translateY(-6px); box-shadow: var(--bp-shadow-lg); }
.bp-quote-mark {
  width: 42px; height: 42px; border-radius: .9rem; background: #ecfdf5; color: #16a34a;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800;
}

/* ---------- FAQ ---------- */
.bp-faq-item {
  background: #fff; border: 1px solid #eef2f7; border-radius: 1.1rem; overflow: hidden;
  transition: box-shadow .2s ease;
}
.bp-faq-item[open], .bp-faq-item.bp-open { box-shadow: var(--bp-shadow-md); }
.bp-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; font-weight: 700; color: #1f2937; font-size: .98rem; text-align: left;
}
.bp-faq-a { padding: 0 1.4rem 1.2rem; color: #64748b; font-size: .92rem; line-height: 1.65; }

/* ---------- Logo strip ---------- */
.bp-logo-strip img { opacity: .55; filter: grayscale(1); transition: all .25s ease; }
.bp-logo-strip img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- UPI apps ---------- */
.bp-upi-img { height: 34px; width: auto; object-fit: contain; }

/* ---------- Stats ---------- */
.bp-stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; color: var(--bp-ink);
}

/* ---------- Misc ---------- */
.bp-wa-icon {
  display: inline-flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; border-radius: 9999px;
}
.bp-underline-green { background-image: linear-gradient(transparent 62%, rgba(126,217,87,.55) 0); }
.bp-rounded-4xl { border-radius: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .bp-float, .bp-float-1, .bp-float-2, .bp-wave-bar, .bp-marquee-track, .bp-voice-ring::after { animation: none !important; }
  .bp-marquee-track { width: auto; }
}
