/* Module: features — sections #features (06), #stack (07), #industries (08).
   Everything is scoped under those ids; shared components come from site.css. */

/* ---------- 06 / Features ---------- */

#features .features-tile {
  position: relative;
}

#features .features-ico {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 28px;
  color: var(--accent);
  transition: color 0.3s var(--ease-std);
}

#features .features-ico svg {
  width: 24px;
  height: 24px;
}

#features .features-tile:hover .features-ico {
  color: var(--accent-soft);
}

#features .features-tile .cell-t {
  max-width: 14ch;
}

#features .features-tile .cell-p {
  max-width: 30ch;
}

/* The patient's own words, set as a square mono chip so they read as "exactly what was typed". */
#features .features-q {
  display: inline-block;
  padding: 1px 7px 2px;
  margin-inline: 1px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--bone);
  white-space: nowrap;
  vertical-align: 1px;
}

@media (max-width: 767px) {
  #features .features-ico {
    margin-bottom: 20px;
  }
}

/* ---------- 07 / Stack ---------- */

#stack .sec-head {
  margin-bottom: 48px;
}

#stack .features-stack {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#stack .features-tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 28px 24px;
  color: var(--bone-70);
  transition: color 0.3s var(--ease-std);
}

#stack .features-tool:hover {
  color: var(--bone);
}

#stack .features-glyph {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 24px;
}

#stack .features-glyph svg {
  width: 20px;
  height: 20px;
}

#stack .features-tool-n {
  display: block;
  color: var(--bone);
}

#stack .features-tool-r {
  display: block;
  margin-top: 8px;
}

#stack .features-caption {
  margin-top: 24px;
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ash);
}

@media (max-width: 1023px) {
  #stack .features-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #stack .features-stack > *:nth-child(3n + 1) {
    border-left: 0;
  }

  #stack .features-stack > *:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 639px) {
  #stack .features-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  #stack .features-stack > * {
    border-left: 0;
  }

  #stack .features-stack > *:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  /* One tool per row: glyph, name, role on a single 64px line. */
  #stack .features-tool {
    flex-direction: row;
    align-items: center;
    min-height: 64px;
    padding: 12px 0;
  }

  #stack .features-glyph {
    margin: 0 16px 0 0;
    flex: none;
  }

  #stack .features-tool-n {
    flex: 1 1 auto;
    min-width: 0;
  }

  #stack .features-tool-r {
    margin: 0 0 0 16px;
    flex: none;
    text-align: right;
  }

  #stack .features-caption {
    margin-top: 20px;
  }
}

/* ---------- 08 / Built for ---------- */

#industries .sec-head {
  margin-bottom: 48px;
}

#industries .features-ind {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  border-top: 1px solid var(--line);
}

#industries .features-ind-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  min-height: 72px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease-std);
}

#industries .features-ind-row:nth-child(-n + 3) {
  padding-right: 32px;
}

#industries .features-ind-row:nth-child(n + 4) {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

#industries .features-hex {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: transform 0.5s var(--ease-out);
}

#industries .features-ind-row:hover .features-hex {
  transform: rotate(60deg);
}

#industries .features-ind-n {
  color: var(--bone);
}

#industries .features-ind-q {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 767px) {
  #industries .features-ind {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  #industries .features-ind-row:nth-child(-n + 3) {
    padding-right: 0;
  }

  #industries .features-ind-row:nth-child(n + 4) {
    padding-left: 0;
    border-left: 0;
  }

  #industries .features-ind-row {
    min-height: 64px;
    column-gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #features .features-ico,
  #stack .features-tool,
  #industries .features-hex {
    transition: none;
  }

  #industries .features-ind-row:hover .features-hex {
    transform: none;
  }
}

/* ---------- Review fixes ---------- */

/* Icons step back to bone; gold stays on hover only */
#features .features-ico {
  color: var(--bone-70);
}

#features .features-tile:hover .features-ico {
  color: var(--accent);
}

#industries .features-hex {
  background: var(--bone-50);
}

/* Card bodies start on the same line */
@media (min-width: 1024px) {
  #features .features-tile .cell-t {
    min-height: 2.3em;
  }
}
