/* ============================================================
   Your Brand — applications.css
   Page-scoped styles for /front/applications.html
   Tone: structured, calm, enterprise-grade.
   Tokens consumed from main.css (no new colors introduced).
   ============================================================ */

/* ---------- Hero adjustments ---------- */
.app-hero { padding-bottom: 4.5rem; }
.app-hero .hero__title { max-width: 22ch; }
.app-hero .hero__lead { max-width: 62ch; }

/* ---------- Section frame ---------- */
.app-section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--hairline);
}
.app-section__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 56rem;
  margin-bottom: 3rem;
}
.app-section__title {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.15;
}
.app-section__lead {
  color: var(--muted-foreground);
  font-size: 1rem;
  max-width: 56ch;
}

/* ---------- Environments grid ---------- */
.env-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 820px) {
  .env-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.env-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 2rem 1.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.env-card:hover {
  border-color: hsla(150, 11%, 20%, 0.18);
  box-shadow: var(--shadow-soft);
}

.env-card__index {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.env-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.env-card__body {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 52ch;
}

.env-card__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}
.env-card__traits li {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  background: var(--background-alt);
  border: 1px solid var(--hairline);
  padding: 0.3125rem 0.625rem;
  border-radius: 9999px;
}

.env-card__anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  border-bottom: 1px solid hsla(16, 57%, 51%, 0.25);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.env-card__anchor:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
}
.env-card__anchor svg { width: 12px; height: 12px; }

/* ---------- System capability layer ---------- */
.cap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .cap-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .cap-row { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.cap {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--foreground);
  border-top-color: hsla(150, 11%, 20%, 0.55);
}
.cap__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--foreground);
}
.cap__body {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Walkthrough closing band ---------- */
.walkthrough-band {
  background: var(--background-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 5rem 0;
}
.walkthrough-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 44rem;
  margin: 0 auto;
}
.walkthrough-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--foreground);
}
.walkthrough-band__lead {
  color: var(--muted-foreground);
  font-size: 1rem;
  max-width: 52ch;
}
.walkthrough-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}
