/* groundwork.house home page: the details and the questions (the hero is hero.css). The shell (nav, footer,
   buttons, type, widths, the waitlist card) is shell.css; colors, type and tracking are the app's tokens (tokens.css). */

/* ---------- the details and the questions: a heading and one-line intro on top, the content full width below ---------- */
/* (static, like the tiles' heading: nothing pins while the page scrolls; one section's space between each block: the
   tiles, the details, the questions and the card stack, without doubling it) */
.features { padding-bottom: 0; }
.stack { padding-block: var(--section-y) 0; }
.stack-head { max-width: 720px; margin-bottom: var(--space-5); }
.stack-head .t-lede { margin-top: var(--space-2); }
.stack-more { margin-top: var(--space-3); font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--gw-mute); letter-spacing: var(--track-callout); }

/* the spec list: short facts in four columns on a wide window, two below that, one on a phone */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.spec { padding: 16px 0 22px; border-top: 0.5px solid var(--gw-hair); }
.spec dt { font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--fw-semibold); color: var(--gw-ink); letter-spacing: var(--track-callout); }
.spec dd { margin: 4px 0 0; font-size: var(--fs-callout); line-height: 1.45; color: var(--gw-mute); letter-spacing: var(--track-callout); text-wrap: pretty; }
@media (max-width: 1023px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (max-width: 640px) { .specs { grid-template-columns: minmax(0, 1fr); } }

/* the questions: native <details>, one open at a time; answers kept to a reading measure */
.qa { border-top: 0.5px solid var(--gw-hair); }
.qa-item { border-bottom: 0.5px solid var(--gw-hair); }
.qa-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--row-min);
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--fw-semibold); color: var(--gw-ink); letter-spacing: var(--track-body);
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after { /* a chevron drawn in CSS: it turns when the answer opens */
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px;
  border-right: 1.75px solid var(--gw-mute); border-bottom: 1.75px solid var(--gw-mute);
  transform: translateY(-2px) rotate(45deg); transition: transform var(--t-med) var(--ease-out);
}
.qa-item[open] summary::after { transform: translateY(2px) rotate(225deg); }
.qa-item summary:hover { color: var(--gw-accent-text); }
.qa-item summary:focus-visible { outline-offset: 4px; }
.qa-a { max-width: 62ch; padding: 0 0 22px; font-size: var(--fs-body); line-height: 1.5; color: var(--gw-ink-2); letter-spacing: var(--track-body); }
.qa-a p + p { margin-top: 10px; }
.qa-item[open] .qa-a { animation: qa-open var(--t-med) var(--ease-out); }
@keyframes qa-open { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .qa-item[open] .qa-a { animation: none; }
  .qa-item summary::after { transition: none; }
}

/* ---------- the waitlist card: the shell draws it (shell.css); here only its place after the questions ---------- */
.join { padding-block: var(--section-y); }
