/* Copyright 2026 Renofy Ltd. All rights reserved. */
/* ===== HOME PAGE LANDING — MODERN SAAS DESIGN ===== */

/* Anchor scroll offset — clear the fixed header */
#how-it-works,
#why-renofy,
#common-questions {
  scroll-margin-top: var(--height-header);
}

/* Inter for headings, numbers, labels, and statement text */
.lp-hiw__title,
.lp-hiw__step-num,
.lp-hiw__step-tag,
.lp-hiw__step-title,
.lp-hiw__compare-label,
.lp-hiw__compare-title,
.lp-stats__label,
.lp-stats__title,
.lp-stats__number,
.lp-escrow__title,
.lp-escrow__label,
.lp-escrow__step-eyebrow,
.lp-escrow__step-label,
.lp-escrow__step-trust {
  font-family: var(--font-display);
}

/* ===================================================================
   SECTION 1: HERO
   =================================================================== */

.lp-hero {
  padding: calc(var(--height-header) + 2rem) 1.25rem 0 1.25rem;
  text-align: left;
  background: var(--color-bg-hero-dark);
}

/* Hero inner layout */
.lp-hero__inner {
  position: relative;
  z-index: var(--z-index-base);
  margin: 0 auto;
}

/* Hero content */
.lp-hero__content {
  position: relative;
  z-index: var(--z-index-base);
}

.lp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-variation-settings: "opsz" 12, "wdth" 82, "wght" 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.lp-hero__title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-variation-settings: "opsz" 96, "wdth" 100, "wght" 760;
  font-size: clamp(3.875rem, 9vw, 4.5rem);
  color: var(--color-white);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 1.5rem;
}

.lp-hero__accent-text {
  color: var(--color-pink);
  white-space: nowrap;
}

.lp-hero__subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.78);
  line-height: var(--line-height-loose);
  margin: 0 0 2.5rem;
  max-width: 650px;
}

/* CTA wrap */
.lp-hero__cta-wrap .button {
  width: 100%;
}

@media (min-width: 821px) {
  .lp-hero__cta-wrap .button {
    width: auto;
    min-width: 280px;
  }
}

/* Hero photo — landscape, flush bottom, 16:9 until height cap, object-fit: cover. */
.lp-hero__photo-mobile {
  margin-top: 1.75rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  height: min(56.25vw, 350px);
  overflow: hidden;
}

.lp-hero__photo-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
  border: none;
}

.lp-hero__photo-wrap {
  display: none;
}

.lp-hero__photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: block;
  border-radius: var(--radius-base);
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  object-position: center center;
}

/* ===================================================================
   SECTION 2: HOW IT WORKS
   CSS-only audience toggle (radio + sibling combinator), comparison
   cards, and 5 narrative steps with customer / trade variants.
   =================================================================== */

.lp-hiw {
  padding: 3rem 0;
  --hiw-accent: var(--color-pink);
  --hiw-accent-bg: #fef1f6;
}

.lp-hiw__title {
  text-align: center;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0 0 0.75rem;
}

.lp-hiw__subtitle {
  text-align: center;
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin: 0 auto 2rem;
  max-width: 700px;
}

/* ---------- CSS-only audience toggle ---------- */

.lp-hiw__toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.lp-hiw__toggle-pill {
  display: inline-flex;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  padding: 4px;
  border-radius: var(--radius-full);
}

.lp-hiw__toggle-pill label {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lp-hiw__toggle-pill label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Active label states — driven by radio :checked */
#aud-customer:checked ~ .lp-hiw__toggle .lp-hiw__toggle-pill label[for="aud-customer"] {
  background: var(--color-pink);
  color: var(--color-white);
  box-shadow: var(--glow-pink);
}

#aud-trade:checked ~ .lp-hiw__toggle .lp-hiw__toggle-pill label[for="aud-trade"] {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--glow-blue);
}

#aud-customer:checked ~ .lp-hiw__toggle .lp-hiw__toggle-pill label[for="aud-customer"] svg,
#aud-trade:checked ~ .lp-hiw__toggle .lp-hiw__toggle-pill label[for="aud-trade"] svg {
  color: var(--color-white);
}

/* Accent colour switch for trade audience */
#aud-trade:checked ~ .lp-hiw__body {
  --hiw-accent: var(--color-blue);
  --hiw-accent-bg: #e5f2ff;
}

/* ---------- Content visibility toggle ---------- */

.lp-hiw__body .for-trade { display: none !important; }
.lp-hiw__body .for-customer { display: block; }

/* Swap when trade is selected */
#aud-trade:checked ~ .lp-hiw__body .for-trade { display: block !important; }
#aud-trade:checked ~ .lp-hiw__body .for-customer { display: none !important; }

/* Inline variants (spans, tags) need inline display */
.lp-hiw__body .for-customer.for-customer--inline { display: inline; }
.lp-hiw__body .for-trade.for-trade--inline { display: none !important; }
#aud-trade:checked ~ .lp-hiw__body .for-trade.for-trade--inline { display: inline !important; }
#aud-trade:checked ~ .lp-hiw__body .for-customer.for-customer--inline { display: none !important; }

/* Flex variants (detail rows, mockup stacks) */
.lp-hiw__body .for-customer.for-customer--flex { display: flex; }
.lp-hiw__body .for-trade.for-trade--flex { display: none !important; }
#aud-trade:checked ~ .lp-hiw__body .for-trade.for-trade--flex { display: flex !important; }
#aud-trade:checked ~ .lp-hiw__body .for-customer.for-customer--flex { display: none !important; }

/* ---------- Narrative steps ---------- */

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

.lp-hiw__step {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.lp-hiw__step:last-child {
  border-bottom: none;
}

.lp-hiw__step-num {
  display: block;
  font-size: 3.5rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.04em;
  color: var(--hiw-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.lp-hiw__step-num sup {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  vertical-align: top;
  margin-left: 2px;
}

.lp-hiw__step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.lp-hiw__step-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--color-text-primary);
}

.lp-hiw__step-title em {
  font-style: italic;
  color: var(--hiw-accent);
  font-weight: var(--font-weight-extrabold);
}

.lp-hiw__step-body {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  margin: 0 0 1.5rem;
  max-width: 580px;
}

/* Detail rows (icon + title + description) */
.lp-hiw__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lp-hiw__detail:first-of-type {
  border-top: none;
}

.lp-hiw__detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--hiw-accent-bg);
  color: var(--hiw-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-hiw__detail-icon svg {
  width: 18px;
  height: 18px;
}

.lp-hiw__detail-title {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0.25rem 0 0.125rem;
}

.lp-hiw__detail-desc {
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* Mockup images */
.lp-hiw__mockups {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 1.25rem;
  filter: drop-shadow(2px 14px 20px rgba(0, 0, 0, 0.15));
}

.lp-hiw__mockups img {
  max-width: 220px;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 1786;
}

.lp-hiw__mockups--dual img:first-child {
  margin-right: -20px;
  z-index: 2;
  position: relative;
  transform: rotate(-2deg);
}

.lp-hiw__mockups--dual img:last-child {
  margin-left: -20px;
  margin-top: 30px;
  z-index: 1;
  transform: rotate(2deg);
}

/* ===================================================================
   SECTION: ESCROW COMING SOON
   Roadmap teaser between "How it works" and the pain-point stats.
   Flow diagram (Customer -> Held -> Tradesperson) + 2-up framing.
   =================================================================== */

.lp-escrow {
  padding: 3.5rem 0;
  background: #fdf9f3;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
}

.lp-escrow__label {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-warning-text);
  margin: 0 0 0.75rem;
}

.lp-escrow__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  margin: 0 0 0.85rem;
}

.lp-escrow__title em {
  color: var(--color-pink);
}

.lp-escrow__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin: 0 auto 2.5rem;
  max-width: 650px;
  line-height: var(--line-height-normal);
}

/* ---------- Flow: 4 cards, vault treatment on the 2nd ---------- */

.lp-escrow__flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin: 0 auto 2.5rem;
  max-width: 980px;
  align-items: center;
}

/* Chevron between cards — visible on mobile, hidden on desktop. */
.lp-escrow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  opacity: 0.45;
  padding: 0.1rem 0;
}

.lp-escrow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 86%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1rem;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.lp-escrow__step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-pink-light);
  color: var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.lp-escrow__step-eyebrow {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
  margin: 0;
}

.lp-escrow__step-label {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: var(--line-height-tight);
}

/* Trust line on the vault card — small regulatory badge under the label. */
.lp-escrow__step-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0.7rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  line-height: 1.2;
}

.lp-escrow__step-trust svg {
  flex-shrink: 0;
  color: var(--color-pink);
}

/* Vault treatment on the 2nd card (Funds secured). */
.lp-escrow__step--vault {
  border: 2px solid var(--color-pink);
  box-shadow: 0 14px 36px rgba(215, 0, 92, 0.10);
}

/* Mobile-first: vault icon matches the other icons in dimensions. */
.lp-escrow__step--vault .lp-escrow__step-icon {
  background: var(--color-pink);
  color: var(--color-white);
}

.lp-escrow__step--vault .lp-escrow__step-icon svg {
  width: 20px;
  height: 20px;
}

.lp-escrow__step--vault .lp-escrow__step-eyebrow {
  color: var(--color-pink);
}

/* ---------- Closing note (user-neutral, no container) ---------- */

.lp-escrow__note {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* Desktop: flow becomes horizontal, cards split 2-up */
@media (min-width: 821px) {
  .lp-escrow {
    padding: 5rem 0;
  }

  .lp-escrow__flow {
    grid-template-columns: 1fr 1.3fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
  }

  /* Chevrons are mobile-only. */
  .lp-escrow__arrow {
    display: none;
  }

  .lp-escrow__step {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 1.25rem 1rem 1.35rem;
  }

  .lp-escrow__step--vault {
    padding: 1.75rem 1rem;
    transform: translateY(-2px);
  }

  /* Restore the upsized vault icon on desktop. */
  .lp-escrow__step--vault .lp-escrow__step-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
  }

  .lp-escrow__step--vault .lp-escrow__step-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* ===================================================================
   SECTION 3: PAIN-POINT STATS
   Dark gradient section with industry statistics
   =================================================================== */

.lp-stats {
  padding: 3rem 0;
  text-align: center;
}

.lp-stats__label {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.75rem;
}

.lp-stats__title {
  position: relative;
  z-index: var(--z-index-base);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0 0 1.25rem;
}

.lp-stats__subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.lp-stats__grid {
  position: relative;
  z-index: var(--z-index-base);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 750px;
  margin: 0 auto;
}

.lp-stats__card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}

.lp-stats__number {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-pink);
  line-height: 1;
}

.lp-stats__desc {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 0;
}

.lp-stats__sources {
  position: relative;
  z-index: var(--z-index-base);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.4);
  margin: 1rem 0 0;
}

/* ---------- Comparison cards section ---------- */

.lp-compare {
  padding: 3rem 0 2rem 0;
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}

.lp-hiw__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.lp-hiw__compare-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.lp-hiw__compare-card--dismissed {
  opacity: 0.6;
}

.lp-hiw__compare-card--highlight {
  border: 2px solid var(--color-pink);
}

.lp-hiw__compare-label {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.lp-hiw__compare-card--highlight .lp-hiw__compare-label {
  color: var(--color-pink);
}

.lp-hiw__compare-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lp-hiw__compare-icon {
  flex-shrink: 0;
  display: inline-flex;
}

.lp-hiw__compare-icon--no {
  color: #dc2626;
}

.lp-hiw__compare-icon--yes {
  color: #16a34a;
}

.lp-hiw__compare-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
  margin: 0;
}

/* ===================================================================
   SECTION 4: COMMON QUESTIONS
   Accordion FAQ section with chevron indicators
   =================================================================== */

.lp-faq {
  padding: 3rem 0;
}

.lp-faq__container {
  max-width: 900px;
}

.lp-faq__heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
  margin: 0 0 1.5rem;
}

/* Accordion items reuse .faq-item styles from faq.css */
.lp-faq .faq-item:first-of-type {
  border-top: 1px solid var(--color-border);
}

.lp-faq__footer {
  margin-top: 1.25rem;
  text-align: center;
}

.lp-faq__link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.lp-faq__link:hover {
  color: var(--color-pink);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

@media (min-width: 821px) {
  .lp-hero {
    padding: calc(var(--height-header) + 3rem + 1rem) clamp(1rem, 2vw, 2rem) 3rem;
    margin-top: calc(-1 * (var(--height-header) + 1rem));
  }

  .lp-hero__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1250px;
  }

  .lp-hero__content {
    flex: 1;
    min-width: 0;
    margin-top: -1rem;
  }

  .lp-hero__title {
    font-size: clamp(4.5rem, 5.5vw, 5rem);
  }

  .lp-hero .user-type-cards {
    justify-content: flex-start;
  }

  /* How It Works: desktop layout */
  .lp-hiw {
    padding: 4rem 0;
  }

  .lp-hiw__steps {
    max-width: 900px;
  }

  .lp-hiw__compare {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .lp-hiw__step {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .lp-hiw__step-num {
    font-size: 4.5rem;
  }

  .lp-hiw__step-title {
    font-size: var(--font-size-4xl);
  }

  .lp-hiw__mockups img {
    max-width: 240px;
  }

  /* Stats: 3-column grid on desktop */
  .lp-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* FAQ */
  .lp-faq {
    padding: 4rem 0;
  }
}

/* 821-999px: photo stays edge-to-edge and flush bottom */
@media (min-width: 821px) and (max-width: 999px) {
  .lp-hero {
    padding-bottom: 0;
  }

  .lp-hero__photo-mobile {
    margin-top: 2rem;
  }
}

@media (min-width: 1000px) {
  .lp-hero__photo-mobile {
    display: none;
  }

  .lp-hero__photo-wrap {
    display: block;
    position: relative;
    z-index: var(--z-index-base);
    width: clamp(190px, 22vw, 310px);
    flex-shrink: 0;
  }
}
