/* ===========================================================
   HOW IT WORKS — Page CSS
   Uses the existing public design language (sharp boxes, shadow, grid)
   =========================================================== */

.hiw-page{
  max-width: var(--public-maxw);
  margin: 0 auto;
  padding: 32px var(--public-pad) 78px;
}

/* HERO */
.hiw-hero{
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 0;
  overflow: hidden;
}

.hiw-hero-inner{
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 24px 24px;
  text-align: center;
}

.hiw-hero h1{
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.hiw-lede{
  margin: 14px auto 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(15,15,16,.72);
}

.hiw-hero-media{
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

.hiw-hero-media img{
  display: block;
  width: 100%;
  height: auto;
}

.hiw-hero-cta{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* SECTIONS */
.hiw-section{
  margin-top: 34px; /* slightly more air */
}

.hiw-sectionhead{
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line); /* makes headings less missable */
}

.hiw-sectionhead h2{
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hiw-sectionhead p{
  margin: 10px auto 0;
  max-width: 760px;
  color: rgba(15,15,16,.72);
  font-size: 14px;
  line-height: 1.7;
}

/* GRID */
.hiw-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hiw-grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* CARDS */
.hiw-card{
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 0;
  padding: 20px 18px 18px; /* slightly roomier */
}

.hiw-card h3{
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hiw-card p{
  margin: 12px 0 0;
  color: rgba(15,15,16,.72);
  font-size: 14px;
  line-height: 1.7;
}

.hiw-list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(15,15,16,.72);
  font-size: 14px;
  line-height: 1.75;
}

.hiw-list li{ margin: 7px 0; }

/* PANEL */
.hiw-panel{
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 0;
  padding: 18px 18px;
}

.hiw-steps p{
  margin: 0;
  padding: 11px 0; /* a bit more breathing room */
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.hiw-steps p:last-child{
  border-bottom: none;
}

.hiw-costs p{
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.hiw-costs p:last-child{
  border-bottom: none;
}

/* BOXED CALLOUTS (for those floating lines) */
.hiw-callout{
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 0;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(15,15,16,.72);
  text-align: center;
}

/* CTA */
.hiw-cta{
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 0;
}

.hiw-cta-inner{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 18px;
  text-align: center;
}

.hiw-cta h2{
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hiw-cta p{
  margin: 12px 0 0;
  color: rgba(15,15,16,.72);
  font-size: 14px;
  line-height: 1.7;
}

.hiw-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hiw-actions-center{
  margin-top: 16px;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hiw-grid{ grid-template-columns: 1fr; }
  .hiw-grid-2{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .hiw-page{ padding-top: 20px; }
  .hiw-hero-inner{ padding: 24px 16px 18px; }
  .hiw-section{ margin-top: 30px; }
}
