/* Features page: one section per module and a table of contents, sticky beside them from 1000px. */

.page-head { padding-block: clamp(3rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem); }
.page-head .lead { max-width: 44rem; margin-top: 1.25rem; }

.modules-layout { display: grid; gap: 2.5rem; }

/* ---------- Table of contents: a card above the modules on phones ---------- */
.toc {
  padding: 1rem 1.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}
.toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; margin-top: 0.4rem; }
.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { font-weight: 600; color: var(--accent-deep); }

@media (min-width: 1000px) {
  .modules-layout { grid-template-columns: minmax(0, 1fr) 15rem; column-gap: 4rem; }
  .module-list { grid-column: 1; grid-row: 1; }
  .toc {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding: 0;
    border: 0;
    background: none;
  }
  .toc ol { grid-template-columns: 1fr; margin-top: 0.75rem; border-left: 1px solid var(--line); }
  .toc a { min-height: 44px; padding-block: 0.3rem; margin-left: -1px; padding-left: 1rem; border-left: 2px solid transparent; }
  .toc a[aria-current] { border-left-color: var(--accent); }
}

/* ---------- Modules ---------- */
.module { scroll-margin-top: 6rem; }
.module + .module { margin-top: clamp(2.75rem, 6vw, 4rem); padding-top: clamp(2.75rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.module .h2 { display: flex; align-items: center; gap: 0.75rem; }
.module .icon { width: 28px; height: 28px; }
.module .lead { max-width: 44rem; margin-top: 1rem; }

.bullets { display: grid; gap: 0.65rem; max-width: 44rem; margin-top: 1.5rem; }
.bullets li { position: relative; padding-left: 1.4rem; overflow-wrap: anywhere; }
.bullets li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.bullets .soon { color: var(--muted); }
.bullets .soon::before { background: var(--line); }
.tag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 0.1em;
}

.shot { margin: 2rem 0 0; }
.shot img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-card); }
