/* ==========================================================================
   Lendumine — Homepage sections
   Page-specific layout that composes the design-system components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem);
  background:
    radial-gradient(60% 80% at 85% 0%, var(--color-accent) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, #EAF1FA 0%, transparent 55%),
    var(--color-bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.hero__copy { display: flex; flex-direction: column; gap: var(--space-5); max-width: 36ch; }
.hero__title { font-size: var(--text-display); }
.hero__sub { font-size: var(--text-lg); color: var(--color-ink-secondary); line-height: var(--leading-relaxed); max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  align-self: flex-start;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--color-secondary);
}
.eyebrow__dot {
  width: 1.5rem; height: 1.5rem; flex: none;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--color-teal); color: var(--color-secondary);
}
.eyebrow__dot svg { width: 0.85rem; height: 0.85rem; }

/* Hero visual — rounded photo frame with floating proof cards.
   The gradient + illustration act as a graceful fallback for the real photo;
   set --hero-photo to a url() to drop in the neighbors-sharing-a-cooler image. */
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background:
    var(--hero-photo, linear-gradient(150deg, #1A6FB5 0%, #004A8C 55%, #002C5F 100%));
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero__frame::after { /* soft vignette for legibility of floating cards */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,44,95,0.35) 100%);
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
}
.float-card__icon {
  width: 2.25rem; height: 2.25rem; flex: none;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-teal-ink);
}
.float-card__icon svg { width: 1.1rem; height: 1.1rem; }
.float-card strong { color: var(--color-ink); display: block; font-weight: var(--weight-semibold); }
.float-card span { color: var(--color-ink-muted); font-size: var(--text-xs); }
.float-card--tl { top: var(--space-5); left: calc(-1 * var(--space-5)); }
.float-card--br { bottom: var(--space-6); right: calc(-1 * var(--space-4)); }
.float-card--rating { top: 36%; right: calc(-1 * var(--space-3)); }
.float-card--rating { gap: var(--space-2); }
.float-card--rating strong { font-size: var(--text-base); }
.float-card__rating { display: flex; gap: 2px; color: var(--color-rating); }
.float-card__rating svg { width: 0.9rem; height: 0.9rem; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: none; }
  .hero__visual { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .float-card--tl { left: var(--space-3); }
  .float-card--br { right: var(--space-3); }
  .float-card--rating { right: var(--space-3); }
}
@media (max-width: 520px) {
  .float-card { padding: var(--space-2) var(--space-3); max-width: 72%; }
  /* Keep only the verified-neighbor card on small screens to avoid clutter/clipping */
  .float-card--rating, .float-card--br { display: none; }
  .float-card--tl { top: var(--space-3); left: var(--space-3); }
}

/* --------------------------------------------------------------------------
   EARLY-ACCESS / PROOF BAND  (pre-launch — honest, no fabricated traction)
   -------------------------------------------------------------------------- */
.proof {
  border-block: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}
.proof__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); padding-block: var(--space-7); }
.proof__item { display: flex; flex-direction: column; gap: var(--space-1); align-items: center; text-align: center; }
.proof__item svg { width: 1.5rem; height: 1.5rem; color: var(--color-teal-ink); }
.proof__value { font-size: var(--text-h3); font-weight: var(--weight-bold); color: var(--color-secondary); letter-spacing: var(--tracking-tight); }
.proof__label { color: var(--color-ink-secondary); font-size: var(--text-sm); }
@media (max-width: 640px) {
  .proof__inner { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* --------------------------------------------------------------------------
   CIRCLES — text + visual
   -------------------------------------------------------------------------- */
.circles__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (max-width: 860px) { .circles__grid { grid-template-columns: 1fr; } }

.circle-points { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-3); }
.circle-point { display: flex; gap: var(--space-3); align-items: flex-start; }
.circle-point__icon {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md);
  display: grid; place-items: center; background: var(--color-accent); color: var(--color-teal-ink);
}
.circle-point__icon svg { width: 1.2rem; height: 1.2rem; }
.circle-point h4 { font-size: var(--text-h4); margin-bottom: 2px; }
.circle-point p { color: var(--color-ink-secondary); }

/* Orbit visual — overlapping member avatars around a hub */
.orbit {
  position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%;
  display: grid; place-items: center;
}
.orbit__ring {
  position: absolute; border-radius: var(--radius-pill);
  border: 1.5px dashed var(--color-border-strong);
}
.orbit__ring--1 { inset: 18%; }
.orbit__ring--2 { inset: 2%; }
.orbit__hub {
  width: 38%; aspect-ratio: 1; border-radius: var(--radius-pill);
  background: linear-gradient(150deg, var(--color-teal), var(--color-primary));
  display: grid; place-items: center; color: #fff; text-align: center;
  box-shadow: var(--shadow-lg); z-index: 2; padding: var(--space-3);
}
.orbit__hub strong { font-size: var(--text-lg); line-height: 1.1; }
.orbit__hub span { font-size: var(--text-xs); opacity: 0.85; }
.orbit__avatar {
  position: absolute; width: 64px; height: 64px; border-radius: var(--radius-pill);
  display: grid; place-items: center; font-weight: var(--weight-semibold);
  background: var(--color-bg-elevated); color: var(--color-secondary);
  border: 3px solid var(--color-bg-elevated); box-shadow: var(--shadow-md);
}
.orbit__avatar:nth-child(3) { top: 4%;  left: 50%; transform: translateX(-50%); background: var(--color-accent); }
.orbit__avatar:nth-child(4) { top: 28%; right: 2%; background: #E4EFF9; }
.orbit__avatar:nth-child(5) { bottom: 8%; right: 14%; background: var(--color-accent); }
.orbit__avatar:nth-child(6) { bottom: 8%; left: 14%; background: #E4EFF9; }
.orbit__avatar:nth-child(7) { top: 28%; left: 2%; background: var(--color-accent); }
@media (max-width: 420px) { .orbit__avatar { width: 52px; height: 52px; font-size: var(--text-sm); } }

/* --------------------------------------------------------------------------
   CTA BANNER (full-bleed navy)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0,191,166,0.35) 0%, transparent 55%),
    linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-5);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 48ch; font-size: var(--text-lg); }
.cta-band .btn--outline { --_fg: #fff; --_border: rgba(255,255,255,0.5); --_bg-hover: rgba(255,255,255,0.12); --_bg-press: rgba(255,255,255,0.2); }
.cta-band .btn--outline:hover { --_fg: #fff; border-color: #fff; }

/* Section eyebrow helper used across homepage heads */
.section-head .t-overline { color: var(--color-teal-ink); }

/* --------------------------------------------------------------------------
   MOBILE HOMEPAGE — sticky bottom CTA + section prioritisation
   (Prompt 3: iPhone-width, mobile-first, large touch targets)
   -------------------------------------------------------------------------- */
.mobile-cta { display: none; }

@media (max-width: 720px) {
  /* Sticky bottom CTA bar */
  .mobile-cta {
    display: flex; align-items: center; gap: var(--space-3);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
    padding: var(--space-3) var(--container-pad);
    padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--color-bg-elevated) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 20px rgba(14, 42, 67, 0.10);
  }
  .mobile-cta .btn { flex: 1; min-height: 52px; }   /* large touch target */
  .mobile-cta__meta { font-size: var(--text-sm); color: var(--color-ink-muted); line-height: 1.2; white-space: nowrap; }
  .mobile-cta__meta strong { display: block; color: var(--color-secondary); font-size: var(--text-base); }
  body { padding-bottom: 88px; }   /* clear the fixed bar */

  /* Prioritised mobile order: Hero · Circles · Trust · Categories · FAQ · Footer
     (remaining sections kept, slotted in afterwards) */
  main { display: flex; flex-direction: column; }
  .hero        { order: 1; }
  #circles     { order: 2; }
  #trust       { order: 3; }
  #categories  { order: 4; }
  #how         { order: 5; }
  #early-access{ order: 6; }
  #about       { order: 7; }
  #faq         { order: 8; }
  #join        { order: 9; }

  /* Tighter vertical rhythm + comfortable reading on small screens */
  .section { padding-block: var(--space-7); }
  .hero { padding-top: var(--space-6); }
}
