/* Homepage v2 layout, typography, offers, footer, and sign-up.
   Complements css-copied-from-cf-main.css and five-sources.css. */

/* Hero typography and the designed-value / eroded-value bar */
.hero{
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 40px 0 80px;
}
.hero h1{
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 22px;
  max-width: 22ch;
  font-weight: 800;
  color: #f2f0ea;
}
.hero h1 em{font-style: normal; color: #e8a838;}
.hero .l{
  font-size: 22px;
  color: #bfc3c8;
  max-width: 46ch;
  margin: 0 0 18px;
}
.hero .l + .l{font-size: 20px;}
.hero .ci-line{
  font-size: 18px;
  color: #c9ccd0;
  max-width: 52ch;
  margin: 0 0 34px;
}
.bar{
  display: flex;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 40px;
  max-width: 760px;
}
.bar i{flex: 1; background: #e8a838;}
.bar i:nth-child(n+6){background: linear-gradient(90deg,#e8a838,transparent);}
.bar i:nth-child(n+8){background: transparent; border-left: 2px dashed #555;}
.bl{
  display: flex;
  justify-content: space-between;
  max-width: 760px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a8f96;
  margin: -30px 0 28px;
}

.cta-row{display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 8px;}
.btn.ghost{
  background: transparent;
  color: #eceae4;
  border-color: #3a3d42;
}
.btn.ghost:hover{border-color: #e8a838; color: #e8a838; opacity: 1;}

/* Solution steps */
.steps{list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 62ch;}
.steps li{display: flex; gap: 16px; align-items: flex-start; color: #c9ccd0;}
.steps .n{
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(232,168,56,.14);
  border: 1px solid rgba(232,168,56,.35);
  color: #e8a838;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.steps b{color: #f2f0ea;}

/* About / proof */
.about{display: flex; gap: 40px; align-items: center;}
.about img{width: 180px; height: 180px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;}
.about p{max-width: 62ch;}

/* Close */
.end{text-align: center;}
.end h2{font-size: 56px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; max-width: none;}
.end .l{margin: 0 auto 28px; color: #c9ccd0;}
.end .cta-row{justify-content: center;}

header .w{flex-wrap: wrap;}
.brand img{height: 96px !important;}
#tools h2, #about h2, #five-sources h2{
  font-weight: 900;
  letter-spacing: -.02em;
}
#tools h2{font-size: 46px;}
#tools h2, #who h2{margin-bottom: 20px;}

/* Five-sources closed-summary one-liners */
.source-text{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.source-name{flex: unset;}
.source-line{
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: #c9ccd0;
}
.after-sources{margin-top: 28px;}

/* Offers */
.offers{
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
  max-width: 68ch;
}
.offer{
  background: #1a1d21;
  border: 1px solid #2a2d31;
  border-radius: 12px;
  padding: 22px 24px;
}
.offer h3{
  margin: 0 0 8px;
  font-size: 22px;
  color: #f2f0ea;
}
.offer p{
  margin: 0 0 10px;
  max-width: none;
  color: #c9ccd0;
}
.offer p:last-child{margin-bottom: 0;}
.offer .terms{
  font-size: 16px;
  color: #c9ccd0;
}
.offer .terms a,
.offer a{
  color: #e8a838;
  font-weight: 700;
  text-decoration: none;
}
.offer .terms a:hover,
.offer a:hover{text-decoration: underline;}

.who p,
.problem p{
  max-width: 62ch;
}

/* Footer: identity row, then a left-aligned link row */
footer .wrap{
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
}
.footer-ident,
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

/* Sign-up is already its own section; no extra inner rule */
#checklist-signup{
  padding-top: 56px;
}
#checklist-signup .signup{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 760px){
  .about{flex-direction: column; align-items: flex-start;}
  .nav{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
    gap: 10px;
    font-size: 13px;
  }
  .end h2{font-size: 38px;}
  .hero{min-height: 0; padding: 24px 0 56px;}
  .hero h1{font-size: 40px; max-width: none;}
  header .w{padding-left: 16px; padding-right: 16px;}
  .brand img{height: 64px !important;}
  .btn{display: inline-block; text-align: center;}
  .cta-row .btn{flex: 1 1 220px; text-align: center;}
  .source-line{font-size: 14px;}
}
@media (max-width: 480px){
  .brand img{height: 48px !important;}
  .nav{gap: 8px; font-size: 12px;}
  .hero h1{font-size: 36px;}
  .source summary{align-items: flex-start;}
  .offer{padding: 18px 16px;}
}
