/*
 * Niche landing pages (kreova.app/cleaning and the ones after it). They load
 * the homepage's styles.css first and reuse its header, buttons, composer,
 * dark call section, steps, FAQ and footer; this file adds only what a
 * landing page has of its own: the light photo hero, the pain cards, the
 * workflow strip, the photo cards and the short pricing row.
 *
 * Motion is landing.js (GSAP). Anything it animates is hidden here only under
 * .lp-motion, a class landing.js sets once GSAP has loaded and the visitor
 * has not asked for reduced motion: without it, every part simply shows.
 */

/* Hero ------------------------------------------------------------------ */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 64px) 0 96px;
  background:
    radial-gradient(circle at 85% 10%, rgba(36, 111, 242, 0.1), transparent 40%),
    radial-gradient(circle at 5% 90%, rgba(22, 167, 101, 0.07), transparent 35%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 64px;
}

.lp-title {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.lp-title .lp-word {
  display: inline-block;
  will-change: transform;
}

.lp-lead {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.lp-composer {
  max-width: 600px;
  margin: 0;
}

.lp-composer-label {
  display: block;
  padding: 16px 22px 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}

.lp-composer textarea {
  min-height: 0;
  padding: 8px 22px 14px;
  font-size: 15.5px;
}

.lp-hero-visual {
  position: relative;
  margin: 0 12px;
}

.lp-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(25, 64, 126, 0.2);
}

.lp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px 11px 12px;
  border: 1px solid rgba(203, 217, 239, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(25, 64, 126, 0.16);
  backdrop-filter: blur(8px);
}

.lp-float b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.lp-float small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.lp-float-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-light);
}

.lp-float-request { top: 22px; left: -26px; }
.lp-float-call { right: -22px; top: 44%; }
.lp-float-crm { bottom: 24px; left: 18px; }
.lp-float-crm i { color: var(--green); font-size: 20px; }

.lp-float-dot {
  position: relative;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--green);
}

.lp-float-dot::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 2px solid var(--green);
  border-radius: 50%;
  animation: lp-ring 1.6s ease-out infinite;
}

@keyframes lp-ring {
  0% { opacity: 0.8; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Pain cards -------------------------------------------------------------- */
.lp-pain { padding: 104px 0 72px; }
.lp-pain .section-heading { margin-bottom: 44px; }
.lp-pain h2,
.lp-flow-section h2,
.lp-photos-section h2,
.lp-steps-section h2,
.lp-pricing h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); }

.lp-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lp-pain-grid article {
  padding: 28px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.lp-pain-grid i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #c2410c;
  background: #fff1e8;
  font-size: 17px;
}

.lp-pain-grid h3 { margin: 0 0 8px; font-size: 19px; }
.lp-pain-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Workflow strip ---------------------------------------------------------- */
.lp-flow-section { padding: 72px 0 110px; background: var(--paper-blue); }

.lp-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-flow::before,
.lp-flow::after {
  position: absolute;
  top: 25px;
  left: calc(100% / 14);
  height: 3px;
  content: "";
  border-radius: 3px;
}

.lp-flow::before { right: calc(100% / 14); background: var(--line-strong); }

.lp-flow::after {
  width: calc((100% - 100% / 7) * var(--lp-flow, 1));
  background: linear-gradient(90deg, #246ff2, #16a765);
}

/* The steps sit above the line: GSAP's opacity makes each step its own layer. */
.lp-flow::before,
.lp-flow::after { z-index: 0; }

.lp-flow li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
}

.lp-flow-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.lp-flow b { color: var(--ink); font-size: 14px; font-weight: 650; }
.lp-flow small { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* The AI call (reuses the homepage's dark follow-up cards) ---------------- */
.lp-call-section h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }

.lp-call-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.lp-call-facts span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(136, 166, 216, 0.16);
  border-radius: 14px;
  color: #cdd9ee;
  background: rgba(13, 26, 48, 0.55);
  font-size: 13px;
  line-height: 1.5;
}

.lp-call-facts i { padding-top: 3px; color: #75a9ff; }

/* Photo cards ------------------------------------------------------------- */
.lp-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lp-photo-frame {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  background: var(--paper-blue-2);
}

.lp-photo-frame img {
  display: block;
  width: 100%;
  height: 112%;
  object-fit: cover;
}

.lp-photo-card h3 { margin: 0 0 8px; font-size: 20px; }
.lp-photo-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Steps and pricing ------------------------------------------------------- */
.lp-steps-section { padding-top: 40px; }

.lp-pricing { padding-top: 40px; background: var(--paper-blue); }

.lp-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lp-price-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.lp-price-grid .lp-price-popular {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-blue);
}

.lp-price-grid h3 { margin: 0 0 10px; font-size: 18px; }
.lp-price-grid p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.lp-price-grid .lp-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.lp-price strong { color: var(--ink); font-size: 34px; letter-spacing: -0.03em; }
.lp-price span { color: var(--muted); font-size: 14px; }

.lp-price-more { margin: 26px 0 0; text-align: center; }

/* The landing footer has three link columns, not the homepage's four. */
@media (min-width: 1121px) {
  .lp-body .footer-grid { grid-template-columns: 1.7fr repeat(3, 1fr); }
}

/* Motion: hidden only while landing.js is about to animate it -------------- */
.lp-motion .lp-intro,
.lp-motion .lp-hero-photo,
.lp-motion [data-lp-float] { opacity: 0; }

.lp-motion [data-lp-line],
.lp-motion [data-lp-after] { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  .lp-float-dot::after { animation: none; }
}

/* Smaller screens --------------------------------------------------------- */
@media (max-width: 960px) {
  .lp-hero { padding: calc(var(--header-height) + 36px) 0 72px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lp-hero-visual { margin: 0 6px; }
  .lp-float-request { left: -6px; top: -18px; }
  .lp-float-call { right: -6px; }
  .lp-pain-grid,
  .lp-photo-grid,
  .lp-price-grid,
  .lp-call-facts { grid-template-columns: 1fr; }

  .lp-flow {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
    margin: 0 auto;
    gap: 14px;
  }

  .lp-flow::before,
  .lp-flow::after { top: 26px; left: 25px; width: 3px; }
  .lp-flow::before { right: auto; bottom: 26px; height: auto; }
  .lp-flow::after { height: calc((100% - 52px) * var(--lp-flow, 1)); }

  .lp-flow li {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: start;
    column-gap: 16px;
    row-gap: 0;
    text-align: left;
  }

  .lp-flow-icon { grid-row: 1 / 3; margin: 0; }
  .lp-flow b { align-self: end; }
  .lp-flow small { align-self: start; }
}

@media (max-width: 480px) {
  .lp-title { font-size: 2.35rem; }
  .lp-lead { font-size: 16px; }
  .lp-float { padding: 9px 12px 9px 10px; }
  .lp-float b { font-size: 12px; }
  .lp-float small { font-size: 11px; }
  .lp-float-crm { display: none; }
  .lp-composer .composer-footer { flex-wrap: wrap; gap: 10px; }
  .lp-composer .composer-submit { width: 100%; }
}
