/*
 * How It Works — S3 "Under the hood".
 *
 * Paper-on-dark inversion band. 2x2 grid of four trust commitments
 * explaining what keeps the AI honest.
 */

.hiw-hood {
  padding: 120px 48px;
  background: var(--paper);
  color: var(--ink-0);
}
.hiw-hood-inner { max-width: var(--max-w); margin: 0 auto; }
.hiw-hood-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.hiw-hood-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber-2);
  margin-bottom: 20px;
}
.hiw-h2-dark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink-0);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hiw-hood-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hiw-hood-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--paper-line);
}
.hiw-hood-card {
  padding: 40px;
  background: #fff;
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.hiw-hood-card:nth-child(2n) { border-right: none; }
.hiw-hood-card:nth-last-child(-n+2) { border-bottom: none; }
.hiw-hood-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.hiw-hood-card-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-2);
}
.hiw-hood-card-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-1);
}
.hiw-hood-card-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hiw-hood-card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hiw-hood { padding: 80px 32px; }
  .hiw-h2-dark { font-size: 40px; }
}
@media (max-width: 600px) {
  .hiw-hood { padding: 56px 20px; }
  .hiw-h2-dark { font-size: 30px; }
  .hiw-hood-grid { grid-template-columns: 1fr; }
  .hiw-hood-card { padding: 28px; border-right: none; }
  .hiw-hood-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--paper-line); }
  .hiw-hood-card:last-child { border-bottom: none; }
}
