/* ==========================================================================
   K00 — Cover & Index (index.html)
   Kit cover: wide-screen kit navigation, animated field-line hero,
   "how to use" steps and the page index (page-local list) with build status.
   The page is always Vacuum (no theme switch), so hex values below are
   the Vacuum values used by the original.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shell: navigation column + main column
   -------------------------------------------------------------------------- */
.cover-shell {
  display: flex;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
}

.cover-main {
  flex: 1;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Kit navigation (hidden below 1000px)
   -------------------------------------------------------------------------- */
.cover-nav {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 272px;
  flex-direction: column;
  gap: 28px;
  width: 272px;
  height: 100vh;
  overflow: auto;
  padding: 24px 16px 40px;
  border-right: 1px solid var(--line);
  background: #0F1217;
}

.cover-nav__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 8px;
}

.cover-nav__logo {
  font-size: 22px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.02em;
}

.cover-nav__version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

.cover-nav__group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cover-nav__group-title {
  padding: 0 8px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--text-3);
}

.cover-nav__link {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: var(--r-1);
  font-size: 13px;
  color: #EDEFF2;
}

.cover-nav__link.is-planned {
  color: #AEB4BE;
}

.cover-nav__link[aria-current="page"],
.cover-nav__link:hover {
  background: #161A21;
  color: #EDEFF2;
}

.cover-nav__id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

@media (max-width: 999.98px) {
  .cover-nav {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Build status dot (sidebar + index cards)
   Built → status-dot--demonstrated, In progress → status-dot--testing,
   Planned → status-dot + .build-dot--planned (grey ring)
   -------------------------------------------------------------------------- */
.build-dot {
  --dot-size: 7px;
}

.build-dot--planned {
  border-color: #8A919C;
  background: transparent;
}

/* --------------------------------------------------------------------------
   Cover (hero with field-line canvas)
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.cover__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 11, .85) 0%, rgba(7, 8, 11, 0) 50%);
  pointer-events: none;
}

.cover__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px clamp(20px, 4vw, 56px);
}

.cover__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

.cover__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: auto;
}

.cover__stage {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.cover__title {
  font-size: clamp(96px, 22vw, 340px);
  line-height: .8;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.06em;
}

.cover__foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.cover__lead {
  max-width: 560px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: pretty;
}

.cover__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cover__cta {
  gap: 12px;
}

.cover__cta--demo {
  padding: 0 22px;
}

/* Pause / play control for the field animation */
.cover__pause {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Content sections (How to use, Index)
   -------------------------------------------------------------------------- */
.cover-section {
  padding: clamp(72px, 8vw, 128px) clamp(20px, 4vw, 56px);
}

.cover-section--ruled {
  border-bottom: 1px solid var(--line);
}

.cover-section__title {
  margin-top: 16px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: -.03em;
}

.cover-section__title--narrow {
  max-width: 16ch;
}

.cover-section__note {
  margin-top: 48px;
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   How to use: steps + status key
   -------------------------------------------------------------------------- */
.usage-steps {
  margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.usage-steps__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}

.usage-steps__text {
  font-size: 15px;
  color: var(--text-2);
  text-wrap: pretty;
}

.status-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

.status-key__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Index: one group per PAGES group, cards in a hairline grid
   -------------------------------------------------------------------------- */
.index-group {
  margin-top: 56px;
}

.index-group__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

.index-group__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  border-top: 0;
}

.index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  color: var(--text);
  outline: 1px dashed rgba(127, 219, 255, 0);
  outline-offset: -6px;
  transition: outline-offset 400ms cubic-bezier(.16, 1, .3, 1), outline-color 250ms;
}

.index-card:hover {
  outline-color: rgba(127, 219, 255, .55);
  outline-offset: -10px;
  background: #0F1217;
  color: #EDEFF2;
}

.index-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.index-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.index-card__title {
  font-size: 20px;
  font-weight: 600;
  font-stretch: 115%;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.index-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
