/* ============================================================
   LidFlow.ai — TRUST & WARMTE PASS (v1.2)
   Spacing fixes + founder card + trust strip + subtle polish
   ============================================================ */

/* ----------------------------------------------------------
   DEEL 1 — SPACING FIXES (additive, scoped)
   ---------------------------------------------------------- */

/* Hero achievement badges — pull inward from edges, smaller, calmer */
.hero .badge {
  font-size: 9px !important;
  padding: 10px 14px !important;
  letter-spacing: 0.14em !important;
}
.hero .badge-1 { top: 14% !important; left: max(80px, 6%) !important; }
.hero .badge-2 { top: 16% !important; right: max(80px, 6%) !important; }
.hero .badge-3 { top: auto !important; bottom: 18% !important; left: max(80px, 6%) !important; }
.hero .badge-4 { top: auto !important; bottom: 20% !important; right: max(80px, 6%) !important; }

@media (max-width: 1280px) {
  .hero .badge-2, .hero .badge-4 { display: none; }
}

/* Hero floating mini-tiles — calmer shadow + ensure airspace */
.mini-tile {
  box-shadow: 0 4px 14px rgba(12, 28, 23, 0.06),
              0 1px 3px rgba(12, 28, 23, 0.04) !important;
}
.float-stat,
.float-whatsapp {
  box-shadow: 0 12px 32px rgba(82,196,145,0.14),
              0 4px 12px rgba(12,28,23,0.05) !important;
}

/* Service-chips: more breathing room from CTAs */
.hero .chip-row {
  margin-top: 32px !important;
  gap: 12px !important;
}

/* Scenario stat-rows: ruimer */
.lf-stat-row { gap: 16px !important; }
.lf-stat { padding: 14px 18px !important; }

/* ----------------------------------------------------------
   DEEL 4 — Subtle warmth polish (scoped to new + scenarios)
   ---------------------------------------------------------- */
.lf-h2, .lf-sec-h { letter-spacing: -0.015em !important; }
.lf-body, .lf-disclaimer-text { line-height: 1.7 !important; }

/* Soften scenario floating-tile glow */
.lf-float-tile {
  box-shadow: 0 16px 40px rgba(12,28,23,0.08),
              0 0 0 6px rgba(82,196,145,0.04) !important;
}

/* ============================================================
   DEEL 2 — FOUNDER TRUST CARD
   ============================================================ */
.founder {
  position: relative;
  background: var(--cream-bg);
  padding: 100px 24px;
  overflow: hidden;
  isolation: isolate;
}
.founder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(245,158,11,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
.founder-glow {
  position: absolute;
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(254,243,199,0.6) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.founder-container {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 64px;
  align-items: center;
}

/* Portrait */
.founder-portrait {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(12,28,23,0.08);
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f5e8d4, #dcefe4);
  animation: founderFloat 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes founderFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.founder-portrait img,
.founder-portrait .wr-photo-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.95) contrast(1.04);
  display: block;
}
/* SVG silhouette is always rendered behind the photo as a placeholder.
   The real photo (z-index above) covers it when loaded; if the photo
   fails or is slow, the silhouette is visible instead of an empty box. */
.founder-portrait .wr-photo-svg { z-index: 1; }
.founder-portrait img          { z-index: 2; background: transparent; }
.founder-portrait.wr-failed img { display: none; }

.founder-signature {
  position: absolute;
  bottom: 18px; left: 22px;
  z-index: 3;
  font-family: 'Caveat', cursive;
  font-size: 38px;
  color: var(--green-mid);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
  pointer-events: none;
  transform: rotate(-4deg);
}

/* Story */
.founder-story { max-width: 520px; }
.founder-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-deep); font-weight: 700;
}
.founder-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  position: relative;
}
.founder-eyebrow .dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--amber); opacity: 0.4;
  animation: lfPulse 1.6s ease-out infinite;
}

.founder-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 44px);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 16px 0 24px;
  line-height: 1.05;
}

.founder-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.founder-trust-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.founder-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.founder-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--green-mid);
  text-decoration: none;
  transition: gap 0.2s;
}
.founder-cta:hover { text-decoration: underline; gap: 12px; }
.founder-cta .icn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--amber-soft);
  font-size: 14px;
}

/* ============================================================
   DEEL 3 — TRUST PROMISE STRIP
   ============================================================ */
.trust-promises {
  position: relative;
  background: var(--bg-base);
  padding: 60px 24px;
  border-top: 1px solid rgba(226,235,230,0.6);
}
.trust-promises-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.trust-promise {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.trust-promise .icn {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--green-soft);
  color: var(--green-mid);
  border-radius: 14px;
}
.trust-promise.amber .icn {
  background: var(--amber-soft);
  color: var(--amber-deep);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.08);
}
.trust-promise .ttl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-top: 4px;
}
.trust-promise .sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 200px;
}

/* ----------------------------------------------------------
   Reveal animations
   ---------------------------------------------------------- */
.tw-fx { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo); }
.founder.in-view .tw-fx,
.trust-promises.in-view .tw-fx { opacity: 1; transform: none; }
.founder.in-view .tw-fx[data-d="100"] { transition-delay: 100ms; }
.founder.in-view .tw-fx[data-d="200"] { transition-delay: 200ms; }
.founder.in-view .tw-fx[data-d="300"] { transition-delay: 300ms; }
.founder.in-view .tw-fx[data-d="400"] { transition-delay: 400ms; }
.founder.in-view .tw-fx[data-d="500"] { transition-delay: 500ms; }
.trust-promises.in-view .tw-fx[data-d="100"] { transition-delay: 100ms; }
.trust-promises.in-view .tw-fx[data-d="180"] { transition-delay: 180ms; }
.trust-promises.in-view .tw-fx[data-d="260"] { transition-delay: 260ms; }
.trust-promises.in-view .tw-fx[data-d="340"] { transition-delay: 340ms; }

/* Responsive */
@media (max-width: 1024px) {
  .founder-container { gap: 48px; }
  .trust-promises-grid { gap: 24px; }
}
@media (max-width: 768px) {
  .founder { padding: 72px 20px; }
  .founder-container {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 460px;
  }
  .founder-portrait { aspect-ratio: 1 / 1; }
  .founder-h2 { font-size: clamp(26px, 7vw, 32px); }
  .trust-promises { padding: 48px 20px; }
  .trust-promises-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-portrait { animation: none !important; }
  .tw-fx { opacity: 1 !important; transform: none !important; transition: none !important; }
}
