@import url('./demo-import.css');

/* ═══════════════════════════════════════════════════════
   Mobile-first landing overrides for Pawcus
   ═══════════════════════════════════════════════════════ */

/* ── Base ── */
.landing-page main { padding-top: 0; }
.landing-page *    { box-sizing: border-box; }

/* ── Nav: hide links on mobile, show hamburger ── */
.lp-nav-links {
  display: none;
}
.lp-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
}
.lp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.25s;
}
.lp-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lp-mobile-menu.open {
  display: flex;
}
.lp-mobile-menu a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
  width: 100%;
  max-width: 280px;
  text-align: center;
}
.lp-mobile-menu a:hover  { background: var(--bg-muted); color: var(--c-primary); }
.lp-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-body);
  padding: 8px;
}
.lp-mobile-menu .btn {
  margin-top: 16px;
  max-width: 280px;
  width: 100%;
}

/* Show full nav on tablet+ */
@media (min-width: 768px) {
  .lp-hamburger      { display: none; }
  .lp-nav-links      { display: flex; }
  .landing-page .nav-links { display: flex; }
}

/* ── Push sparkles away from copy ── */
.lp-hero .sparkle { display: none; }

/* ═══════════════════════════════════════════════════════
   HERO — mobile first, splits to 2-col on desktop
   ═══════════════════════════════════════════════════════ */
.lp-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 56px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0D0B2A 0%, #14093D 45%, #0A1B3F 100%);
  text-align: center;
  min-height: auto;
}

.lp-hero-split {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .lp-hero {
    min-height: 100vh;
    padding: 96px 40px 64px;
    text-align: left;
  }
  .lp-hero-split {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .lp-hero-copy {
    flex: 1;
    align-items: flex-start;
  }
  .lp-hero-media {
    flex: 1.2;
  }
}

/* ── Copy side ── */
.lp-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.lp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 16px;
}

.lp-hero-sub {
  font-size: clamp(14px, 4vw, 17px);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 24px;
}

.lp-hero-cta { width: 100%; }
.lp-hero-cta .btn {
  width: 100%;
  max-width: 320px;
}

@media (min-width: 960px) {
  .lp-hero-copy  { align-items: flex-start; }
  .lp-hero-cta .btn { width: auto; }
}

/* ── Video side ── */
.lp-hero-media {
  position: relative;
  width: 100%;
}

.lp-video-mascot {
  position: absolute;
  top: -24px;
  right: 8px;
  z-index: 3;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  animation: mascotFloat 4s ease-in-out infinite;
}

.lp-video-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 16px 64px rgba(0,0,0,0.6),
    0 0 48px rgba(20,184,166,0.15);
  background: #000;
}

/* Responsive 16:9 YouTube embed */
.lp-video-wrap--youtube {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.lp-youtube {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lp-video-fallback {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
}
.lp-video-fallback a {
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.lp-video-fallback a:hover { color: var(--teal-300); }

/* ═══════════════════════════════════════════════════════
   Section blocks — tighter padding on mobile
   ═══════════════════════════════════════════════════════ */
.landing-page .section-block {
  padding: 56px 20px !important;
}
@media (min-width: 768px) {
  .landing-page .section-block {
    padding: 72px 32px !important;
  }
}
@media (min-width: 1024px) {
  .landing-page .section-block {
    padding: 88px 24px !important;
  }
}

/* ── Section titles smaller on mobile ── */
.landing-page .section-title {
  font-size: clamp(22px, 6vw, 44px) !important;
}
.landing-page .section-sub {
  font-size: clamp(14px, 4vw, 17px) !important;
  margin-bottom: 28px !important;
}

/* ── Problem grid: 1 col on mobile ── */
.landing-page .problem-grid {
  grid-template-columns: 1fr !important;
  gap: 16px;
  text-align: left;
}
@media (min-width: 640px) {
  .landing-page .problem-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }
}

/* ── Solution grid: 1 col on mobile, 2 on tablet ── */
.landing-page .solution-grid {
  grid-template-columns: 1fr !important;
  gap: 16px;
  text-align: left;
}
@media (min-width: 560px) {
  .landing-page .solution-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (min-width: 960px) {
  .landing-page .solution-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ── Competitive table: horizontal scroll ── */
.landing-page .comp-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 420px;
  font-size: 13px;
}
.landing-page .comp-table th,
.landing-page .comp-table td {
  padding: 12px 14px;
  min-width: 100px;
}

/* Wrap table in scroll hint */
.landing-page .section-block > .comp-table {
  display: block;
  overflow-x: auto;
}

/* ── Edge grid (Why Pawcus): 1 col → 2 → centered 3+2 ── */
.lp-edge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 560px) {
  .lp-edge-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
  .lp-edge-grid { grid-template-columns: repeat(6, 1fr); }
  .lp-edge-card:nth-child(1) { grid-column: 1 / 3; }
  .lp-edge-card:nth-child(2) { grid-column: 3 / 5; }
  .lp-edge-card:nth-child(3) { grid-column: 5 / 7; }
  .lp-edge-card:nth-child(4) { grid-column: 2 / 4; }
  .lp-edge-card:nth-child(5) { grid-column: 4 / 6; }
}

.lp-edge-card {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.lp-edge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-edge-icon  { font-size: 36px; display: block; }
.lp-edge-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-dark);
}
.lp-edge-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ── Why now grid ── */
.landing-page .why-now-grid {
  grid-template-columns: 1fr !important;
  gap: 12px;
}
@media (min-width: 560px) {
  .landing-page .why-now-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── CTA block ── */
.landing-page .cta-block {
  padding: 64px 20px;
}
@media (min-width: 768px) {
  .landing-page .cta-block {
    padding: 96px 24px;
  }
}
.landing-page .cta-block .hero-actions {
  flex-direction: column;
  align-items: center;
}
.landing-page .cta-block .btn {
  width: 100%;
  max-width: 320px;
}

/* ── Loop flow: wraps on mobile ── */
.landing-page .loop-flow {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.landing-page .loop-arrow {
  transform: rotate(90deg);
}
@media (min-width: 640px) {
  .landing-page .loop-flow {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .landing-page .loop-arrow {
    transform: none;
  }
}

/* ── Footer ── */
.landing-footer {
  text-align: center;
  padding: 28px 20px 40px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--bg-muted);
}
.landing-footer a { color: var(--c-primary); font-weight: 700; text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }
