/* Business Sales Page — premium motion styling */

/* ──────────── Mouse-follow blob ──────────── */
.web .biz-hero {
  position: relative;
  background: #0A0820;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  margin-top: -68px;
  padding-top: 68px;
}
.web .biz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at var(--mx, 30%) var(--my, 30%), rgba(123, 91, 255, 0.45) 0%, transparent 50%),
    radial-gradient(50% 40% at 90% 90%, rgba(255, 143, 203, 0.30) 0%, transparent 50%),
    radial-gradient(80% 60% at 50% 0%, rgba(85, 80, 255, 0.18) 0%, transparent 60%);
  z-index: 0;
  transition: background 0.4s;
  pointer-events: none;
}
.web .biz-hero > .container { position: relative; z-index: 1; }
.web .biz-hero > .float-pill { z-index: 5; }

/* Animated dot grid */
.web .biz-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* ──────────── Floating booking pills (decorative) ──────────── */
@keyframes floatIn {
  0% { transform: translateY(20px) scale(0.92); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.web .float-pill {
  position: absolute;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  color: #0F0E1A;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  max-width: 220px;
  z-index: 5;
  animation: floatIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards, drift 4s ease-in-out infinite;
}

/* Wrapper around the phone stage — anchors the floating pills around the
   phones (not the heading). Sits in the right column of .biz-hero-grid. */
.web .phone-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
}

/* Hide pills if the container is narrower than ~720 — at that point the
   phone column has no horizontal margin for the pills to sit in. */
@container web (max-width: 720px) {
  .web .biz-hero .float-pill { display: none !important; }
}

/* Hero grid */
.web .biz-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(540px, 0.9fr);
  gap: 40px;
  align-items: center;
}
@container web (max-width: 1080px) {
  .web .biz-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .web .journey-stage { margin: 0 auto; }
}
/* The phone is a fixed 540×620 stage. Below ~560px it is wider than the
   column, which left-anchors and clips it. Fix: shrink its LAYOUT footprint
   to the scaled size (so it centers and sits fully on-screen) and scale the
   inner stage from its top-left to match. 0.59×540≈320, 0.59×620≈366. */
@container web (max-width: 560px) {
  .web .phone-stage-wrap { width: 320px; height: 372px; margin: 0 auto; }
  .web .phone-stage-wrap .journey-stage {
    transform: scale(0.59);
    transform-origin: top left;
    max-width: none;
    margin: 0;
  }
  .web .biz-hero { padding-top: 108px; padding-bottom: 28px; }
}

/* ──────────── Customer + Business journey phones ──────────── */
.web .journey-stage {
  position: relative;
  width: 540px;
  max-width: 100%;
  height: 620px;
  perspective: 1400px;
}
.web .phone-screen {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.web .phone-screen.act {
  opacity: 1;
  transform: none;
}

@keyframes typeIn {
  from { max-width: 0; }
  to { max-width: 200px; }
}
.web .typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typeIn 1.4s steps(20, end) forwards;
  border-right: 2px solid var(--pri);
  vertical-align: bottom;
}

@keyframes notifPop {
  0%   { transform: translate(-50%, 60px) scale(0.9); opacity: 0; }
  60%  { transform: translate(-50%, 0) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
.web .biz-notif {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translate(-50%, 0);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 10;
  min-width: 220px;
  animation: notifPop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

/* Connection arc between the two phones */
@keyframes arcFlow {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  20%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.web .arc-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.web .arc-path.flow {
  animation: arcFlow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes spark {
  0%   { transform: translate(var(--sx, 0), var(--sy, 0)) scale(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translate(var(--ex, 320px), var(--ey, 80px)) scale(0.8); opacity: 0; }
}
.web .spark {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--pri) 70%);
  box-shadow: 0 0 16px rgba(255,255,255,0.9), 0 0 32px var(--pri);
  pointer-events: none;
}
.web .spark.fly {
  animation: spark 0.9s cubic-bezier(0.4, 0.1, 0.7, 0.9) forwards;
}

/* ──────────── Stat counters ──────────── */
.web .stat-band {
  background: #fff;
  padding: 56px 0;
  position: relative;
  z-index: 2;
  margin-top: -36px;
  border-radius: 32px 32px 0 0;
}
.web .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.web .stat-item {
  text-align: center;
  padding: 20px 16px;
  position: relative;
}
.web .stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--line);
}
.web .stat-num {
  font-size: clamp(36px, 4.5cqi, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(135deg, var(--pri-700), var(--pri));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.web .stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 600; }

/* ──────────── Industry marquee ──────────── */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.web .marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.web .marquee {
  display: flex;
  gap: 14px;
  animation: scrollLeft 60s linear infinite;
  width: max-content;
}
.web .marquee:hover { animation-play-state: paused; }
.web .marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sh-2);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}
.web .marquee-chip .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
}

/* ──────────── Compare table ──────────── */
.web .compare {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.web .compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding: 18px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.web .compare-row:last-child { border-bottom: 0; }
.web .compare-head {
  background: linear-gradient(180deg, var(--pri-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.web .compare-head .feat { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.web .compare-col-h { text-align: center; padding: 12px 8px; }
.web .compare-col-h.us { background: var(--ink); color: #fff; border-radius: 12px 12px 0 0; padding: 16px 8px; position: relative; }
.web .compare-col-h.us::before {
  content: 'YOU';
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px; border-radius: 5px;
  background: var(--pri); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em;
}
.web .compare-row .cell { text-align: center; padding: 4px; font-size: 13.5px; font-weight: 600; }
.web .compare-row .cell.yes { color: var(--green); }
.web .compare-row .cell.no { color: var(--muted-2); }
.web .compare-row .feat-name {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.web .compare-row .feat-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ──────────── Pricing toggle pill ──────────── */
.web .price-toggle {
  display: inline-flex;
  padding: 5px;
  background: var(--chip);
  border-radius: 999px;
  position: relative;
}
.web .price-toggle button {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.web .price-toggle button.on { color: var(--ink); }
.web .price-toggle .pill-bg {
  position: absolute;
  top: 5px; bottom: 5px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--sh-1);
  transition: left 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.3s;
}

/* ──────────── FAQ accordion ──────────── */
.web .faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
  cursor: pointer;
  transition: padding 0.2s;
}
.web .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.web .faq-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--chip);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.3s;
}
.web .faq-item.open .faq-icon { background: var(--pri); color: #fff; transform: rotate(45deg); }
.web .faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  transition: max-height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), padding 0.3s;
}
.web .faq-item.open .faq-a {
  max-height: 280px;
  padding-top: 14px;
}

/* ──────────── Bento ──────────── */
.web .bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
/* rv wrappers are the actual grid items — make them fill their cell */
.web .bento > .rv { height: 100%; }
/* inner cards fill the rv wrapper */
.web .bento > .rv > div {
  height: 100%;
  border-radius: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
/* grid spans via :has() so rv wrappers get the right placement */
.web .bento > .rv:has(.b-1) { grid-column: span 3; grid-row: span 2; }
.web .bento > .rv:has(.b-2) { grid-column: span 3; }
.web .bento > .rv:has(.b-3) { grid-column: span 3; }
.web .bento > .rv:has(.b-4) { grid-column: span 2; }
.web .bento > .rv:has(.b-5) { grid-column: span 2; }
.web .bento > .rv:has(.b-6) { grid-column: span 2; }

/* Final CTA */
.web .final-cta {
  background: linear-gradient(135deg, #1A0E4A 0%, #6B57FF 100%);
  color: #fff;
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.web .final-cta h2 {
  font-size: clamp(36px, 6cqi, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* ──────────── Pulse ──────────── */
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}
.web .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--green);
  animation: pulseDot 1.8s ease-in-out infinite;
}

/* Calendar-fills story */
.web .cal-demo {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--sh-3);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.web .cal-cells {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.web .cal-cells > div {
  padding: 6px 6px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  font-size: 10.5px;
  color: var(--muted);
  height: 36px;
  position: relative;
}
.web .cal-cells > div:nth-child(8n) { border-right: 0; }
.web .cal-cells .h { background: #FAFAFD; font-weight: 800; color: var(--ink); display: grid; place-items: center; }
.web .cal-evt {
  position: absolute;
  inset: 2px;
  border-radius: 7px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s, transform 0.5s;
}
.web .cal-evt.in {
  opacity: 1;
  transform: none;
}

/* Mobile responsiveness */
@container web (max-width: 900px) {
  .web .stat-grid { grid-template-columns: 1fr 1fr; }
  .web .stat-item + .stat-item::before { display: none; }
  .web .compare-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .web .compare-row .cell { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; }
  .web .compare-row .cell::before { content: attr(data-h); color: var(--muted); font-weight: 500; }
  .web .compare-head { display: none; }
  .web .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .web .bento > .rv { grid-column: span 1 !important; height: auto; min-height: 200px; }
  .web .bento > .rv > div { min-height: 200px; height: auto; }
  .web .final-cta { padding: 48px 24px; border-radius: 24px; }
}
