/* ============================================
   HOMEPAGE - "Founder-led. Not factory-built."

   Copy on the left; on the right an "Engagement standards" sheet, taped
   over a pastel backing card, with six ticked lines and a round
   "Two-tier reviewed" stamp. Type comes from css/theme.css.
   Markup: tools/home_why.py.
   ============================================ */

/* The tilted cards reach slightly past the container on narrow screens */
.why { background: #ffffff; overflow-x: clip; }

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.why__copy .section-title { margin-bottom: 20px; }

.why__lead {
  margin: 0 0 16px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
}

.why__lead:last-child { margin-bottom: 0; }
.why__lead strong { font-weight: 600; color: var(--heading-strong); }

/* ---------- Sheet ---------- */
.why-sheet-wrap { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }

/* Pastel card peeking out from behind the sheet */
.why-sheet-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #fde3eb 0%, #e9e4ff 55%, #dcefff 100%);
  transform: rotate(-4deg);
}

.why-sheet {
  position: relative;
  padding: 32px;
  border: 1px solid #ece9f3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 40px 80px -50px rgba(35, 13, 79, 0.5);
  transform: rotate(1deg);
}

/* A strip of tape holding the sheet down */
.why-sheet::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 110px;
  height: 26px;
  margin-left: -55px;
  border-radius: 4px;
  background: rgba(255, 171, 87, 0.35);
  transform: rotate(-3deg);
}

.why-sheet__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--heading-strong);
}

.why-sheet__title { font: 500 20px/1.3 var(--font-display); color: var(--heading-strong); }

.why-sheet__brand {
  font: 600 12px/18px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3230e0;
}

.why-sheet__list { margin: 0; padding: 0; list-style: none; }

.why-sheet__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed #e2deec;
}

.why-sheet__box {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background: #3230e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.why-sheet__list b { display: block; font-weight: 500; line-height: 22px; color: var(--heading-strong); }
.why-sheet__list small { display: block; margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }

.why-sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.why-sheet__foot p { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

.why-sheet__stamp {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #c93a6a;
  transform: rotate(-12deg);
}

.why-sheet__stamp text {
  fill: currentColor;
  stroke: none;
  font: 600 10px var(--font-body);
  letter-spacing: 0.1em;
}

.why-sheet__tick { stroke-width: 4; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .why__grid { gap: 40px; }
}

@media (max-width: 1024px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  /* Keep the tilted cards inside the screen edge */
  .why-sheet-wrap { width: calc(100% - 16px); }
  .why-sheet-wrap::before { transform: rotate(-2.5deg); }
  .why-sheet { padding: 24px 18px; }
  .why-sheet__stamp { width: 84px; height: 84px; }
}
