/* Home page. Builds on brand.css tokens (--orange, --navy, --muted, --line, --shadow, --radius). */

.lp-page main { overflow-x: hidden; }
.lp-page h1, .lp-page h2, .lp-page h3 { font-family: Outfit, sans-serif; color: var(--navy); }
.lp-accent { color: var(--orange); }

/* ---------- hero ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 1.5rem 6vw 3rem;
}
.lp-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.08; margin: 0.4rem 0 1rem; }
.lp-lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 40rem; margin: 0; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.lp-center { justify-content: center; }
.lp-wa-btn { background: #16a34a; }
.lp-wa-btn:hover { background: #15803d; }
.lp-btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.lp-number { margin: 1rem 0 0; color: var(--muted); }
.lp-number strong { color: var(--navy); }
.lp-langs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 1.4rem 0 0; }
.lp-langs li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.3rem 0.8rem; font-weight: 600; font-size: 0.9rem; color: var(--navy);
}

/* sample conversation */
.lp-phone {
  justify-self: center;
  width: min(100%, 340px);
  background: #0b141a;
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(15, 28, 46, 0.28);
}
.lp-phone-top {
  display: flex; align-items: center; gap: 0.6rem;
  background: #1f2c34; color: #fff; padding: 0.7rem 0.9rem; border-radius: 24px 24px 0 0;
}
.lp-phone-top img { border-radius: 50%; background: #fff; }
.lp-phone-top small { display: block; color: #8ed1a8; font-size: 0.75rem; }
.lp-phone-chat {
  display: flex; flex-direction: column; gap: 0.45rem;
  background: #efe7dd; padding: 0.9rem 0.7rem 1.1rem; border-radius: 0 0 24px 24px;
  min-height: 380px;
}
.lp-bubble {
  max-width: 85%; padding: 0.5rem 0.7rem; border-radius: 10px;
  font-size: 0.86rem; line-height: 1.35; color: #111b21; background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.lp-bubble.me { align-self: flex-end; background: #d9fdd3; }
.lp-bubble small { display: block; color: #54656f; font-size: 0.75rem; margin-top: 0.15rem; }
.lp-card { border-left: 4px solid var(--orange); }
.lp-voice { display: flex; align-items: center; gap: 0.5rem; }
.lp-voice small { margin: 0; }
.lp-wave {
  width: 90px; height: 16px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #6aa08f 0 3px, transparent 3px 6px);
  mask: linear-gradient(90deg, #000 0%, #000 100%);
  opacity: 0.8;
}

/* ---------- trust strip ---------- */
.lp-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: 0 6vw; padding: 1.4rem 1.6rem;
  background: var(--navy); color: #fff; border-radius: var(--radius);
}
.lp-trust div { display: flex; flex-direction: column; gap: 0.15rem; }
.lp-trust strong { font-family: Outfit, sans-serif; font-size: 1.8rem; color: var(--orange); }
.lp-trust span { color: #cbd5e1; }

/* ---------- sections ---------- */
.lp-section { padding: 4rem 6vw 0; }
.lp-head { max-width: 44rem; margin-bottom: 1.8rem; }
.lp-head h2, .lp-section h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0.3rem 0 0.5rem; }

.lp-services {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem;
}
.lp-services article, .lp-way {
  background: var(--card); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow);
  border: 1px solid transparent; transition: border-color 0.15s ease, transform 0.15s ease;
}
.lp-services article:hover, .lp-way:hover { border-color: #ffd2a8; transform: translateY(-2px); }
.lp-services span, .lp-way span { font-size: 1.7rem; }
.lp-services h3, .lp-way h3 { margin: 0.5rem 0 0.3rem; font-size: 1.1rem; }
.lp-services p, .lp-way p { margin: 0; color: var(--muted); line-height: 1.5; }

.lp-way-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.lp-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.lp-channel {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem 1.3rem;
  border-radius: var(--radius); color: #fff;
}
.lp-channel strong { font-size: 1.15rem; }
.lp-channel small { opacity: 0.92; }
.lp-channel.wa { background: #16a34a; }
.lp-channel.web { background: var(--navy); }
.lp-channel.call { background: var(--orange-deep); }

.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lp-steps li { background: var(--card); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.lp-steps h3 { margin: 0.7rem 0 0.3rem; }
.lp-steps p { margin: 0; color: var(--muted); line-height: 1.5; }
.lp-num {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: #fff3e8; color: var(--orange-deep); font-weight: 800; font-family: Outfit, sans-serif;
}

.lp-safe {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
}
.lp-safe-copy p { line-height: 1.6; }
.lp-warning { background: #fff7ed; border-left: 4px solid var(--orange); padding: 0.8rem 1rem; border-radius: 10px; }
.lp-safe-list {
  list-style: none; margin: 0; padding: 1.4rem; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); display: grid; gap: 0.8rem; font-weight: 600; color: var(--navy);
}

.lp-staff { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.lp-staff figure { margin: 0; }

/* ---------- the handover scene (customer chat + agent console) ---------- */
.lp-handover {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.2rem;
  align-items: center; padding: 2rem 1.6rem 3.4rem; border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 122, 0, 0.16), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(37, 99, 235, 0.12), transparent 50%),
    var(--card);
  box-shadow: var(--shadow);
}
.lp-phone {
  background: #efeae2; border-radius: 26px; padding: 0 0.8rem 0.9rem; border: 6px solid var(--navy);
  min-height: 330px; display: flex; flex-direction: column; gap: 0.5rem; overflow: hidden;
}
.lp-phone-bar {
  margin: 0 -0.8rem 0.3rem; padding: 0.7rem 0.9rem; background: #075e54; color: #fff; font-weight: 700;
  font-size: 0.9rem; display: flex; align-items: center; gap: 0.45rem;
}
.lp-phone-bar small { margin-left: auto; font-weight: 400; opacity: 0.8; }
.lp-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.lp-bub {
  margin: 0; max-width: 88%; padding: 0.5rem 0.7rem; border-radius: 12px; font-size: 0.86rem; line-height: 1.35;
  color: #1f2937; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.lp-bub.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.lp-bub.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.lp-bub.agent b { display: block; font-size: 0.78rem; color: #075e54; margin-bottom: 0.15rem; }
.lp-typing { margin: 0; align-self: flex-start; background: #fff; border-radius: 12px; padding: 0.55rem 0.7rem; display: flex; gap: 4px; }
.lp-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9aa4b4; animation: lp-blink 1.2s infinite; }
.lp-typing span:nth-child(2) { animation-delay: 0.2s; }
.lp-typing span:nth-child(3) { animation-delay: 0.4s; }

.lp-console {
  background: var(--navy); color: #e5e8ef; border-radius: 20px; padding: 1rem; display: grid; gap: 0.8rem;
  box-shadow: 0 24px 50px rgba(15, 28, 46, 0.25); transform: rotate(1.2deg);
}
.lp-alert {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; align-items: center;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 0.65rem 0.75rem;
  box-shadow: inset 0 0 0 2px var(--orange);
}
.lp-alert b { display: block; font-size: 0.9rem; }
.lp-alert small { color: var(--muted); font-size: 0.78rem; }
.lp-bell { font-size: 1.3rem; animation: lp-ring 2.4s ease-in-out infinite; transform-origin: top center; }
.lp-join { background: var(--orange); color: #fff; font-weight: 700; font-size: 0.78rem; padding: 0.35rem 0.65rem; border-radius: 999px; white-space: nowrap; }
.lp-facts { margin: 0; display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.45rem 0.7rem; font-size: 0.84rem; }
.lp-facts dt { color: #8f9bb0; font-weight: 600; }
.lp-facts dd { margin: 0; color: #fff; line-height: 1.4; }
.lp-status { font-size: 0.8rem; color: #b9e7b9; font-weight: 600; }
.lp-live { color: #34d399; animation: lp-blink 1.6s infinite; }

.lp-flow {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); margin: 0; padding: 0;
  list-style: none; display: flex; gap: 0.4rem; white-space: nowrap;
}
.lp-flow li {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem 0.25rem 0.3rem; border-radius: 999px;
  background: var(--paper); color: var(--navy); font-size: 0.8rem; font-weight: 600;
}
.lp-flow b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 0.72rem; }

/* The scene plays once: question, handover, alert, agent. landing.js holds it (is-waiting)
   until it scrolls into view; without JavaScript it plays on load. */
.lp-handover.is-waiting .lp-bub, .lp-handover.is-waiting .lp-alert, .lp-handover.is-waiting .lp-facts,
.lp-handover.is-waiting .lp-status, .lp-handover.is-waiting .lp-typing { animation-play-state: paused; }
.lp-handover .lp-bub, .lp-handover .lp-alert, .lp-handover .lp-facts, .lp-handover .lp-status, .lp-handover .lp-typing {
  animation: lp-in 0.5s ease-out both;
}
.lp-handover .lp-bub.in { animation-delay: 0.2s; }
.lp-handover .lp-bub.out { animation-delay: 0.9s; }
.lp-handover .lp-alert { animation-delay: 1.5s; }
.lp-handover .lp-facts { animation-delay: 1.9s; }
.lp-handover .lp-bub.agent { animation-delay: 2.6s; }
.lp-handover .lp-status { animation-delay: 2.9s; }
.lp-handover .lp-typing { animation: lp-in 0.5s ease-out 3.2s both; }
@keyframes lp-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes lp-blink { 50% { opacity: 0.3; } }
@keyframes lp-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .lp-handover *, .lp-handover .lp-typing { animation: none !important; }
}
@media (max-width: 600px) {
  .lp-handover { grid-template-columns: 1fr; padding: 1.2rem 1rem 3.6rem; }
  .lp-console { transform: none; }
  .lp-phone { min-height: 0; }
  .lp-flow { left: 1rem; right: 1rem; transform: none; justify-content: center; flex-wrap: wrap; white-space: normal; }
}

.lp-faq details {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 1rem 1.2rem; margin-bottom: 0.7rem; max-width: 52rem;
}
.lp-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.lp-faq details p { margin: 0.6rem 0 0; color: var(--muted); line-height: 1.6; }

.lp-cta {
  margin: 4rem 6vw 1rem; padding: 2.6rem 1.5rem; text-align: center; color: #fff;
  border-radius: 24px; background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
}
.lp-cta h2 { color: #fff; margin: 0 0 0.4rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lp-cta p { margin: 0; font-size: 1.1rem; }
.lp-cta-wa { background: #fff; color: #15803d; }
.lp-cta-web { background: var(--navy); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .lp-way-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .lp-hero, .lp-safe, .lp-staff { grid-template-columns: 1fr; }
  .lp-hero { gap: 2rem; }
  .lp-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lp-hero, .lp-section { padding-left: 16px; padding-right: 16px; }
  .lp-trust, .lp-cta { margin-left: 16px; margin-right: 16px; }
  .lp-steps { grid-template-columns: 1fr; }
  /* Two compact cards per row so ten services are not a mile of scrolling. */
  .lp-services, .lp-way-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .lp-services article, .lp-way { padding: 0.85rem; }
  .lp-services span, .lp-way span { font-size: 1.4rem; }
  .lp-services h3, .lp-way h3 { font-size: 0.98rem; }
  .lp-services p, .lp-way p { font-size: 0.86rem; line-height: 1.4; }
  .lp-actions .oa-btn { flex: 1 1 100%; }
  .lp-section { padding-top: 3rem; }
}
