/* The landing page's parts under its opening (docs/site.md): the band the window stands in, the two-sided parts
   with their lists and stages, the questions and the closing band. The cards are in cards.css and what stands on a
   stage in stages.css. Each part owns one colour (--tone, set in style.css): its small label, its list and its marks wear it. */

.lp {
  max-width: calc(72rem + var(--inset) * 2);
  margin-inline: auto;
  padding-inline: var(--inset);
}
.section {
  padding-block: var(--between) 0;
}
/* A part opens under a thin rule with a short mark at its start. */
.section > .head {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.section > .head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0.5rem;
  height: 1px;
  background: var(--ink);
}
.eyebrow {
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--mute);
}
.tile {
  border-radius: 28px;
  background: var(--tile);
}

/* The window, on a soft ground of its own. */
.band {
  padding: 0 var(--inset);
}
.band-in {
  max-width: 72rem;
  margin: 0 auto;
}

/* Two sides: the words, and a stage for what they are about. */
.split {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: center;
}
.split-words {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0;
}
.split-words .eyebrow {
  margin-bottom: -0.5rem;
}
.list {
  display: grid;
  gap: 0.875rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
  color: var(--ink);
}
.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.list svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1875rem;
}
/* A stage fills its side, edge to edge with what stands beside or above it. Alone on a column wider than a phone it
   would be very tall, so there it is cut lower and the face keeps its size. */
.stage {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
}
.big {
  width: min(56%, 18rem);
  aspect-ratio: 1;
}
@media (min-width: 36rem) and (max-width: 55.9375rem) {
  .stage {
    aspect-ratio: auto;
    height: 26rem;
  }
}
@media (min-width: 56rem) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flip > :first-child {
    order: 2;
  }
}

/* Questions: the heading on one side, the answers on the other. A question's plus becomes a minus when open. */
.faq {
  display: grid;
  gap: 2rem 4rem;
  align-items: start;
}
.faq > div:first-child {
  display: grid;
  gap: 1rem;
}
.faq-list {
  interpolate-size: allow-keywords;
}
.faq details {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  font-size: 1.1875rem;
  line-height: 1.6875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: opacity 100ms;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:active {
  opacity: 0.6;
}
.faq summary i {
  order: -1;
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 7px;
}
.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 300ms var(--arrive);
}
.faq summary i::after {
  transform: rotate(90deg);
}
.faq [open] summary i::after {
  transform: none;
}
.faq details p {
  padding: 1rem 1rem 0 calc(14px + 1.25rem);
}
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size 300ms var(--arrive),
    content-visibility 300ms allow-discrete;
}
.faq [open]::details-content {
  block-size: auto;
}
@media (min-width: 56rem) {
  .faq {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

/* The last band: the call to action, and a few of the crowd to see the reader off. */
.closing {
  padding: var(--between) var(--inset) 5rem;
}
.closing-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem var(--inset) 4.5rem;
  border-radius: 36px;
  background: var(--soft);
  text-align: center;
}
.closing h2 {
  max-width: 22em;
}
.closing .it.soft {
  background: var(--softer);
}

@media (max-width: 40rem) {
  .closing-in {
    border-radius: 28px;
  }
}

/* The page's foot goes out of focus as it leaves the screen, as a chat's does behind its box (src/blur.ts): strips
   that each add a little blur, and a wash of the page's colour that comes in with them. */
.foot-blur {
  position: fixed;
  inset: auto 0 0;
  z-index: 15;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--page) 55%, transparent) 70%);
}
.foot-blur i {
  position: absolute;
  inset: auto 0 0;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
