/* =====================================================================
   Pobo landing page (pobo.app)
   Brand theme = Pobo Panel: periwinkle #586cda, light surfaces, no green.
   Loaded AFTER login.css / navbar.css so brand overrides win.
   The login modal markup/JS still lives in login.blade.php; only its
   colours are re-skinned here.
   ===================================================================== */

:root {
  --lp-primary: #586cda;        /* brand periwinkle            */
  --lp-primary-600: #4557c4;    /* hover / active              */
  --lp-primary-300: #6779db;    /* lighter periwinkle          */
  --lp-secondary: #a9b2e5;      /* light periwinkle            */
  --lp-tint: #eef0fb;           /* periwinkle-tinted surface   */
  --lp-ink: #3e3e3e;            /* dark action / headings ink  */
  --lp-gold: #ebc81e;
  --lp-red: #ef4444;
  --lp-text: #2c2e3a;
  --lp-muted: #6b6f80;
  --lp-bg: #f7f8fd;
  --lp-card: #ffffff;
  --lp-border: #e5e7f4;
  --lp-shadow: 0 18px 50px rgba(88, 108, 218, 0.14);
}

/* ---- base (override login.css dark body) ------------------------- */
body {
  background-color: var(--lp-bg) !important;
  color: var(--lp-text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* ---- navbar reskin ---------------------------------------------- */
#navbar {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--lp-border);
  height: 76px;
}
.logoContainer { flex: 0 0 auto; justify-content: flex-start; padding-left: 28px; }
.poboLogo { height: 30px; }
.poboLogin { fill: var(--lp-primary); right: 28px; }
.poboLogin:hover { fill: var(--lp-primary-600); }
.userLogout { color: var(--lp-primary); right: 56px; font-weight: 600; }

/* ---- layout shell ----------------------------------------------- */
.lp {
  max-width: 1180px;
  margin: 0 auto;
  padding: 116px 24px 24px;
}

/* =====================================================================
   HERO
   ===================================================================== */
.lp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding: 20px 0 56px;
}
.lp-hero__copy { max-width: 680px; }
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lp-primary-600);
  background: var(--lp-tint);
  border: 1px solid var(--lp-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.lp-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lp-primary);
  box-shadow: 0 0 0 4px rgba(88, 108, 218, 0.18);
}
.lp-hero h1 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  margin: 0 0 18px;
}
.lp-hero h1 .accent { color: var(--lp-primary); }
.lp-hero__lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--lp-muted);
  margin: 0 0 30px;
}
.lp-hero__lead strong { color: var(--lp-text); font-weight: 600; }

.lp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.lp-btn--primary {
  background: var(--lp-ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(62, 62, 62, 0.22);
}
.lp-btn--primary:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(62, 62, 62, 0.28);
}
.lp-btn svg { width: 16px; height: 16px; fill: currentColor; }
.lp-trust {
  font-size: 13px;
  color: var(--lp-muted);
}
.lp-trust b { color: var(--lp-primary-600); font-weight: 600; }

/* =====================================================================
   STAGE — Pod (wide browser) -> vertical flow -> Panel (wide browser)
   Both apps use the SAME wide browser frame; the frame adapts to the
   video's natural aspect ratio (drop a <video> in and it just fits).
   ===================================================================== */
.lp-stage {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lp-stage::before { /* soft brand glow behind the frames */
  content: "";
  position: absolute;
  inset: -4% -6%;
  background: radial-gradient(ellipse at center, rgba(88,108,218,0.14), transparent 70%);
  z-index: 0;
}
.lp-device { position: relative; z-index: 1; margin: 0; width: 100%; }
.lp-device figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lp-muted);
}
.lp-device figcaption b {
  display: block;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-ink);
}

/* ---- shared wide browser frame (Pobo Pod & Pobo Panel) ---------- */
.lp-browser {
  width: 100%;
  background: #20232f;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--lp-shadow);
}
.lp-browser__bar {
  display: flex;
  gap: 7px;
  padding: 4px 4px 10px;
}
.lp-browser__bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a3e4d;
}
.lp-browser__bar span:nth-child(1) { background: #ef4444; }
.lp-browser__bar span:nth-child(2) { background: #ebc81e; }
.lp-browser__bar span:nth-child(3) { background: #6779db; }
.lp-browser__screen {
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  background: var(--lp-tint);
}
/* the real video: drop it straight into __screen, it sets its own height */
.lp-video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- animation placeholder (drop real Pod/Panel video here) ----- */
/* default to the wide ~2.15:1 desktop-capture shape until the video lands */
.lp-browser__screen .lp-anim { aspect-ratio: 43 / 20; }

/* ---- minimal video player (play/pause · restart · scrub) -------- */
.lp-player { position: relative; width: 100%; line-height: 0; }
.lp-player .lp-video { display: block; width: 100%; height: auto; cursor: pointer; }
.lp-player__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 12px 11px;
  line-height: normal;
  background: linear-gradient(to top, rgba(20, 22, 30, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* reveal on hover, keyboard focus, or while paused */
.lp-player:hover .lp-player__controls,
.lp-player:focus-within .lp-player__controls,
.lp-player.is-paused .lp-player__controls { opacity: 1; }

.lp-player__btn {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lp-ink);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lp-player__btn:hover { background: #fff; transform: translateY(-1px); }
.lp-player__btn svg { width: 12px; height: 12px; fill: currentColor; display: block; }
/* play/pause icon swap */
.lp-player .icon-play { display: none; }
.lp-player.is-paused .icon-pause { display: none; }
.lp-player.is-paused .icon-play { display: block; }

.lp-player__seek {
  flex: 1 1 auto;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  outline: none;
}
.lp-player__seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--lp-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.lp-player__seek::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--lp-primary);
  border: 2px solid #fff;
  cursor: pointer;
}
.lp-player__seek:focus-visible { box-shadow: 0 0 0 3px rgba(88, 108, 218, 0.4); }
.lp-player__time {
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  opacity: 0.85;
  white-space: nowrap;
}
.lp-anim {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  position: relative;
  background:
    linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 70%),
    linear-gradient(160deg, #f3f4fc 0%, #e4e7f8 100%);
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: lp-shimmer 2.6s ease-in-out infinite;
}
.lp-anim__icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 6px 16px rgba(88,108,218,0.22);
}
.lp-anim__icon svg { width: 22px; height: 22px; fill: var(--lp-primary); }
.lp-anim__title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--lp-ink);
}
.lp-anim__note {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-secondary);
}
@keyframes lp-shimmer {
  0%   { background-position: 200% 0, 0 0; }
  100% { background-position: -120% 0, 0 0; }
}

/* ---- flow connector (vertical: Pod above -> Panel below) -------- */
.lp-flow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 104px;
  margin: 4px 0;
}
.lp-flow__lane {
  position: relative;
  width: 24px;
  height: 100%;
}
.lp-flow__track {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom, var(--lp-secondary) 0 6px, transparent 6px 12px);
  opacity: 0.75;
}
.lp-flow__packet {
  position: absolute;
  left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 5px;
  background: var(--lp-primary);
  box-shadow: 0 4px 10px rgba(88,108,218,0.5);
}
/* downstream: Pod -> Panel (top to bottom) */
.lp-flow__lane--down .lp-flow__packet {
  animation: lp-move-down 2.4s linear infinite;
}
.lp-flow__lane--down .lp-flow__packet:nth-child(3) { animation-delay: 0.8s; }
.lp-flow__lane--down .lp-flow__packet:nth-child(4) { animation-delay: 1.6s; }
/* upstream: Panel -> Pod (bottom to top) */
.lp-flow__lane--up .lp-flow__track {
  background: repeating-linear-gradient(
    to bottom, var(--lp-primary-300) 0 6px, transparent 6px 12px);
}
.lp-flow__lane--up .lp-flow__packet {
  background: var(--lp-gold);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(235,200,30,0.55);
  animation: lp-move-up 2.4s linear infinite;
}
.lp-flow__lane--up .lp-flow__packet:nth-child(3) { animation-delay: 1.2s; }
.lp-flow__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lp-muted);
}
.lp-flow__label--down { color: var(--lp-primary-600); }
.lp-flow__label--up { color: #b9971a; }

@keyframes lp-move-down {
  0%   { top: -6%;  opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes lp-move-up {
  0%   { top: 100%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: -6%;  opacity: 0; }
}

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.lp-how { padding: 40px 0 24px; }
.lp-how__head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.lp-how h2 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  margin: 0 0 12px;
}
.lp-how__head p { color: var(--lp-muted); font-size: 16px; line-height: 1.6; margin: 0; }

.lp-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.lp-step {
  position: relative;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 28px 24px 26px;
  box-shadow: 0 10px 30px rgba(44, 46, 58, 0.05);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.lp-step:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.lp-step__num {
  counter-increment: step;
  font-family: 'Manrope', 'Inter', sans-serif;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--lp-tint);
  color: var(--lp-primary-600);
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 16px;
}
.lp-step__num::before { content: counter(step); }
.lp-step h3 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-ink);
  margin: 0 0 8px;
}
.lp-step h3 .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.lp-step h3 .tag--pod { background: var(--lp-tint); color: var(--lp-primary-600); }
.lp-step h3 .tag--panel { background: #efe9c6; color: #8a7411; }
.lp-step p { color: var(--lp-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
/* arrow between steps (desktop) */
.lp-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px; right: -16px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--lp-secondary);
  border-right: 2px solid var(--lp-secondary);
  transform: rotate(45deg);
  z-index: 1;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  margin-top: 56px;
  padding: 40px 24px 48px;
  text-align: center;
}
.lp-footer__links {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lp-footer__links a {
  color: var(--lp-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.lp-footer__links a:hover { color: var(--lp-primary); }
.lp-footer__info {
  color: var(--lp-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 14px;
}
.lp-footer__copy {
  color: var(--lp-secondary);
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* =====================================================================
   LOGIN MODAL re-skin (markup/JS unchanged in login.blade.php)
   ===================================================================== */
.p_login_container {
  background: #ffffff !important;
  box-shadow: var(--lp-shadow) !important;
  border: 1px solid var(--lp-border);
}
.p_login { color: var(--lp-text); }
.p_cancel { fill: var(--lp-secondary); }
.p_login .p_label { background-color: var(--lp-tint); }
.p_icon { fill: var(--lp-primary); }
.p_login input[type="text"],
.p_login input[type="password"] { background-color: #f1f2fb; color: var(--lp-text); }
.p_login input[type="text"]:hover,
.p_login input[type="text"]:focus,
.p_login input[type="password"]:hover,
.p_login input[type="password"]:focus { background-color: #e6e8f7; }
.credsSubmitBtn, .otpSubmitBtn, .otpResendBtn {
  background-color: var(--lp-ink) !important;
  color: #fff !important;
}
.credsSubmitBtn:hover, .otpSubmitBtn:hover, .otpResendBtn:hover,
.credsSubmitBtn:focus, .otpSubmitBtn:focus, .otpResendBtn:focus {
  background-color: #2a2a2a !important;
}
.otp_text { color: var(--lp-primary-600); }
.otp-input { border: 1px solid var(--lp-border) !important; color: var(--lp-text); }
.overlay { background: rgba(32, 35, 47, 0.55); }

/* =====================================================================
   RESPONSIVE  (layout is single-column / vertical at every width, so
   these only tune spacing and sizes)
   ===================================================================== */
@media (max-width: 720px) {
  .lp { padding-top: 100px; }
  .lp-flow { height: 84px; gap: 12px; }
  .lp-steps { grid-template-columns: 1fr; gap: 18px; }
  .lp-step:not(:last-child)::after {
    top: auto; bottom: -15px; right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
}

@media (max-width: 480px) {
  .lp { padding-left: 16px; padding-right: 16px; }
  .lp-eyebrow { font-size: 12px; }
  .lp-flow { gap: 8px; }
  .lp-flow__label { display: none; } /* tight screens: keep just the moving dots */
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .lp-anim,
  .lp-flow__packet { animation: none !important; }
  .lp-flow__packet { display: none; }
}
