/* =======================================================================
   HomeLight Offers landing page — component styles
   Extracted from design source: tmp/design-reference/project/HomeLight Offers.html
   Color tokens come from brand.css. This file holds layout + component CSS
   that is only used on the marketing landing page.
   ======================================================================= */

/* ---------- Container ---------- */
.hl-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (min-width: 1024px) { .hl-container { padding: 0 80px; } }

/* ---------- Hero ---------- */
.hero-frame {
  background: #ffffff;
  color: #273653;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(70,182,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(70,182,255,0.08) 0%, transparent 50%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(39,54,83,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,54,83,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}

/* ---------- Logo marquee ---------- */
@keyframes hl-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track { display: flex; gap: 64px; width: max-content; animation: hl-marquee 24s linear infinite; }
.marquee-track[data-paused="true"] { animation-play-state: paused; }
.marquee-buyers { gap: 88px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Live dot blink ---------- */
@keyframes hl-blink { 0%, 60% { opacity: 1; } 80%, 100% { opacity: 0.3; } }
.live-dot { animation: hl-blink 1.8s infinite; }

/* ---------- Grid background ---------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(39,54,83,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,54,83,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Section padding scale ---------- */
.section-pad     { padding: 112px 0; }
.section-pad-lg  { padding: 120px 0; }
.section-pad-sm  { padding: 100px 0; }

/* ---------- Display headings ---------- */
.h1-big { font-size: 68px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.h2-big { font-size: 52px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }

/* ---------- Hero grid + stat strip ---------- */
.hero-grid       { display:grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items:center; padding: 80px 0 120px; }
.hero-stats      { display:grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 28px 0; }
.stat-cell       { padding-left: 32px; border-left: 1px solid #e2e8f0; }
.stat-cell:first-child { padding-left: 0; border-left: none; }

/* ---------- Options (side-by-side cards w/ OR pill) ---------- */
.opts-grid       { display:grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items:stretch; }
.opts-or         { display:flex; align-items:center; justify-content:center; padding: 0 12px; }

/* ---------- How It Works ---------- */
.steps-grid      { display:grid; grid-template-columns: repeat(3,1fr); gap: 32px; position:relative; z-index:1; }
.steps-line      { position:absolute; top:72px; left:8%; right:8%; height:2px;
                   background: repeating-linear-gradient(90deg,#cbd5e1 0,#cbd5e1 8px,transparent 8px,transparent 16px);
                   z-index:0; }

/* ---------- Pricing ---------- */
.pricing-grid    { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; align-items: stretch; }
.pricing-tier    { position: relative; background:#fff; border-radius: 20px; padding: 36px 30px; border: 1px solid #e2e8f0; display:flex; flex-direction:column;
                   transition: transform 280ms cubic-bezier(.34,1.2,.4,1), box-shadow 280ms ease, border-color 280ms ease; }
.pricing-tier:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -16px rgba(15,39,68,0.15); border-color: #cbd5e1; }
.pricing-tier.is-popular {
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 60%);
  border: 2px solid #46b6ff;
  box-shadow: 0 30px 60px -20px rgba(70,182,255,0.35);
  transform: translateY(-12px);
}
.pricing-tier.is-popular:hover { transform: translateY(-16px); }
.pricing-popular-flag {
  position: absolute; top: -14px; right: 24px;
  background: linear-gradient(120deg, #fb923c 0%, #f97316 100%);
  color:#fff; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  padding: 6px 14px; border-radius: 9999px; text-transform: uppercase;
  box-shadow: 0 8px 18px -4px rgba(249,115,22,0.5);
}

/* ---------- Why agents + testimonials + CTA + footer grids ---------- */
.why-grid    { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-grid   { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; padding: 56px 48px; border-radius: 24px; }
.cta-card    { padding: 72px 56px; border-radius: 28px; text-align:center; position:relative; overflow:hidden; }
.footer-grid { display:grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 48px; }

/* ---------- Landing nav ---------- */
.nav-row       { display:flex; align-items:center; height: 72px; }
.nav-links     { display:flex; gap: 32px; margin-left: 56px; }
.nav-actions   { margin-left:auto; display:flex; align-items:center; gap: 14px; }
.nav-hamburger { display:none; margin-left:auto; background:none; border:none; cursor:pointer; padding:8px; color:#273653; }

.landing-nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, backdrop-filter 200ms ease, border-color 200ms ease;
}
.landing-nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
          backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: #e2e8f0;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; background:#fff; z-index:100;
  display:flex; flex-direction:column; padding: 20px 24px;
  transform: translateX(100%); transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a { padding: 16px 0; font-size: 18px; font-weight: 700; color:#273653; border-bottom: 1px solid #f1f5f9; }

/* ---------- Confidence CTA ---------- */
.confidence-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
}
.confidence-headline { font-size: clamp(38px, 4.8vw, 64px); }
.confidence-trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.10);
  justify-content: start;
  align-items: end;
}
.confidence-trust .trust-cell + .trust-cell { padding-left: 40px; border-left: 1px solid rgba(255,255,255,0.10); margin-left: -40px; }

/* ---------- Product showcase rotator ---------- */
.showcase-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  perspective: 1800px;
}
.showcase-frame {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.08);
  transform-origin: center center;
  transition:
    opacity 700ms cubic-bezier(.4,0,.2,1),
    transform 900ms cubic-bezier(.34,1.2,.4,1);
  will-change: opacity, transform;
  opacity: 0;
  transform: translate3d(6%, -4%, -120px) rotate(3deg) scale(0.94);
  pointer-events: none;
}
.showcase-frame.is-out-prev { opacity: 0; transform: translate3d(-6%, 4%, -120px) rotate(-3deg) scale(0.94); pointer-events:none; }
.showcase-frame.is-out-next { opacity: 0; transform: translate3d(6%, -4%, -120px) rotate(3deg) scale(0.94); pointer-events:none; }
.showcase-frame.is-active   { opacity: 1; transform: translate3d(0,0,0) rotate(-1.6deg) scale(1); pointer-events:auto; }

/* Browser chrome */
.sc-chrome {
  height: 32px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
}
.sc-chrome-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.sc-chrome-bar { flex:1; height: 16px; border-radius: 6px; background:#fff; border: 1px solid #e2e8f0;
                 display:flex; align-items:center; justify-content:center; font-size:10px; color:#94a3b8; font-weight:600; letter-spacing: 0.02em;
                 max-width: 280px; margin: 0 auto; }
.sc-body { background: #fff; height: calc(100% - 32px); padding: 18px 20px; overflow: hidden; position: relative; }

/* Floating mini-cards beside main mockup */
.sc-floater {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  transition: opacity 600ms cubic-bezier(.4,0,.2,1) 200ms, transform 800ms cubic-bezier(.34,1.2,.4,1) 200ms;
  will-change: opacity, transform;
}
.sc-floater.is-hidden  { opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; }
.sc-floater.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Step pills under the showcase */
.sc-pills { display:flex; gap: 8px; flex-wrap: wrap; }
.sc-pill {
  appearance: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.65);
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 220ms ease;
  font-family: inherit;
}
.sc-pill:hover { color: #fff; border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.08); }
.sc-pill.is-active {
  color: #0e2433;
  background: linear-gradient(120deg, #8bd1ff 0%, #46b6ff 100%);
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(70,182,255,0.6);
}
.sc-pill .sc-pill-num {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.sc-pill.is-active .sc-pill-num { background: rgba(14,36,51,0.18); color: #0e2433; }

/* Progress bar above pills */
.sc-progress {
  height: 2px; width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
  margin-bottom: 22px;
}
.sc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8bd1ff 0%, #46b6ff 100%);
  transform-origin: left center;
  transform: scaleX(0);
}
.sc-progress-fill.is-running { animation: sc-progress var(--sc-rotate-ms, 5200ms) linear forwards; }

@keyframes sc-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sc-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.sc-tagline { opacity: 0; transition: opacity 500ms cubic-bezier(.4,0,.2,1); }
.sc-tagline.is-active { opacity: 1; animation: sc-fade-up 600ms cubic-bezier(.4,0,.2,1); }

/* ---------- Live offers ticker pulse ---------- */
@keyframes hl-ticker-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.012); } 100% { transform: scale(1); } }
.hl-ticker-row.is-pulsing { animation: hl-ticker-pulse 600ms ease; }

/* ---------- Testimonial carousel ---------- */
.testimonial-slide { opacity: 0; transition: opacity 400ms cubic-bezier(.4,0,.2,1); pointer-events: none; }
.testimonial-slide.is-active { opacity: 1; pointer-events: auto; }
.testimonial-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  border: none; background: #cbd5e1; padding: 0;
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}
.testimonial-dot.is-active { width: 32px; background: #46b6ff; }

/* ---------- Tablet (<= 980px) ---------- */
@media (max-width: 980px) {
  .hl-container { padding: 0 32px; }
  .hero-grid    { grid-template-columns: 1fr; gap: 56px; padding: 48px 0 72px; }
  .h1-big       { font-size: 52px; }
  .h2-big       { font-size: 40px; }
  .opts-grid    { grid-template-columns: 1fr; gap: 16px; }
  .opts-or      { padding: 8px 0; }
  .steps-grid   { grid-template-columns: 1fr; gap: 20px; }
  .steps-line   { display:none; }
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-tier.is-popular,
  .pricing-tier.is-popular:hover { transform: none; }
  .why-grid     { grid-template-columns: 1fr; gap: 16px; }
  .test-grid    { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-pad,
  .section-pad-lg,
  .section-pad-sm { padding: 72px 0; }
  .nav-links,
  .nav-actions { display:none; }
  .nav-hamburger { display:inline-flex; }
  .confidence-grid { grid-template-columns: 1fr; gap: 40px; padding: 72px 32px !important; }
  .confidence-trust { gap: 28px; }
  .start-handling-row { flex-direction: column !important; align-items: flex-start !important; gap: 36px !important; padding: 72px 32px !important; }
  .start-handling-row > div:first-child { flex: 0 0 auto !important; width: 100%; }
  .start-handling-cta-col { align-items: flex-start !important; width: 100%; }
  .start-handling-cta-col .start-handling-btn { width: 100%; justify-content: center; }
  .start-handling-cta,
  .confidence-cta { margin-bottom: 0 !important; }
  .showcase-stage { aspect-ratio: 5 / 4; max-width: 560px; margin: 0 auto; }
}

/* ---------- Phone (<= 640px) ---------- */
@media (max-width: 640px) {
  .hl-container { padding: 0 20px; }
  .h1-big       { font-size: 40px; line-height: 1.08; }
  .h2-big       { font-size: 32px; letter-spacing: -0.015em; }
  .hero-stats   { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; padding: 32px 4px; }
  .stat-cell    { padding-left: 0; border-left: none; }
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .cta-card     { padding: 48px 24px; }
  .section-pad,
  .section-pad-lg,
  .section-pad-sm { padding: 56px 0; }
  .confidence-trust { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .confidence-trust .trust-cell + .trust-cell { padding-left: 16px; margin-left: 0; }
  .confidence-grid { padding: 56px 20px !important; }
  .start-handling-row { padding: 56px 20px !important; gap: 28px !important; }
  .pricing-tier { padding: 28px 22px; }
  .pricing-tier .pricing-popular-flag { font-size: 10px; padding: 5px 12px; }

  .hero-ctas { width: 100%; }
  .hero-ctas > * { flex: 1 1 auto; min-width: 0; }
  .hero-ctas button,
  .hero-ctas a { width: 100%; }

  .marquee-track  { gap: 48px !important; }
  .marquee-buyers { gap: 56px !important; }

  .opts-or { font-size: 12px; }
  .footer-grid { gap: 36px; }
}

/* ---------- Tiny (<= 380px) ---------- */
@media (max-width: 380px) {
  .hl-container { padding: 0 16px; }
  .h1-big { font-size: 34px; }
  .h2-big { font-size: 28px; }
  .confidence-grid { padding: 48px 16px !important; }
  .start-handling-row { padding: 48px 16px !important; }
}

/* Hide-on-small utilities */
@media (max-width: 640px)  { .hide-sm { display:none !important; } }
@media (max-width: 980px)  { .hide-md { display:none !important; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .live-dot,
  .sc-progress-fill,
  .hl-ticker-row.is-pulsing { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
