/*
 * Home — pillars section ("Four operating systems. One inbox.").
 * 2x2 grid of cards with portrait header per card. Anchor target for
 * the nav's "How it works" link (id="how-it-works").
 */

.home-pillars { padding: 120px 48px; border-top: 1px solid var(--ink-3); }
.home-pillar-head { max-width: var(--max-w); margin: 0 auto 64px; }
.home-h2-light {
  font-family: var(--display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--paper);
  max-width: 800px;
  margin-top: 16px;
  text-wrap: balance;
}
.home-pillars-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--ink-3);
}
.home-pillar-card {
  background: var(--ink-1);
  border-right: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
}
.home-pillar-card:nth-child(2n) { border-right: none; }
.home-pillar-card:nth-last-child(-n+2) { border-bottom: none; }
.home-pillar-img {
  height: 200px;
  border-bottom: 1px solid var(--ink-3);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(0.6) contrast(1.05);
}
.home-pillar-body { padding: 36px; }
.home-pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.home-pillar-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.home-pillar-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.home-pillar-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 12px;
}
.home-pillar-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-3);
  margin-bottom: 28px;
}
.home-pillar-foot { font-size: 13px; color: var(--amber); font-weight: 500; }

@media (max-width: 1024px) {
  .home-pillars { padding: 96px 32px; }
  .home-h2-light { font-size: 44px; }
}
@media (max-width: 768px) {
  .home-pillars { padding: 72px 20px; }
  .home-h2-light { font-size: 32px; }
  .home-pillars-grid { grid-template-columns: 1fr; }
  .home-pillar-card {
    border-right: none;
    border-bottom: 1px solid var(--ink-3);
  }
  .home-pillar-card:last-child { border-bottom: none; }
  .home-pillar-body { padding: 28px; }
  .home-pillar-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .home-h2-light { font-size: 28px; }
}
