/* ============================================================
   LP.CSS — Design system landing page /khidmat/
   Dipakai oleh: strategi-jualan-rumah, semak-harga-rumah, rumah-terbiar
   Prinsip: Apple-style calmness. Typography jadi hero, spacing
   berdisiplin, satu accent sahaja, mobile-first.
   NOTA: kalau ubah fail ni, WAJIB bump ?v= pada semua page /khidmat/
   ============================================================ */

.lp {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text, #1d1d1f);
  background: var(--color-bg, #fff);
  -webkit-font-smoothing: antialiased;
}

.lp * { box-sizing: border-box; }

/* ---------- Layout primitives ---------- */
.lp-section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.lp-section--alt { background: #F5F5F7; }
.lp-section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.lp-wrap {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}
.lp-wrap--wide { max-width: 1000px; }

/* ---------- Typography ---------- */
.lp-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #B91C1C;
  margin-bottom: 1rem;
}

.lp h1 {
  font-size: clamp(1.9rem, 6.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.lp h2 {
  font-size: clamp(1.45rem, 4.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 24ch;
}

.lp h3 {
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.lp p { font-size: 1.0625rem; line-height: 1.65; margin: 0 0 1rem; }
.lp .lp-lead { font-size: clamp(1.0625rem, 3vw, 1.25rem); line-height: 1.6; color: #6e6e73; max-width: 54ch; }
.lp .lp-muted { color: #6e6e73; }
.lp .lp-small { font-size: 0.875rem; color: #86868b; line-height: 1.5; }

/* ---------- Hero ---------- */
.lp-hero {
  padding-top: clamp(7rem, 16vw, 10rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(180deg, #F5F5F7 0%, #FFFFFF 100%);
}

.lp-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: #6e6e73;
}
.lp-hero__trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.lp-hero__trust span::before {
  content: "";
  width: 0.35rem; height: 0.35rem;
  border-radius: 50%;
  background: #B91C1C;
  flex: none;
}

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 1.0325rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 100ms ease;
}
.lp-btn:active { transform: scale(0.985); }

.lp-btn--primary { background: #B91C1C; color: #fff; }
.lp-btn--primary:hover { background: #991B1B; color: #fff; }

.lp-btn--ghost { background: transparent; color: #1d1d1f; border-color: #D2D2D7; }
.lp-btn--ghost:hover { border-color: #1d1d1f; }

.lp-btn--block { width: 100%; }

.lp-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Senarai semak (check list) ---------- */
.lp-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.9rem; }
.lp-list li { position: relative; padding-left: 2rem; font-size: 1.0325rem; line-height: 1.55; }
.lp-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: #FEE2E2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B91C1C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/58% no-repeat;
}

/* ---------- Langkah bernombor ---------- */
.lp-steps { list-style: none; counter-reset: lp-step; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.lp-steps li { counter-increment: lp-step; }
.lp-steps li::before {
  content: counter(lp-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.lp-steps h3 { margin-bottom: 0.35rem; }
.lp-steps p { font-size: 0.975rem; color: #6e6e73; margin: 0; }

/* ---------- Grid kad ringan ---------- */
.lp-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .lp-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.lp-cell {
  background: #fff;
  border: 1px solid #E8E8ED;
  border-radius: 1.125rem;
  padding: 1.5rem 1.5rem 1.35rem;
}
.lp-section--alt .lp-cell { border-color: transparent; }
.lp-cell h3 { margin-bottom: 0.4rem; }
.lp-cell p { font-size: 0.975rem; color: #6e6e73; margin: 0; }

/* ---------- FAQ ---------- */
.lp-faq { margin-top: 1.5rem; border-top: 1px solid #E8E8ED; }
.lp-faq details { border-bottom: 1px solid #E8E8ED; }
.lp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  font-size: 1.0325rem;
  font-weight: 600;
  line-height: 1.4;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: #86868b;
  line-height: 1;
  flex: none;
}
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq details p { padding: 0 0.25rem 1.25rem; margin: 0; color: #6e6e73; font-size: 1rem; }

/* ---------- Borang ---------- */
.lp-form {
  background: #fff;
  border: 1px solid #E8E8ED;
  border-radius: 1.125rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 2rem;
}
.lp-form__row { margin-bottom: 1.15rem; }
.lp-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #1d1d1f;
}
.lp-form label .lp-optional { font-weight: 400; color: #86868b; }
.lp-form input,
.lp-form select,
.lp-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: #1d1d1f;
  background: #F5F5F7;
  border: 1.5px solid transparent;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.lp-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.lp-form textarea { min-height: 5.5rem; resize: vertical; }
.lp-form input:focus,
.lp-form select:focus,
.lp-form textarea:focus { border-color: #B91C1C; background: #fff; }
.lp-form .lp-btn { margin-top: 0.5rem; }
.lp-form__note { font-size: 0.8125rem; color: #86868b; text-align: center; margin: 0.9rem 0 0; }

/* ---------- Cross-route ---------- */
.lp-crossroute {
  margin-top: 2.25rem;
  padding: 1.15rem 1.35rem;
  background: #F5F5F7;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #6e6e73;
  line-height: 1.55;
}
.lp-section--alt .lp-crossroute { background: #fff; }
.lp-crossroute a { color: #B91C1C; font-weight: 600; text-decoration: none; }
.lp-crossroute a:hover { text-decoration: underline; }

/* ---------- Quote / reassurance ---------- */
.lp-quote {
  border-left: 3px solid #B91C1C;
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
}
.lp-quote p { font-size: 1.0625rem; line-height: 1.6; margin-bottom: 0.5rem; }
.lp-quote cite { font-style: normal; font-size: 0.875rem; color: #86868b; }

/* ---------- CTA penutup ---------- */
.lp-final {
  background: #1d1d1f;
  color: #fff;
}
.lp-final h2 { color: #fff; }
.lp-final p { color: rgba(255,255,255,0.72); }
.lp-final .lp-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.lp-final .lp-btn--ghost:hover { border-color: #fff; }
