/* ============================================
   PING-YOU VERTICAL PAGES — shared styles
   for auto.html + restaurants.html
   Requires: shared.css
   ============================================ */

/* ============================================
   PER-VERTICAL THEMING
   ============================================ */
body[data-vertical="auto"]        { --accent: var(--coral); --accent-soft: var(--coral-soft); --accent-deep: var(--coral-deep); }
body[data-vertical="restaurants"] { --accent: var(--teal);  --accent-soft: var(--teal-soft);  --accent-deep: var(--teal-deep); }

/* ============================================
   VERTICAL HERO
   ============================================ */
.vert-hero {
  min-height: 80vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
  background: var(--bg);
}
.vert-hero .hero__aurora { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.vert-hero .aurora-blob { position: absolute; border-radius: 50%; filter: blur(80px); animation: aurora-drift var(--dur, 12s) ease-in-out infinite; will-change: transform; }
.vert-hero .aurora-blob:nth-child(1) { width: 580px; height: 580px; background: radial-gradient(circle, rgba(255,107,74,0.26), transparent 70%); top: -140px; right: -80px; --dur: 13s; }
.vert-hero .aurora-blob:nth-child(2) { width: 500px; height: 500px; background: radial-gradient(circle, rgba(42,191,179,0.20), transparent 70%); bottom: -80px; left: 15%; --dur: 16s; animation-delay: -4s; }
.vert-hero .aurora-blob:nth-child(3) { width: 380px; height: 380px; background: radial-gradient(circle, rgba(245,166,35,0.16), transparent 70%); top: 28%; left: -100px; --dur: 10s; animation-delay: -7s; }
.vert-hero__inner { position: relative; z-index: 1; max-width: 680px; }
.vert-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.82rem; font-weight: 600;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 24px;
}
.vert-hero__badge svg { animation: sparkle 2s ease-in-out infinite; }
@keyframes sparkle { 0%, 100% { transform: rotate(0deg) scale(1); } 25% { transform: rotate(10deg) scale(1.1); } 75% { transform: rotate(-5deg) scale(0.95); } }
.vert-hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--text-dark); margin-bottom: 20px;
}
.vert-hero__sub {
  font-size: 1.12rem; line-height: 1.7;
  color: var(--text-body); max-width: 560px; margin-bottom: 32px;
}
.vert-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Outline CTA on hero uses vertical accent */
.vert-hero .btn--outline { color: var(--accent); border-color: var(--accent); }
.vert-hero .btn--outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ============================================
   PAIN STATS
   ============================================ */
.pain { padding: 100px 0; background: var(--bg); position: relative; }
.pain__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.pain__card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius-md); padding: 36px 28px;
  text-align: center; position: relative;
}
.pain__number {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1.1;
  color: var(--coral); margin-bottom: 8px;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.pain__number--positive { color: var(--teal); }
.pain__card:nth-child(2) { border-top-color: var(--amber); }
.pain__card:nth-child(3) { border-top-color: var(--teal); }

/* Slot-machine digit columns */
.pain__digit {
  display: inline-block; position: relative;
  overflow: hidden;
  /* height set by JS from measured static text height */
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.pain__digit-strip {
  display: flex; flex-direction: column;
  /* duration set per-digit by JS for cascade effect */
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.pain__digit-strip span {
  display: block;
}
.pain__label {
  font-size: 0.92rem; line-height: 1.55; color: var(--text-muted);
}
@media (max-width: 768px) { .pain__grid { grid-template-columns: 1fr; gap: 16px; } .pain { padding: 72px 0; } }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how { padding: 100px 0; background: var(--bg-warm); position: relative; }
.how__flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 56px; position: relative;
}
/* Connector line between steps */
.how__flow::before {
  content: ''; position: absolute;
  top: 32px; left: calc(16.66% + 32px); right: calc(16.66% + 32px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 6px, transparent 6px, transparent 12px);
  opacity: 0.35;
}
.how__step { text-align: center; position: relative; z-index: 1; }
.how__num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.how__step-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--text-dark); margin-bottom: 8px;
}
.how__step-desc {
  font-size: 0.92rem; line-height: 1.6; color: var(--text-muted);
  max-width: 280px; margin: 0 auto;
}
@media (max-width: 768px) {
  .how__flow { grid-template-columns: 1fr; gap: 40px; }
  .how__flow::before { display: none; }
  .how { padding: 72px 0; }
}

/* ============================================
   PHONE MOCKUP (copied from index.css + tweaks)
   ============================================ */
.demo { padding: 100px 0; background: var(--bg); position: relative; }
.demo__layout {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  max-width: 400px; margin: 48px auto 0;
}
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phone-outer { position: relative; }
.phone-outer::before, .phone-outer::after { content: ''; position: absolute; inset: -14px; border-radius: 54px; border: 1.5px solid var(--accent); opacity: 0; pointer-events: none; animation: phone-ring 3s ease-out infinite; }
.phone-outer::after { animation-delay: 1.5s; }
@keyframes phone-ring { 0% { transform: scale(0.97); opacity: 0; } 30% { opacity: 0.25; } 100% { transform: scale(1.04); opacity: 0; } }
.phone { width: 300px; position: relative; background: #1a1a1a; border-radius: 40px; padding: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 24px 60px rgba(45,32,25,0.2), 0 8px 24px rgba(45,32,25,0.1), 0 0 80px rgba(255,107,74,0.08); }
.phone::before { content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #1a1a1a; border-radius: 0 0 16px 16px; z-index: 10; }
.phone::after { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%) translateX(34px); width: 9px; height: 9px; background: #2a2a2a; border-radius: 50%; box-shadow: inset 0 0 0 2px #333; z-index: 11; }
.phone__screen { background: var(--bg); border-radius: 30px; overflow: hidden; height: 500px; display: flex; flex-direction: column; }
.phone__statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 6px; font-size: 0.68rem; font-weight: 600; color: var(--text-dark); }
.phone__statusbar-icons { display: flex; gap: 4px; align-items: center; }
.phone__statusbar-icons svg { width: 13px; height: 13px; }
.chat__header { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid var(--border); }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-soft), var(--amber-soft)); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: var(--accent); }
.chat__name { font-size: 0.78rem; font-weight: 700; color: var(--text-dark); }
.chat__status { font-size: 0.62rem; color: var(--teal); font-weight: 500; }
.chat__messages { flex: 1; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.chat__messages::-webkit-scrollbar { display: none; }
.bubble { padding: 9px 13px; border-radius: 16px; font-size: 0.74rem; line-height: 1.5; max-width: 84%; opacity: 0; transform: translateY(12px) scale(0.95); white-space: pre-line; }
.bubble--bot { background: var(--bg-card); color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: 0 1px 3px rgba(45,32,25,0.05); }
.bubble--user { background: var(--coral); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
body[data-vertical="restaurants"] .bubble--user { background: var(--teal); }
.bubble.animate { animation: bubble-pop 0.5s var(--ease-out-expo) forwards; }
@keyframes bubble-pop { 0% { opacity: 0; transform: translateY(12px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.typing { display: flex; gap: 4px; align-items: center; padding: 8px 14px; align-self: flex-start; opacity: 0; }
.typing.show { animation: fade-in 0.3s ease forwards; }
.typing.hide { animation: fade-out 0.2s ease forwards; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
.typing__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: typing-bounce 1.4s ease-in-out infinite; }
.typing__dot:nth-child(2) { animation-delay: 0.15s; }
.typing__dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat__input { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-top: 1px solid var(--border); }
.chat__input-field { flex: 1; padding: 7px 12px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); font-size: 0.68rem; color: var(--text-muted); }
.chat__input-send { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); display: flex; align-items: center; justify-content: center; }
body[data-vertical="restaurants"] .chat__input-send { background: var(--teal); }
.chat__input-send svg { width: 12px; height: 12px; color: #fff; }
.demo-toggle { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; overflow: hidden; }
.demo-toggle__btn { flex: 1; padding: 10px 16px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: background 0.25s, color 0.25s; text-align: center; border: none; background: none; }
.demo-toggle__btn.active { background: var(--accent); color: #fff; border-radius: 100px; }
@media (max-width: 400px) { .phone { width: 270px; } }

/* ============================================
   LIVE DEMO CTA
   ============================================ */
.live-cta {
  padding: 80px 0; position: relative; overflow: hidden;
  background: var(--text-dark);
}
.live-cta .hero__aurora { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.live-cta .aurora-blob { position: absolute; border-radius: 50%; filter: blur(80px); animation: aurora-drift var(--dur, 12s) ease-in-out infinite; will-change: transform; }
.live-cta .aurora-blob:nth-child(1) { width: 470px; height: 470px; background: radial-gradient(circle, rgba(255,107,74,0.20), transparent 70%); top: -120px; right: -50px; --dur: 14s; }
.live-cta .aurora-blob:nth-child(2) { width: 410px; height: 410px; background: radial-gradient(circle, rgba(42,191,179,0.16), transparent 70%); bottom: -100px; left: 10%; --dur: 11s; animation-delay: -3s; }
.live-cta__inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 560px; margin: 0 auto;
}
.live-cta__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--teal);
  margin-bottom: 16px;
}
.live-cta__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(42,191,179,0.5);
  animation: live-pulse 2.5s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(42,191,179,0.5); } 50% { opacity: 0.6; box-shadow: 0 0 20px rgba(42,191,179,0.8); } }
.live-cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff;
  margin-bottom: 12px;
}
.live-cta__sub {
  font-size: 0.95rem; color: rgba(255,255,255,0.55);
  margin-bottom: 28px; line-height: 1.6;
}
.live-cta__number {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff;
  margin-bottom: 24px; letter-spacing: 0.01em;
}
.live-cta__number a { color: #fff; transition: color 0.2s; }
.live-cta__number a:hover { color: var(--accent); }
.live-cta__sms {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--coral); color: #fff;
  font-weight: 600; font-size: 1rem;
  padding: 16px 36px; border-radius: 100px;
  box-shadow: 0 4px 16px rgba(255,107,74,0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.25s ease;
}
.live-cta__sms:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,74,0.4); background: var(--coral-deep); }
@media (max-width: 600px) { .live-cta { padding: 56px 0; } }

/* ============================================
   FEATURES GRID
   ============================================ */
.features { padding: 100px 0; background: var(--bg-warm); position: relative; }
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px 24px;
  position: relative; overflow: hidden;
  transition: box-shadow 0.35s ease; will-change: transform;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0; transition: opacity 0.3s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { box-shadow: 0 20px 60px rgba(45,32,25,0.1), 0 4px 16px rgba(45,32,25,0.06); }
/* Rotating palette per brand guide */
.feature-card:nth-child(1)::before { background: var(--coral); }
.feature-card:nth-child(2)::before { background: var(--teal); }
.feature-card:nth-child(3)::before { background: var(--amber); }
.feature-card:nth-child(4)::before { background: var(--plum); }
.feature-card:nth-child(5)::before { background: var(--coral); }
.feature-card:nth-child(6)::before { background: var(--teal); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card:nth-child(1) .feature-card__icon { background: var(--coral-soft); color: var(--coral); }
.feature-card:nth-child(2) .feature-card__icon { background: var(--teal-soft); color: var(--teal); }
.feature-card:nth-child(3) .feature-card__icon { background: var(--amber-soft); color: var(--amber); }
.feature-card:nth-child(4) .feature-card__icon { background: var(--plum-soft); color: var(--plum); }
.feature-card:nth-child(5) .feature-card__icon { background: var(--coral-soft); color: var(--coral); }
.feature-card:nth-child(6) .feature-card__icon { background: var(--teal-soft); color: var(--teal); }
.feature-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--text-dark); margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 0.9rem; line-height: 1.6; color: var(--text-muted);
}
@media (max-width: 900px) { .features__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features__grid { grid-template-columns: 1fr; } .features { padding: 72px 0; } }

/* ============================================
   PROOF BAR
   ============================================ */
.proof {
  padding: 24px 0; background: var(--bg-warm);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.proof__inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-body);
}
.proof__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
  box-shadow: 0 0 8px rgba(42,191,179,0.4);
  animation: live-pulse 2.5s ease-in-out infinite;
}
.proof__name { font-weight: 700; color: var(--text-dark); }

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing { padding: 100px 0; background: var(--bg); position: relative; }
.pricing__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  margin-top: 48px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.pricing__card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  position: relative; will-change: transform;
  transition: box-shadow 0.35s ease;
}
.pricing__card:hover { box-shadow: 0 20px 60px rgba(45,32,25,0.1), 0 4px 16px rgba(45,32,25,0.06); }
.pricing__card--recommended { border-width: 2px; border-color: var(--accent); box-shadow: 0 8px 32px rgba(45,32,25,0.1), 0 2px 8px rgba(45,32,25,0.04), 0 0 0 4px var(--accent-soft); transform: scale(1.03); }
.pricing__card--recommended:hover { box-shadow: 0 20px 60px rgba(45,32,25,0.14), 0 4px 16px rgba(45,32,25,0.08), 0 0 0 4px var(--accent-soft); }
.pricing__badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.pricing__header {
  padding: 28px 24px 20px; text-align: center;
  background: var(--bg);
}
.pricing__card--recommended .pricing__header { background: var(--accent-soft); }
.pricing__tier {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: var(--text-dark); margin-bottom: 4px;
}
.pricing__name {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.pricing__price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; color: var(--text-dark); line-height: 1;
}
.pricing__price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing__anchor {
  display: block; font-size: 0.78rem; color: var(--text-muted);
  margin-top: 8px;
}
.pricing__anchor s { color: var(--coral); font-weight: 600; }
.pricing__body { padding: 20px 24px 28px; }
.pricing__features {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.pricing__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; line-height: 1.5; color: var(--text-body);
}
.pricing__check {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
  color: var(--teal);
}
.pricing__cta { text-align: center; padding: 0 24px 28px; }
@media (max-width: 600px) { .pricing__grid { grid-template-columns: 1fr; } .pricing { padding: 72px 0; } }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: 80px 0; text-align: center;
  background: var(--bg-warm);
}
.final-cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text-dark);
  margin-bottom: 16px;
}
.final-cta__sub {
  font-size: 1.05rem; line-height: 1.7; color: var(--text-muted);
  max-width: 480px; margin: 0 auto 32px;
}

/* ============================================
   SECTION HELPERS (used on vertical pages)
   ============================================ */
.vert-section__label {
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.vert-section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text-dark); margin-bottom: 16px;
}
.vert-section__desc {
  font-size: 1.05rem; line-height: 1.7; color: var(--text-muted);
  max-width: 540px;
}
.text-center { text-align: center; }
.text-center .vert-section__desc { margin-left: auto; margin-right: auto; }

/* ============================================
   CONFETTI (reused from index)
   ============================================ */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* Aurora drift — matches index.css keyframe */
@keyframes aurora-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, -45px) scale(1.04); } 66% { transform: translate(-40px, 50px) scale(0.97); } }
