/* Home page layout. Everything reusable lives in ../forec.css;
   this file only places Home-specific compositions. */

/* Hero ------------------------------------------------------------------ */
.home-hero-wrap { position: relative; overflow: hidden; background: var(--fc-ground); }
/* The nav sits before the hero wrap (so it can stay pinned) and overlaps it by
   its own height; the wrap pads by the same amount so the waves keep their place. */
.home-header { --home-header-h: 96px; margin-bottom: calc(-1 * var(--home-header-h)); background: transparent; }
.home-hero-wrap { padding-top: 96px; }
.home-hero-wave { position: absolute; z-index: 0; max-width: none; pointer-events: none; }
.home-hero-wave--1 { width: 1666.72px; left: calc(50% - 859px); top: calc(50% + 84px); transform: translateY(-50%); }
.home-hero-wave--2 { width: 1710.46px; left: calc(50% - 889px); top: calc(50% - 651px); transform: rotate(15deg); }

.home-hero {
  position: relative;
  z-index: 1;
  max-width: var(--fc-container);
  margin: 0 auto;
  padding: 50px 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.home-hero__copy { display: flex; flex-direction: column; gap: 80px; }
.home-hero__text { display: flex; flex-direction: column; gap: 40px; }
.home-hero__lead { max-width: 560px; font-size: 20px; line-height: 1.2; color: var(--fc-muted); }
.home-hero__cta { width: 550px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.home-hero__note { text-align: center; font-size: 16px; font-weight: 300; line-height: 1.2; color: var(--fc-muted); }
.home-hero__visual {
  flex: none;
  width: 488px;
  height: 589px;
  overflow: hidden;
  border-radius: var(--fc-radius-2xl);
  background: linear-gradient(249.7deg, #EB6330 38%, #FFA887 81.2%);
}
.home-hero__visual img { width: 786px; max-width: none; height: 100%; object-fit: cover; }
.home-hero__qr { position: absolute; left: calc(100% - 523px); top: 526px; }

/* "A photo can show them a sofa." --------------------------------------- */
.home-sofa { min-height: 906px; background: var(--fc-photo-bg); }
.home-sofa__img { position: absolute; left: 10.18%; top: 3.17%; width: 79.61%; height: 102.58%; max-width: none; }
.home-sofa::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, #fff 6.3%, rgba(255, 255, 255, 0) 52.7%);
}
.home-sofa .fc-section__inner { z-index: 2; }
.home-sofa__measure { z-index: 2; }
.home-sofa .fc-head { gap: 30px; }
.home-sofa__lead { text-align: center; }
.home-sofa__measure { position: absolute; left: 0; right: 0; bottom: 64px; }

/* Coby peeking at the edges of the dark "How it works" section */
.home-peek { position: absolute; z-index: 0; pointer-events: none; }
.home-peek--left { width: 145px; height: 178px; left: calc(50% - 612px); top: 152px; }
.home-peek--right { width: 163px; height: 185px; left: calc(50% + 449px); top: 146px; }

/* "Real size" figure ------------------------------------------------------ */
.home-realsize { width: 100%; display: flex; flex-direction: column; align-items: center; }
.home-realsize__img {
  width: 100%;
  height: 598.6px;
  object-fit: cover;
  border-radius: 28.8px;
  background: var(--fc-slate);
  margin-bottom: -80px;
}
.home-realsize .fc-callout { position: relative; }

/* "What it changes" ------------------------------------------------------- */
.home-changes { display: flex; gap: 20px; width: 100%; }
.home-changes__photo { position: relative; flex: 1 1 0; min-height: 520px; overflow: hidden; border-radius: var(--fc-radius-2xl); }
.home-changes__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-changes .fc-feature-list { flex: none; width: 517px; }
.home-footnote { width: 100%; margin-top: calc(20px - var(--fc-section-gap)); font-size: 14px; line-height: 1.25; color: var(--fc-border); opacity: 0.5; }

/* "It works wherever you sell": three equal cards */
.home-where { flex: 1 1 0; }

/* Pricing block ----------------------------------------------------------- */
.home-pricing { width: 100%; display: flex; flex-direction: column; gap: 20px; }

.home-cta .fc-actions .home-cta__main { flex: 1 1 0; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .home-hero { flex-direction: column; align-items: stretch; }
  .home-hero__visual { width: 100%; }
  .home-hero__visual img { width: 100%; }
  .home-hero__qr { position: static; }
  .home-changes { flex-direction: column; }
  .home-changes .fc-feature-list { width: 100%; }
}

@media (max-width: 1023px) {
  .home-header { --home-header-h: 112px; }   /* 20 + 72 + 20 (the flush bottom is reset here) */
  .home-hero-wrap { padding-top: 112px; }
}

@media (max-width: 767px) {
  .home-hero-wave { display: none; }
  .home-hero { padding: 20px 20px 60px; gap: 20px; }
  .home-header { --home-header-h: 92px; padding-bottom: 0; }
  .home-hero-wrap { padding-top: 92px; }
  .home-hero__copy { gap: 20px; text-align: center; }
  .home-hero__text { gap: 18px; padding-top: 20px; }
  .home-hero__lead { font-size: 16px; line-height: 1.4; }
  .home-hero__cta { width: 100%; gap: 16px; }
  .home-hero__note { font-size: 14px; }
  .home-hero__visual { height: 400px; }

  .home-sofa { min-height: 591px; }
  .home-sofa__img { left: 0; top: 40.79%; width: 100%; height: 49.51%; }
  .home-sofa .fc-head,
  .home-sofa__lead { text-align: left; }
  .home-sofa .fc-title__line { display: inline; }

  /* Mobile design puts the CTA banner after the FAQ */
  .home-cta-faq { display: flex; flex-direction: column-reverse; }
  .home-sofa__lead p { display: inline; }
  .home-sofa__measure { bottom: 60px; }

  .home-realsize__img { width: calc(100% + 60px); max-width: none; height: 260px; margin: 0 -30px -30px; border-radius: 0; }

  .home-changes__photo { min-height: 400px; flex: none; }

  .home-coby { padding: 20px; }
  .home-cta { padding: 40px 20px; }
}
