/* ==========================================================================
   KoalaFix homepage — Claude-minimal redesign overlay.
   Scoped to body.home so the other pages keep the existing editorial styling.
   Loaded AFTER styles.css so these rules win. Goals: clean sans (drop the
   Fraunces serif), generous whitespace, large readable type, balanced line
   wrapping (no "two words / one word"), and the live app demo as a full-bleed
   hero centerpiece.
   ========================================================================== */

/* ---------- Type: clean sans, balanced lines, a consistent measure -------- */
body.home { font-family: var(--sans); }
body.home h1, body.home h2, body.home h3, body.home h4, body.home h5 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
body.home .sans { font-family: var(--sans); font-style: normal; font-weight: 700; }
body.home .serif { font-family: var(--sans); font-style: normal; }
body.home .underline { background-image: none; padding: 0; }
body.home p { text-wrap: pretty; }
body.home .lede, body.home .section-head p { max-width: 62ch; }

/* ---------- Nav: lighter, more minimal ---------- */
body.home .nav { background: rgba(246, 242, 232, 0.72); border-bottom-color: transparent; }
body.home .nav-inner { padding-top: 18px; padding-bottom: 18px; }

/* ---------- Sections: more air ---------- */
body.home .section { padding: 104px 0; }
body.home .section-head { margin-bottom: 56px; }
body.home .section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }

/* ---------- HERO ---------- */
body.home .home-hero {
  position: relative;
  padding: 84px 0 96px;
  text-align: center;
  overflow: hidden;
}
body.home .home-hero::before {
  content: "";
  position: absolute; left: 50%; top: 150px; transform: translateX(-50%);
  width: min(1100px, 90vw); height: 540px;
  background: radial-gradient(60% 60% at 50% 0%, var(--app-soft), transparent 70%);
  filter: blur(50px); pointer-events: none; z-index: 0;
}
body.home .home-hero-copy {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter);
}
body.home .home-hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 auto 22px;
  max-width: 24ch;
  color: var(--ink);
}
body.home .home-hero .lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 auto 32px;
  max-width: 58ch;
}
body.home .home-hero .hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* Full-bleed app stage. */
body.home .home-hero-stage {
  position: relative; z-index: 2;
  width: min(1100px, 94vw);
  margin: 60px auto 0;
}
body.home .home-hero-stage .app-shell { border-radius: 20px; }
body.home .home-hero-stage .kfdemo { height: 540px; }
body.home .home-hero-stage .kfdemo-greet { max-width: 560px; }

body.home .home-hero-stage .kfdemo-msgs {
  width: 100%; max-width: 720px; margin: 0 auto;
  justify-content: center;
  gap: 12px;
}
body.home .home-hero-stage .kfdemo-convo { padding: 0 18px; }
body.home .home-hero-stage .kfdemo-composer .kfdemo-inputbar {
  max-width: 760px; margin: 0 auto;
}

/* ============ Section polish ============ */
body.home .serif,
body.home .scorecard-tease h3,
body.home .scorecard-tease .stat .v {
  font-family: var(--sans);
  font-style: normal;
}
body.home .scorecard-tease h3 { font-weight: 700; letter-spacing: -0.025em; }
body.home .scorecard-tease .stat .v { font-weight: 600; letter-spacing: -0.01em; }

body.home .section-head { align-items: start; gap: 56px; }

body.home .problem-cell:first-child { padding-left: 0; }
body.home .problem-cell:last-child { padding-right: 0; }

body.home .step {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
  padding: 30px 28px;
}
body.home .step:hover { transform: none; box-shadow: var(--shadow-1); }

body.home .integrations { border-radius: var(--r-lg); }
body.home .integrations .tile:hover { transform: none; }
body.home .integrations .tile:hover .logo { transform: none; }

body.home .integrations .tile .logo--brand { background: none; border-radius: 0; padding: 0; }
body.home .integrations .tile:hover .logo--brand { background: none; }
body.home .integrations .tile .logo--brand img { width: 36px; height: 36px; display: block; object-fit: contain; }

/* Six integrations: 3 across x 2 rows on desktop. Demo is 16:9 on desktop only. */
@media (min-width: 821px) {
  body.home .integrations { grid-template-columns: repeat(3, 1fr); }
  body.home .integrations .tile { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  body.home .integrations .tile:nth-child(3n) { border-right: 0; }
  body.home .integrations .tile:nth-last-child(-n+3) { border-bottom: 0; }
  body.home .home-hero-stage .kfdemo { height: auto; aspect-ratio: 16 / 9; }
}

body.home .scorecard-tease { border-radius: var(--r-lg); }

/* Tablet/down: fixed demo height (no aspect-ratio, so it can't crush). */
@media (max-width: 820px) {
  body.home .section { padding: 64px 0; }
  body.home .section-head { margin-bottom: 32px; }
  body.home .home-hero { padding: 44px 0 52px; }
  body.home .home-hero-stage { width: 100%; margin-top: 34px; padding: 0 14px; }
  body.home .home-hero-stage .kfdemo { height: 560px; }
}

/* Phones: shrink the demo greeting so the whole app preview fits cleanly. */
@media (max-width: 680px) {
  body.home .home-hero-stage { padding: 0 12px; }
  body.home .home-hero-stage .kfdemo { height: 540px; }
  body.home .kfdemo-greet { padding: 20px 18px 16px; }
  body.home .kfdemo-greet h3 { font-size: 23px; }
  body.home .kfdemo-greet p { font-size: 12.5px; line-height: 1.45; margin-bottom: 12px; max-width: 34ch; }
  body.home .kfdemo-gava { width: 46px; height: 46px; }
  body.home .kfdemo-chips { margin-top: 12px; gap: 7px; }
  body.home .kfdemo-chip { font-size: 11px; padding: 6px 10px; }
}
