/**
 * Section: What's in the Box
 * Ported from .docs/mockup/css/howitworks.css (.inbox through .inbox-visual,
 * lines 103-172) and the .inbox-grid / .inbox-visual rules in the shared
 * 900px responsive block at the end of that file (lines 325-335). Tokens
 * only -- no hardcoded colours or sizes.
 *
 * The mockup spaces eyebrow / heading / list with margin-block on the h2
 * (var(--space-s) var(--space-l)). Per section-architecture.md, text is
 * grouped in one flex-column parent with gap instead: .inbox-content holds
 * the title-group and the list with gap: var(--space-l) -- matching the
 * mockup's bottom margin value -- and the shared .section-title-group
 * component (components.css) handles the eyebrow-to-heading spacing, as
 * every other section already does.
 */

.inbox {
  padding-block: var(--section-space-m);
  padding-inline: var(--space-gutter);
}

.inbox-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.inbox-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.inbox-content h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
  max-width: 16ch;
}

.inbox-content h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  list-style: none;
  padding: 0;
  margin: 0;
}

.inbox-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-s);
  align-items: start;
}

.inbox-item .material-symbols-outlined {
  color: var(--eucalypt);
  font-size: 24px;
  margin-top: 2px;
}

.inbox-item strong {
  display: block;
  color: var(--deep-ocean);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h4);
  margin-bottom: 2px;
}

.inbox-item span {
  color: var(--graphite);
  font-size: var(--text-small);
  line-height: 1.55;
}

.inbox-visual {
  aspect-ratio: 4 / 3;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .inbox-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .inbox-visual {
    order: -1;
  }
}
